@castari/cli 0.1.3 → 0.1.5

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/README.md CHANGED
@@ -101,7 +101,7 @@ Create a `.env` file in your project:
101
101
  ```env
102
102
  ANTHROPIC_API_KEY=sk-ant-...
103
103
  CASTARI_CLIENT_ID=your-client-id
104
- # CASTARI_PLATFORM_URL=https://castari-api-12511-04c55b73-g4p2s9om.onporter.run
104
+ CASTARI_API_KEY=castari_your-api-key
105
105
  ```
106
106
 
107
107
  ### package.json
@@ -25,7 +25,7 @@ export async function init(options = {}) {
25
25
  start: 'castari start',
26
26
  },
27
27
  dependencies: {
28
- '@castari/sdk': '^0.1.1',
28
+ '@castari/sdk': '^0.1.2',
29
29
  '@anthropic-ai/claude-agent-sdk': '^0.1.50',
30
30
  },
31
31
  castari: {
@@ -64,7 +64,7 @@ serve({
64
64
  systemPrompt: 'You are a helpful Castari agent.',
65
65
  })
66
66
  `;
67
- const envExample = `ANTHROPIC_API_KEY=sk-ant-...\nCASTARI_CLIENT_ID=your-client-id\nCASTARI_API_KEY=castari_your-api-key\n# CASTARI_PLATFORM_URL=https://castari-api-12511-04c55b73-g4p2s9om.onporter.run\n`;
67
+ const envExample = `ANTHROPIC_API_KEY=sk-ant-...\nCASTARI_CLIENT_ID=your-client-id\nCASTARI_API_KEY=castari_your-api-key\n`;
68
68
  await writeFile('package.json', JSON.stringify(packageJson, null, 2));
69
69
  await writeFile('tsconfig.json', JSON.stringify(tsConfig, null, 2));
70
70
  await writeFile('.env.example', envExample);
@@ -92,7 +92,7 @@ async function initDemo() {
92
92
  start: 'bun run src/agent.ts',
93
93
  },
94
94
  dependencies: {
95
- '@castari/sdk': '^0.1.1',
95
+ '@castari/sdk': '^0.1.2',
96
96
  '@anthropic-ai/claude-agent-sdk': '^0.1.50',
97
97
  },
98
98
  castari: {
@@ -110,7 +110,7 @@ async function initDemo() {
110
110
  },
111
111
  include: ['src'],
112
112
  });
113
- await writeFile(join(agentDir, '.env.example'), 'ANTHROPIC_API_KEY=sk-ant-...\nCASTARI_CLIENT_ID=your-client-id\nCASTARI_API_KEY=castari_your-api-key\n# CASTARI_PLATFORM_URL=https://castari-api-12511-04c55b73-g4p2s9om.onporter.run\n');
113
+ await writeFile(join(agentDir, '.env.example'), 'ANTHROPIC_API_KEY=sk-ant-...\nCASTARI_CLIENT_ID=your-client-id\nCASTARI_API_KEY=castari_your-api-key\n');
114
114
  await writeFile(join(agentDir, 'src', 'agent.ts'), `import { serve } from '@castari/sdk'
115
115
 
116
116
  serve({
@@ -136,7 +136,7 @@ serve({
136
136
  start: 'next start',
137
137
  },
138
138
  dependencies: {
139
- '@castari/sdk': '^0.1.1',
139
+ '@castari/sdk': '^0.1.2',
140
140
  next: '14.2.3',
141
141
  react: '18.3.1',
142
142
  'react-dom': '18.3.1',
@@ -187,7 +187,7 @@ const nextConfig = {
187
187
 
188
188
  export default nextConfig
189
189
  `);
190
- await writeFile(join(webDir, '.env.example'), 'ANTHROPIC_API_KEY=sk-ant-...\nCASTARI_CLIENT_ID=your-client-id\nCASTARI_API_KEY=castari_your-api-key\n# CASTARI_PLATFORM_URL=https://castari-api-12511-04c55b73-g4p2s9om.onporter.run\n# CASTARI_DEBUG=false\n');
190
+ await writeFile(join(webDir, '.env.example'), 'ANTHROPIC_API_KEY=sk-ant-...\nCASTARI_CLIENT_ID=your-client-id\nCASTARI_API_KEY=castari_your-api-key\n# CASTARI_DEBUG=false\n');
191
191
  await writeFile(join(webDir, 'app', 'globals.css'), `:root {
192
192
  color-scheme: dark;
193
193
  --bg: #131418;
@@ -651,7 +651,6 @@ async function createClient() {
651
651
  snapshot: SNAPSHOT,
652
652
  // volume: VOLUME, // opt-in; omit to run ephemeral unless provided
653
653
  labels: LABELS,
654
- platformUrl: process.env.CASTARI_PLATFORM_URL,
655
654
  clientId: process.env.CASTARI_CLIENT_ID,
656
655
  platformApiKey: process.env.CASTARI_API_KEY,
657
656
  anthropicApiKey,
@@ -851,7 +850,6 @@ Structure:
851
850
  - Node 18+ (for the Next.js app)
852
851
  - \`ANTHROPIC_API_KEY\`
853
852
  - Castari credentials (\`CASTARI_CLIENT_ID\` and \`CASTARI_API_KEY\`)
854
- - Castari Platform running locally or reachable via \`CASTARI_PLATFORM_URL\`
855
853
 
856
854
  ## Getting Castari Credentials
857
855
  Generate your clientId and apiKey by running:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castari/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "castari": "./dist/index.js"