@castari/sdk 0.0.4 → 0.0.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/dist/client.d.ts CHANGED
@@ -18,6 +18,8 @@ export interface ClientOptions extends Partial<QueryConfig> {
18
18
  volume?: string;
19
19
  /** Castari Platform API URL. Defaults to https://api.castari.com (or localhost in dev) */
20
20
  platformUrl?: string;
21
+ /** Optional sessionId to resume */
22
+ resume?: string;
21
23
  }
22
24
  export declare class CastariClient {
23
25
  private ws?;
package/dist/client.js CHANGED
@@ -27,7 +27,11 @@ export class CastariClient {
27
27
  allowedTools: this.options.allowedTools,
28
28
  systemPrompt: this.options.systemPrompt,
29
29
  model: this.options.model,
30
+ resume: this.options.resume,
30
31
  };
32
+ if (this.options.debug) {
33
+ console.log(`📋 Config payload:`, JSON.stringify(configPayload, null, 2));
34
+ }
31
35
  const configHeaders = {
32
36
  'Content-Type': 'application/json',
33
37
  };
package/dist/server.js CHANGED
@@ -115,6 +115,12 @@ async function processMessages(initialOptions) {
115
115
  ...options,
116
116
  prompt: '[generator]', // avoid logging generator internals
117
117
  });
118
+ if (options.resume) {
119
+ console.info(`📋 Resuming session: ${options.resume}`);
120
+ }
121
+ else {
122
+ console.info('📋 Starting new session');
123
+ }
118
124
  activeStream = query({
119
125
  prompt: generateMessages(),
120
126
  options,
package/dist/types.d.ts CHANGED
@@ -55,4 +55,5 @@ export type QueryConfig = {
55
55
  };
56
56
  model?: string;
57
57
  anthropicApiKey?: string;
58
+ resume?: string;
58
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castari/sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",