logisheets-logician 1.14.0 → 1.15.0

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.
@@ -10,10 +10,12 @@
10
10
  * - WorkbookClient (passed through to tool handlers)
11
11
  * - host-provided confirm / log callbacks
12
12
  *
13
- * The Anthropic SDK is NOT imported here. Hosts wire up a concrete
14
- * LlmClient (the browser craft uses fetch + the Messages REST API, the
15
- * node CLI uses @anthropic-ai/sdk). Keeping the boundary thin lets us
16
- * test the loop without network and swap providers later.
13
+ * No LLM SDK is imported here. Hosts wire up a concrete LlmClient, and the
14
+ * agent IR this loop speaks (Anthropic-shaped content blocks — see
15
+ * projection.ts) is the canonical form: an Anthropic-wire client passes it
16
+ * through, an OpenAI-wire client translates it. Keeping the boundary this thin
17
+ * is what lets the same loop drive Claude, GPT, DeepSeek or a local Ollama,
18
+ * and lets us test it without a network.
17
19
  */
18
20
  import type { ConversationEvent } from '../conversation.js';
19
21
  import { type AgentContentBlock, type AgentMessage } from '../projection.js';
@@ -56,7 +58,7 @@ export interface AgentOptions {
56
58
  registry: ToolRegistry;
57
59
  llm: LlmClient;
58
60
  workbook: WorkbookClient;
59
- /** Anthropic model id. Default 'claude-opus-4-8'. */
61
+ /** Model id, in the provider's own spelling. Default 'claude-opus-5'. */
60
62
  model?: string;
61
63
  /** Cap on tokens per response. Default 4096. */
62
64
  max_tokens?: number;
@@ -10,10 +10,12 @@
10
10
  * - WorkbookClient (passed through to tool handlers)
11
11
  * - host-provided confirm / log callbacks
12
12
  *
13
- * The Anthropic SDK is NOT imported here. Hosts wire up a concrete
14
- * LlmClient (the browser craft uses fetch + the Messages REST API, the
15
- * node CLI uses @anthropic-ai/sdk). Keeping the boundary thin lets us
16
- * test the loop without network and swap providers later.
13
+ * No LLM SDK is imported here. Hosts wire up a concrete LlmClient, and the
14
+ * agent IR this loop speaks (Anthropic-shaped content blocks — see
15
+ * projection.ts) is the canonical form: an Anthropic-wire client passes it
16
+ * through, an OpenAI-wire client translates it. Keeping the boundary this thin
17
+ * is what lets the same loop drive Claude, GPT, DeepSeek or a local Ollama,
18
+ * and lets us test it without a network.
17
19
  */
18
20
  import { toLlmMessages, } from '../projection.js';
19
21
  export class Agent {
@@ -23,7 +25,7 @@ export class Agent {
23
25
  this.registry = opts.registry;
24
26
  this.llm = opts.llm;
25
27
  this.workbook = opts.workbook;
26
- this.model = (_a = opts.model) !== null && _a !== void 0 ? _a : 'claude-opus-4-8';
28
+ this.model = (_a = opts.model) !== null && _a !== void 0 ? _a : 'claude-opus-5';
27
29
  this.maxTokens = (_b = opts.max_tokens) !== null && _b !== void 0 ? _b : 4096;
28
30
  this.systemPrompt = opts.systemPrompt;
29
31
  this.maxToolIters = (_c = opts.max_tool_iterations) !== null && _c !== void 0 ? _c : 16;
@@ -80,7 +80,7 @@ export interface Conversation {
80
80
  title: string;
81
81
  /** Workbook this conversation is bound to. Optional for cross-workbook chats. */
82
82
  workbook_id?: string;
83
- /** Anthropic model id, e.g. "claude-opus-4-8". */
83
+ /** Model id in the provider's own spelling, e.g. "claude-opus-5". */
84
84
  model: string;
85
85
  created_at: number;
86
86
  updated_at: number;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from './tools/history.js';
11
11
  export * from './tools/comments.js';
12
12
  export * from './tools/block-ops.js';
13
13
  export * from './tools/effect.js';
14
+ export * from './tools/temp-branch.js';
14
15
  export * from './tools/links.js';
15
16
  export * from './tools/charts.js';
16
17
  export * from './tools/taxonomy.js';
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ export * from './tools/history.js';
11
11
  export * from './tools/comments.js';
12
12
  export * from './tools/block-ops.js';
13
13
  export * from './tools/effect.js';
14
+ export * from './tools/temp-branch.js';
14
15
  export * from './tools/links.js';
15
16
  export * from './tools/charts.js';
16
17
  export * from './tools/taxonomy.js';