Conversation
| if envLine.Key == "AGENTUITY_API_KEY" { | ||
| envLines[i].Val = apikey | ||
| found = true | ||
| found["AGENTUITY_API_KEY"] = true |
There was a problem hiding this comment.
i've made this comment several times but it doesn't seem to stick...
AGENTUITY_AGENTS_KEY seems confusing to me. Is this the project-level key for the agent or the key to use for the SDK?
i think we should maybe be more intentional in the naming.
AGENTUITY_SDK_KEY - this would be current AGENTUITY_API_KEY but make it clear that it's needed for the SDK to run.
AGENTUITY_PROJECT_KEY - this would be what I think is your AGENTUITY_AGENTS_KEY but be the project-level key for accessing agents within the same project.
We would need to make AGENTUITY_API_KEY backwards compatible so i realize that this is a little more work but i think would make it more clear what is what.
| "AGENTUITY_PROJECT_KEY": false, | ||
| } | ||
|
|
||
| for i, envLine := range envLines { |
|
|
||
| if !found["AGENTUITY_SDK_KEY"] { | ||
| envLines = append(envLines, env.EnvLine{Key: "AGENTUITY_SDK_KEY", Val: apikey}) | ||
| gtVersion := version.GreaterThan(semver.MustParse("0.0.114")) |
There was a problem hiding this comment.
different versions between python and js.
|
|
||
| if !found["AGENTUITY_PROJECT_KEY"] { | ||
| envLines = append(envLines, env.EnvLine{Key: "AGENTUITY_PROJECT_KEY", Val: projectKey}) | ||
| } |
There was a problem hiding this comment.
i'm wondering if we need all of this. since this version of the CLI that's executing and our network will support the new variable, why not just detect if we have the old one and remove it and replace it with the new one and not worry about the SDK version at all?
There was a problem hiding this comment.
🤔 I think that would work for deployed projects but we'd something like this for devmode.
There was a problem hiding this comment.
maybe we can think of a simpler way to solve that problem tho.
| Runtime: "bunjs", | ||
| Version: "<0.0.115", | ||
| Title: "🚫 JS SDK Breaking Change 🚫", | ||
| Message: "The environment variable and code reference for your Agentuity API key has changed from AGENTUITY_API_KEY to AGENTUITY_SDK_KEY. Update all occurrences in your .env files and codebase. See the v0.0.114 Changelog for details.\n\n" + tui.Link("https://agentuity.dev/Changelog/sdk-js#v00114") + "\n\nAfter migrated, please run bun update @agentuity/sdk --latest and then re-run this command again.", |
There was a problem hiding this comment.
shouldn't the message be 0.0.115?
| Runtime: "nodejs", | ||
| Version: "<0.0.115 ", | ||
| Title: "🚫 JS SDK Breaking Change 🚫", | ||
| Message: "The environment variable and code reference for your Agentuity API key has changed from AGENTUITY_API_KEY to AGENTUITY_SDK_KEY. Update all occurrences in your .env files and codebase. See the v0.0.114 Changelog for details.\n\n" + tui.Link("https://agentuity.dev/Changelog/sdk-js#v00114") + "\n\nAfter migrated, please run npm i @agentuity/sdk --latest and then re-run this command again.", |
| Runtime: "uv", | ||
| Version: "<0.0.84", | ||
| Title: "🚫 Python SDK Breaking Changes 🚫", | ||
| Message: "The environment variable and code reference for your Agentuity API key has changed from AGENTUITY_API_KEY to AGENTUITY_SDK_KEY. Update all occurrences in your .env files and codebase. See the v0.0.114 Changelog for details.\n\n" + tui.Link("https://agentuity.dev/Changelog/sdk-js#v00114") + "\n\nAfter migrated, please run `uv add agentuity -U` --latest and then re-run this command again.", |
| Runtime: "nodejs", | ||
| Version: "<0.0.115 ", | ||
| Title: "🚫 JS SDK Breaking Change 🚫", | ||
| Message: "The environment variable and code reference for your Agentuity API key has changed from AGENTUITY_API_KEY to AGENTUITY_SDK_KEY. Update all occurrences in your .env files and codebase. See the v0.0.115 Changelog for details.\n\n" + tui.Link("https://agentuity.dev/Changelog/sdk-js#v00114") + "\n\nAfter migrated, please run npm i @agentuity/sdk --latest and then re-run this command again.", |
Co-authored-by: Robin Diddams <robindiddams@gmail.com>
Co-authored-by: Robin Diddams <robindiddams@gmail.com>

No description provided.