@sema-agent/core 5.46.0 → 5.48.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 (78) hide show
  1. package/CHANGELOG.md +93 -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 +231 -4
  8. package/dist/config/defaults.d.ts +20 -0
  9. package/dist/config/defaults.js +5 -0
  10. package/dist/core/background-agent-store.d.ts +1 -0
  11. package/dist/core/background-agent-store.js +13 -0
  12. package/dist/core/governance-codes.d.ts +13 -0
  13. package/dist/core/governance-codes.js +33 -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 +318 -0
  17. package/dist/core/memory-engine/delegation-settlement.js +661 -0
  18. package/dist/core/memory-engine/engine.d.ts +159 -1
  19. package/dist/core/memory-engine/engine.js +699 -15
  20. package/dist/core/memory-engine/file-backend.d.ts +1 -0
  21. package/dist/core/memory-engine/file-backend.js +3 -1
  22. package/dist/core/memory-engine/frontmatter.d.ts +46 -19
  23. package/dist/core/memory-engine/frontmatter.js +91 -77
  24. package/dist/core/memory-engine/index.d.ts +4 -3
  25. package/dist/core/memory-engine/index.js +3 -2
  26. package/dist/core/memory-engine/layout.d.ts +14 -0
  27. package/dist/core/memory-engine/layout.js +2 -2
  28. package/dist/core/memory-engine/memory-backend-contract.js +43 -0
  29. package/dist/core/memory-engine/origin-clearance.d.ts +66 -0
  30. package/dist/core/memory-engine/origin-clearance.js +84 -0
  31. package/dist/core/memory-engine/provenance-wording.d.ts +50 -0
  32. package/dist/core/memory-engine/provenance-wording.js +15 -0
  33. package/dist/core/memory-engine/tools.d.ts +61 -7
  34. package/dist/core/memory-engine/tools.js +34 -9
  35. package/dist/core/memory-engine/types.d.ts +70 -2
  36. package/dist/core/reminder-disclosure.d.ts +90 -0
  37. package/dist/core/reminder-disclosure.js +64 -0
  38. package/dist/core/runner/prepare-acquire-reconcile.d.ts +6 -0
  39. package/dist/core/runner/prepare-acquire-reconcile.js +1 -1
  40. package/dist/core/runner/prepare-hands-readface.d.ts +4 -0
  41. package/dist/core/runner/prepare-hands-readface.js +1 -0
  42. package/dist/core/runner/prepare-memory.js +50 -15
  43. package/dist/core/runner/prepare-task.d.ts +39 -0
  44. package/dist/core/runner/prepare-task.js +128 -40
  45. package/dist/core/runner/runtask.js +3 -1
  46. package/dist/core/session-reconcile.js +3 -2
  47. package/dist/core/session-store.d.ts +59 -1
  48. package/dist/core/session-store.js +82 -14
  49. package/dist/core/session.d.ts +83 -1
  50. package/dist/core/task-registry-agent.d.ts +28 -0
  51. package/dist/core/task-registry-agent.js +63 -2
  52. package/dist/core/task-registry.d.ts +21 -0
  53. package/dist/core/task-registry.js +4 -1
  54. package/dist/core/types.d.ts +98 -3
  55. package/dist/core/types.js +3 -0
  56. package/dist/core/untrusted-text.d.ts +63 -0
  57. package/dist/core/untrusted-text.js +48 -0
  58. package/dist/core/wiring-manifest.d.ts +35 -0
  59. package/dist/core/wiring-manifest.js +21 -1
  60. package/dist/engine/harness/types.d.ts +36 -1
  61. package/dist/index.d.ts +7 -5
  62. package/dist/index.js +6 -4
  63. package/dist/internal/harness-types.d.ts +1 -0
  64. package/dist/stores/file/index.d.ts +19 -3
  65. package/dist/stores/file/index.js +24 -1
  66. package/dist/stores/file/session-store.d.ts +18 -4
  67. package/dist/stores/file/session-store.js +73 -12
  68. package/dist/tools/fs/fs-pdf.d.ts +12 -1
  69. package/dist/tools/fs/fs-pdf.js +17 -3
  70. package/dist/tools/fs/fs-read.d.ts +2 -1
  71. package/dist/tools/fs/fs-read.js +33 -5
  72. package/dist/tools/fs/fs-shared.d.ts +6 -2
  73. package/dist/tools/fs/index.d.ts +7 -0
  74. package/dist/tools/fs/index.js +1 -1
  75. package/dist/tools/task-list.d.ts +5 -1
  76. package/dist/tools/web.js +21 -2
  77. package/package.json +3 -2
  78. package/test/export-surface.snapshot.json +24 -2
