@orchagent/cli 0.3.78 → 0.3.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/init.js +7 -8
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -256,7 +256,7 @@ const DISCORD_PACKAGE_JSON = `{
|
|
|
256
256
|
const DISCORD_JS_ENV_EXAMPLE = `# Required — get your bot token from https://discord.com/developers/applications
|
|
257
257
|
DISCORD_BOT_TOKEN=
|
|
258
258
|
|
|
259
|
-
# Required
|
|
259
|
+
# Required — add to workspace secrets: orch secrets set ANTHROPIC_API_KEY <key>
|
|
260
260
|
ANTHROPIC_API_KEY=
|
|
261
261
|
|
|
262
262
|
# Required — comma-separated Discord channel IDs where the bot should respond
|
|
@@ -364,7 +364,7 @@ Edit \`main.py\` to customize:
|
|
|
364
364
|
| Variable | Required | Description |
|
|
365
365
|
|----------|----------|-------------|
|
|
366
366
|
| \`DISCORD_BOT_TOKEN\` | Yes | Discord bot token (workspace secret) |
|
|
367
|
-
| \`ANTHROPIC_API_KEY\` |
|
|
367
|
+
| \`ANTHROPIC_API_KEY\` | Yes | Anthropic API key (workspace secret via \`required_secrets\`) |
|
|
368
368
|
| \`DISCORD_CHANNEL_IDS\` | Yes | Comma-separated channel IDs (workspace secret) |
|
|
369
369
|
| \`MODEL\` | No | Claude model (default: claude-sonnet-4-5-20250929) |
|
|
370
370
|
| \`MAX_TOKENS\` | No | Max response tokens (default: 1024) |
|
|
@@ -422,7 +422,7 @@ Edit \`main.js\` to customize:
|
|
|
422
422
|
| Variable | Required | Description |
|
|
423
423
|
|----------|----------|-------------|
|
|
424
424
|
| \`DISCORD_BOT_TOKEN\` | Yes | Discord bot token (workspace secret) |
|
|
425
|
-
| \`ANTHROPIC_API_KEY\` |
|
|
425
|
+
| \`ANTHROPIC_API_KEY\` | Yes | Anthropic API key (workspace secret via \`required_secrets\`) |
|
|
426
426
|
| \`DISCORD_CHANNEL_IDS\` | Yes | Comma-separated channel IDs (workspace secret) |
|
|
427
427
|
| \`MODEL\` | No | Claude model (default: claude-sonnet-4-5-20250929) |
|
|
428
428
|
| \`MAX_TOKENS\` | No | Max response tokens (default: 1024) |
|
|
@@ -782,7 +782,7 @@ anthropic>=0.40.0,<1.0.0
|
|
|
782
782
|
const DISCORD_ENV_EXAMPLE = `# Required — get your bot token from https://discord.com/developers/applications
|
|
783
783
|
DISCORD_BOT_TOKEN=
|
|
784
784
|
|
|
785
|
-
# Required
|
|
785
|
+
# Required — add to workspace secrets: orch secrets set ANTHROPIC_API_KEY <key>
|
|
786
786
|
ANTHROPIC_API_KEY=
|
|
787
787
|
|
|
788
788
|
# Required — comma-separated Discord channel IDs where the bot should respond
|
|
@@ -942,8 +942,7 @@ function registerInitCommand(program) {
|
|
|
942
942
|
entrypoint: 'main.py',
|
|
943
943
|
supported_providers: ['anthropic'],
|
|
944
944
|
default_models: { anthropic: 'claude-sonnet-4-5-20250929' },
|
|
945
|
-
required_secrets: [],
|
|
946
|
-
optional_secrets: ['DISCORD_BOT_TOKEN', 'DISCORD_CHANNEL_IDS', 'TELEGRAM_BOT_TOKEN', 'SLACK_BOT_TOKEN', 'SLACK_APP_TOKEN'],
|
|
945
|
+
required_secrets: ['ANTHROPIC_API_KEY'],
|
|
947
946
|
tags: ['support', 'discord', 'telegram', 'slack', 'always-on', 'multi-platform'],
|
|
948
947
|
bundle: {
|
|
949
948
|
include: ['*.py', 'connectors/*.py', 'knowledge/*.md', 'requirements.txt'],
|
|
@@ -1069,7 +1068,7 @@ function registerInitCommand(program) {
|
|
|
1069
1068
|
runtime: { command: 'node main.js' },
|
|
1070
1069
|
entrypoint: 'main.js',
|
|
1071
1070
|
supported_providers: ['anthropic'],
|
|
1072
|
-
required_secrets: ['DISCORD_BOT_TOKEN', 'DISCORD_CHANNEL_IDS'],
|
|
1071
|
+
required_secrets: ['ANTHROPIC_API_KEY', 'DISCORD_BOT_TOKEN', 'DISCORD_CHANNEL_IDS'],
|
|
1073
1072
|
tags: ['discord', 'always-on', 'javascript'],
|
|
1074
1073
|
};
|
|
1075
1074
|
await promises_1.default.writeFile(manifestPath, JSON.stringify(manifest, null, 2) + '\n');
|
|
@@ -1147,7 +1146,7 @@ function registerInitCommand(program) {
|
|
|
1147
1146
|
manifest.description = 'An always-on Discord bot powered by Claude';
|
|
1148
1147
|
manifest.runtime = { command: 'python main.py' };
|
|
1149
1148
|
manifest.supported_providers = ['anthropic'];
|
|
1150
|
-
manifest.required_secrets = ['DISCORD_BOT_TOKEN', 'DISCORD_CHANNEL_IDS'];
|
|
1149
|
+
manifest.required_secrets = ['ANTHROPIC_API_KEY', 'DISCORD_BOT_TOKEN', 'DISCORD_CHANNEL_IDS'];
|
|
1151
1150
|
manifest.tags = ['discord', 'always-on'];
|
|
1152
1151
|
}
|
|
1153
1152
|
else if (initMode.flavor === 'code_runtime') {
|
package/package.json
CHANGED