@arnilo/prism 0.2.3 → 0.2.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/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/dist/agent-session/create-agent.d.ts +6 -0
- package/dist/agent-session/create-agent.js +13 -0
- package/dist/agent-session/event-subscriber.d.ts +17 -0
- package/dist/agent-session/event-subscriber.js +68 -0
- package/dist/agent-session/helpers.d.ts +44 -0
- package/dist/agent-session/helpers.js +194 -0
- package/dist/agent-session/session.d.ts +101 -0
- package/dist/agent-session/session.js +1568 -0
- package/dist/agent-session.d.ts +6 -105
- package/dist/agent-session.js +6 -1833
- package/dist/contracts-core/agent.d.ts +257 -0
- package/dist/contracts-core/agent.js +5 -0
- package/dist/contracts-core/compaction.d.ts +72 -0
- package/dist/contracts-core/compaction.js +2 -0
- package/dist/contracts-core/content.d.ts +116 -0
- package/dist/contracts-core/content.js +2 -0
- package/dist/contracts-core/extensions.d.ts +163 -0
- package/dist/contracts-core/extensions.js +2 -0
- package/dist/contracts-core/loop.d.ts +98 -0
- package/dist/contracts-core/loop.js +2 -0
- package/dist/contracts-core/persistence.d.ts +366 -0
- package/dist/contracts-core/persistence.js +9 -0
- package/dist/contracts-core/provider.d.ts +97 -0
- package/dist/contracts-core/provider.js +2 -0
- package/dist/contracts-core/resources.d.ts +44 -0
- package/dist/contracts-core/resources.js +7 -0
- package/dist/contracts-core/run-limits.d.ts +81 -0
- package/dist/contracts-core/run-limits.js +2 -0
- package/dist/contracts-core/session.d.ts +187 -0
- package/dist/contracts-core/session.js +131 -0
- package/dist/contracts-core.d.ts +13 -1425
- package/dist/contracts-core.js +10 -138
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/0.1.0-readiness.md +15 -13
- package/docs/index.md +2 -2
- package/docs/migration.md +8 -0
- package/docs/release-and-install.md +59 -8
- package/package.json +2 -2
package/dist/agent-session.d.ts
CHANGED
|
@@ -1,105 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
readonly agent: Agent;
|
|
8
|
-
}): AgentSession;
|
|
9
|
-
export declare class RuntimeAgentSession implements AgentSession {
|
|
10
|
-
readonly id: string;
|
|
11
|
-
private readonly agent;
|
|
12
|
-
private readonly metadata?;
|
|
13
|
-
private readonly store;
|
|
14
|
-
private readonly subscribers;
|
|
15
|
-
private currentLeafId?;
|
|
16
|
-
private history;
|
|
17
|
-
private activeRun?;
|
|
18
|
-
private activeRunId?;
|
|
19
|
-
private activeProviderTurnAbort?;
|
|
20
|
-
private pendingSoftInterrupt;
|
|
21
|
-
private pendingSteers;
|
|
22
|
-
private pendingSteerBytes;
|
|
23
|
-
private activeRedactor?;
|
|
24
|
-
private activeProvider?;
|
|
25
|
-
private activeLedger?;
|
|
26
|
-
private activeEffectStore?;
|
|
27
|
-
private activeOwnership?;
|
|
28
|
-
private activeIdentity?;
|
|
29
|
-
private activeIdempotencyKey?;
|
|
30
|
-
private activeGuardrails?;
|
|
31
|
-
private activeMetadata?;
|
|
32
|
-
private activeLimits?;
|
|
33
|
-
private activeLimitOutputBuffer;
|
|
34
|
-
private activeDurable?;
|
|
35
|
-
private activeLoop?;
|
|
36
|
-
/** Gated calls of the current tool round awaiting one collected suspension. */
|
|
37
|
-
private activeGatedRound?;
|
|
38
|
-
private activeLoopTurn;
|
|
39
|
-
private readonly loadedSkills;
|
|
40
|
-
/** Plan 018 Task 6 (closeout `checkpoint-bodies`): persisted exact instructions, registry-independent. */
|
|
41
|
-
private restoredSkillBodies;
|
|
42
|
-
/** Skills of the current run (for the bodies snapshot); replaced at each run start. */
|
|
43
|
-
private activeRunSkills;
|
|
44
|
-
/** Plan 015 Task 4: re-add persisted loaded-skill names (names only; bodies re-resolve on demand). */
|
|
45
|
-
restoreLoadedSkills(names: readonly string[]): void;
|
|
46
|
-
/** Plan 018 Task 6: restore persisted loaded-skill bodies (already validated fail-closed at load). */
|
|
47
|
-
restoreLoadedSkillBodies(bodies: readonly LoadedSkillBodiesEntry[]): void;
|
|
48
|
-
private ledgerChain;
|
|
49
|
-
private ledgerFailure;
|
|
50
|
-
private snapshotGeneration;
|
|
51
|
-
private snapshotCache?;
|
|
52
|
-
constructor(config: AgentSessionConfig & {
|
|
53
|
-
readonly agent: Agent;
|
|
54
|
-
});
|
|
55
|
-
get leafId(): string | undefined;
|
|
56
|
-
subscribe(options?: SubscribeOptions): AsyncIterable<AgentEvent>;
|
|
57
|
-
run(input: AgentInput, options?: RunOptions): Promise<AgentRunResult>;
|
|
58
|
-
steer(input: AgentInput, options?: SteerOptions): void;
|
|
59
|
-
resumeDurable(state: StoredAgentRunState, runState: AgentRunStateOptions, ownership?: OwnershipScope, signal?: AbortSignal, decisions?: ReadonlyMap<string, RunDecision>): Promise<AgentRunResult>;
|
|
60
|
-
recordDurableResumption(runId: string, interruption: import("./contracts.js").AgentRunInterruption, version: number, ownership?: OwnershipScope): Promise<void>;
|
|
61
|
-
recordDurableDenial(runId: string, interruption: import("./contracts.js").AgentRunInterruption, version: number, ownership?: OwnershipScope): Promise<void>;
|
|
62
|
-
private runInternal;
|
|
63
|
-
prompt(input: string, options?: RunOptions): Promise<AgentRunResult>;
|
|
64
|
-
stream(input: AgentInput, options?: RunOptions & SubscribeOptions): AsyncGenerator<AgentEvent>;
|
|
65
|
-
private buildRunResult;
|
|
66
|
-
private suspendDurable;
|
|
67
|
-
/** First attributed sticky whose scope and delegation path exactly match a nested decision. */
|
|
68
|
-
private matchNestedSticky;
|
|
69
|
-
/** First sticky decision whose scope exactly matches this call, if any. */
|
|
70
|
-
private matchStickyDecision;
|
|
71
|
-
/** Redacted pending-decision descriptor for one gated call; never carries raw arguments. */
|
|
72
|
-
private buildPendingDecision;
|
|
73
|
-
private persistDurable;
|
|
74
|
-
compact(options?: CompactionOptions): Promise<CompactionResult>;
|
|
75
|
-
abort(reason?: unknown): void;
|
|
76
|
-
entries(): Promise<readonly SessionEntry[]>;
|
|
77
|
-
checkout(leafId?: string): Promise<void>;
|
|
78
|
-
fork(options?: {
|
|
79
|
-
readonly leafId?: string;
|
|
80
|
-
}): AgentSession;
|
|
81
|
-
clone(options?: {
|
|
82
|
-
readonly id?: string;
|
|
83
|
-
readonly leafId?: string;
|
|
84
|
-
}): Promise<AgentSession>;
|
|
85
|
-
private branchReader;
|
|
86
|
-
private resolveRunProvider;
|
|
87
|
-
private resolveRunSkills;
|
|
88
|
-
private emit;
|
|
89
|
-
private closeSubscribers;
|
|
90
|
-
private drainLedger;
|
|
91
|
-
private generateWithRetry;
|
|
92
|
-
private generateProviderTurn;
|
|
93
|
-
private applyPendingSteers;
|
|
94
|
-
private applyProviderRequestPolicies;
|
|
95
|
-
private appendMessage;
|
|
96
|
-
private autoCompact;
|
|
97
|
-
private compactBranch;
|
|
98
|
-
private appendEntry;
|
|
99
|
-
private invalidateSnapshot;
|
|
100
|
-
private redact;
|
|
101
|
-
private redactProviderRequest;
|
|
102
|
-
private rebuildHistory;
|
|
103
|
-
private snapshot;
|
|
104
|
-
}
|
|
105
|
-
export declare function throwIfAbortedSignal(signal: AbortSignal | undefined): void;
|
|
1
|
+
/** agent-session.ts barrel (0.2.5 plan 025 Task 1 god-module split): re-exports the
|
|
2
|
+
* public surface from cohesive family modules (0.1.4 barrel precedent). */
|
|
3
|
+
export * from "./agent-session/create-agent.js";
|
|
4
|
+
export * from "./agent-session/session.js";
|
|
5
|
+
export * from "./agent-session/event-subscriber.js";
|
|
6
|
+
export * from "./agent-session/helpers.js";
|