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.
- package/dist/agent/loop.d.ts +7 -5
- package/dist/agent/loop.js +7 -5
- package/dist/conversation.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.node.js +1531 -337
- package/dist/tools/analysis-block.test.d.ts +1 -0
- package/dist/tools/analysis-block.test.js +357 -0
- package/dist/tools/block-governance.test.js +3 -0
- package/dist/tools/block-ops.js +14 -3
- package/dist/tools/builder.d.ts +209 -0
- package/dist/tools/builder.js +1154 -148
- package/dist/tools/cells.js +26 -6
- package/dist/tools/charts.js +2 -0
- package/dist/tools/comments.js +18 -5
- package/dist/tools/edit.js +43 -62
- package/dist/tools/format.js +6 -1
- package/dist/tools/inspect.d.ts +33 -0
- package/dist/tools/inspect.js +244 -29
- package/dist/tools/links.js +43 -11
- package/dist/tools/pivot.test.d.ts +1 -0
- package/dist/tools/pivot.test.js +770 -0
- package/dist/tools/rename-field-drift.test.d.ts +1 -0
- package/dist/tools/rename-field-drift.test.js +132 -0
- package/dist/tools/structure.js +26 -8
- package/dist/tools/taxonomy.js +9 -2
- package/dist/tools/temp-branch.d.ts +59 -0
- package/dist/tools/temp-branch.js +120 -0
- package/dist/tools/temp-branch.test.d.ts +1 -0
- package/dist/tools/temp-branch.test.js +143 -0
- package/dist/tools/violations-pivot.test.d.ts +1 -0
- package/dist/tools/violations-pivot.test.js +232 -0
- package/package.json +3 -3
package/dist/agent/loop.d.ts
CHANGED
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* - WorkbookClient (passed through to tool handlers)
|
|
11
11
|
* - host-provided confirm / log callbacks
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
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
|
-
/**
|
|
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;
|
package/dist/agent/loop.js
CHANGED
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* - WorkbookClient (passed through to tool handlers)
|
|
11
11
|
* - host-provided confirm / log callbacks
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
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-
|
|
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;
|
package/dist/conversation.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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';
|