@sema-agent/core 5.38.0 → 5.40.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 (51) hide show
  1. package/CHANGELOG.md +182 -10
  2. package/dist/agents/send-message-tool.d.ts +8 -0
  3. package/dist/agents/send-message-tool.js +8 -0
  4. package/dist/agents/teacher.js +9 -3
  5. package/dist/agents/verify.js +9 -3
  6. package/dist/core/checkpoint-store.d.ts +12 -0
  7. package/dist/core/governance-codes.js +2 -0
  8. package/dist/core/hooks.d.ts +23 -0
  9. package/dist/core/hooks.js +53 -4
  10. package/dist/core/mailbox-store.d.ts +39 -0
  11. package/dist/core/mailbox-store.js +9 -0
  12. package/dist/core/memory-engine/engine.d.ts +27 -0
  13. package/dist/core/memory-engine/engine.js +103 -1
  14. package/dist/core/memory-engine/export-bundle.d.ts +192 -0
  15. package/dist/core/memory-engine/export-bundle.js +306 -0
  16. package/dist/core/memory-engine/file-backend.d.ts +178 -1
  17. package/dist/core/memory-engine/file-backend.js +637 -6
  18. package/dist/core/memory-engine/index.d.ts +2 -1
  19. package/dist/core/memory-engine/index.js +1 -0
  20. package/dist/core/memory-engine/layout.d.ts +89 -1
  21. package/dist/core/memory-engine/layout.js +131 -1
  22. package/dist/core/memory-engine/memory-backend-contract.d.ts +1 -1
  23. package/dist/core/memory-engine/memory-backend-contract.js +52 -0
  24. package/dist/core/memory-engine/tools.js +8 -1
  25. package/dist/core/permission-rule-consent.d.ts +27 -4
  26. package/dist/core/permission-rule-consent.js +41 -4
  27. package/dist/core/permission-rule-model.d.ts +7 -1
  28. package/dist/core/runner/prepare-task.js +24 -3
  29. package/dist/core/runner/runtask.js +5 -0
  30. package/dist/core/runner/synthetic-tools.js +3 -1
  31. package/dist/core/runner/tool-disclosure.js +2 -1
  32. package/dist/core/sensitive-path-policy.js +3 -3
  33. package/dist/core/store-contracts/mailbox-store-contract.d.ts +29 -1
  34. package/dist/core/store-contracts/mailbox-store-contract.js +78 -0
  35. package/dist/core/types.d.ts +21 -0
  36. package/dist/core/write-protect.d.ts +73 -0
  37. package/dist/core/write-protect.js +195 -0
  38. package/dist/index.d.ts +4 -3
  39. package/dist/index.js +4 -3
  40. package/dist/orchestration/governance-baseline-validity.d.ts +44 -0
  41. package/dist/orchestration/governance-baseline-validity.js +55 -0
  42. package/dist/orchestration/run-workflow-tool.js +33 -8
  43. package/dist/orchestration/workflow-script-runner.js +9 -4
  44. package/dist/tools/fs/read-deny.d.ts +15 -5
  45. package/dist/tools/fs/read-deny.js +33 -12
  46. package/dist/tools/fs/safety.d.ts +5 -2
  47. package/dist/tools/fs/safety.js +5 -3
  48. package/dist/tools/fs/search.d.ts +33 -0
  49. package/dist/tools/fs/search.js +72 -0
  50. package/package.json +1 -1
  51. package/test/export-surface.snapshot.json +21 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_comment": "design/87 L3 — frozen public export surface of src/index.ts (name -> kind). DO NOT edit by hand to silence a red test. A removed/changed entry = a SemVer-BREAKING change; bump MAJOR and update this fixture in the SAME commit (design/87 §4.2 / §5.2). Regenerate via REGEN in test/export-surface.test.ts.",
