stitchkit 0.85.1 → 0.86.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/CHANGELOG.md +178 -0
- package/README.md +3 -0
- package/dist/agent-runtime/agent-tool.d.ts +25 -0
- package/dist/agent-runtime/agent-tool.d.ts.map +1 -0
- package/dist/agent-runtime/child-tools.d.ts +69 -0
- package/dist/agent-runtime/child-tools.d.ts.map +1 -0
- package/dist/agent-runtime/children.d.ts +113 -0
- package/dist/agent-runtime/children.d.ts.map +1 -0
- package/dist/agent-runtime/coding-tool-contract.d.ts +29 -0
- package/dist/agent-runtime/coding-tool-contract.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-refusals.d.ts +2 -0
- package/dist/agent-runtime/coding-tool-refusals.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-shell.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tools.d.ts +1 -0
- package/dist/agent-runtime/coding-tools.d.ts.map +1 -1
- package/dist/agent-runtime/control-schema.d.ts +17 -0
- package/dist/agent-runtime/control-schema.d.ts.map +1 -1
- package/dist/agent-runtime/event-schema.d.ts +34 -0
- package/dist/agent-runtime/event-schema.d.ts.map +1 -1
- package/dist/agent-runtime/event-search-tools.d.ts +53 -0
- package/dist/agent-runtime/event-search-tools.d.ts.map +1 -0
- package/dist/agent-runtime/event-search.d.ts +23 -0
- package/dist/agent-runtime/event-search.d.ts.map +1 -0
- package/dist/agent-runtime/fault-bench.d.ts +45 -0
- package/dist/agent-runtime/fault-bench.d.ts.map +1 -0
- package/dist/agent-runtime/observability.d.ts +6 -0
- package/dist/agent-runtime/observability.d.ts.map +1 -1
- package/dist/agent-runtime/projections.d.ts +69 -0
- package/dist/agent-runtime/projections.d.ts.map +1 -0
- package/dist/agent-runtime/provider-failure.d.ts +5 -1
- package/dist/agent-runtime/provider-failure.d.ts.map +1 -1
- package/dist/agent-runtime/provider-origin.d.ts +12 -0
- package/dist/agent-runtime/provider-origin.d.ts.map +1 -0
- package/dist/agent-runtime/retry-policy.d.ts +27 -0
- package/dist/agent-runtime/retry-policy.d.ts.map +1 -0
- package/dist/agent-runtime/run-execution.d.ts +0 -9
- package/dist/agent-runtime/run-execution.d.ts.map +1 -1
- package/dist/agent-runtime/run-mutation-queue.d.ts +21 -0
- package/dist/agent-runtime/run-mutation-queue.d.ts.map +1 -0
- package/dist/agent-runtime/run-operation-lifecycle.d.ts +3 -0
- package/dist/agent-runtime/run-operation-lifecycle.d.ts.map +1 -1
- package/dist/agent-runtime/runtime.d.ts +15 -0
- package/dist/agent-runtime/runtime.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox.d.ts +66 -0
- package/dist/agent-runtime/sandbox.d.ts.map +1 -0
- package/dist/agent-runtime/schedule-tools.d.ts +35 -0
- package/dist/agent-runtime/schedule-tools.d.ts.map +1 -0
- package/dist/agent-runtime/schedules.d.ts +63 -0
- package/dist/agent-runtime/schedules.d.ts.map +1 -0
- package/dist/agent-runtime/schemas.d.ts +9 -0
- package/dist/agent-runtime/schemas.d.ts.map +1 -1
- package/dist/agent-runtime/spill.d.ts +24 -0
- package/dist/agent-runtime/spill.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-purge.d.ts.map +1 -1
- package/dist/agent-runtime/sqlite.d.ts +26 -0
- package/dist/agent-runtime/sqlite.d.ts.map +1 -1
- package/dist/agent-runtime/state-slots.d.ts +48 -0
- package/dist/agent-runtime/state-slots.d.ts.map +1 -0
- package/dist/agent-runtime/state-tools.d.ts +58 -0
- package/dist/agent-runtime/state-tools.d.ts.map +1 -0
- package/dist/agent-runtime/store-driver.d.ts +13 -0
- package/dist/agent-runtime/store-driver.d.ts.map +1 -1
- package/dist/agent-runtime/store-events.d.ts +829 -0
- package/dist/agent-runtime/store-events.d.ts.map +1 -0
- package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts +6 -0
- package/dist/agent-runtime/store-migrations/v1-to-v2.d.ts.map +1 -0
- package/dist/agent-runtime/store.d.ts +45 -0
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts +1 -1
- package/dist/agent-runtime-browser.js +5 -3
- package/dist/agent-runtime-coding-tools.js +144 -15
- package/dist/agent-runtime-harness.js +12 -10
- package/dist/agent-runtime-sqlite-bun.d.ts +1 -1
- package/dist/agent-runtime-sqlite-bun.d.ts.map +1 -1
- package/dist/agent-runtime-sqlite-bun.js +4 -3
- package/dist/agent-runtime-sqlite-node.d.ts +1 -1
- package/dist/agent-runtime-sqlite-node.d.ts.map +1 -1
- package/dist/agent-runtime-sqlite-node.js +4 -3
- package/dist/agent-runtime-testing.d.ts +3 -0
- package/dist/agent-runtime-testing.d.ts.map +1 -0
- package/dist/agent-runtime-testing.js +156 -0
- package/dist/agent-runtime.d.ts +16 -2
- package/dist/agent-runtime.d.ts.map +1 -1
- package/dist/agent-runtime.js +1591 -154
- package/dist/application.js +14 -14
- package/dist/cli.js +6 -6
- package/dist/{index-fwbkp2jn.js → index-0vfdh685.js} +2 -2
- package/dist/{index-5z8tezpx.js → index-0ydchz76.js} +3 -3
- package/dist/{index-3ds42w1w.js → index-1szetq6f.js} +33 -4
- package/dist/{index-jpp7jd1p.js → index-33xckd7h.js} +898 -425
- package/dist/{index-27487ay5.js → index-9hw9eq48.js} +4 -4
- package/dist/{index-66nxrgy0.js → index-b7qwhbzq.js} +428 -46
- package/dist/index-cnyk6te3.js +77 -0
- package/dist/index-gskm1k5a.js +50 -0
- package/dist/{index-fq492hg0.js → index-hber83mk.js} +254 -157
- package/dist/{index-4hk633vz.js → index-hkm6wysp.js} +9 -2
- package/dist/{index-dx9xehwt.js → index-kc6h6hg0.js} +1 -1
- package/dist/{index-x15ss2dx.js → index-p1b1y93x.js} +3 -0
- package/dist/{index-mgtxfe6b.js → index-r159gjwy.js} +8 -1
- package/dist/{index-s4ckmrac.js → index-rcgsnrr6.js} +3 -3
- package/dist/index-vfgb58nf.js +252 -0
- package/dist/{index-dggwnnjv.js → index-wn9cb82y.js} +1 -1
- package/dist/{index-ff0kcqvp.js → index-z2452tsw.js} +3 -3
- package/dist/testing/agent-store-conformance.d.ts.map +1 -1
- package/dist/testing.js +54 -80
- package/dist/tool-invoker.js +4 -4
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts +16 -0
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +10 -8
- package/llms-full.txt +321 -13
- package/package.json +6 -1
package/dist/application.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import"./index-pq95qkbf.js";
|
|
1
2
|
import {
|
|
2
3
|
ApplicationAdmissionError,
|
|
3
4
|
ApplicationRestartInputSchema,
|
|
@@ -27,20 +28,6 @@ import {
|
|
|
27
28
|
createApplicationSnapshotSink,
|
|
28
29
|
createManagedSchedule
|
|
29
30
|
} from "./index-9f8ztey6.js";
|
|
30
|
-
import {
|
|
31
|
-
DiagnosticJournalCloseResultSchema,
|
|
32
|
-
DiagnosticJournalFailurePhaseSchema,
|
|
33
|
-
DiagnosticJournalFrameSchema,
|
|
34
|
-
DiagnosticJournalLimitsSchema,
|
|
35
|
-
DiagnosticJournalLockPolicySchema,
|
|
36
|
-
DiagnosticJournalRefusalReasonSchema,
|
|
37
|
-
DiagnosticJournalStateSchema,
|
|
38
|
-
DiagnosticJournalStatusSchema,
|
|
39
|
-
DiagnosticJournalSubmitResultSchema,
|
|
40
|
-
DiagnosticJournalWaitResultSchema,
|
|
41
|
-
readDiagnosticJournalLockDiagnosis
|
|
42
|
-
} from "./index-wc4x00bn.js";
|
|
43
|
-
import"./index-pq95qkbf.js";
|
|
44
31
|
import {
|
|
45
32
|
ApplicationAdmissionSnapshotSchema,
|
|
46
33
|
ApplicationHealthSchema,
|
|
@@ -54,6 +41,19 @@ import {
|
|
|
54
41
|
ManagedResourceStateSchema,
|
|
55
42
|
projectApplicationStatus
|
|
56
43
|
} from "./index-3gye9wzb.js";
|
|
44
|
+
import {
|
|
45
|
+
DiagnosticJournalCloseResultSchema,
|
|
46
|
+
DiagnosticJournalFailurePhaseSchema,
|
|
47
|
+
DiagnosticJournalFrameSchema,
|
|
48
|
+
DiagnosticJournalLimitsSchema,
|
|
49
|
+
DiagnosticJournalLockPolicySchema,
|
|
50
|
+
DiagnosticJournalRefusalReasonSchema,
|
|
51
|
+
DiagnosticJournalStateSchema,
|
|
52
|
+
DiagnosticJournalStatusSchema,
|
|
53
|
+
DiagnosticJournalSubmitResultSchema,
|
|
54
|
+
DiagnosticJournalWaitResultSchema,
|
|
55
|
+
readDiagnosticJournalLockDiagnosis
|
|
56
|
+
} from "./index-wc4x00bn.js";
|
|
57
57
|
import {
|
|
58
58
|
withDeadline
|
|
59
59
|
} from "./index-b9aefrqd.js";
|
package/dist/cli.js
CHANGED
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
emitResult,
|
|
6
6
|
parseCliArgs,
|
|
7
7
|
pollUntilDone
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-9hw9eq48.js";
|
|
9
9
|
import"./index-sbdmyz75.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
import"./index-rcgsnrr6.js";
|
|
11
|
+
import"./index-kc6h6hg0.js";
|
|
12
|
+
import"./index-0vfdh685.js";
|
|
13
|
+
import"./index-wn9cb82y.js";
|
|
14
14
|
import"./index-vsbzgd7b.js";
|
|
15
15
|
import"./index-f9mb610r.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-r159gjwy.js";
|
|
17
17
|
import"./index-cby4ar3v.js";
|
|
18
18
|
import"./index-7zbps32p.js";
|
|
19
19
|
import"./index-7evdsyez.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeToolMethod
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-wn9cb82y.js";
|
|
4
4
|
import {
|
|
5
5
|
assertToolExtensionCompatible,
|
|
6
6
|
mergeSchemas,
|
|
7
7
|
projectToolSurface,
|
|
8
8
|
rebuildObject
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-r159gjwy.js";
|
|
10
10
|
|
|
11
11
|
// src/tools/mount.ts
|
|
12
12
|
import { z } from "zod";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectTools,
|
|
3
3
|
createToolRunner
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-0vfdh685.js";
|
|
5
5
|
import {
|
|
6
6
|
toolErrorFromResult
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-wn9cb82y.js";
|
|
8
8
|
import {
|
|
9
9
|
assertUniqueToolName
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-r159gjwy.js";
|
|
11
11
|
import {
|
|
12
12
|
AppError
|
|
13
13
|
} from "./index-0w9abg87.js";
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./index-3xnq72rz.js";
|
|
4
4
|
import {
|
|
5
5
|
collectToolSurface
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-rcgsnrr6.js";
|
|
7
7
|
import {
|
|
8
8
|
createToolRunner,
|
|
9
9
|
formatToolError
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-0vfdh685.js";
|
|
11
11
|
import {
|
|
12
12
|
isToolExecutionControlError,
|
|
13
13
|
toolResultFromError
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-wn9cb82y.js";
|
|
15
15
|
import {
|
|
16
16
|
isRecord
|
|
17
17
|
} from "./index-77fekveh.js";
|
|
@@ -88,6 +88,35 @@ function mountAgent(services, config = {}) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// src/tools/manifest.ts
|
|
91
|
+
function utf8Length(value) {
|
|
92
|
+
return new TextEncoder().encode(JSON.stringify(value)).byteLength;
|
|
93
|
+
}
|
|
94
|
+
function describeToolCatalog(config) {
|
|
95
|
+
const deferred = new Set(config.deferredNames ?? []);
|
|
96
|
+
const entries = collectToolSurface({
|
|
97
|
+
surface: config,
|
|
98
|
+
transport: config.transport,
|
|
99
|
+
extend: config.extend,
|
|
100
|
+
flattenUnionInput: config.flattenUnionInput
|
|
101
|
+
}).map(({ kind, service, action, mountable }) => {
|
|
102
|
+
const schemaBytes = utf8Length(mountable.presentationSchema);
|
|
103
|
+
return {
|
|
104
|
+
name: mountable.name,
|
|
105
|
+
description: mountable.method.desc,
|
|
106
|
+
inputSchema: mountable.presentationSchema,
|
|
107
|
+
source: { kind, service, action },
|
|
108
|
+
schemaBytes,
|
|
109
|
+
deferred: deferred.has(mountable.name)
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
if (config.maxSchemaBytes !== undefined) {
|
|
113
|
+
const total = entries.reduce((sum, entry) => sum + entry.schemaBytes, 0);
|
|
114
|
+
if (total > config.maxSchemaBytes) {
|
|
115
|
+
throw new TypeError(`Tool catalog schemas use ${total} bytes, exceeding maxSchemaBytes ${config.maxSchemaBytes}`);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return entries;
|
|
119
|
+
}
|
|
91
120
|
function buildToolManifest(config) {
|
|
92
121
|
return collectToolSurface({
|
|
93
122
|
surface: config,
|
|
@@ -101,4 +130,4 @@ function buildToolManifest(config) {
|
|
|
101
130
|
}));
|
|
102
131
|
}
|
|
103
132
|
|
|
104
|
-
export { mountAgent, buildToolManifest };
|
|
133
|
+
export { mountAgent, describeToolCatalog, buildToolManifest };
|