@tangle-network/agent-runtime 0.68.0 → 0.70.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/README.md +81 -13
- package/dist/agent.d.ts +4 -5
- package/dist/agent.js +3 -6
- package/dist/agent.js.map +1 -1
- package/dist/chunk-BYZCXQHF.js +474 -0
- package/dist/chunk-BYZCXQHF.js.map +1 -0
- package/dist/{chunk-OYU5LR4T.js → chunk-EDCVUZZC.js} +2 -2
- package/dist/{chunk-QNUEFNU7.js → chunk-L5ZFBVT6.js} +6 -6
- package/dist/chunk-L5ZFBVT6.js.map +1 -0
- package/dist/{chunk-VKUHUFX7.js → chunk-QXWGSDAQ.js} +914 -590
- package/dist/chunk-QXWGSDAQ.js.map +1 -0
- package/dist/{chunk-LTEF2LYD.js → chunk-ZNQVMMR5.js} +3 -3
- package/dist/{coordination-Curpzeyc.d.ts → coordination-C7WxwHXq.d.ts} +8 -1
- package/dist/{delegates-CLFNAKyi.d.ts → delegates-DqAgo32T.d.ts} +105 -10
- package/dist/{improvement-adapter-BC4HhuAR.d.ts → improvement-adapter-BVuMragr.d.ts} +1 -1
- package/dist/index.d.ts +439 -100
- package/dist/index.js +583 -125
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +2 -3
- package/dist/{loop-runner-bin-B6dzNZC8.d.ts → loop-runner-bin-B0NeLTRd.d.ts} +4 -4
- package/dist/loop-runner-bin.d.ts +7 -10
- package/dist/loop-runner-bin.js +4 -7
- package/dist/loops.d.ts +3149 -16
- package/dist/loops.js +34 -63
- package/dist/mcp/bin.js +14 -16
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +8 -12
- package/dist/mcp/index.js +16 -19
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-CA2N3-Ak.d.ts → openai-tools-DPx9Gzvn.d.ts} +1 -1
- package/dist/profiles.d.ts +94 -6
- package/dist/profiles.js +320 -9
- package/dist/profiles.js.map +1 -1
- package/dist/{router-client-30Y_pca8.d.ts → router-client-C7kp_ECN.d.ts} +37 -1
- package/dist/{substrate-CUgk7F7s.d.ts → substrate-BoRXgvka.d.ts} +52 -1
- package/dist/{types-Crxftafi.d.ts → types-BYa2ZOAx.d.ts} +83 -2
- package/dist/{types-p8dWBIXL.d.ts → types-DJu6TBGp.d.ts} +2 -16
- package/dist/{worktree-fanout-DUiKPApb.d.ts → worktree-fanout-gNfl0Byj.d.ts} +9 -37
- package/package.json +9 -39
- package/dist/analyst-loop.d.ts +0 -52
- package/dist/analyst-loop.js +0 -11
- package/dist/analyst-loop.js.map +0 -1
- package/dist/audit.d.ts +0 -93
- package/dist/audit.js +0 -312
- package/dist/audit.js.map +0 -1
- package/dist/chunk-4B6U4CVQ.js +0 -15
- package/dist/chunk-4B6U4CVQ.js.map +0 -1
- package/dist/chunk-FCIPUALH.js +0 -214
- package/dist/chunk-FCIPUALH.js.map +0 -1
- package/dist/chunk-O2UPHN7X.js +0 -114
- package/dist/chunk-O2UPHN7X.js.map +0 -1
- package/dist/chunk-P5OKDSLB.js +0 -580
- package/dist/chunk-P5OKDSLB.js.map +0 -1
- package/dist/chunk-QNUEFNU7.js.map +0 -1
- package/dist/chunk-VKUHUFX7.js.map +0 -1
- package/dist/chunk-VLF5RHEQ.js +0 -143
- package/dist/chunk-VLF5RHEQ.js.map +0 -1
- package/dist/coder-2leJPOvC.d.ts +0 -52
- package/dist/improvement.d.ts +0 -208
- package/dist/improvement.js +0 -343
- package/dist/improvement.js.map +0 -1
- package/dist/local-harness-BE_h8szs.d.ts +0 -93
- package/dist/platform.d.ts +0 -255
- package/dist/platform.js +0 -229
- package/dist/platform.js.map +0 -1
- package/dist/run-loop-D3PwlG7J.d.ts +0 -112
- package/dist/runtime-hooks-C7JwKb9E.d.ts +0 -70
- package/dist/runtime.d.ts +0 -3108
- package/dist/runtime.js +0 -263
- package/dist/runtime.js.map +0 -1
- package/dist/topology.d.ts +0 -126
- package/dist/topology.js +0 -333
- package/dist/topology.js.map +0 -1
- package/dist/workflow.d.ts +0 -551
- package/dist/workflow.js +0 -1781
- package/dist/workflow.js.map +0 -1
- /package/dist/{chunk-OYU5LR4T.js.map → chunk-EDCVUZZC.js.map} +0 -0
- /package/dist/{chunk-LTEF2LYD.js.map → chunk-ZNQVMMR5.js.map} +0 -0
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @experimental
|
|
3
|
-
*
|
|
4
|
-
* Runtime hook contracts. Hooks are execution-scoped observers, not part of an
|
|
5
|
-
* `AgentProfile`: profiles stay portable agent recipes; hooks attach to the
|
|
6
|
-
* loop or product harness that is running the profile.
|
|
7
|
-
*/
|
|
8
|
-
type RuntimeHookPhase = 'before' | 'after' | 'error' | 'event';
|
|
9
|
-
type RuntimeHookTarget = 'agent.run' | 'agent.turn' | 'agent.tool_call' | 'agent.spawn' | 'agent.child' | 'agent.plan' | 'agent.decision' | (string & {});
|
|
10
|
-
type RuntimeDecisionKind = 'continue' | 'verify' | 'ask' | 'retry' | 'stop' | 'memory-write' | 'memory-read' | 'tool-select' | 'skill-select' | 'workflow-select' | 'surface-promote' | (string & {});
|
|
11
|
-
interface RuntimeHookEvent<Payload = unknown> {
|
|
12
|
-
id: string;
|
|
13
|
-
runId: string;
|
|
14
|
-
scenarioId?: string;
|
|
15
|
-
target: RuntimeHookTarget;
|
|
16
|
-
phase: RuntimeHookPhase;
|
|
17
|
-
timestamp: number;
|
|
18
|
-
stepIndex?: number;
|
|
19
|
-
parentId?: string;
|
|
20
|
-
payload?: Payload;
|
|
21
|
-
metadata?: Record<string, unknown>;
|
|
22
|
-
}
|
|
23
|
-
interface RuntimeHookContext {
|
|
24
|
-
signal?: AbortSignal;
|
|
25
|
-
}
|
|
26
|
-
interface RuntimeDecisionEvidenceRef {
|
|
27
|
-
source: string;
|
|
28
|
-
id: string;
|
|
29
|
-
detail?: string;
|
|
30
|
-
metadata?: Record<string, unknown>;
|
|
31
|
-
}
|
|
32
|
-
interface RuntimeDecisionPoint {
|
|
33
|
-
id: string;
|
|
34
|
-
runId: string;
|
|
35
|
-
scenarioId?: string;
|
|
36
|
-
stepIndex: number;
|
|
37
|
-
kind: RuntimeDecisionKind;
|
|
38
|
-
candidateActions: string[];
|
|
39
|
-
context?: string;
|
|
40
|
-
evidence: RuntimeDecisionEvidenceRef[];
|
|
41
|
-
metadata?: Record<string, unknown>;
|
|
42
|
-
}
|
|
43
|
-
interface RuntimeHookErrorContext {
|
|
44
|
-
hook: 'onEvent' | 'onDecisionPoint';
|
|
45
|
-
eventId?: string;
|
|
46
|
-
target?: RuntimeHookTarget;
|
|
47
|
-
phase?: RuntimeHookPhase;
|
|
48
|
-
decisionId?: string;
|
|
49
|
-
decisionKind?: RuntimeDecisionKind;
|
|
50
|
-
}
|
|
51
|
-
interface RuntimeHooks {
|
|
52
|
-
/**
|
|
53
|
-
* General before/after/event hook. Use this for telemetry, memory capture,
|
|
54
|
-
* policy wrapping, child lifecycle observers, or product-specific extension
|
|
55
|
-
* points.
|
|
56
|
-
*/
|
|
57
|
-
onEvent?: (event: RuntimeHookEvent, context: RuntimeHookContext) => void | Promise<void>;
|
|
58
|
-
/**
|
|
59
|
-
* Semantic decision hook. Belief-state evaluation consumes this, but runtime
|
|
60
|
-
* code should keep emitting ordinary lifecycle events as the base layer.
|
|
61
|
-
*/
|
|
62
|
-
onDecisionPoint?: (point: RuntimeDecisionPoint, context: RuntimeHookContext) => void | Promise<void>;
|
|
63
|
-
onHookError?: (error: Error, context: RuntimeHookErrorContext) => void | Promise<void>;
|
|
64
|
-
}
|
|
65
|
-
declare function defineRuntimeHooks(hooks: RuntimeHooks): RuntimeHooks;
|
|
66
|
-
declare function composeRuntimeHooks(...entries: Array<RuntimeHooks | undefined | null | false>): RuntimeHooks;
|
|
67
|
-
declare function notifyRuntimeHookEvent(hooks: RuntimeHooks | undefined, event: RuntimeHookEvent, context?: RuntimeHookContext): void;
|
|
68
|
-
declare function notifyRuntimeDecisionPoint(hooks: RuntimeHooks | undefined, point: RuntimeDecisionPoint, context?: RuntimeHookContext): void;
|
|
69
|
-
|
|
70
|
-
export { type RuntimeHooks as R, type RuntimeHookEvent as a, type RuntimeDecisionEvidenceRef as b, type RuntimeDecisionKind as c, type RuntimeDecisionPoint as d, type RuntimeHookContext as e, type RuntimeHookErrorContext as f, type RuntimeHookPhase as g, type RuntimeHookTarget as h, composeRuntimeHooks as i, defineRuntimeHooks as j, notifyRuntimeHookEvent as k, notifyRuntimeDecisionPoint as n };
|