@@ -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": 1617,
3
+ "count": 1639,
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",
@@ -172,6 +173,7 @@
172
173
  "CheckpointSummary": "interface",
173
174
  "CheckpointToken": "type",
174
175
  "CircuitBreakerOptions": "interface",
176
+ "CleanMemorySearchHit": "interface",
175
177
  "CodeReviewMode": "type",
176
178
  "CodeToolsConfig": "interface",
177
179
  "CommittedBinding": "type",
@@ -228,6 +230,8 @@
228
230
  "DEFAULT_TIER_ORDER": "variable",
229
231
  "DEFAULT_TOOL_RESULT_THRESHOLD_CHARS": "variable",
230
232
  "DEGRADED_DIAGNOSTIC_TYPE": "variable",
233
+ "DELEGATION_MAX_CONCURRENT_DEFAULT": "variable",
234
+ "DELEGATION_MAX_PER_SESSION_DEFAULT": "variable",
231
235
  "DESIGN_REVIEW_PROMPTS": "variable",
232
236
  "DISCUSSION_SCRIPT": "variable",
233
237
  "DISCUSSION_WORKFLOW_NAME": "variable",
@@ -279,6 +283,7 @@
279
283
  "ExecutionError": "class",
280
284
  "ExecutionErrorCode": "type",
281
285
  "ExplainInput": "interface",
286
+ "ExposedMemorySearchHit": "interface",
282
287
  "ExternalNotificationInput": "interface",
283
288
  "F012_CHECKPOINT_VERSION": "variable",
284
289
  "FABLE_5_COMPAT": "variable",
@@ -429,6 +434,8 @@
429
434
  "MCP_PREFIX": "variable",
430
435
  "MEMORY_ANNOUNCEMENTS_MAX": "variable",
431
436
  "MEMORY_ENGINE_TOOL_NAMES": "variable",
437
+ "MEMORY_EXPOSURE_BANNER": "variable",
438
+ "MEMORY_EXPOSURE_HANDLE_TAG": "variable",
432
439
  "MEMORY_FILENAME_SEGMENT_RE": "variable",
433
440
  "MEMORY_GET_TOOL_NAME": "variable",
434
441
  "MEMORY_GUIDANCE": "variable",
@@ -498,7 +505,7 @@
498
505
  "MemoryScopeOrigin": "type",
499
506
  "MemoryScopeRequest": "interface",
500
507
  "MemorySearchDetails": "interface",
501
- "MemorySearchHit": "interface",
508
+ "MemorySearchHit": "type",
502
509
  "MemorySelectRequest": "interface",
503
510
  "MemorySelector": "type",
504
511
  "MemorySessionHandle": "interface",
@@ -525,6 +532,7 @@
525
532
  "ModelTier": "type",
526
533
  "MonitorTimers": "interface",
527
534
  "MonitorToolOptions": "interface",
535
+ "NOTICE_AUDIENCE": "variable",
528
536
  "NO_PERSISTENT_MEMORY_NOTICE": "variable",
529
537
  "NamedToolPolicy": "type",
530
538
  "NamedWorkflowListing": "interface",
@@ -542,6 +550,8 @@
542
550
  "ORG_ADMISSION_CHECKPOINT_VERSION": "variable",
543
551
  "ORG_RULE_DECISION_REASON": "variable",
544
552
  "ORG_UNAVAILABLE_DECISION_REASON": "variable",
553
+ "ORPHAN_ADOPT_MAX_DEFAULT": "variable",
554
+ "ORPHAN_ADOPT_WINDOW_MS_DEFAULT": "variable",
545
555
  "OUTPUT_EFFICIENCY": "variable",
546
556
  "OnAsk": "type",
547
557
  "OnElicit": "type",
@@ -631,6 +641,7 @@
631
641
  "PersistedRuleMatch": "type",
632
642
  "PersistedRuleTool": "type",
633
643
  "PersistedRuleUnreadable": "interface",
644
+ "PlacedSessionRow": "type",
634
645
  "PlatformLimitReason": "type",
635
646
  "PostCompactContext": "interface",
636
647
  "PostToolBatchCall": "interface",
