@sema-agent/core 5.47.0 → 5.49.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 (73) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/dist/agents/agent-transcript-tool.d.ts +4 -0
  3. package/dist/agents/agent-transcript-tool.js +10 -3
  4. package/dist/agents/send-message-tool.d.ts +43 -1
  5. package/dist/agents/send-message-tool.js +50 -11
  6. package/dist/agents/subagent.d.ts +18 -0
  7. package/dist/agents/subagent.js +102 -2
  8. package/dist/agents/teacher.d.ts +25 -1
  9. package/dist/agents/teacher.js +85 -12
  10. package/dist/config/defaults.d.ts +20 -0
  11. package/dist/config/defaults.js +5 -0
  12. package/dist/core/background-agent-store.d.ts +1 -0
  13. package/dist/core/background-agent-store.js +14 -0
  14. package/dist/core/mcp.d.ts +6 -1
  15. package/dist/core/mcp.js +34 -7
  16. package/dist/core/memory-engine/delegation-settlement.d.ts +27 -0
  17. package/dist/core/memory-engine/delegation-settlement.js +31 -4
  18. package/dist/core/memory-engine/dual-root.js +11 -0
  19. package/dist/core/memory-engine/engine.d.ts +6 -1
  20. package/dist/core/memory-engine/engine.js +136 -21
  21. package/dist/core/memory-engine/memory-backend-contract.js +33 -0
  22. package/dist/core/memory-engine/origin-clearance.d.ts +19 -0
  23. package/dist/core/memory-engine/origin-clearance.js +10 -0
  24. package/dist/core/memory-engine/provenance-wording.d.ts +15 -1
  25. package/dist/core/memory-engine/provenance-wording.js +1 -0
  26. package/dist/core/memory-engine/tools.js +6 -4
  27. package/dist/core/reminder-disclosure.d.ts +90 -0
  28. package/dist/core/reminder-disclosure.js +64 -0
  29. package/dist/core/runner/prepare-acquire-reconcile.d.ts +6 -0
  30. package/dist/core/runner/prepare-acquire-reconcile.js +1 -1
  31. package/dist/core/runner/prepare-hands-readface.d.ts +4 -0
  32. package/dist/core/runner/prepare-hands-readface.js +1 -0
  33. package/dist/core/runner/prepare-task.d.ts +15 -0
  34. package/dist/core/runner/prepare-task.js +51 -33
  35. package/dist/core/runner/runtask.d.ts +26 -1
  36. package/dist/core/runner/runtask.js +21 -3
  37. package/dist/core/session-store.d.ts +59 -1
  38. package/dist/core/session-store.js +82 -14
  39. package/dist/core/session.d.ts +83 -1
  40. package/dist/core/strategy-store.d.ts +180 -3
  41. package/dist/core/strategy-store.js +172 -23
  42. package/dist/core/task-registry-agent.d.ts +28 -0
  43. package/dist/core/task-registry-agent.js +63 -2
  44. package/dist/core/task-registry.d.ts +21 -0
  45. package/dist/core/task-registry.js +4 -1
  46. package/dist/core/types.d.ts +66 -0
  47. package/dist/core/untrusted-text.d.ts +63 -0
  48. package/dist/core/untrusted-text.js +48 -0
  49. package/dist/core/wiring-manifest.d.ts +35 -0
  50. package/dist/core/wiring-manifest.js +21 -1
  51. package/dist/engine/harness/types.d.ts +36 -1
  52. package/dist/index.d.ts +7 -6
  53. package/dist/index.js +6 -5
  54. package/dist/internal/harness-types.d.ts +1 -0
  55. package/dist/stores/file/file-snapshot-store.js +7 -1
  56. package/dist/stores/file/index.d.ts +27 -3
  57. package/dist/stores/file/index.js +36 -1
  58. package/dist/stores/file/session-policy-store.d.ts +0 -13
  59. package/dist/stores/file/session-policy-store.js +7 -1
  60. package/dist/stores/file/session-store.d.ts +22 -5
  61. package/dist/stores/file/session-store.js +80 -13
  62. package/dist/stores/file/strategy-store.d.ts +97 -0
  63. package/dist/stores/file/strategy-store.js +340 -0
  64. package/dist/tools/fs/fs-pdf.d.ts +12 -1
  65. package/dist/tools/fs/fs-pdf.js +17 -3
  66. package/dist/tools/fs/fs-read.d.ts +2 -1
  67. package/dist/tools/fs/fs-read.js +33 -5
  68. package/dist/tools/fs/fs-shared.d.ts +6 -2
  69. package/dist/tools/fs/index.d.ts +7 -0
  70. package/dist/tools/fs/index.js +1 -1
  71. package/dist/tools/web.js +21 -2
  72. package/package.json +3 -2
  73. package/test/export-surface.snapshot.json +22 -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": 1625,
