@superdoc/sdk 2.6.0 → 2.7.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.
Files changed (48) hide show
  1. package/dist/agent/actions.cjs +1869 -160
  2. package/dist/agent/actions.d.ts +77 -10
  3. package/dist/agent/actions.js +1870 -161
  4. package/dist/agent/catalog.cjs +102 -9
  5. package/dist/agent/catalog.d.ts +243 -0
  6. package/dist/agent/catalog.js +99 -9
  7. package/dist/agent/doc-snapshot.cjs +200 -2
  8. package/dist/agent/doc-snapshot.d.ts +91 -0
  9. package/dist/agent/doc-snapshot.js +199 -2
  10. package/dist/agent/runtime.cjs +9 -1
  11. package/dist/agent/runtime.d.ts +8 -0
  12. package/dist/agent/runtime.js +9 -1
  13. package/dist/generated/client.cjs +754 -770
  14. package/dist/generated/client.d.ts +9 -9
  15. package/dist/generated/client.js +754 -770
  16. package/dist/generated/contract.cjs +16170 -272
  17. package/dist/generated/contract.d.ts +38 -0
  18. package/dist/generated/contract.js +17411 -1510
  19. package/dist/index.cjs +5 -4
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +5 -4
  22. package/dist/introspection.cjs +59 -0
  23. package/dist/introspection.d.ts +3 -0
  24. package/dist/introspection.js +53 -0
  25. package/dist/runtime/document-rpc.cjs +179 -40
  26. package/dist/runtime/document-rpc.d.ts +13 -4
  27. package/dist/runtime/document-rpc.js +175 -40
  28. package/dist/runtime/embedded-cli.cjs +5 -68
  29. package/dist/runtime/embedded-cli.js +5 -67
  30. package/dist/runtime/embedded-document-host.cjs +28 -0
  31. package/dist/runtime/embedded-document-host.d.ts +1 -0
  32. package/dist/runtime/embedded-document-host.js +23 -0
  33. package/dist/runtime/embedded-platform.cjs +102 -0
  34. package/dist/runtime/embedded-platform.d.ts +5 -0
  35. package/dist/runtime/embedded-platform.js +93 -0
  36. package/dist/runtime/host.cjs +70 -19
  37. package/dist/runtime/host.d.ts +2 -0
  38. package/dist/runtime/host.js +70 -20
  39. package/dist/runtime/process.cjs +30 -9
  40. package/dist/runtime/process.d.ts +9 -0
  41. package/dist/runtime/process.js +29 -9
  42. package/dist/runtime/transport-common.cjs +1 -0
  43. package/dist/runtime/transport-common.d.ts +28 -10
  44. package/dist/runtime/transport-common.js +1 -1
  45. package/package.json +6 -6
  46. package/tools/__pycache__/__init__.cpython-311.pyc +0 -0
  47. package/tools/__pycache__/intent_dispatch_generated.cpython-311.pyc +0 -0
  48. package/tools/tools-policy.json +1 -1
@@ -150,7 +150,15 @@ function resolveDocMethod(doc, operationId) {
150
150
  return cursor;
151
151
  }
152
152
  export async function agentInspect(doc, args = {}) {
153
- return buildDocumentSnapshot(doc, args);
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) {