3
- "count": 1585,
3
+ "count": 1605,
4
4
  "exports": {
5
5
  "A2ATaskState": "type",
6
6
  "A2ATaskStateReversal": "type",
@@ -119,6 +119,9 @@
119
119
  "BudgetAxis": "type",
120
120
  "BuildAutoModePromptOptions": "interface",
121
121
  "BuiltinWorkflowDefinition": "interface",
122
+ "BundleChallengeRow": "interface",
123
+ "BundleLineageRow": "interface",
124
+ "BundlePollutedSession": "interface",
122
125
  "CC_MODEL_TIER_ALIASES": "variable",
123
126
  "CHALLENGED_HISTORY_FILE": "variable",
124
127
  "CHALLENGES_FILE": "variable",
@@ -408,6 +411,7 @@
408
411
  "LspToolOptions": "interface",
409
412
  "LspTransport": "interface",
410
413
  "MAILBOX_CONTRACT_SCOPE": "variable",
414
+ "MAILBOX_TOMBSTONED_RECIPIENT_CODE": "variable",
411
415
  "MASS_DELETION_FUSE_RATIO": "variable",
412
416
  "MAX_ACTOR_FIELD_CHARS": "variable",
413
417
  "MAX_EDIT_BYTES": "variable",
@@ -445,6 +449,8 @@
445
449
  "MailboxLease": "interface",
446
450
  "MailboxMessage": "interface",
447
451
  "MailboxStore": "interface",
452
+ "MailboxStoreError": "class",
453
+ "MailboxTombstonedRecipientContractHooks": "interface",
448
454
  "ManagedRetentionCapability": "interface",
449
455
  "ManifestDurability": "type",
450
456
  "MaterializedA2a": "interface",
@@ -464,14 +470,18 @@
464
470
  "MemoryAnnouncement": "interface",
465
471
  "MemoryBackend": "interface",
466
472
  "MemoryBackendContractHooks": "interface",
473
+ "MemoryBundleImportPlan": "interface",
467
474
  "MemoryEngine": "class",
468
475
  "MemoryEngineOptions": "interface",
469
476
  "MemoryEntry": "interface",
470
477
  "MemoryEntryFrontmatter": "interface",
471
478
  "MemoryEntryHeader": "interface",
472
479
  "MemoryErasureAttestation": "interface",
480
+ "MemoryExportBundle": "interface",
481
+ "MemoryExportSnapshot": "interface",
473
482
  "MemoryGateError": "class",
474
483
  "MemoryGetDetails": "interface",
484
+ "MemoryImportReport": "interface",
475
485
  "MemoryInjection": "interface",
476
486
  "MemoryListDetails": "type",
477
487
  "MemoryNoteHeader": "interface",
@@ -1028,6 +1038,7 @@
1028
1038
  "WORKFLOW_SUBAGENT_PROMPT": "variable",
1029
1039
  "WORKFLOW_SUBAGENT_PROMPT_SCHEMA": "variable",
1030
1040
  "WORKTREE_PARENT": "variable",
1041
+ "WRITE_PROTECTED_DEFAULT_TABLE": "variable",
1031
1042
  "WebFetchConfig": "interface",
1032
1043
  "WebSearchConfig": "interface",
1033
1044
  "WiringFacts": "interface",
@@ -1077,6 +1088,11 @@
1077
1088
  "WorktreeSessionRef": "interface",
1078
1089
  "WorktreeToolsOptions": "interface",
1079
1090
  "WritablePermissionRuleStore": "interface",
1091
+ "WriteProtectedEntry": "type",
1092
+ "WriteProtectedHit": "interface",
1093
+ "WriteProtectedKind": "type",
1094
+ "WriteProtectedRow": "interface",
1095
+ "WriteProtectionMatcher": "interface",
1080
1096
  "ackAdoptionConfig": "function",
1081
1097
  "acquireCcLock": "function",
1082
1098
  "addDotsOf": "function",
@@ -1158,6 +1174,7 @@
1158
1174
  "collectBelowFrontier": "function",
1159
1175
  "combinePolicies": "function",
1160
1176
  "compileReadDeny": "function",
1177
+ "compileWriteProtection": "function",
1161
1178
  "complianceCallDenial": "function",
1162
1179
  "compose": "function",
1163
1180
  "composeConstitution": "function",
@@ -1170,6 +1187,7 @@
1170
1187
  "computeCatalogDigest": "function",
1171
1188
  "computeCostMicroUsd": "function",
1172
1189
  "computeEntryRev": "function",
1190
+ "computeMemoryBundleHash": "function",
1173
1191
  "computeShapeDigest": "function",
1174
1192
  "confirmRuleApproval": "function",
1175
1193
  "consolidateScope": "function",
@@ -1362,6 +1380,7 @@
1362
1380
  "mailboxAckOwnershipContract": "function",
1363
1381
  "mailboxBundledOnlyContract": "function",
1364
1382
  "mailboxStoreContract": "function",
1383
+ "mailboxTombstonedRecipientContract": "function",
1365
1384
  "markTruncated": "function",
1366
1385
  "materializeA2aTools": "function",
1367
1386
  "materializeEntriesToFiles": "function",
@@ -1477,6 +1496,7 @@
1477
1496
  "resolveTaskLimits": "function",
1478
1497
  "resolveTaskModel": "function",
1479
1498
  "resolveUsageWindows": "function",
1499
+ "resolveWriteProtectedTable": "function",
1480
1500
  "restoreFrozenPaths": "function",
1481
1501
  "resumeWithVerification": "function",
1482
1502
  "retiredWorkflowNameAliases": "function",