hiveagents-runtime 0.0.0-stage → 0.1.0-beta.3
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/LICENSE +202 -0
- package/README.md +89 -2
- package/dist/adapter-kit.d.ts +37 -0
- package/dist/adapter-kit.js +34 -0
- package/dist/adapter-kit.js.map +1 -0
- package/dist/agent-Bj5YPrO7.d.ts +169 -0
- package/dist/agent-D6OXR7UF.js +24 -0
- package/dist/agent-D6OXR7UF.js.map +1 -0
- package/dist/agent-readiness-KSGNKTGK.js +19 -0
- package/dist/agent-readiness-KSGNKTGK.js.map +1 -0
- package/dist/capture-runtime-GP6NZ2ee.d.ts +54 -0
- package/dist/chunk-2RK74GCA.js +2397 -0
- package/dist/chunk-2RK74GCA.js.map +1 -0
- package/dist/chunk-3TIYA3K5.js +55 -0
- package/dist/chunk-3TIYA3K5.js.map +1 -0
- package/dist/chunk-6FIXXWNM.js +1 -0
- package/dist/chunk-6FIXXWNM.js.map +1 -0
- package/dist/chunk-6XIJW65Q.js +52 -0
- package/dist/chunk-6XIJW65Q.js.map +1 -0
- package/dist/chunk-7LDQKJKI.js +248 -0
- package/dist/chunk-7LDQKJKI.js.map +1 -0
- package/dist/chunk-CPN4DOXH.js +115 -0
- package/dist/chunk-CPN4DOXH.js.map +1 -0
- package/dist/chunk-DAXPAV2L.js +810 -0
- package/dist/chunk-DAXPAV2L.js.map +1 -0
- package/dist/chunk-DQEMIGKC.js +291 -0
- package/dist/chunk-DQEMIGKC.js.map +1 -0
- package/dist/chunk-DZFFGUIA.js +81 -0
- package/dist/chunk-DZFFGUIA.js.map +1 -0
- package/dist/chunk-EEUYQFCP.js +106 -0
- package/dist/chunk-EEUYQFCP.js.map +1 -0
- package/dist/chunk-G6JV7WV6.js +521 -0
- package/dist/chunk-G6JV7WV6.js.map +1 -0
- package/dist/chunk-GFVYNPLS.js +118 -0
- package/dist/chunk-GFVYNPLS.js.map +1 -0
- package/dist/chunk-GS5U3KUN.js +201 -0
- package/dist/chunk-GS5U3KUN.js.map +1 -0
- package/dist/chunk-HB7FBSH2.js +960 -0
- package/dist/chunk-HB7FBSH2.js.map +1 -0
- package/dist/chunk-HZFZX5A3.js +21 -0
- package/dist/chunk-HZFZX5A3.js.map +1 -0
- package/dist/chunk-J7VAYJKM.js +595 -0
- package/dist/chunk-J7VAYJKM.js.map +1 -0
- package/dist/chunk-NCNSHOF7.js +52 -0
- package/dist/chunk-NCNSHOF7.js.map +1 -0
- package/dist/chunk-RH5A5U7G.js +202 -0
- package/dist/chunk-RH5A5U7G.js.map +1 -0
- package/dist/chunk-RX3XZENU.js +385 -0
- package/dist/chunk-RX3XZENU.js.map +1 -0
- package/dist/chunk-RXU2Q2HF.js +49 -0
- package/dist/chunk-RXU2Q2HF.js.map +1 -0
- package/dist/chunk-TG7NTMTR.js +208 -0
- package/dist/chunk-TG7NTMTR.js.map +1 -0
- package/dist/chunk-TWGEYWMO.js +1217 -0
- package/dist/chunk-TWGEYWMO.js.map +1 -0
- package/dist/chunk-UZPDDQVJ.js +2910 -0
- package/dist/chunk-UZPDDQVJ.js.map +1 -0
- package/dist/chunk-WMKO5XOE.js +601 -0
- package/dist/chunk-WMKO5XOE.js.map +1 -0
- package/dist/chunk-WOQBVJH5.js +175 -0
- package/dist/chunk-WOQBVJH5.js.map +1 -0
- package/dist/chunk-WVT5SEKC.js +581 -0
- package/dist/chunk-WVT5SEKC.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +26 -0
- package/dist/cli.js.map +1 -0
- package/dist/errors-BNHvvjn9.d.ts +98 -0
- package/dist/execution-halt-B8G0fOKS.d.ts +12 -0
- package/dist/execution-types-ClYYqPQP.d.ts +239 -0
- package/dist/host-ledger-VPRWVVOS.js +25 -0
- package/dist/host-ledger-VPRWVVOS.js.map +1 -0
- package/dist/hosted-runtime.d.ts +168 -0
- package/dist/hosted-runtime.js +858 -0
- package/dist/hosted-runtime.js.map +1 -0
- package/dist/index-B86C6VAD.d.ts +41 -0
- package/dist/index.d.ts +344 -0
- package/dist/index.js +8825 -0
- package/dist/index.js.map +1 -0
- package/dist/memory-items-BSTC0_R0.d.ts +28 -0
- package/dist/memory-tools.d.ts +222 -0
- package/dist/memory-tools.js +923 -0
- package/dist/memory-tools.js.map +1 -0
- package/dist/orchestration/dynamic.d.ts +854 -0
- package/dist/orchestration/dynamic.js +3150 -0
- package/dist/orchestration/dynamic.js.map +1 -0
- package/dist/orchestration/graph.d.ts +11 -0
- package/dist/orchestration/graph.js +9 -0
- package/dist/orchestration/graph.js.map +1 -0
- package/dist/orchestration/index.d.ts +2385 -0
- package/dist/orchestration/index.js +6409 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/log.d.ts +301 -0
- package/dist/orchestration/log.js +3058 -0
- package/dist/orchestration/log.js.map +1 -0
- package/dist/orchestration/memory.d.ts +711 -0
- package/dist/orchestration/memory.js +27 -0
- package/dist/orchestration/memory.js.map +1 -0
- package/dist/provider-DX5Mf0uq.d.ts +151 -0
- package/dist/routing/index.d.ts +29 -0
- package/dist/routing/index.js +386 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/routing/learning/index.d.ts +433 -0
- package/dist/routing/learning/index.js +2502 -0
- package/dist/routing/learning/index.js.map +1 -0
- package/dist/runtime-BSjrnxeF.d.ts +283 -0
- package/dist/runtime-OISPXS4I.js +19 -0
- package/dist/runtime-OISPXS4I.js.map +1 -0
- package/dist/store-types-2YdceOMy.d.ts +78 -0
- package/dist/types-BB7KqceP.d.ts +52 -0
- package/dist/types-CIqkKXix.d.ts +86 -0
- package/dist/types-DTFc1qO6.d.ts +1065 -0
- package/dist/types-DYex3p7_.d.ts +88 -0
- package/docs/licenses/ruflo-memory-MIT.txt +21 -0
- package/docs/releases/0.1.0-beta.3.md +13 -0
- package/package.json +114 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
agentDbMcpServer,
|
|
3
|
+
claudeMcpConfig,
|
|
4
|
+
evaluateMemoryGate,
|
|
5
|
+
memoryProviderFromPorts,
|
|
6
|
+
rankMemories,
|
|
7
|
+
ruvectorMcpServer
|
|
8
|
+
} from "../chunk-WMKO5XOE.js";
|
|
9
|
+
import {
|
|
10
|
+
MEMORY_LABEL_MAX,
|
|
11
|
+
MEMORY_OBSERVED_AT_MAX,
|
|
12
|
+
isMemoryLabel,
|
|
13
|
+
recallableMemory
|
|
14
|
+
} from "../chunk-6XIJW65Q.js";
|
|
15
|
+
export {
|
|
16
|
+
MEMORY_LABEL_MAX,
|
|
17
|
+
MEMORY_OBSERVED_AT_MAX,
|
|
18
|
+
agentDbMcpServer,
|
|
19
|
+
claudeMcpConfig,
|
|
20
|
+
evaluateMemoryGate,
|
|
21
|
+
isMemoryLabel,
|
|
22
|
+
memoryProviderFromPorts,
|
|
23
|
+
rankMemories,
|
|
24
|
+
recallableMemory,
|
|
25
|
+
ruvectorMcpServer
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { P as ProviderId, b as TransportKind, C as CapabilitySupport, e as ProviderInstallation, c as AuthStatus, M as ModelInfo, U as Usage, A as AgentEvent } from './types-DTFc1qO6.js';
|
|
2
|
+
import { A as AgentRuntimeError, F as FailureClassification } from './errors-BNHvvjn9.js';
|
|
3
|
+
|
|
4
|
+
interface CompatibilityEntry {
|
|
5
|
+
provider: ProviderId;
|
|
6
|
+
/** An exact `MAJOR.MINOR.PATCH` or a half-open `>=LOW <HIGH`; see `version-range.ts`. */
|
|
7
|
+
cliRange: string;
|
|
8
|
+
transport: TransportKind;
|
|
9
|
+
evidence: 'live-contract' | 'help-probe' | 'unverified';
|
|
10
|
+
features: Record<string, CapabilitySupport>;
|
|
11
|
+
knownIssues: string[];
|
|
12
|
+
}
|
|
13
|
+
interface CliHelpProbe {
|
|
14
|
+
main: string;
|
|
15
|
+
resume?: string;
|
|
16
|
+
fork?: string;
|
|
17
|
+
}
|
|
18
|
+
interface CliCompatibilityAssessment {
|
|
19
|
+
responsePolicy?: {
|
|
20
|
+
supported: boolean;
|
|
21
|
+
missing: string[];
|
|
22
|
+
};
|
|
23
|
+
provider: ProviderId;
|
|
24
|
+
cliVersion: string;
|
|
25
|
+
transport: TransportKind;
|
|
26
|
+
evidence: CompatibilityEntry['evidence'];
|
|
27
|
+
features: Record<string, CapabilitySupport>;
|
|
28
|
+
missingFlags: string[];
|
|
29
|
+
knownIssues: string[];
|
|
30
|
+
}
|
|
31
|
+
declare function assessCliCompatibility(provider: ProviderId, cliVersion: string, help: CliHelpProbe): CliCompatibilityAssessment;
|
|
32
|
+
/**
|
|
33
|
+
* The entry for an installed version: an exact entry wins over an interval that contains it; nothing else may
|
|
34
|
+
* overlap (see `validateCompatibilityManifest`). A malformed or prerelease version matches nothing.
|
|
35
|
+
*/
|
|
36
|
+
declare function findCompatibilityEntry(provider: ProviderId, transport: TransportKind, cliVersion: string, manifest?: readonly CompatibilityEntry[]): CompatibilityEntry | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Programming-error checks for a manifest: every range parses, no two entries for the same provider and transport
|
|
39
|
+
* overlap (an exact version inside an interval is allowed and wins), and an entry whose evidence is not a live
|
|
40
|
+
* contract never declares a feature 'supported'. Throws the first violation.
|
|
41
|
+
*/
|
|
42
|
+
declare function validateCompatibilityManifest(manifest: readonly CompatibilityEntry[]): void;
|
|
43
|
+
declare const COMPATIBILITY_MANIFEST: readonly CompatibilityEntry[];
|
|
44
|
+
|
|
45
|
+
interface ProcessRequest {
|
|
46
|
+
command: string;
|
|
47
|
+
args: string[];
|
|
48
|
+
cwd: string;
|
|
49
|
+
env: NodeJS.ProcessEnv;
|
|
50
|
+
stdin: string | Uint8Array;
|
|
51
|
+
timeoutMs: number;
|
|
52
|
+
maxOutputBytes: number;
|
|
53
|
+
/** Defaults to true. False returns empty stdout without changing delivery or byte limits. */
|
|
54
|
+
captureStdout?: boolean;
|
|
55
|
+
signal?: AbortSignal;
|
|
56
|
+
onStdout?: (chunk: Uint8Array) => void;
|
|
57
|
+
/** Cooperative bounded delivery; preferred over onStdout when supplied. */
|
|
58
|
+
onStdoutAsync?: (chunk: Uint8Array, deliverySignal: AbortSignal) => Promise<void>;
|
|
59
|
+
onStderr?: (chunk: Uint8Array) => void;
|
|
60
|
+
/** Synchronous notification of the first native failure, before bounded cleanup. */
|
|
61
|
+
onFailure?: (error: AgentRuntimeError) => void | Promise<void>;
|
|
62
|
+
killGraceMs?: number;
|
|
63
|
+
}
|
|
64
|
+
interface ProcessOutcome {
|
|
65
|
+
code: number | null;
|
|
66
|
+
signal: NodeJS.Signals | null;
|
|
67
|
+
stdout: string;
|
|
68
|
+
stderr: string;
|
|
69
|
+
durationMs: number;
|
|
70
|
+
}
|
|
71
|
+
declare function runProcess(request: ProcessRequest): Promise<ProcessOutcome>;
|
|
72
|
+
|
|
73
|
+
type ProtocolFailureKind = 'not-authenticated' | 'unknown-model' | 'model-unavailable' | 'usage-limit' | 'untrusted-workspace' | 'session-not-found' | 'provider-unavailable' | 'protocol';
|
|
74
|
+
interface ProtocolFailure {
|
|
75
|
+
kind: ProtocolFailureKind;
|
|
76
|
+
message: string;
|
|
77
|
+
rawCode?: string;
|
|
78
|
+
reason?: FailureClassification['reason'];
|
|
79
|
+
/** Epoch milliseconds, only from an explicit structured usage rejection. */
|
|
80
|
+
retryAt?: number;
|
|
81
|
+
}
|
|
82
|
+
interface ProtocolResult {
|
|
83
|
+
completed: boolean;
|
|
84
|
+
failed: boolean;
|
|
85
|
+
refused: boolean;
|
|
86
|
+
sessionId?: string;
|
|
87
|
+
turnId?: string;
|
|
88
|
+
text: string;
|
|
89
|
+
output?: unknown;
|
|
90
|
+
usage?: Usage;
|
|
91
|
+
events: AgentEvent[];
|
|
92
|
+
failure?: ProtocolFailure;
|
|
93
|
+
terminalEvent?: unknown;
|
|
94
|
+
nativeEvents: unknown[];
|
|
95
|
+
}
|
|
96
|
+
type ExecOperation = 'open' | 'resume' | 'fork' | 'one-shot';
|
|
97
|
+
interface ExecTurnRequest {
|
|
98
|
+
mode: ExecOperation;
|
|
99
|
+
modelId: string;
|
|
100
|
+
cwd: string;
|
|
101
|
+
prompt: string;
|
|
102
|
+
env: NodeJS.ProcessEnv;
|
|
103
|
+
contextArgs: string[];
|
|
104
|
+
permissionArgs: string[];
|
|
105
|
+
timeoutMs: number;
|
|
106
|
+
maxOutputBytes: number;
|
|
107
|
+
/** Propagate actual-work settlement through exec wrappers. */
|
|
108
|
+
awaitSettlement?: boolean;
|
|
109
|
+
/** This turn must bill the CLI login: adapters pin whatever their CLI lets a config redirect. */
|
|
110
|
+
requireSubscription?: boolean;
|
|
111
|
+
sessionId?: string;
|
|
112
|
+
instructions?: string;
|
|
113
|
+
effort?: string;
|
|
114
|
+
outputSchema?: Record<string, unknown>;
|
|
115
|
+
signal?: AbortSignal;
|
|
116
|
+
providerOptions?: Record<string, unknown>;
|
|
117
|
+
}
|
|
118
|
+
type ProcessRunner = (request: ProcessRequest) => Promise<ProcessOutcome>;
|
|
119
|
+
type AdapterStreamItem = {
|
|
120
|
+
kind: 'session';
|
|
121
|
+
sessionId: string;
|
|
122
|
+
} | {
|
|
123
|
+
kind: 'event';
|
|
124
|
+
event: AgentEvent;
|
|
125
|
+
} | {
|
|
126
|
+
kind: 'result';
|
|
127
|
+
result: ProtocolResult;
|
|
128
|
+
};
|
|
129
|
+
/** Optional cooperative cancellation for readiness/status probes. Legacy adapters may ignore it. */
|
|
130
|
+
interface ExecProbeContext {
|
|
131
|
+
readonly signal: AbortSignal;
|
|
132
|
+
readonly deadline: number;
|
|
133
|
+
remainingMs(): number;
|
|
134
|
+
}
|
|
135
|
+
/** What a turn will run with, so a credential probe answers for that turn and not for the host process. */
|
|
136
|
+
interface ExecProbeTurn {
|
|
137
|
+
cwd: string;
|
|
138
|
+
contextArgs: readonly string[];
|
|
139
|
+
providerOptions?: Record<string, unknown>;
|
|
140
|
+
}
|
|
141
|
+
interface ExecAdapter {
|
|
142
|
+
readonly id: ProviderId;
|
|
143
|
+
detect(env: NodeJS.ProcessEnv, context?: ExecProbeContext): Promise<ProviderInstallation>;
|
|
144
|
+
auth(env: NodeJS.ProcessEnv, context?: ExecProbeContext, turn?: ExecProbeTurn): Promise<AuthStatus>;
|
|
145
|
+
models(): Promise<ModelInfo[]>;
|
|
146
|
+
compatibility?(env: NodeJS.ProcessEnv, version: string, context?: ExecProbeContext): Promise<CliCompatibilityAssessment | undefined>;
|
|
147
|
+
execute(request: ExecTurnRequest): Promise<ProtocolResult>;
|
|
148
|
+
stream?(request: ExecTurnRequest): AsyncIterable<AdapterStreamItem>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export { type AdapterStreamItem as A, type CompatibilityEntry as C, type ExecProbeContext as E, type ProcessRunner as P, type ExecProbeTurn as a, type ProcessOutcome as b, type ProcessRequest as c, type ExecOperation as d, type ExecAdapter as e, type ExecTurnRequest as f, type ProtocolResult as g, COMPATIBILITY_MANIFEST as h, type CliCompatibilityAssessment as i, type CliHelpProbe as j, type ProtocolFailure as k, type ProtocolFailureKind as l, assessCliCompatibility as m, findCompatibilityEntry as n, runProcess as r, validateCompatibilityManifest as v };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { A as Agent } from '../agent-Bj5YPrO7.js';
|
|
2
|
+
import { R as RoutingAgentDefinition, C as CreateAgentContext, a as RoutingReceipt, b as RoutingReceiptStore } from '../types-CIqkKXix.js';
|
|
3
|
+
export { A as AutoModelSelection, c as RoutingCandidate, d as RoutingCandidateCode, e as RoutingRule, f as RoutingSelected, g as RoutingSelectionError, h as RoutingTask } from '../types-CIqkKXix.js';
|
|
4
|
+
import { W as WorkflowStore } from '../types-DYex3p7_.js';
|
|
5
|
+
import '../types-BB7KqceP.js';
|
|
6
|
+
import '../runtime-BSjrnxeF.js';
|
|
7
|
+
import '../capture-runtime-GP6NZ2ee.js';
|
|
8
|
+
import '../types-DTFc1qO6.js';
|
|
9
|
+
import '../provider-DX5Mf0uq.js';
|
|
10
|
+
import '../errors-BNHvvjn9.js';
|
|
11
|
+
|
|
12
|
+
/** Resolve once locally. Never creates a session, dispatches a prompt, or retries execution. */
|
|
13
|
+
declare function createAgent(definition: RoutingAgentDefinition, context: CreateAgentContext): Promise<{
|
|
14
|
+
agent: Agent;
|
|
15
|
+
receipt: RoutingReceipt;
|
|
16
|
+
}>;
|
|
17
|
+
|
|
18
|
+
/** Strict clone, semantic validation and canonical checksum; returned proposals are deeply immutable. */
|
|
19
|
+
declare function validateRoutingReceipt(value: unknown): RoutingReceipt;
|
|
20
|
+
declare function readRoutingReceipt(store: RoutingReceiptStore, id: string): Promise<RoutingReceipt | undefined>;
|
|
21
|
+
|
|
22
|
+
declare class WorkflowRoutingReceiptStore implements RoutingReceiptStore {
|
|
23
|
+
#private;
|
|
24
|
+
constructor(store: WorkflowStore);
|
|
25
|
+
save(value: RoutingReceipt): Promise<void>;
|
|
26
|
+
load(id: string): Promise<RoutingReceipt | undefined>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { CreateAgentContext, RoutingAgentDefinition, RoutingReceipt, RoutingReceiptStore, WorkflowRoutingReceiptStore, createAgent, readRoutingReceipt, validateRoutingReceipt };
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalize
|
|
3
|
+
} from "../chunk-RH5A5U7G.js";
|
|
4
|
+
import {
|
|
5
|
+
Agent
|
|
6
|
+
} from "../chunk-UZPDDQVJ.js";
|
|
7
|
+
import "../chunk-HZFZX5A3.js";
|
|
8
|
+
import "../chunk-WVT5SEKC.js";
|
|
9
|
+
import "../chunk-3TIYA3K5.js";
|
|
10
|
+
import {
|
|
11
|
+
Runtime
|
|
12
|
+
} from "../chunk-2RK74GCA.js";
|
|
13
|
+
import "../chunk-J7VAYJKM.js";
|
|
14
|
+
import {
|
|
15
|
+
OperationScope,
|
|
16
|
+
authenticationState
|
|
17
|
+
} from "../chunk-G6JV7WV6.js";
|
|
18
|
+
import "../chunk-6FIXXWNM.js";
|
|
19
|
+
import {
|
|
20
|
+
identity,
|
|
21
|
+
validateCheckpoint
|
|
22
|
+
} from "../chunk-CPN4DOXH.js";
|
|
23
|
+
import "../chunk-DAXPAV2L.js";
|
|
24
|
+
import "../chunk-6XIJW65Q.js";
|
|
25
|
+
import "../chunk-RXU2Q2HF.js";
|
|
26
|
+
import "../chunk-TWGEYWMO.js";
|
|
27
|
+
import "../chunk-GS5U3KUN.js";
|
|
28
|
+
import {
|
|
29
|
+
canonical,
|
|
30
|
+
digest,
|
|
31
|
+
freeze,
|
|
32
|
+
hash,
|
|
33
|
+
identifier,
|
|
34
|
+
jsonClone,
|
|
35
|
+
method,
|
|
36
|
+
object,
|
|
37
|
+
ownObject
|
|
38
|
+
} from "../chunk-EEUYQFCP.js";
|
|
39
|
+
import "../chunk-RX3XZENU.js";
|
|
40
|
+
import "../chunk-7LDQKJKI.js";
|
|
41
|
+
import {
|
|
42
|
+
rethrowExecutionHalt
|
|
43
|
+
} from "../chunk-NCNSHOF7.js";
|
|
44
|
+
import {
|
|
45
|
+
TimeoutError
|
|
46
|
+
} from "../chunk-TG7NTMTR.js";
|
|
47
|
+
|
|
48
|
+
// src/routing/selector.ts
|
|
49
|
+
import { types } from "node:util";
|
|
50
|
+
import { randomUUID } from "node:crypto";
|
|
51
|
+
|
|
52
|
+
// src/routing/receipt.ts
|
|
53
|
+
var codes = ["READY", "NOT_NEEDED", "NOT_IN_RULE", "PROVIDER_NOT_ALLOWED", "MODEL_UNAVAILABLE", "MODEL_UNVERIFIED", "CLI_MISSING", "AUTH_REQUIRED", "AUTH_UNKNOWN", "SUBSCRIPTION_REQUIRED", "CLI_UNSUPPORTED", "POLICY_UNSUPPORTED", "PROBE_FAILED", "ABORTED", "TIMEOUT"];
|
|
54
|
+
var reasons = ["FIXED", "PRIORITY", "RULE", "FALLBACK", "NO_CANDIDATES", "NO_ELIGIBLE_CANDIDATE", "NO_MATCHING_RULE", "ABORTED", "TIMEOUT"];
|
|
55
|
+
function member(value, values) {
|
|
56
|
+
if (!values.includes(value)) throw new TypeError("Invalid receipt enum");
|
|
57
|
+
}
|
|
58
|
+
function model(value) {
|
|
59
|
+
if (typeof value.provider !== "string" || !/^[a-z][a-z0-9-]{0,63}$/.test(value.provider) || ["constructor", "prototype", "__proto__"].includes(value.provider) || typeof value.modelId !== "string" || !value.modelId.trim() || value.model !== `${value.provider}/${value.modelId}` || value.model.length > 512) throw new TypeError("Invalid receipt model");
|
|
60
|
+
}
|
|
61
|
+
function validateRoutingReceipt(value) {
|
|
62
|
+
const copy = jsonClone(value);
|
|
63
|
+
if (Buffer.byteLength(canonical(copy)) > 1048576) throw new TypeError("Receipt exceeds 1MiB");
|
|
64
|
+
object(copy, ["format", "purpose", "id", "createdAt", "configDigest", "taskDigest", "sourceDigest", "policy", "decision", "reason", "candidates", "nativeDispatches", "selected", "digest"]);
|
|
65
|
+
if (copy.format !== 1 || copy.purpose !== "selection-proposal" || copy.nativeDispatches !== 0 || !Number.isSafeInteger(copy.createdAt) || copy.createdAt < 0) throw new TypeError("Invalid receipt format");
|
|
66
|
+
identifier(copy.id);
|
|
67
|
+
hash(copy.configDigest);
|
|
68
|
+
hash(copy.taskDigest);
|
|
69
|
+
hash(copy.digest);
|
|
70
|
+
if ("sourceDigest" in copy) hash(copy.sourceDigest);
|
|
71
|
+
object(copy.policy, ["mode", "version", "ruleId"]);
|
|
72
|
+
member(copy.policy.mode, ["fixed", "auto"]);
|
|
73
|
+
if (copy.policy.version !== "priority-v1") throw new TypeError("Invalid policy version");
|
|
74
|
+
if ("ruleId" in copy.policy) {
|
|
75
|
+
identifier(copy.policy.ruleId);
|
|
76
|
+
if (copy.policy.mode !== "auto") throw new TypeError("Fixed rule");
|
|
77
|
+
}
|
|
78
|
+
member(copy.decision, ["selected", "abstained"]);
|
|
79
|
+
member(copy.reason, reasons);
|
|
80
|
+
if (!Array.isArray(copy.candidates) || copy.candidates.length > 64) throw new TypeError("Invalid candidates");
|
|
81
|
+
const seen = /* @__PURE__ */ new Set();
|
|
82
|
+
for (const candidate of copy.candidates) {
|
|
83
|
+
object(candidate, ["model", "provider", "modelId", "status", "code", "transport", "fingerprintDigest", "authState", "authSource"]);
|
|
84
|
+
model(candidate);
|
|
85
|
+
if (seen.has(candidate.model)) throw new TypeError("Duplicate receipt candidate");
|
|
86
|
+
seen.add(candidate.model);
|
|
87
|
+
member(candidate.status, ["eligible", "excluded", "not-evaluated"]);
|
|
88
|
+
member(candidate.code, codes);
|
|
89
|
+
if ("transport" in candidate) member(candidate.transport, ["exec", "control"]);
|
|
90
|
+
if ("fingerprintDigest" in candidate) hash(candidate.fingerprintDigest);
|
|
91
|
+
if ("authState" in candidate) member(candidate.authState, ["authenticated", "not-authenticated", "unknown"]);
|
|
92
|
+
if ("authSource" in candidate) member(candidate.authSource, ["subscription", "api-key", "cloud-provider", "oauth", "oss", "unknown"]);
|
|
93
|
+
if (candidate.status === "eligible" && candidate.authState === "not-authenticated") throw new TypeError("Eligible authentication is negative");
|
|
94
|
+
if (candidate.status === "eligible" ? candidate.code !== "READY" || !candidate.transport || !candidate.fingerprintDigest : candidate.status === "not-evaluated" ? !["NOT_NEEDED", "NOT_IN_RULE"].includes(candidate.code) : ["READY", "NOT_NEEDED", "NOT_IN_RULE"].includes(candidate.code)) throw new TypeError("Inconsistent candidate status");
|
|
95
|
+
}
|
|
96
|
+
if (copy.decision === "selected" !== "selected" in copy) throw new TypeError("Inconsistent selection");
|
|
97
|
+
const eligible = copy.candidates.filter((entry) => entry.status === "eligible");
|
|
98
|
+
if (copy.decision === "selected") {
|
|
99
|
+
object(copy.selected, ["model", "provider", "modelId", "transport", "fingerprintDigest"]);
|
|
100
|
+
model(copy.selected);
|
|
101
|
+
member(copy.selected.transport, ["exec", "control"]);
|
|
102
|
+
hash(copy.selected.fingerprintDigest);
|
|
103
|
+
if (eligible.length !== 1 || Object.keys(copy.selected).length !== 5 || Object.entries(copy.selected).some(([key, entry]) => entry !== eligible[0][key])) throw new TypeError("Selected candidate mismatch");
|
|
104
|
+
if (!["FIXED", "PRIORITY", "RULE", "FALLBACK"].includes(copy.reason)) throw new TypeError("Inconsistent selected reason");
|
|
105
|
+
if (copy.policy.mode === "fixed" ? copy.reason !== "FIXED" || copy.candidates.length !== 1 : copy.reason === "FIXED") throw new TypeError("Inconsistent policy reason");
|
|
106
|
+
if (copy.reason === "RULE" && !copy.policy.ruleId) throw new TypeError("Missing matching rule");
|
|
107
|
+
if (copy.reason === "PRIORITY" && copy.policy.ruleId) throw new TypeError("Matched rules require RULE or FALLBACK");
|
|
108
|
+
} else if (eligible.length || ["FIXED", "PRIORITY", "RULE", "FALLBACK"].includes(copy.reason)) throw new TypeError("Inconsistent abstention");
|
|
109
|
+
if (copy.policy.mode === "fixed" && (copy.candidates.length !== 1 || ["NO_CANDIDATES", "NO_MATCHING_RULE"].includes(copy.reason))) throw new TypeError("Invalid fixed abstention");
|
|
110
|
+
if (copy.reason === "NO_MATCHING_RULE" && (copy.policy.mode !== "auto" || copy.policy.ruleId || copy.candidates.length === 0)) throw new TypeError("Invalid no-rule abstention");
|
|
111
|
+
if (copy.candidates.length === 0 && (copy.policy.ruleId || !["NO_CANDIDATES", "ABORTED", "TIMEOUT"].includes(copy.reason))) throw new TypeError("Invalid empty universe reason");
|
|
112
|
+
if (["NO_ELIGIBLE_CANDIDATE", "NO_MATCHING_RULE"].includes(copy.reason) && copy.candidates.some((candidate) => candidate.code === "NOT_NEEDED")) throw new TypeError("Unfinished candidate evaluation");
|
|
113
|
+
if (copy.reason === "NO_MATCHING_RULE" && copy.candidates.some((candidate) => !["NOT_IN_RULE", "PROVIDER_NOT_ALLOWED", "MODEL_UNAVAILABLE", "MODEL_UNVERIFIED"].includes(candidate.code))) throw new TypeError("Unmatched rules cannot probe candidates");
|
|
114
|
+
if (copy.policy.mode === "fixed" && copy.candidates.some((candidate) => ["NOT_IN_RULE", "PROVIDER_NOT_ALLOWED", "MODEL_UNVERIFIED", "AUTH_UNKNOWN"].includes(candidate.code))) throw new TypeError("Fixed candidate has an automatic-only exclusion");
|
|
115
|
+
if (copy.reason === "NO_CANDIDATES" && copy.candidates.length !== 0) throw new TypeError("Inconsistent empty universe");
|
|
116
|
+
const { digest: expected, ...body } = copy;
|
|
117
|
+
if (digest(body) !== expected) throw new TypeError("Receipt digest mismatch");
|
|
118
|
+
return freeze(copy);
|
|
119
|
+
}
|
|
120
|
+
function sealReceipt(value) {
|
|
121
|
+
return validateRoutingReceipt({ ...value, digest: digest(value) });
|
|
122
|
+
}
|
|
123
|
+
async function readRoutingReceipt(store, id) {
|
|
124
|
+
identifier(id);
|
|
125
|
+
const load = method(store, "load");
|
|
126
|
+
const result = await load(id);
|
|
127
|
+
if (result === void 0) return void 0;
|
|
128
|
+
const receipt = validateRoutingReceipt(result);
|
|
129
|
+
if (receipt.id !== id) throw new TypeError("Receipt ID mismatch");
|
|
130
|
+
return receipt;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// src/routing/types.ts
|
|
134
|
+
var RoutingSelectionError = class extends Error {
|
|
135
|
+
constructor(code, receipt) {
|
|
136
|
+
super(`Routing selection ${code}`);
|
|
137
|
+
this.code = code;
|
|
138
|
+
this.receipt = receipt;
|
|
139
|
+
this.name = "RoutingSelectionError";
|
|
140
|
+
}
|
|
141
|
+
code;
|
|
142
|
+
receipt;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
// src/routing/selector.ts
|
|
146
|
+
function failureCode(error) {
|
|
147
|
+
if (error === null || typeof error !== "object" && typeof error !== "function" || types.isProxy(error)) return "PROBE_FAILED";
|
|
148
|
+
const descriptor = Object.getOwnPropertyDescriptor(error, "code");
|
|
149
|
+
const code = descriptor && Object.hasOwn(descriptor, "value") ? descriptor.value : void 0;
|
|
150
|
+
switch (code) {
|
|
151
|
+
case "CLI_NOT_INSTALLED":
|
|
152
|
+
return "CLI_MISSING";
|
|
153
|
+
case "NOT_AUTHENTICATED":
|
|
154
|
+
return "AUTH_REQUIRED";
|
|
155
|
+
case "UNEXPECTED_AUTH_SOURCE":
|
|
156
|
+
return "SUBSCRIPTION_REQUIRED";
|
|
157
|
+
case "UNSUPPORTED_CLI_VERSION":
|
|
158
|
+
return "CLI_UNSUPPORTED";
|
|
159
|
+
case "UNSUPPORTED_CAPABILITY":
|
|
160
|
+
case "REQUIRED_TRANSPORT_UNAVAILABLE":
|
|
161
|
+
return "POLICY_UNSUPPORTED";
|
|
162
|
+
default:
|
|
163
|
+
return "PROBE_FAILED";
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function modelMatches(actual, expected) {
|
|
167
|
+
return actual.provider === expected.provider && actual.id === expected.id && actual.availability === expected.availability;
|
|
168
|
+
}
|
|
169
|
+
async function createAgent(definition, context) {
|
|
170
|
+
const startedAt = performance.now();
|
|
171
|
+
context = ownObject(context, ["runtime", "receipts", "id", "task", "sourceDigest", "signal", "timeoutMs"]);
|
|
172
|
+
if (!context.runtime || types.isProxy(context.runtime) || !(context.runtime instanceof Runtime)) throw new TypeError("A Runtime is required");
|
|
173
|
+
if (!context.receipts || typeof context.receipts !== "object") throw new TypeError("A receipt store is required");
|
|
174
|
+
const save = method(context.receipts, "save");
|
|
175
|
+
method(context.receipts, "load");
|
|
176
|
+
const id = context.id === void 0 ? randomUUID() : context.id;
|
|
177
|
+
identifier(id);
|
|
178
|
+
const sourceDigest = context.sourceDigest;
|
|
179
|
+
if (sourceDigest !== void 0) hash(sourceDigest);
|
|
180
|
+
const timeoutMs = context.timeoutMs === void 0 ? 3e4 : context.timeoutMs;
|
|
181
|
+
if (!Number.isInteger(timeoutMs) || timeoutMs < 1 || timeoutMs > 2147483647) throw new RangeError("Invalid selection timeoutMs");
|
|
182
|
+
const signal = context.signal;
|
|
183
|
+
if (signal !== void 0 && (types.isProxy(signal) || !(signal instanceof AbortSignal))) throw new TypeError("Invalid AbortSignal");
|
|
184
|
+
const expires = startedAt + timeoutMs;
|
|
185
|
+
const scope = new OperationScope({ timeoutMs: Math.max(1, Math.floor(expires - performance.now())), ...signal === void 0 ? {} : { signal } });
|
|
186
|
+
const cancellationCode = () => {
|
|
187
|
+
if (scope.signal.aborted) return scope.signal.reason.code === "TIMEOUT" ? "TIMEOUT" : "ABORTED";
|
|
188
|
+
if (performance.now() >= expires || scope.remainingMs() < 1) return "TIMEOUT";
|
|
189
|
+
return void 0;
|
|
190
|
+
};
|
|
191
|
+
const assertActive = () => {
|
|
192
|
+
if (scope.signal.aborted) throw scope.signal.reason;
|
|
193
|
+
if (cancellationCode()) throw new TimeoutError({ retryable: true }, "Selection deadline exceeded");
|
|
194
|
+
};
|
|
195
|
+
const check = () => scope.race(assertActive);
|
|
196
|
+
try {
|
|
197
|
+
const runtime = context.runtime;
|
|
198
|
+
const config = normalize(definition, runtime, context.task);
|
|
199
|
+
const candidates = config.models.map((model2) => ({
|
|
200
|
+
model: `${model2.provider}/${model2.id}`,
|
|
201
|
+
provider: model2.provider,
|
|
202
|
+
modelId: model2.id,
|
|
203
|
+
status: "not-evaluated",
|
|
204
|
+
code: config.primary.includes(`${model2.provider}/${model2.id}`) || config.fallback === `${model2.provider}/${model2.id}` ? "NOT_NEEDED" : "NOT_IN_RULE"
|
|
205
|
+
}));
|
|
206
|
+
const excluded = (candidate, code) => {
|
|
207
|
+
candidate.status = "excluded";
|
|
208
|
+
candidate.code = code;
|
|
209
|
+
};
|
|
210
|
+
candidates.forEach((candidate, index) => {
|
|
211
|
+
const model2 = config.models[index];
|
|
212
|
+
if (config.auto?.providers && !config.auto.providers.includes(candidate.provider)) excluded(candidate, "PROVIDER_NOT_ALLOWED");
|
|
213
|
+
else if (model2.availability === "unavailable") excluded(candidate, "MODEL_UNAVAILABLE");
|
|
214
|
+
else if (config.auto && model2.availability === "unverified" && !config.auto.allowUnverifiedModels) excluded(candidate, "MODEL_UNVERIFIED");
|
|
215
|
+
});
|
|
216
|
+
let selected;
|
|
217
|
+
let agent;
|
|
218
|
+
let reason = candidates.length === 0 ? "NO_CANDIDATES" : config.auto?.rules && !config.ruleId && !config.fallback ? "NO_MATCHING_RULE" : "NO_ELIGIBLE_CANDIDATE";
|
|
219
|
+
let fatal;
|
|
220
|
+
const cancelProposal = (code) => {
|
|
221
|
+
fatal = code;
|
|
222
|
+
reason = code;
|
|
223
|
+
selected = void 0;
|
|
224
|
+
agent = void 0;
|
|
225
|
+
for (const candidate of candidates) if (candidate.status === "eligible") excluded(candidate, code);
|
|
226
|
+
};
|
|
227
|
+
try {
|
|
228
|
+
await check();
|
|
229
|
+
for (const name of [...config.primary, ...config.fallback === void 0 ? [] : [config.fallback]]) {
|
|
230
|
+
await check();
|
|
231
|
+
const index = candidates.findIndex((entry) => entry.model === name);
|
|
232
|
+
const candidate = candidates[index];
|
|
233
|
+
const expected = config.models[index];
|
|
234
|
+
if (candidate.status === "excluded") continue;
|
|
235
|
+
try {
|
|
236
|
+
assertActive();
|
|
237
|
+
const prepared = new Agent({ ...config.options, model: name }, runtime);
|
|
238
|
+
if (!modelMatches(prepared.model, expected)) {
|
|
239
|
+
excluded(candidate, "PROBE_FAILED");
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
assertActive();
|
|
243
|
+
const ready = await prepared.ready({ signal: scope.signal, timeoutMs: Math.max(1, Math.min(scope.remainingMs(), Math.floor(expires - performance.now()))), awaitSettlement: true });
|
|
244
|
+
await check();
|
|
245
|
+
if (!modelMatches(prepared.model, expected) || !modelMatches(ready.model, expected) || ready.provider !== candidate.provider) {
|
|
246
|
+
excluded(candidate, "PROBE_FAILED");
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
candidate.authState = authenticationState(ready.auth);
|
|
250
|
+
candidate.authSource = ready.auth.source;
|
|
251
|
+
candidate.transport = ready.plan.transport;
|
|
252
|
+
candidate.fingerprintDigest = digest(ready.plan);
|
|
253
|
+
if (ready.capabilities.unsupported.length) {
|
|
254
|
+
excluded(candidate, "POLICY_UNSUPPORTED");
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
if (candidate.authState === "not-authenticated") {
|
|
258
|
+
excluded(candidate, "AUTH_REQUIRED");
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
if (config.auto && candidate.authState === "unknown" && !config.auto.allowUnknownAuth) {
|
|
262
|
+
excluded(candidate, "AUTH_UNKNOWN");
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
if (!ready.ready || !ready.installation.installed) {
|
|
266
|
+
excluded(candidate, "CLI_MISSING");
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
candidate.status = "eligible";
|
|
270
|
+
candidate.code = "READY";
|
|
271
|
+
agent = prepared;
|
|
272
|
+
selected = { model: name, provider: candidate.provider, modelId: candidate.modelId, transport: candidate.transport, fingerprintDigest: candidate.fingerprintDigest };
|
|
273
|
+
reason = !config.auto ? "FIXED" : name === config.fallback ? "FALLBACK" : config.ruleId ? "RULE" : "PRIORITY";
|
|
274
|
+
break;
|
|
275
|
+
} catch (error) {
|
|
276
|
+
rethrowExecutionHalt(error);
|
|
277
|
+
const cancelled = cancellationCode();
|
|
278
|
+
if (cancelled) {
|
|
279
|
+
excluded(candidate, cancelled);
|
|
280
|
+
throw error;
|
|
281
|
+
}
|
|
282
|
+
excluded(candidate, failureCode(error));
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
await check();
|
|
286
|
+
} catch (error) {
|
|
287
|
+
rethrowExecutionHalt(error);
|
|
288
|
+
const cancelled = cancellationCode();
|
|
289
|
+
if (!cancelled) throw error;
|
|
290
|
+
cancelProposal(cancelled);
|
|
291
|
+
}
|
|
292
|
+
await scope.drain();
|
|
293
|
+
const beforeSave = cancellationCode();
|
|
294
|
+
if (beforeSave) cancelProposal(beforeSave);
|
|
295
|
+
const makeReceipt = () => sealReceipt({
|
|
296
|
+
format: 1,
|
|
297
|
+
purpose: "selection-proposal",
|
|
298
|
+
id,
|
|
299
|
+
createdAt: Date.now(),
|
|
300
|
+
configDigest: config.configDigest,
|
|
301
|
+
taskDigest: config.taskDigest,
|
|
302
|
+
...sourceDigest === void 0 ? {} : { sourceDigest },
|
|
303
|
+
policy: { mode: config.auto ? "auto" : "fixed", version: "priority-v1", ...config.ruleId === void 0 ? {} : { ruleId: config.ruleId } },
|
|
304
|
+
decision: selected ? "selected" : "abstained",
|
|
305
|
+
reason,
|
|
306
|
+
candidates,
|
|
307
|
+
nativeDispatches: 0,
|
|
308
|
+
...selected === void 0 ? {} : { selected }
|
|
309
|
+
});
|
|
310
|
+
let receipt = makeReceipt();
|
|
311
|
+
const afterSeal = cancellationCode();
|
|
312
|
+
if (!fatal && afterSeal) {
|
|
313
|
+
cancelProposal(afterSeal);
|
|
314
|
+
receipt = makeReceipt();
|
|
315
|
+
}
|
|
316
|
+
await save(receipt);
|
|
317
|
+
if (!fatal) {
|
|
318
|
+
try {
|
|
319
|
+
await check();
|
|
320
|
+
} catch {
|
|
321
|
+
fatal = cancellationCode() ?? "ABORTED";
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
await scope.drain();
|
|
325
|
+
const identityMatches = agent && selected && modelMatches(agent.model, config.models[candidates.findIndex((candidate) => candidate.model === selected.model)]);
|
|
326
|
+
const atReturn = cancellationCode();
|
|
327
|
+
if (atReturn) fatal = atReturn;
|
|
328
|
+
if (fatal) throw new RoutingSelectionError(fatal, receipt);
|
|
329
|
+
if (!agent || !identityMatches) throw new RoutingSelectionError("NO_ROUTE", receipt);
|
|
330
|
+
scope.dispose();
|
|
331
|
+
return { agent, receipt };
|
|
332
|
+
} finally {
|
|
333
|
+
scope.dispose();
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// src/routing/workflow-store.ts
|
|
338
|
+
var envelope = { id: "routing-receipt", version: "1", steps: [{ id: "record", execute: () => null }] };
|
|
339
|
+
var WorkflowRoutingReceiptStore = class {
|
|
340
|
+
#acquire;
|
|
341
|
+
constructor(store) {
|
|
342
|
+
this.#acquire = method(store, "acquire");
|
|
343
|
+
}
|
|
344
|
+
async save(value) {
|
|
345
|
+
const receipt = validateRoutingReceipt(value);
|
|
346
|
+
const runId = `routing:${receipt.id}`;
|
|
347
|
+
const lease = await this.#acquire(runId);
|
|
348
|
+
try {
|
|
349
|
+
if (await lease.load() !== void 0) throw new Error("Routing receipt ID already exists");
|
|
350
|
+
await lease.save({ format: 1, runId, workflow: identity(envelope), status: "completed", steps: {
|
|
351
|
+
record: { status: "completed", attempts: 1, output: receipt }
|
|
352
|
+
} });
|
|
353
|
+
} finally {
|
|
354
|
+
await lease.release();
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
async load(id) {
|
|
358
|
+
identifier(id);
|
|
359
|
+
const runId = `routing:${id}`;
|
|
360
|
+
const lease = await this.#acquire(runId);
|
|
361
|
+
try {
|
|
362
|
+
const loaded = await lease.load();
|
|
363
|
+
if (loaded === void 0) return void 0;
|
|
364
|
+
const value = jsonClone(loaded);
|
|
365
|
+
object(value, ["format", "runId", "workflow", "status", "steps"]);
|
|
366
|
+
object(value.workflow, ["id", "version", "fingerprint"]);
|
|
367
|
+
object(value.steps, ["record"]);
|
|
368
|
+
object(value.steps.record, ["status", "attempts", "output"]);
|
|
369
|
+
const checkpoint = validateCheckpoint(value, envelope, runId);
|
|
370
|
+
if (checkpoint.status !== "completed") throw new TypeError("Invalid routing envelope");
|
|
371
|
+
const receipt = validateRoutingReceipt(checkpoint.steps.record.output);
|
|
372
|
+
if (receipt.id !== id) throw new TypeError("Receipt ID mismatch");
|
|
373
|
+
return receipt;
|
|
374
|
+
} finally {
|
|
375
|
+
await lease.release();
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
export {
|
|
380
|
+
RoutingSelectionError,
|
|
381
|
+
WorkflowRoutingReceiptStore,
|
|
382
|
+
createAgent,
|
|
383
|
+
readRoutingReceipt,
|
|
384
|
+
validateRoutingReceipt
|
|
385
|
+
};
|
|
386
|
+
//# sourceMappingURL=index.js.map
|