@yaag/cli 0.5.2 → 0.6.1
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/assets/types/runtime/{agent-usage.d.ts → agent/agent-usage.d.ts} +1 -1
- package/assets/types/runtime/{agent.d.ts → agent/agent.d.ts} +3 -3
- package/assets/types/runtime/{define-agent.d.ts → agent/define-agent.d.ts} +3 -3
- package/assets/types/runtime/agent/index.d.ts +7 -0
- package/assets/types/runtime/{spawn.d.ts → agent/spawn.d.ts} +3 -3
- package/assets/types/runtime/{ask-activity.d.ts → ask/ask-activity.d.ts} +2 -2
- package/assets/types/runtime/{ask-exchange-events.d.ts → ask/ask-exchange-events.d.ts} +2 -2
- package/assets/types/runtime/{ask-exchange-options.d.ts → ask/ask-exchange-options.d.ts} +4 -5
- package/assets/types/runtime/{ask-hash.d.ts → ask/ask-hash.d.ts} +4 -4
- package/assets/types/runtime/{ask-output-tail.d.ts → ask/ask-output-tail.d.ts} +2 -2
- package/assets/types/runtime/{ask-settlement.d.ts → ask/ask-settlement.d.ts} +1 -1
- package/assets/types/runtime/{ask-turn.d.ts → ask/ask-turn.d.ts} +1 -1
- package/assets/types/runtime/{idle-watch.d.ts → ask/idle-watch.d.ts} +2 -2
- package/assets/types/runtime/ask/index.d.ts +7 -0
- package/assets/types/runtime/{stall-watchdog.d.ts → ask/stall-watchdog.d.ts} +2 -3
- package/assets/types/runtime/{ask-limit.d.ts → ask-contract/ask-limit.d.ts} +3 -3
- package/assets/types/runtime/{ask-output.d.ts → ask-contract/ask-output.d.ts} +3 -3
- package/assets/types/runtime/ask-contract/index.d.ts +10 -0
- package/assets/types/runtime/{report-result-output.d.ts → ask-contract/report-result-output.d.ts} +1 -1
- package/assets/types/runtime/{report-result.d.ts → ask-contract/report-result.d.ts} +1 -1
- package/assets/types/runtime/{cassette-replay.d.ts → cassette/cassette-replay.d.ts} +1 -1
- package/assets/types/runtime/{cassette-schema.d.ts → cassette/cassette-schema.d.ts} +2 -2
- package/assets/types/runtime/{cassette.d.ts → cassette/cassette.d.ts} +5 -5
- package/assets/types/runtime/{checkpoint-dir.d.ts → cassette/checkpoint-dir.d.ts} +8 -1
- package/assets/types/runtime/cassette/index.d.ts +15 -0
- package/assets/types/runtime/{recording-transport.d.ts → cassette/recording-transport.d.ts} +1 -1
- package/assets/types/runtime/{replay-divergence.d.ts → cassette/replay-divergence.d.ts} +1 -1
- package/assets/types/runtime/{replay-transport.d.ts → cassette/replay-transport.d.ts} +1 -1
- package/assets/types/runtime/{resume-transport.d.ts → cassette/resume-transport.d.ts} +1 -1
- package/assets/types/runtime/{run-checkpoint.d.ts → cassette/run-checkpoint.d.ts} +1 -1
- package/assets/types/runtime/errors.d.ts +2 -2
- package/assets/types/runtime/events.d.ts +3 -3
- package/assets/types/runtime/extension/index.d.ts +5 -0
- package/assets/types/runtime/index.d.ts +14 -30
- package/assets/types/runtime/model/index.d.ts +6 -0
- package/assets/types/runtime/node/index.d.ts +8 -0
- package/assets/types/runtime/{node-decoder.d.ts → node/node-decoder.d.ts} +1 -1
- package/assets/types/runtime/{node-details.d.ts → node/node-details.d.ts} +1 -1
- package/assets/types/runtime/{node-tracker.d.ts → node/node-tracker.d.ts} +2 -2
- package/assets/types/runtime/prompt/index.d.ts +6 -0
- package/assets/types/runtime/run/index.d.ts +7 -0
- package/assets/types/runtime/{run-context.d.ts → run/run-context.d.ts} +2 -2
- package/assets/types/runtime/{run.d.ts → run/run.d.ts} +4 -4
- package/assets/types/runtime/summary/index.d.ts +6 -0
- package/assets/types/runtime/{summary-agent.d.ts → summary/summary-agent.d.ts} +3 -3
- package/assets/types/runtime/{summary-nodes.d.ts → summary/summary-nodes.d.ts} +2 -2
- package/assets/types/runtime/{summary.d.ts → summary/summary.d.ts} +3 -3
- package/assets/types/runtime/transport/index.d.ts +18 -0
- package/assets/types/runtime/{transport.d.ts → transport/transport.d.ts} +3 -4
- package/assets/types/runtime/types.d.ts +2 -3
- package/package.json +3 -3
- package/src/cli.ts +11 -8
- package/src/program/index.ts +7 -0
- package/src/{run-program.ts → program/run-program.ts} +1 -1
- package/src/terminal/index.ts +9 -0
- /package/assets/types/runtime/{agent-names.d.ts → agent/agent-names.d.ts} +0 -0
- /package/assets/types/runtime/{ask-exchange.d.ts → ask/ask-exchange.d.ts} +0 -0
- /package/assets/types/runtime/{ask-output-steering.d.ts → ask/ask-output-steering.d.ts} +0 -0
- /package/assets/types/runtime/{ask-contract-identity.d.ts → ask-contract/ask-contract-identity.d.ts} +0 -0
- /package/assets/types/runtime/{report-result-extension.d.ts → ask-contract/report-result-extension.d.ts} +0 -0
- /package/assets/types/runtime/{report-result-steering.d.ts → ask-contract/report-result-steering.d.ts} +0 -0
- /package/assets/types/runtime/{cassette-loader.d.ts → cassette/cassette-loader.d.ts} +0 -0
- /package/assets/types/runtime/{cassette-publish.d.ts → cassette/cassette-publish.d.ts} +0 -0
- /package/assets/types/runtime/{checkpoint-flush.d.ts → cassette/checkpoint-flush.d.ts} +0 -0
- /package/assets/types/runtime/{git-facts.d.ts → cassette/git-facts.d.ts} +0 -0
- /package/assets/types/runtime/{program-hash.d.ts → cassette/program-hash.d.ts} +0 -0
- /package/assets/types/runtime/{resume-identity.d.ts → cassette/resume-identity.d.ts} +0 -0
- /package/assets/types/runtime/{resume-preconditions.d.ts → cassette/resume-preconditions.d.ts} +0 -0
- /package/assets/types/runtime/{extension-package.d.ts → extension/extension-package.d.ts} +0 -0
- /package/assets/types/runtime/{extension-paths.d.ts → extension/extension-paths.d.ts} +0 -0
- /package/assets/types/runtime/{extension-source.d.ts → extension/extension-source.d.ts} +0 -0
- /package/assets/types/runtime/{model-resolution.d.ts → model/model-resolution.d.ts} +0 -0
- /package/assets/types/runtime/{model-suffix.d.ts → model/model-suffix.d.ts} +0 -0
- /package/assets/types/runtime/{thinking-level.d.ts → model/thinking-level.d.ts} +0 -0
- /package/assets/types/runtime/{node-decoder-subagent.d.ts → node/node-decoder-subagent.d.ts} +0 -0
- /package/assets/types/runtime/{node-decoder-workflow.d.ts → node/node-decoder-workflow.d.ts} +0 -0
- /package/assets/types/runtime/{node-decoders.d.ts → node/node-decoders.d.ts} +0 -0
- /package/assets/types/runtime/{node-path.d.ts → node/node-path.d.ts} +0 -0
- /package/assets/types/runtime/{prompt-gist.d.ts → prompt/prompt-gist.d.ts} +0 -0
- /package/assets/types/runtime/{prompt.d.ts → prompt/prompt.d.ts} +0 -0
- /package/assets/types/runtime/{args-validation.d.ts → run/args-validation.d.ts} +0 -0
- /package/assets/types/runtime/{define-run.d.ts → run/define-run.d.ts} +0 -0
- /package/assets/types/runtime/{connection.d.ts → transport/connection.d.ts} +0 -0
- /package/assets/types/runtime/{fake-transport.d.ts → transport/fake-transport.d.ts} +0 -0
- /package/assets/types/runtime/{frame-gap.d.ts → transport/frame-gap.d.ts} +0 -0
- /package/assets/types/runtime/{frame-queue.d.ts → transport/frame-queue.d.ts} +0 -0
- /package/assets/types/runtime/{jsonl.d.ts → transport/jsonl.d.ts} +0 -0
- /package/assets/types/runtime/{live-transport.d.ts → transport/live-transport.d.ts} +0 -0
- /package/assets/types/runtime/{pi-state.d.ts → transport/pi-state.d.ts} +0 -0
- /package/assets/types/runtime/{reap.d.ts → transport/reap.d.ts} +0 -0
- /package/assets/types/runtime/{skill-probe.d.ts → transport/skill-probe.d.ts} +0 -0
- /package/assets/types/runtime/{skill-restriction-transport.d.ts → transport/skill-restriction-transport.d.ts} +0 -0
- /package/assets/types/runtime/{system-prompt-recorder-extension.d.ts → transport/system-prompt-recorder-extension.d.ts} +0 -0
- /package/assets/types/runtime/{system-prompt-recorder.d.ts → transport/system-prompt-recorder.d.ts} +0 -0
- /package/assets/types/runtime/{tool-probe-extension.d.ts → transport/tool-probe-extension.d.ts} +0 -0
- /package/assets/types/runtime/{tool-probe.d.ts → transport/tool-probe.d.ts} +0 -0
- /package/assets/types/runtime/{worktree-transport.d.ts → transport/worktree-transport.d.ts} +0 -0
- /package/src/{computed-imports.ts → program/computed-imports.ts} +0 -0
- /package/src/{eval-fd.ts → program/eval-fd.ts} +0 -0
- /package/src/{inline-imports.ts → program/inline-imports.ts} +0 -0
- /package/src/{inline-program.ts → program/inline-program.ts} +0 -0
- /package/src/{program-loader.ts → program/program-loader.ts} +0 -0
- /package/src/{runtime-alias.ts → program/runtime-alias.ts} +0 -0
- /package/src/{alt-screen.ts → terminal/alt-screen.ts} +0 -0
- /package/src/{cli-tree-host.ts → terminal/cli-tree-host.ts} +0 -0
- /package/src/{fatal-signal.ts → terminal/fatal-signal.ts} +0 -0
- /package/src/{final-frame.ts → terminal/final-frame.ts} +0 -0
- /package/src/{interactive-run.ts → terminal/interactive-run.ts} +0 -0
- /package/src/{output-channel.ts → terminal/output-channel.ts} +0 -0
- /package/src/{presenter.ts → terminal/presenter.ts} +0 -0
- /package/src/{render.ts → terminal/render.ts} +0 -0
- /package/src/{run-invocation.ts → terminal/run-invocation.ts} +0 -0
- /package/src/{tree-app.ts → terminal/tree-app.ts} +0 -0
- /package/src/{tui-test-support.ts → terminal/tui-test-support.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Static, TSchema } from "typebox";
|
|
2
|
-
import type { EventSink } from "
|
|
3
|
-
import type { AgentStats, AgentTransport } from "
|
|
4
|
-
import type { AskOptions, Handle, ResolvedSpawnOptions, StructuredAskOptions } from "
|
|
2
|
+
import type { EventSink } from "../events.ts";
|
|
3
|
+
import type { AgentStats, AgentTransport } from "../transport/index.ts";
|
|
4
|
+
import type { AskOptions, Handle, ResolvedSpawnOptions, StructuredAskOptions } from "../types.ts";
|
|
5
5
|
export interface AgentOptions {
|
|
6
6
|
readonly name: string;
|
|
7
7
|
readonly cwd: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ModelSpec, ThinkingSpec } from "
|
|
2
|
-
import type { AskOptions } from "
|
|
3
|
-
export type { ThinkingLevel } from "
|
|
1
|
+
import type { ModelSpec, ThinkingSpec } from "../model/index.ts";
|
|
2
|
+
import type { AskOptions } from "../types.ts";
|
|
3
|
+
export type { ThinkingLevel } from "../types.ts";
|
|
4
4
|
/** What `defineAgent` is given: the policy of one Agent, never its topology. */
|
|
5
5
|
export interface AgentConfig {
|
|
6
6
|
/** Stable identity, used in every Lifecycle Event and log line. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `agent/` module: the Agent handle and spawn.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { Agent } from "./agent.ts";
|
|
6
|
+
export { type AgentConfig, type AgentDefinition, agentDefinitionConfig, defineAgent, isAgentDefinition, } from "./define-agent.ts";
|
|
7
|
+
export { makeSpawn } from "./spawn.ts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { EventSink } from "../events.ts";
|
|
2
|
+
import type { RunContext } from "../run/index.ts";
|
|
3
|
+
import type { TransportFactory } from "../transport/index.ts";
|
|
1
4
|
import { Agent } from "./agent.ts";
|
|
2
|
-
import type { EventSink } from "./events.ts";
|
|
3
|
-
import type { RunContext } from "./run-context.ts";
|
|
4
|
-
import type { TransportFactory } from "./transport.ts";
|
|
5
5
|
/** Dependencies for one Run's Agent-spawn gate. */
|
|
6
6
|
export interface SpawnDependencies {
|
|
7
7
|
readonly factory: TransportFactory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AgentActivity } from "
|
|
2
|
-
import type { Frame } from "
|
|
1
|
+
import type { AgentActivity } from "../events.ts";
|
|
2
|
+
import type { Frame } from "../transport/index.ts";
|
|
3
3
|
/** Reports complete Ask activity transitions derived from already-observed frames. */
|
|
4
4
|
export declare class AskActivityTracker {
|
|
5
5
|
#private;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AgentActivity, AskOutputChannel, EventSink } from "
|
|
2
|
-
import type { NodeSnapshot } from "
|
|
1
|
+
import type { AgentActivity, AskOutputChannel, EventSink } from "../events.ts";
|
|
2
|
+
import type { NodeSnapshot } from "../node/index.ts";
|
|
3
3
|
import type { SettlementCause } from "./stall-watchdog.ts";
|
|
4
4
|
/** What one finished Ask reports in its `ask_end` Lifecycle Event. */
|
|
5
5
|
export interface AskEndOutcome {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type { ReportResultTool } from "../ask-contract/index.ts";
|
|
2
|
+
import type { EventSink } from "../events.ts";
|
|
3
|
+
import type { AgentTransport, Connection, Frame } from "../transport/index.ts";
|
|
4
|
+
import type { ResolvedSpawnOptions } from "../types.ts";
|
|
1
5
|
import type { EffectiveAskOptions } from "./ask-hash.ts";
|
|
2
|
-
import type { Connection } from "./connection.ts";
|
|
3
|
-
import type { EventSink } from "./events.ts";
|
|
4
|
-
import type { ReportResultTool } from "./report-result.ts";
|
|
5
|
-
import type { AgentTransport, Frame } from "./transport.ts";
|
|
6
|
-
import type { ResolvedSpawnOptions } from "./types.ts";
|
|
7
6
|
/** A frame consumer whose lifetime exceeds one Ask; the Agent's AgentUsage satisfies it. */
|
|
8
7
|
export interface FrameObserver {
|
|
9
8
|
observe(frame: Frame): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { TSchema } from "typebox";
|
|
2
|
-
import {
|
|
3
|
-
import type
|
|
4
|
-
import type { AskMarkerContext } from "
|
|
5
|
-
import type { AskOptions, ResolvedSpawnOptions, StructuredAskOptions } from "
|
|
2
|
+
import type { AskOutputExtractionPolicy } from "../ask-contract/index.ts";
|
|
3
|
+
import { type AskOutputContract } from "../ask-contract/index.ts";
|
|
4
|
+
import type { AskMarkerContext } from "../transport/index.ts";
|
|
5
|
+
import type { AskOptions, ResolvedSpawnOptions, StructuredAskOptions } from "../types.ts";
|
|
6
6
|
/** The combined option shape used internally after Definition defaults merge. */
|
|
7
7
|
export type EffectiveAskOptions = AskOptions | StructuredAskOptions<TSchema>;
|
|
8
8
|
/** Inputs that identify an Ask in a Cassette. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AskOutputChannel } from "
|
|
2
|
-
import type { Frame } from "
|
|
1
|
+
import type { AskOutputChannel } from "../events.ts";
|
|
2
|
+
import type { Frame } from "../transport/index.ts";
|
|
3
3
|
/** The timer boundary used to test output batching without changing its wire rate. */
|
|
4
4
|
export interface AskOutputTailScheduler<Handle = unknown> {
|
|
5
5
|
schedule(callback: () => void): Handle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AskStalledOutcome } from "
|
|
2
|
-
import type { Frame } from "
|
|
1
|
+
import type { AskStalledOutcome } from "../errors.ts";
|
|
2
|
+
import type { Frame } from "../transport/index.ts";
|
|
3
3
|
/** Fixed time allowed for `agent_settled` to arrive after the idle abort. */
|
|
4
4
|
export declare const IDLE_ABORT_SETTLE_MS = 5000;
|
|
5
5
|
export interface IdleWatchOptions {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `ask/` module: the live Ask exchange.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { exchangeAsk } from "./ask-exchange.ts";
|
|
6
|
+
export { askHash, askMarkerContext, type EffectiveAskOptions } from "./ask-hash.ts";
|
|
7
|
+
export type { SettlementCause } from "./stall-watchdog.ts";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { Frame } from "./transport.ts";
|
|
1
|
+
import type { AskStalledOutcome } from "../errors.ts";
|
|
2
|
+
import type { CommandResponse, Frame } from "../transport/index.ts";
|
|
4
3
|
/** Silence allowed on a live Ask before the Stall Watchdog probes the Agent. */
|
|
5
4
|
export declare const DEFAULT_STALL_MS = 600000;
|
|
6
5
|
/** Time allowed for the `get_state` probe to answer before yaag kills the Agent. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AskLimitOutcome } from "
|
|
2
|
-
import type { Frame } from "
|
|
3
|
-
import type { AskOptions } from "
|
|
1
|
+
import type { AskLimitOutcome } from "../errors.ts";
|
|
2
|
+
import type { Frame } from "../transport/index.ts";
|
|
3
|
+
import type { AskOptions } from "../types.ts";
|
|
4
4
|
/** The message sent when an Ask uses its allotted soft budget. */
|
|
5
5
|
export declare const DEFAULT_WRAP_UP_PROMPT = "Please wrap up now and provide your final answer.";
|
|
6
6
|
/** Fixed time allowed to conclude after a duration limit trips. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TSchema } from "typebox";
|
|
2
|
-
import type { AskInvalidOutputOutcome } from "
|
|
3
|
-
import { YaagError } from "
|
|
4
|
-
import type { AskInvalidOutputPlayback } from "
|
|
2
|
+
import type { AskInvalidOutputOutcome } from "../errors.ts";
|
|
3
|
+
import { YaagError } from "../errors.ts";
|
|
4
|
+
import type { AskInvalidOutputPlayback } from "../transport/index.ts";
|
|
5
5
|
/** Versioned extraction behavior, and part of Ask identity in a Cassette. */
|
|
6
6
|
export declare const ASK_OUTPUT_EXTRACTION_POLICY = "report-result-tool/v1";
|
|
7
7
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `ask-contract/` module: what an Ask declares and how it settles.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { type AskOutputContract, type CanonicalJsonObject, createAskOutputContract, validateCanonicalOutputSchema, validateExtractionPolicy, } from "./ask-contract-identity.ts";
|
|
6
|
+
export { AskLimit, DEFAULT_WRAP_UP_PROMPT } from "./ask-limit.ts";
|
|
7
|
+
export { type AskOutputExtractionPolicy, DEFAULT_MAX_STEERS, formatAskOutputCorrection, invalidAskOutputError, LEGACY_ASK_OUTPUT_EXTRACTION_POLICY, resolvePlaybackAskOutput, validateAskOutput, } from "./ask-output.ts";
|
|
8
|
+
export { isReportResultCommandFrame, REPORT_RESULT_EXTENSION_PATH, REPORT_RESULT_TOOL_NAME, type ReportedResult, ReportResultCall, ReportResultTool, reportResultCommandMessage, } from "./report-result.ts";
|
|
9
|
+
export { REPORT_RESULT_CORRECTION, REPORT_RESULT_WRAP_UP, resolvePlaybackReportedResult, } from "./report-result-output.ts";
|
|
10
|
+
export { ReportResultSteering } from "./report-result-steering.ts";
|
package/assets/types/runtime/{report-result-output.d.ts → ask-contract/report-result-output.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TSchema } from "typebox";
|
|
2
|
+
import type { AskInvalidOutputPlayback } from "../transport/index.ts";
|
|
2
3
|
import type { AskOutputResult } from "./ask-output.ts";
|
|
3
4
|
import type { ReportedResult } from "./report-result.ts";
|
|
4
|
-
import type { AskInvalidOutputPlayback } from "./transport.ts";
|
|
5
5
|
/** The one correction an Agent gets when it settles without reporting a result. */
|
|
6
6
|
export declare const REPORT_RESULT_CORRECTION: string;
|
|
7
7
|
/** Appended to a limit wrap-up so the Agent still ends on a reported result. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Frame } from "../transport/index.ts";
|
|
1
2
|
import type { CanonicalJsonObject } from "./ask-contract-identity.ts";
|
|
2
|
-
import type { Frame } from "./transport.ts";
|
|
3
3
|
/** The internal tool a schema-bearing Ask settles from (ADR-0032). */
|
|
4
4
|
export declare const REPORT_RESULT_TOOL_NAME = "report_result";
|
|
5
5
|
/** The pi extension command that carries one Ask's output schema to the Agent. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { AgentStats, AskMarker, AskPlayback, Frame } from "../transport/index.ts";
|
|
1
2
|
import type { CassetteAgent } from "./cassette.ts";
|
|
2
|
-
import type { AgentStats, AskMarker, AskPlayback, Frame } from "./transport.ts";
|
|
3
3
|
/**
|
|
4
4
|
* Replays one Cassette Agent's frame streams at the transport seam.
|
|
5
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Static, Type } from "typebox";
|
|
2
|
-
import type { CanonicalJsonObject } from "
|
|
2
|
+
import type { CanonicalJsonObject } from "../ask-contract/index.ts";
|
|
3
|
+
import type { Frame } from "../transport/index.ts";
|
|
3
4
|
import type { CassetteArtifact } from "./cassette.ts";
|
|
4
|
-
import type { Frame } from "./transport.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Structure gate for one Cassette artifact read from disk. `run` stays optional
|
|
7
7
|
* here because version 1 predates it; the loader's presence invariant rejects a
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { CanonicalJsonObject } from "
|
|
2
|
-
import type { AskLimitOutcome, AskStalledOutcome } from "
|
|
3
|
-
import type { RunOutcome } from "
|
|
4
|
-
import type { AgentStats, AskCompletion, AskInvalidOutputPlayback, AskMarker, AskMarkerContext, Frame, OpenOptions, WorktreeResolution } from "
|
|
5
|
-
import type { ThinkingLevel } from "
|
|
1
|
+
import type { CanonicalJsonObject } from "../ask-contract/index.ts";
|
|
2
|
+
import type { AskLimitOutcome, AskStalledOutcome } from "../errors.ts";
|
|
3
|
+
import type { RunOutcome } from "../events.ts";
|
|
4
|
+
import type { AgentStats, AskCompletion, AskInvalidOutputPlayback, AskMarker, AskMarkerContext, Frame, OpenOptions, WorktreeResolution } from "../transport/index.ts";
|
|
5
|
+
import type { ThinkingLevel } from "../types.ts";
|
|
6
6
|
/** The Cassette format this runtime writes; the loader also reads version 1. */
|
|
7
7
|
export declare const CASSETTE_VERSION: 2;
|
|
8
8
|
/** Run-level settlement record; the ADR-0021 v2 block. */
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
/** A temp file left by an interrupted publication is stale after one day (ADR-0021). */
|
|
2
2
|
export declare const CHECKPOINT_TEMP_MAX_AGE_MS: number;
|
|
3
|
+
/**
|
|
4
|
+
* The part of the environment this module reads. It is structural on purpose:
|
|
5
|
+
* the vendored declaration tree compiles with no ambient Node globals.
|
|
6
|
+
*/
|
|
7
|
+
export interface CheckpointEnvironment {
|
|
8
|
+
readonly [name: string]: string | undefined;
|
|
9
|
+
}
|
|
3
10
|
/**
|
|
4
11
|
* Resolves where a stopped Run publishes its checkpoint when `--record` set no
|
|
5
12
|
* path: `YAAG_CHECKPOINT_DIR`, then an absolute `XDG_STATE_HOME`, then
|
|
6
13
|
* `$HOME/.local/state`. A relative `XDG_STATE_HOME` is ignored (XDG spec).
|
|
7
14
|
*/
|
|
8
|
-
export declare function resolveCheckpointDirectory(env?:
|
|
15
|
+
export declare function resolveCheckpointDirectory(env?: CheckpointEnvironment): string;
|
|
9
16
|
/**
|
|
10
17
|
* Names one checkpoint file. There is no Run id below the transport seam yet, so
|
|
11
18
|
* the name is a millisecond timestamp, the process id, and a full random UUID.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `cassette/` module: record, replay, checkpoint, and resume.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { CASSETTE_VERSION, type Cassette, type CassetteAgent, type CassetteArtifact, type CassetteAsk, CassetteCollector, type CassetteGit, type CassetteRun, type CassetteSink, type CassetteSpawn, } from "./cassette.ts";
|
|
6
|
+
export { assertReplayable, interruptedResumeWarning, loadCassette } from "./cassette-loader.ts";
|
|
7
|
+
export { publishCassette } from "./cassette-publish.ts";
|
|
8
|
+
export { checkpointFileName, cleanStaleCheckpointTemp, resolveCheckpointDirectory, } from "./checkpoint-dir.ts";
|
|
9
|
+
export { createCheckpointFlusher, flushingSink } from "./checkpoint-flush.ts";
|
|
10
|
+
export { recordingTransport } from "./recording-transport.ts";
|
|
11
|
+
export { replayMismatch } from "./replay-divergence.ts";
|
|
12
|
+
export { replayTransport } from "./replay-transport.ts";
|
|
13
|
+
export { programIdentityWarning } from "./resume-identity.ts";
|
|
14
|
+
export { resumeTransport } from "./resume-transport.ts";
|
|
15
|
+
export { type ProgramIdentity, publishRunCheckpoint, type RunCheckpointResult, resolveRunIdentity, writeRecordingDiagnostic, } from "./run-checkpoint.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { AskMarker, OpenOptions } from "../transport/index.ts";
|
|
1
2
|
import type { CassetteAgent } from "./cassette.ts";
|
|
2
|
-
import type { AskMarker, OpenOptions } from "./transport.ts";
|
|
3
3
|
/** A pure description of the first strict replay identity mismatch. */
|
|
4
4
|
export interface ReplayMismatch {
|
|
5
5
|
readonly kind: "unexpected-spawn" | "spawn-options" | "changed-ask" | "extra-ask";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { RunOutcome } from "../events.ts";
|
|
1
2
|
import type { CassetteCollector, CassetteRun } from "./cassette.ts";
|
|
2
|
-
import type { RunOutcome } from "./events.ts";
|
|
3
3
|
/** What a resume is about to re-execute; resolved once, at Run start. */
|
|
4
4
|
export type RunIdentity = Omit<CassetteRun, "outcome">;
|
|
5
5
|
/**
|
|
@@ -5,8 +5,8 @@ export interface AskLimitOutcome {
|
|
|
5
5
|
readonly kind: AskLimitKind;
|
|
6
6
|
readonly count: number;
|
|
7
7
|
}
|
|
8
|
-
import type { AgentProgress } from "./
|
|
9
|
-
export type { AgentProgress } from "./
|
|
8
|
+
import type { AgentProgress } from "./transport/index.ts";
|
|
9
|
+
export type { AgentProgress } from "./transport/index.ts";
|
|
10
10
|
/** The recorded result when yaag rejects an Ask because no frame arrived within `idleMs`. */
|
|
11
11
|
export interface AskStalledOutcome {
|
|
12
12
|
/** The configured silence threshold that tripped. */
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* activity, output, and usage observations. v0 renders them as stderr lines; the
|
|
7
7
|
* dedicated fd arrives with the extension.
|
|
8
8
|
*/
|
|
9
|
-
import type { SettlementCause } from "./
|
|
10
|
-
import type { TokenBreakdown, WorktreeResolution } from "./transport.ts";
|
|
11
|
-
export type { SettlementCause } from "./
|
|
9
|
+
import type { SettlementCause } from "./ask/index.ts";
|
|
10
|
+
import type { TokenBreakdown, WorktreeResolution } from "./transport/index.ts";
|
|
11
|
+
export type { SettlementCause } from "./ask/index.ts";
|
|
12
12
|
/**
|
|
13
13
|
* A Run's outcome (ADR-0022). `paused` arrives with the pause slice.
|
|
14
14
|
* `interrupted` is not terminal: only an in-flight Checkpoint carries it, and a
|
|
@@ -1,35 +1,19 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export
|
|
5
|
-
export { agentDefinitionConfig, defineAgent, isAgentDefinition } from "./define-agent.ts";
|
|
6
|
-
export type { OrchestrationProgram, ProgramDefinition } from "./define-run.ts";
|
|
7
|
-
export { defineRun, isOrchestrationProgram, programDefinition } from "./define-run.ts";
|
|
1
|
+
export type { AgentConfig, AgentDefinition } from "./agent/index.ts";
|
|
2
|
+
export { agentDefinitionConfig, defineAgent, isAgentDefinition } from "./agent/index.ts";
|
|
3
|
+
export type { Cassette, CassetteAgent, CassetteArtifact, CassetteAsk, CassetteGit, CassetteRun, CassetteSink, CassetteSpawn, } from "./cassette/index.ts";
|
|
4
|
+
export { assertReplayable, CASSETTE_VERSION, loadCassette, recordingTransport, replayTransport, resumeTransport, } from "./cassette/index.ts";
|
|
8
5
|
export type { AskInvalidOutputOutcome, AskLimitKind, AskLimitOutcome, AskStalledOutcome, YaagErrorCode, } from "./errors.ts";
|
|
9
6
|
export { isYaagError, YaagError } from "./errors.ts";
|
|
10
7
|
export type { AgentActivity, AskOutputChannel, EventSink, LifecycleEvent, LifecycleEventBody, NodeState, NodeUsage, StampedEventSink, } from "./events.ts";
|
|
11
|
-
export type { ModelError, ModelErrorReason, ModelResolver, ModelSelection, ModelSpec, ThinkingResolver, ThinkingSpec, } from "./model
|
|
12
|
-
export type { DecodedNode, NodeDecoder } from "./node
|
|
13
|
-
export { DEFAULT_NODE_DECODERS } from "./node
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
16
|
-
export
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export
|
|
21
|
-
export { reap } from "./reap.ts";
|
|
22
|
-
export { recordingTransport } from "./recording-transport.ts";
|
|
23
|
-
export { replayTransport } from "./replay-transport.ts";
|
|
24
|
-
export { resumeTransport } from "./resume-transport.ts";
|
|
25
|
-
export type { RunOptions } from "./run.ts";
|
|
26
|
-
export { executeRun } from "./run.ts";
|
|
27
|
-
export type { RunContext } from "./run-context.ts";
|
|
28
|
-
export type { DiscoveredSkill, SkillProbeFactory } from "./skill-probe.ts";
|
|
29
|
-
export type { AgentInfo, AgentState, AskingAgentInfo, EndedRunSummary, ExitedAgentInfo, IdleAgentInfo, NodeInfo, RunningRunSummary, RunOutcome, RunState, RunSummary, } from "./summary.ts";
|
|
30
|
-
export { applyEvent, initialSummary } from "./summary.ts";
|
|
31
|
-
export { readSystemPromptSidecar } from "./system-prompt-recorder.ts";
|
|
32
|
-
export type { AgentStats, AgentTransport, AskMarker, AskMarkerContext, AskPlayback, Frame, TokenBreakdown, TransportFactory, TransportStartup, TransportStartupObserver, WorktreeResolution, } from "./transport.ts";
|
|
8
|
+
export type { ModelError, ModelErrorReason, ModelResolver, ModelSelection, ModelSpec, ThinkingResolver, ThinkingSpec, } from "./model/index.ts";
|
|
9
|
+
export type { DecodedNode, NodeDecoder, NodePath, NodeSnapshot } from "./node/index.ts";
|
|
10
|
+
export { agentAskPath, childPath, DEFAULT_NODE_DECODERS, NodeTracker, sanitizeNodeName, } from "./node/index.ts";
|
|
11
|
+
export { prompt, promptGist } from "./prompt/index.ts";
|
|
12
|
+
export type { OrchestrationProgram, ProgramDefinition, RunContext, RunOptions, } from "./run/index.ts";
|
|
13
|
+
export { defineRun, executeRun, isOrchestrationProgram, programDefinition } from "./run/index.ts";
|
|
14
|
+
export type { AgentInfo, AgentState, AskingAgentInfo, EndedRunSummary, ExitedAgentInfo, IdleAgentInfo, NodeInfo, RunningRunSummary, RunOutcome, RunState, RunSummary, } from "./summary/index.ts";
|
|
15
|
+
export { applyEvent, initialSummary } from "./summary/index.ts";
|
|
16
|
+
export type { AgentStats, AgentTransport, AskMarker, AskMarkerContext, AskPlayback, DiscoveredSkill, Frame, ReapPath, ReapTarget, SkillProbeFactory, TokenBreakdown, TransportFactory, TransportStartup, TransportStartupObserver, WorktreeResolution, } from "./transport/index.ts";
|
|
17
|
+
export { readSystemPromptSidecar, reap, worktreeTransport } from "./transport/index.ts";
|
|
33
18
|
export type { AskOptions, Handle, ResolvedSpawnOptions, SpawnOptions, SpawnOverrides, StructuredAskOptions, ThinkingLevel, } from "./types.ts";
|
|
34
19
|
export { AGENT_NODE_TABLE_MAX, ASK_OUTPUT_FLUSH_INTERVAL_MS, ASK_OUTPUT_MAX_BYTES, ASK_OUTPUT_TRUNCATION_MARKER, NODE_GIST_MAX_CHARS, PROMPT_GIST_MAX_CHARS, TOOL_ARGS_GIST_MAX_CHARS, } from "./wire-constants.ts";
|
|
35
|
-
export { worktreeTransport } from "./worktree-transport.ts";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `model/` module: model resolution.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { type ModelError, type ModelErrorReason, type ModelResolver, type ModelSelection, type ModelSpec, normalizeModelResolution, type ThinkingResolver, type ThinkingSpec, } from "./model-resolution.ts";
|
|
6
|
+
export type { ThinkingLevel } from "./thinking-level.ts";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `node/` module: Node decode and tracking.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export type { DecodedNode, NodeDecoder } from "./node-decoder.ts";
|
|
6
|
+
export { DEFAULT_NODE_DECODERS } from "./node-decoders.ts";
|
|
7
|
+
export { agentAskPath, childPath, type NodePath, sanitizeNodeName } from "./node-path.ts";
|
|
8
|
+
export { type NodeSnapshot, NodeTracker } from "./node-tracker.ts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NodeState, NodeUsage } from "
|
|
1
|
+
import type { NodeState, NodeUsage } from "../events.ts";
|
|
2
2
|
/** One decoded Nested Node, relative to the tool call that produced it. */
|
|
3
3
|
export interface DecodedNode {
|
|
4
4
|
/** Names from the tool call downwards, e.g. `["test-writer", "1", "fixture-gen"]`. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { NodeState, NodeUsage } from "
|
|
1
|
+
import type { NodeState, NodeUsage } from "../events.ts";
|
|
2
|
+
import type { Frame } from "../transport/index.ts";
|
|
2
3
|
import type { NodeDecoder } from "./node-decoder.ts";
|
|
3
|
-
import type { Frame } from "./transport.ts";
|
|
4
4
|
/** One Nested Node observation, relative to the tool call that produced it. */
|
|
5
5
|
export interface NodeSnapshot {
|
|
6
6
|
readonly segments: readonly string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `run/` module: the Run lifecycle.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { defineRun, isOrchestrationProgram, type OrchestrationProgram, type ProgramDefinition, programDefinition, } from "./define-run.ts";
|
|
6
|
+
export { executeRun, type RunOptions } from "./run.ts";
|
|
7
|
+
export type { RunContext } from "./run-context.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AgentDefinition } from "
|
|
2
|
-
import type { Handle, SpawnOptions, SpawnOverrides } from "
|
|
1
|
+
import type { AgentDefinition } from "../agent/index.ts";
|
|
2
|
+
import type { Handle, SpawnOptions, SpawnOverrides } from "../types.ts";
|
|
3
3
|
/** What an Orchestration Program is handed. */
|
|
4
4
|
export interface RunContext<Args = unknown> {
|
|
5
5
|
/** Program arguments, validated when the program declares a schema (ADR-0010). */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type Cassette, type CassetteSink } from "
|
|
1
|
+
import { type Cassette, type CassetteSink } from "../cassette/index.ts";
|
|
2
|
+
import type { StampedEventSink } from "../events.ts";
|
|
3
|
+
import type { TransportFactory } from "../transport/index.ts";
|
|
4
|
+
import { type SkillProbeFactory } from "../transport/index.ts";
|
|
2
5
|
import { type OrchestrationProgram } from "./define-run.ts";
|
|
3
|
-
import type { StampedEventSink } from "./events.ts";
|
|
4
|
-
import { type SkillProbeFactory } from "./skill-probe.ts";
|
|
5
|
-
import type { TransportFactory } from "./transport.ts";
|
|
6
6
|
export interface RunOptions {
|
|
7
7
|
/** Where Agents come from. Defaults to real `pi --mode rpc` processes. */
|
|
8
8
|
readonly transport?: TransportFactory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `summary/` module: the Summary.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { applyEvent, type EndedRunSummary, initialSummary, type RunningRunSummary, type RunOutcome, type RunState, type RunSummary, } from "./summary.ts";
|
|
6
|
+
export type { AgentInfo, AgentState, AskingAgentInfo, ExitedAgentInfo, IdleAgentInfo, NodeInfo, } from "./summary-agent.ts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AgentActivity } from "
|
|
1
|
+
import type { AgentActivity } from "../events.ts";
|
|
2
|
+
import type { TokenBreakdown, WorktreeResolution } from "../transport/index.ts";
|
|
2
3
|
import type { NodeInfo } from "./summary-nodes.ts";
|
|
3
|
-
|
|
4
|
-
export type { AgentActivity } from "./events.ts";
|
|
4
|
+
export type { AgentActivity } from "../events.ts";
|
|
5
5
|
export type { NodeInfo } from "./summary-nodes.ts";
|
|
6
6
|
/** The observer-facing lifecycle state of an Agent. */
|
|
7
7
|
export type AgentState = "idle" | "asking" | "exited";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { LifecycleEventBody, NodeState } from "
|
|
1
|
+
import type { LifecycleEventBody, NodeState } from "../events.ts";
|
|
2
|
+
import type { TokenBreakdown } from "../transport/index.ts";
|
|
2
3
|
import type { AgentRecord } from "./summary-agent.ts";
|
|
3
|
-
import type { TokenBreakdown } from "./transport.ts";
|
|
4
4
|
/** One Nested Node's folded row in an Agent's bounded node table. */
|
|
5
5
|
export interface NodeInfo {
|
|
6
6
|
readonly path: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { LifecycleEvent, LifecycleEventBody, RunOutcome } from "
|
|
1
|
+
import type { LifecycleEvent, LifecycleEventBody, RunOutcome } from "../events.ts";
|
|
2
|
+
import type { TokenBreakdown } from "../transport/index.ts";
|
|
2
3
|
import type { AgentInfo } from "./summary-agent.ts";
|
|
3
|
-
|
|
4
|
-
export type { NodeState, NodeUsage, RunOutcome } from "./events.ts";
|
|
4
|
+
export type { NodeState, NodeUsage, RunOutcome } from "../events.ts";
|
|
5
5
|
export type { AgentActivity, AgentInfo, AgentState, AskingAgentInfo, ExitedAgentInfo, IdleAgentInfo, NodeInfo, } from "./summary-agent.ts";
|
|
6
6
|
/** The observer-facing lifecycle state of a Run. */
|
|
7
7
|
export type RunState = "running" | "ended";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `transport/` module: the pi process seam and its probes.
|
|
3
|
+
* Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { type CommandResponse, Connection } from "./connection.ts";
|
|
6
|
+
export { FakeTransport, type FakeTransportOptions, recordedFrames, reportResultFrames, } from "./fake-transport.ts";
|
|
7
|
+
export { FrameGapTracker } from "./frame-gap.ts";
|
|
8
|
+
export { FrameQueue } from "./frame-queue.ts";
|
|
9
|
+
export { decodeFrames } from "./jsonl.ts";
|
|
10
|
+
export { liveTransport } from "./live-transport.ts";
|
|
11
|
+
export { type AgentProgress, piCommand, readAgentProgress } from "./pi-state.ts";
|
|
12
|
+
export { type ReapPath, type ReapTarget, reap } from "./reap.ts";
|
|
13
|
+
export { type DiscoveredSkill, liveSkillProbe, type SkillProbeFactory } from "./skill-probe.ts";
|
|
14
|
+
export { skillRestrictionTransport } from "./skill-restriction-transport.ts";
|
|
15
|
+
export { readSystemPromptSidecar } from "./system-prompt-recorder.ts";
|
|
16
|
+
export { SYSTEM_PROMPT_SIDECAR_SUFFIX, systemPromptSidecarPath, } from "./system-prompt-recorder-extension.ts";
|
|
17
|
+
export type { AgentStats, AgentTransport, AskCompletion, AskInvalidOutputPlayback, AskMarker, AskMarkerContext, AskPlayback, Frame, OpenOptions, TokenBreakdown, TransportFactory, TransportStartup, TransportStartupObserver, WorktreeResolution, } from "./transport.ts";
|
|
18
|
+
export { worktreeTransport } from "./worktree-transport.ts";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { CanonicalJsonObject } from "
|
|
2
|
-
import type { AskLimitOutcome, AskStalledOutcome } from "
|
|
3
|
-
import type {
|
|
4
|
-
import type { AskOptions, ResolvedSpawnOptions, ThinkingLevel } from "./types.ts";
|
|
1
|
+
import type { CanonicalJsonObject, ReportedResult } from "../ask-contract/index.ts";
|
|
2
|
+
import type { AskLimitOutcome, AskStalledOutcome } from "../errors.ts";
|
|
3
|
+
import type { AskOptions, ResolvedSpawnOptions, ThinkingLevel } from "../types.ts";
|
|
5
4
|
/**
|
|
6
5
|
* The one seam of the runtime (ticket 04). An AgentTransport represents a whole
|
|
7
6
|
* Agent and exchanges raw JSONL frames; it is the only place a process is known.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Static, TSchema } from "typebox";
|
|
2
|
-
import type { ModelSpec, ThinkingSpec } from "./model
|
|
3
|
-
|
|
4
|
-
export type { ThinkingLevel } from "./thinking-level.ts";
|
|
2
|
+
import type { ModelSpec, ThinkingLevel, ThinkingSpec } from "./model/index.ts";
|
|
3
|
+
export type { ThinkingLevel } from "./model/index.ts";
|
|
5
4
|
/** Options for spawning one Agent (ADR-0001, ADR-0009, ADR-0026). */
|
|
6
5
|
export interface SpawnOptions {
|
|
7
6
|
/** Working directory. Defaults to the Orchestrator's cwd. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yaag/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@earendil-works/pi-tui": "^0.84.0",
|
|
24
|
-
"@yaag/runtime": "0.
|
|
25
|
-
"@yaag/tui": "0.
|
|
24
|
+
"@yaag/runtime": "0.6.1",
|
|
25
|
+
"@yaag/tui": "0.6.1",
|
|
26
26
|
"typebox": "1.3.7"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/cli.ts
CHANGED
|
@@ -9,16 +9,19 @@ import {
|
|
|
9
9
|
programDefinition,
|
|
10
10
|
type StampedEventSink,
|
|
11
11
|
} from "@yaag/runtime";
|
|
12
|
-
import { interactiveAvailable } from "./alt-screen.ts";
|
|
13
12
|
import { parseArgv } from "./argv.ts";
|
|
14
|
-
import {
|
|
15
|
-
import { writeChannel, writeChannelFd } from "./output-channel.ts";
|
|
16
|
-
import { createPlainPresenter } from "./presenter.ts";
|
|
17
|
-
import { loadProgram } from "./program-loader.ts";
|
|
18
|
-
import { executeOptions, formatResult, type RunFlags } from "./run-invocation.ts";
|
|
19
|
-
import { loadRunProgram } from "./run-program.ts";
|
|
20
|
-
import { registerRuntimeAlias } from "./runtime-alias.ts";
|
|
13
|
+
import { loadProgram, loadRunProgram, registerRuntimeAlias } from "./program/index.ts";
|
|
21
14
|
import { setupWorkspace } from "./setup-workspace.ts";
|
|
15
|
+
import {
|
|
16
|
+
createPlainPresenter,
|
|
17
|
+
executeOptions,
|
|
18
|
+
formatResult,
|
|
19
|
+
interactiveAvailable,
|
|
20
|
+
type RunFlags,
|
|
21
|
+
runInteractive,
|
|
22
|
+
writeChannel,
|
|
23
|
+
writeChannelFd,
|
|
24
|
+
} from "./terminal/index.ts";
|
|
22
25
|
|
|
23
26
|
registerRuntimeAlias();
|
|
24
27
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `program/` module: load and execute an Orchestration
|
|
3
|
+
* Program. Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { loadProgram } from "./program-loader.ts";
|
|
6
|
+
export { loadRunProgram } from "./run-program.ts";
|
|
7
|
+
export { registerRuntimeAlias } from "./runtime-alias.ts";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
import type { OrchestrationProgram } from "@yaag/runtime";
|
|
11
|
-
import type { ProgramSource } from "
|
|
11
|
+
import type { ProgramSource } from "../argv.ts";
|
|
12
12
|
import { readEvalSource } from "./eval-fd.ts";
|
|
13
13
|
import { loadInlineProgram } from "./inline-program.ts";
|
|
14
14
|
import { loadProgram } from "./program-loader.ts";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public surface of the `terminal/` module: terminal presentation and the
|
|
3
|
+
* interactive run. Files inside this directory import each other directly.
|
|
4
|
+
*/
|
|
5
|
+
export { interactiveAvailable } from "./alt-screen.ts";
|
|
6
|
+
export { runInteractive } from "./interactive-run.ts";
|
|
7
|
+
export { writeChannel, writeChannelFd } from "./output-channel.ts";
|
|
8
|
+
export { createPlainPresenter } from "./presenter.ts";
|
|
9
|
+
export { executeOptions, formatResult, type RunFlags } from "./run-invocation.ts";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/assets/types/runtime/{ask-contract-identity.d.ts → ask-contract/ask-contract-identity.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/assets/types/runtime/{resume-preconditions.d.ts → cassette/resume-preconditions.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/assets/types/runtime/{node-decoder-subagent.d.ts → node/node-decoder-subagent.d.ts}
RENAMED
|
File without changes
|
/package/assets/types/runtime/{node-decoder-workflow.d.ts → node/node-decoder-workflow.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/assets/types/runtime/{system-prompt-recorder.d.ts → transport/system-prompt-recorder.d.ts}
RENAMED
|
File without changes
|
/package/assets/types/runtime/{tool-probe-extension.d.ts → transport/tool-probe-extension.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|