@superdoc/sdk 2.6.0 → 2.8.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/dist/agent/actions.cjs +1869 -160
- package/dist/agent/actions.d.ts +77 -10
- package/dist/agent/actions.js +1870 -161
- package/dist/agent/catalog.cjs +102 -9
- package/dist/agent/catalog.d.ts +243 -0
- package/dist/agent/catalog.js +99 -9
- package/dist/agent/doc-snapshot.cjs +200 -2
- package/dist/agent/doc-snapshot.d.ts +91 -0
- package/dist/agent/doc-snapshot.js +199 -2
- package/dist/agent/runtime.cjs +9 -1
- package/dist/agent/runtime.d.ts +8 -0
- package/dist/agent/runtime.js +9 -1
- package/dist/generated/client.cjs +754 -770
- package/dist/generated/client.d.ts +10 -9
- package/dist/generated/client.js +754 -770
- package/dist/generated/contract.cjs +16178 -272
- package/dist/generated/contract.d.ts +38 -0
- package/dist/generated/contract.js +17419 -1510
- package/dist/index.cjs +6 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -5
- package/dist/introspection.cjs +59 -0
- package/dist/introspection.d.ts +3 -0
- package/dist/introspection.js +53 -0
- package/dist/runtime/document-rpc.cjs +179 -40
- package/dist/runtime/document-rpc.d.ts +13 -4
- package/dist/runtime/document-rpc.js +175 -40
- package/dist/runtime/embedded-cli.cjs +5 -68
- package/dist/runtime/embedded-cli.js +5 -67
- package/dist/runtime/embedded-document-host.cjs +28 -0
- package/dist/runtime/embedded-document-host.d.ts +1 -0
- package/dist/runtime/embedded-document-host.js +23 -0
- package/dist/runtime/embedded-platform.cjs +108 -0
- package/dist/runtime/embedded-platform.d.ts +5 -0
- package/dist/runtime/embedded-platform.js +99 -0
- package/dist/runtime/host.cjs +237 -24
- package/dist/runtime/host.d.ts +17 -0
- package/dist/runtime/host.js +237 -25
- package/dist/runtime/process.cjs +30 -9
- package/dist/runtime/process.d.ts +9 -0
- package/dist/runtime/process.js +29 -9
- package/dist/runtime/sdk-version.generated.cjs +8 -0
- package/dist/runtime/sdk-version.generated.d.ts +1 -0
- package/dist/runtime/sdk-version.generated.js +4 -0
- package/dist/runtime/transport-common.cjs +1 -0
- package/dist/runtime/transport-common.d.ts +28 -10
- package/dist/runtime/transport-common.js +1 -1
- package/package.json +7 -7
- package/tools/__pycache__/__init__.cpython-311.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-311.pyc +0 -0
- package/tools/tools-policy.json +1 -1
package/dist/agent/runtime.js
CHANGED
|
@@ -150,7 +150,15 @@ function resolveDocMethod(doc, operationId) {
|
|
|
150
150
|
return cursor;
|
|
151
151
|
}
|
|
152
152
|
export async function agentInspect(doc, args = {}) {
|
|
153
|
-
|
|
153
|
+
// For the MODEL-facing inspect, expose each list item's per-run formatting BY
|
|
154
|
+
// DEFAULT so the agent always sees the intra-item pattern it must match when
|
|
155
|
+
// adding items. (Internal pre/post snapshots call buildDocumentSnapshot
|
|
156
|
+
// directly and stay cheap — this default lives only on the tool path.) Opt out
|
|
157
|
+
// with includeListItemRuns:false; countsOnly skips all domains anyway.
|
|
158
|
+
const listsInScope = !args.countsOnly &&
|
|
159
|
+
(!Array.isArray(args.includeDomains) || args.includeDomains.length === 0 || args.includeDomains.includes('lists'));
|
|
160
|
+
const effective = args.includeListItemRuns === undefined && listsInScope ? { ...args, includeListItemRuns: true } : args;
|
|
161
|
+
return buildDocumentSnapshot(doc, effective);
|
|
154
162
|
}
|
|
155
163
|
function checkAgainstSnapshot(snapshot, check) {
|
|
156
164
|
switch (check.kind) {
|