@@ -743,6 +754,7 @@
743
754
  "ReportedFinding": "interface",
744
755
  "ResolveExpectation": "interface",
745
756
  "ResolvedAsk": "type",
757
+ "ResolvedDelegationEntryCaps": "interface",
746
758
  "ResolvedOutcome": "interface",
747
759
  "ResolvedReasoning": "interface",
748
760
  "ResolvedRole": "interface",
@@ -826,6 +838,7 @@
826
838
  "STUB_ARCHIVED_LINE": "variable",
827
839
  "SUBAGENT_PROMPT": "variable",
828
840
  "SUBAGENT_SYSTEM_NOTE": "variable",
841
+ "SUBAGENT_TRANSCRIPT_RETENTION_DAYS_DEFAULT": "variable",
829
842
  "SUMMARIZE_TOOL_RESULTS": "variable",
830
843
  "SUPERVISOR_PROMPT": "variable",
831
844
  "SafetyAxis": "interface",
@@ -864,6 +877,8 @@
864
877
  "SessionError": "class",
865
878
  "SessionMetadata": "interface",
866
879
  "SessionPermissionRules": "interface",
880
+ "SessionPlacement": "interface",
881
+ "SessionPlacementRecord": "interface",
867
882
  "SessionPolicyError": "class",
868
883
  "SessionPolicyStore": "interface",
869
884
  "SessionRepo": "interface",
@@ -925,6 +940,7 @@
925
940
  "SubagentSteerHandle": "interface",
926
941
  "SubagentStep": "interface",
927
942
  "SubagentToolOptions": "interface",
943
+ "SubagentTranscriptTier": "type",
928
944
  "SummarizableFinding": "interface",
929
945
  "SyncMemoryScopeOptions": "interface",
930
946
  "SyntheticContinuationReason": "type",
@@ -1105,6 +1121,7 @@
1105
1121
  "adoptLocalDataRoot": "function",
1106
1122
  "advanceCursorAfterInline": "function",
1107
1123
  "agentWhenToUseText": "function",
1124
+ "ambiguousOriginRepresentation": "function",
1108
1125
  "analyzePromptCacheFriendliness": "function",
1109
1126
  "appendHopToken": "function",
1110
1127
  "appendPendingSteer": "function",
@@ -1200,6 +1217,7 @@
1200
1217
  "constraintChainEntryOf": "function",
1201
1218
  "cosineDistance": "function",
1202
1219
  "countElicitOptIns": "function",
1220
+ "createAgentContinuationVerb": "function",
1203
1221
  "createAgentTranscriptTool": "function",
1204
1222
  "createAllowDenyPolicy": "function",
1205
1223
  "createAnthropicBrain": "function",
@@ -1393,6 +1411,7 @@
1393
1411
  "materializeMcpTools": "function",
1394
1412
  "maybeCompact": "function",
1395
1413
  "memoryBackendContract": "function",
1414
+ "memoryExposureIndexRow": "function",
1396
1415
  "mergeRecallHits": "function",
1397
1416
  "mergeWorkflowArgs": "function",
1398
1417
  "migrateScope": "function",
@@ -1412,6 +1431,7 @@
1412
1431
  "normalizePromptEpoch": "function",
1413
1432
  "normalizeRules": "function",
1414
1433
  "normalizeToolResultProvenance": "function",
1434
+ "noticeAudienceOf": "function",
1415
1435
  "ok": "function",
1416
1436
  "openSystemReminder": "function",
1417
1437
  "orgRuleStatePersistenceOf": "function",
@@ -1491,6 +1511,7 @@
1491
1511
  "resolveComplianceDenies": "function",
1492
1512
  "resolveDataRoot": "function",
1493
1513
  "resolveDeclaredDurability": "function",
1514
+ "resolveDelegationEntryCaps": "function",
1494
1515
  "resolveEffectiveConfig": "function",
1495
1516
  "resolveEffort": "function",
1496
1517
  "resolveFrozenPaths": "function",
@@ -1505,6 +1526,7 @@
1505
1526
  "resolveReadFace": "function",
1506
1527
  "resolveReasoning": "function",
1507
1528
  "resolveReasoningProfile": "function",
1529
+ "resolveSubagentTranscriptTier": "function",
1508
1530
  "resolveTaskLimits": "function",
1509
1531
  "resolveTaskModel": "function",
1510
1532
  "resolveUsageWindows": "function",