@leanandmean/coding-agent 0.74.1-scramjet.6 → 0.74.1-scramjet.8
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/CHANGELOG.md +2 -0
- package/dist/core/agent-session.d.ts +14 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +30 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +7 -0
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +2 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +29 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +89 -4
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +7 -2
- package/dist/core/model-resolver.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
|
+
- Custom `models.json` schema support for Anthropic Messages `supportsTemperature` and `forceAdaptiveThinking` compat fields used by the Opus 4.8 / Fable 5 / Sonnet 5 model support update, with effective-API validation that rejects compat fields outside the target API contract.
|
|
7
8
|
- `beforeToolBatch` hook on `AgentLoopConfig` / `Agent` — called after assistant `message_end` but before tool-call extraction, allowing async event handlers (e.g., queued `message_end` mutations) to settle before the execution pipeline reads tool calls ([#196](https://github.com/LeanAndMean/scramjet/issues/196))
|
|
8
9
|
- `AgentSession._drainAgentEventQueue()` helper — awaits the queued extension event promise; wired into both `beforeToolBatch` (pre-extraction drain) and `beforeToolCall` (per-tool drain)
|
|
9
10
|
|
|
10
11
|
### Changed
|
|
11
12
|
|
|
13
|
+
- Default Anthropic model resolution now selects `claude-opus-4-8`; default Amazon Bedrock model resolution now selects `us.anthropic.claude-opus-4-8`. Unknown custom CLI model IDs no longer inherit model-specific `compat` or `thinkingLevelMap` metadata from those defaults.
|
|
12
14
|
- **Documentation rebrand**: Rebranded all shipped documentation, examples, and system prompt from Pi identity to Scramjet identity. Product name references, binary name (`pi` → `scramjet`), env var names (`PI_*` → `SCRAMJET_*`), and install instructions updated throughout. API variable names (`pi.on()`, `pi.registerTool()`) and `.pi/` config directory paths are preserved. ([#199](https://github.com/LeanAndMean/scramjet/issues/199))
|
|
13
15
|
|
|
14
16
|
- Merged upstream v0.74.1: Together AI provider, image generation APIs, Node 26 fetch fixes, session affinity headers, provider compat improvements ([#14](https://github.com/LeanAndMean/pi/issues/14))
|
|
@@ -16,7 +16,7 @@ import type { Agent, AgentEvent, AgentMessage, AgentState, AgentTool, ThinkingLe
|
|
|
16
16
|
import type { ImageContent, Model, TextContent } from "@leanandmean/ai";
|
|
17
17
|
import { type BashResult } from "./bash-executor.js";
|
|
18
18
|
import { type CompactionResult } from "./compaction/index.js";
|
|
19
|
-
import { type ContextUsage, type DeliverAs, type DispatchUserInputOptions, type ExtensionCommandContextActions, type ExtensionErrorListener, ExtensionRunner, type ExtensionUIContext, type InputSource, type ReplacedSessionContext, type SendMessageDeliverAs, type SessionStartEvent, type ShutdownHandler, type ToolDefinition, type ToolInfo } from "./extensions/index.js";
|
|
19
|
+
import { type ContextUsage, type DeliverAs, type DispatchUserInputOptions, type ExtensionCommandContextActions, type ExtensionErrorListener, ExtensionRunner, type ExtensionUIContext, type InputSource, type InvokeHarnessToolOptions, type ReplacedSessionContext, type SendMessageDeliverAs, type SessionStartEvent, type ShutdownHandler, type ToolDefinition, type ToolInfo } from "./extensions/index.js";
|
|
20
20
|
import type { CustomMessage } from "./messages.js";
|
|
21
21
|
import type { ModelRegistry } from "./model-registry.js";
|
|
22
22
|
import { type PromptTemplate } from "./prompt-templates.js";
|
|
@@ -285,6 +285,19 @@ export declare class AgentSession {
|
|
|
285
285
|
* Changes take effect on the next agent turn.
|
|
286
286
|
*/
|
|
287
287
|
setActiveToolsByName(toolNames: string[]): void;
|
|
288
|
+
/**
|
|
289
|
+
* Execute a registered tool as a harness-originated call (not requested by the model).
|
|
290
|
+
*
|
|
291
|
+
* Resolves the wrapped tool from the full registry — including `"harness-only"` tools that are
|
|
292
|
+
* never provider-visible — so its `execute` still receives the extension context and its
|
|
293
|
+
* `tool_call`/`tool_result` hooks still fire. Delegates to {@link Agent.runHarnessTool}, which
|
|
294
|
+
* runs the call through the real prepare/execute/finalize pipeline: identical live
|
|
295
|
+
* `tool_execution_*`/message events, persisted session entries, and extension hooks, but no
|
|
296
|
+
* run/turn framing. The idle-vs-mid-run branch lives in `runHarnessTool` (keyed on the agent's
|
|
297
|
+
* active run, which tracks `isStreaming`): idle calls execute immediately, mid-run calls queue
|
|
298
|
+
* and drain before the next intra-run LLM call.
|
|
299
|
+
*/
|
|
300
|
+
invokeHarnessTool(name: string, args: unknown, options?: InvokeHarnessToolOptions): Promise<void>;
|
|
288
301
|
/** Whether compaction or branch summarization is currently running */
|
|
289
302
|
get isCompacting(): boolean;
|
|
290
303
|
/** All messages including custom types like BashExecutionMessage */
|