@superdoc/sdk 2.10.0-next.6 → 2.10.0-next.8
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 +45 -0
- package/dist/action-primitives/doc-index.cjs +6 -4
- package/dist/action-primitives/doc-index.js +6 -4
- package/dist/action-primitives/engine.cjs +6 -2
- package/dist/action-primitives/engine.js +6 -2
- package/dist/action-primitives/receipt.d.ts +4 -0
- package/dist/action-primitives/tools/structure-insert.d.ts +1 -1
- package/dist/agent/actions.cjs +203 -223
- package/dist/agent/actions.d.ts +5 -0
- package/dist/agent/actions.js +203 -223
- package/dist/agent/catalog.cjs +15 -0
- package/dist/agent/catalog.js +15 -0
- package/dist/agent/doc-snapshot.cjs +22 -46
- package/dist/agent/doc-snapshot.js +22 -46
- package/dist/agent/execution-context.cjs +385 -0
- package/dist/agent/execution-context.d.ts +97 -0
- package/dist/agent/execution-context.js +376 -0
- package/dist/agent/runtime.cjs +116 -158
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +117 -159
- package/dist/agent/v2-preset-compat.cjs +5 -1
- package/dist/agent/v2-preset-compat.js +4 -1
- package/dist/embedded-tools.generated.cjs +5 -5
- package/dist/embedded-tools.generated.js +5 -5
- package/dist/generated/client.cjs +2 -0
- package/dist/generated/client.d.ts +47 -0
- package/dist/generated/client.js +2 -0
- package/dist/generated/contract.cjs +1600 -1296
- package/dist/generated/contract.js +1600 -1296
- package/dist/index.cjs +11 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +11 -0
- package/dist/presets/core.cjs +1 -1
- package/dist/presets/core.js +1 -1
- package/dist/runtime/document-evidence.cjs +40 -0
- package/dist/runtime/document-evidence.d.ts +13 -0
- package/dist/runtime/document-evidence.js +30 -0
- package/dist/runtime/host.cjs +30 -2
- package/dist/runtime/host.d.ts +2 -0
- package/dist/runtime/host.js +30 -2
- package/dist/runtime/process.cjs +6 -0
- package/dist/runtime/process.d.ts +2 -0
- package/dist/runtime/process.js +6 -0
- package/dist/runtime/sdk-version.generated.cjs +1 -1
- package/dist/runtime/sdk-version.generated.d.ts +1 -1
- package/dist/runtime/sdk-version.generated.js +1 -1
- package/package.json +10 -9
- package/tools/catalog.json +35 -0
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +35 -0
- package/tools/tools.generic.json +35 -0
- package/tools/tools.openai.json +35 -0
- package/tools/tools.vercel.json +35 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var documentEvidence = require('../runtime/document-evidence.cjs');
|
|
4
|
+
|
|
3
5
|
const LEGACY_TRACKED_CHANGE_TYPES = {
|
|
4
6
|
insertion: 'insert',
|
|
5
7
|
deletion: 'delete',
|
|
@@ -57,13 +59,15 @@ function wrapV2PresetCompat(doc) {
|
|
|
57
59
|
return value;
|
|
58
60
|
},
|
|
59
61
|
});
|
|
60
|
-
|
|
62
|
+
const wrapped = new Proxy(doc, {
|
|
61
63
|
get(target, property, receiver) {
|
|
62
64
|
if (property === 'trackChanges')
|
|
63
65
|
return trackChanges;
|
|
64
66
|
return Reflect.get(target, property, receiver);
|
|
65
67
|
},
|
|
66
68
|
});
|
|
69
|
+
documentEvidence.forwardDocumentEvidence(doc, wrapped);
|
|
70
|
+
return wrapped;
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
exports.wrapV2PresetCompat = wrapV2PresetCompat;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { forwardDocumentEvidence } from '../runtime/document-evidence.js';
|
|
1
2
|
const LEGACY_TRACKED_CHANGE_TYPES = {
|
|
2
3
|
insertion: 'insert',
|
|
3
4
|
deletion: 'delete',
|
|
@@ -55,11 +56,13 @@ export function wrapV2PresetCompat(doc) {
|
|
|
55
56
|
return value;
|
|
56
57
|
},
|
|
57
58
|
});
|
|
58
|
-
|
|
59
|
+
const wrapped = new Proxy(doc, {
|
|
59
60
|
get(target, property, receiver) {
|
|
60
61
|
if (property === 'trackChanges')
|
|
61
62
|
return trackChanges;
|
|
62
63
|
return Reflect.get(target, property, receiver);
|
|
63
64
|
},
|
|
64
65
|
});
|
|
66
|
+
forwardDocumentEvidence(doc, wrapped);
|
|
67
|
+
return wrapped;
|
|
65
68
|
}
|