3
+ "count": 1646,
4
4
  "exports": {
5
5
  "A2ATaskState": "type",
6
6
  "A2ATaskStateReversal": "type",
@@ -47,6 +47,7 @@
47
47
  "AdoptionSource": "type",
48
48
  "AdoptionStatus": "type",
49
49
  "AffectedDeploymentConfig": "interface",
50
+ "AgentContinuationReceipt": "interface",
50
51
  "AgentDefinition": "interface",
51
52
  "AgentDisplayStatus": "type",
52
53
  "AgentPollDetailsInput": "interface",
@@ -229,6 +230,8 @@
229
230
  "DEFAULT_TIER_ORDER": "variable",
230
231
  "DEFAULT_TOOL_RESULT_THRESHOLD_CHARS": "variable",
231
232
  "DEGRADED_DIAGNOSTIC_TYPE": "variable",
233
+ "DELEGATION_MAX_CONCURRENT_DEFAULT": "variable",
234
+ "DELEGATION_MAX_PER_SESSION_DEFAULT": "variable",
232
235
  "DESIGN_REVIEW_PROMPTS": "variable",
233
236
  "DISCUSSION_SCRIPT": "variable",
234
237
  "DISCUSSION_WORKFLOW_NAME": "variable",
@@ -314,6 +317,8 @@
314
317
  "FileStorageBackend": "class",
315
318
  "FileStorageBackendOptions": "interface",
316
319
  "FileStorageCorruptReadInfo": "interface",
320
+ "FileStrategyStore": "class",
321
+ "FileStrategyStoreOptions": "interface",
317
322
  "FileToolResultStore": "class",
318
323
  "FileUsageWindowStore": "class",
319
324
  "FileWorkflowJournalStore": "class",
@@ -547,6 +552,8 @@
547
552
  "ORG_ADMISSION_CHECKPOINT_VERSION": "variable",
548
553
  "ORG_RULE_DECISION_REASON": "variable",
549
554
  "ORG_UNAVAILABLE_DECISION_REASON": "variable",
555
+ "ORPHAN_ADOPT_MAX_DEFAULT": "variable",
556
+ "ORPHAN_ADOPT_WINDOW_MS_DEFAULT": "variable",
550
557
  "OUTPUT_EFFICIENCY": "variable",
551
558
  "OnAsk": "type",
552
559
  "OnElicit": "type",
@@ -636,6 +643,7 @@
636
643
  "PersistedRuleMatch": "type",
637
644
  "PersistedRuleTool": "type",
638
645
  "PersistedRuleUnreadable": "interface",
646
+ "PlacedSessionRow": "type",
639
647
  "PlatformLimitReason": "type",
640
648
  "PostCompactContext": "interface",
641
649
  "PostToolBatchCall": "interface",
@@ -748,6 +756,7 @@
748
756
  "ReportedFinding": "interface",
749
757
  "ResolveExpectation": "interface",
750
758
  "ResolvedAsk": "type",
759
+ "ResolvedDelegationEntryCaps": "interface",
751
760
  "ResolvedOutcome": "interface",
752
761
  "ResolvedReasoning": "interface",
753
762
  "ResolvedRole": "interface",
@@ -831,6 +840,7 @@
831
840
  "STUB_ARCHIVED_LINE": "variable",
832
841
  "SUBAGENT_PROMPT": "variable",
833
842
  "SUBAGENT_SYSTEM_NOTE": "variable",
843
+ "SUBAGENT_TRANSCRIPT_RETENTION_DAYS_DEFAULT": "variable",
834
844
  "SUMMARIZE_TOOL_RESULTS": "variable",
835
845
  "SUPERVISOR_PROMPT": "variable",
836
846
  "SafetyAxis": "interface",
@@ -858,6 +868,8 @@
858
868
  "SecretEnvFindingKind": "type",
859
869
  "SecretRef": "interface",
860
870
  "SectionRenderInputs": "interface",
871
+ "SeedStrategiesReport": "interface",
872
+ "SeedStrategyEntry": "type",
861
873
  "SelectiveRecallOptions": "interface",
862
874
  "SelectiveRecallResult": "type",
863
875
  "SemaTaskHandle": "interface",
@@ -869,6 +881,8 @@
869
881
  "SessionError": "class",
870
882
  "SessionMetadata": "interface",
871
883
  "SessionPermissionRules": "interface",
884
+ "SessionPlacement": "interface",
885
+ "SessionPlacementRecord": "interface",
872
886
  "SessionPolicyError": "class",
873
887
  "SessionPolicyStore": "interface",
874
888
  "SessionRepo": "interface",
@@ -919,7 +933,9 @@
919
933
  "StoredSession": "class",
920
934
  "StoredSessionRules": "interface",
921
935
  "StoredStrategy": "interface",
936
+ "StrategyOrigin": "type",
922
937
  "StrategyStore": "interface",
938
+ "StrategyStoreIncident": "interface",
923
939
  "StreamFn": "type",
924
940
  "StreamingImportValidator": "class",
925
941
  "StrictControlPlaneLedger": "type",
@@ -930,6 +946,7 @@
930
946
  "SubagentSteerHandle": "interface",
931
947
  "SubagentStep": "interface",
932
948
  "SubagentToolOptions": "interface",
949
+ "SubagentTranscriptTier": "type",
933
950
  "SummarizableFinding": "interface",
934
951
  "SyncMemoryScopeOptions": "interface",
935
952
  "SyntheticContinuationReason": "type",
@@ -1206,6 +1223,7 @@
1206
1223
  "constraintChainEntryOf": "function",
1207
1224
  "cosineDistance": "function",
1208
1225
  "countElicitOptIns": "function",
1226
+ "createAgentContinuationVerb": "function",
1209
1227
  "createAgentTranscriptTool": "function",
1210
1228
  "createAllowDenyPolicy": "function",
1211
1229
  "createAnthropicBrain": "function",
@@ -1499,6 +1517,7 @@
1499
1517
  "resolveComplianceDenies": "function",
1500
1518
  "resolveDataRoot": "function",
1501
1519
  "resolveDeclaredDurability": "function",
1520
+ "resolveDelegationEntryCaps": "function",
1502
1521
  "resolveEffectiveConfig": "function",
1503
1522
  "resolveEffort": "function",
1504
1523
  "resolveFrozenPaths": "function",
@@ -1513,6 +1532,7 @@
1513
1532
  "resolveReadFace": "function",
1514
1533
  "resolveReasoning": "function",
1515
1534
  "resolveReasoningProfile": "function",
1535
+ "resolveSubagentTranscriptTier": "function",
1516
1536
  "resolveTaskLimits": "function",
1517
1537
  "resolveTaskModel": "function",
1518
1538
  "resolveUsageWindows": "function",
@@ -1557,6 +1577,7 @@
1557
1577
  "screenInboundEntries": "function",
1558
1578
  "screenRuleSyncState": "function",
1559
1579
  "scrubSecretEnv": "function",
1580
+ "seedStrategies": "function",
1560
1581
  "selectModel": "function",
1561
1582
  "selectModelOrThrow": "function",
1562
1583
  "selfOrchestrationFailClosedReason": "function",