@sema-agent/core 5.55.0 → 5.57.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.
- package/CHANGELOG.md +140 -0
- package/dist/agents/send-message-tool.d.ts +11 -0
- package/dist/agents/send-message-tool.js +81 -13
- package/dist/agents/subagent.js +250 -89
- package/dist/agents/team.d.ts +10 -1
- package/dist/agents/team.js +1 -0
- package/dist/brain/anthropic.js +15 -5
- package/dist/brain/circuit-breaker.js +2 -1
- package/dist/brain/degrading.js +4 -1
- package/dist/brain/failover.js +16 -1
- package/dist/brain/open-responses.js +15 -5
- package/dist/brain/openai.js +16 -5
- package/dist/brain/request-params.d.ts +30 -27
- package/dist/brain/request-params.js +1 -7
- package/dist/brain/route-adjudicator.d.ts +190 -0
- package/dist/brain/route-adjudicator.js +189 -0
- package/dist/brain/route-conformance.d.ts +55 -0
- package/dist/brain/route-conformance.js +136 -0
- package/dist/brain/routing.js +8 -3
- package/dist/core/auto-compaction.d.ts +17 -4
- package/dist/core/auto-compaction.js +3 -0
- package/dist/core/context-edit.d.ts +55 -6
- package/dist/core/context-edit.js +12 -1
- package/dist/core/hooks.d.ts +293 -11
- package/dist/core/hooks.js +158 -11
- package/dist/core/human-input-projection.d.ts +20 -2
- package/dist/core/human-input-projection.js +9 -0
- package/dist/core/mcp.js +4 -4
- package/dist/core/memory-engine/engine.d.ts +15 -5
- package/dist/core/memory-engine/engine.js +3 -1
- package/dist/core/permission-rule-consent.d.ts +45 -0
- package/dist/core/permission-rule-consent.js +40 -11
- package/dist/core/permission-rule-model.d.ts +110 -75
- package/dist/core/permission-rule-model.js +61 -28
- package/dist/core/permission-rules.d.ts +23 -15
- package/dist/core/permission-rules.js +40 -31
- package/dist/core/runner/prepare-task.d.ts +8 -0
- package/dist/core/runner/prepare-task.js +66 -26
- package/dist/core/runner/runtask.d.ts +4 -1
- package/dist/core/runner/runtask.js +206 -21
- package/dist/core/runner/session-rule-policy.js +5 -5
- package/dist/core/scheduler.d.ts +5 -0
- package/dist/core/session-reconcile.d.ts +32 -0
- package/dist/core/session-reconcile.js +15 -0
- package/dist/core/side-query.d.ts +12 -5
- package/dist/core/task-notification.d.ts +34 -7
- package/dist/core/task-notification.js +11 -1
- package/dist/core/task-registry-agent.d.ts +20 -3
- package/dist/core/task-registry-agent.js +31 -2
- package/dist/core/tool-policy.d.ts +14 -9
- package/dist/core/tool-policy.js +27 -22
- package/dist/core/types.d.ts +69 -11
- package/dist/core/untrusted-text.js +8 -0
- package/dist/engine/compaction/compaction.d.ts +77 -7
- package/dist/engine/compaction/compaction.js +98 -9
- package/dist/engine/compaction/utils.d.ts +4 -0
- package/dist/engine/compaction/utils.js +6 -0
- package/dist/engine/harness/agent-harness.d.ts +84 -0
- package/dist/engine/harness/agent-harness.js +114 -13
- package/dist/engine/harness/messages.d.ts +4 -2
- package/dist/engine/harness/messages.js +7 -2
- package/dist/engine/harness/types.d.ts +16 -6
- package/dist/engine/llm/types.d.ts +65 -0
- package/dist/engine/loop/types.d.ts +7 -0
- package/dist/engine/session/import-validate.js +10 -0
- package/dist/engine/session/session.js +2 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3 -1
- package/dist/internal/llm.d.ts +1 -1
- package/dist/orchestration/run-spec.js +8 -1
- package/dist/prompts/default.d.ts +12 -6
- package/dist/prompts/default.js +2 -0
- package/dist/scenarios/scenario-registry.d.ts +5 -1
- package/dist/scenarios/scenario-registry.js +4 -2
- package/dist/tools/fs/index.js +8 -1
- package/dist/tools/scheduler-tools.js +28 -6
- package/dist/tools/web.d.ts +15 -0
- package/dist/tools/web.js +8 -2
- package/dist/tools/worktree.js +2 -2
- package/package.json +1 -1
- package/test/export-surface.snapshot.json +19 -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":
|
|
3
|
+
"count": 1696,
|
|
4
4
|
"exports": {
|
|
5
5
|
"A2ATaskState": "type",
|
|
6
6
|
"A2ATaskStateReversal": "type",
|
|
@@ -269,6 +269,7 @@
|
|
|
269
269
|
"EXPLORE_SYSTEM_PROMPT": "variable",
|
|
270
270
|
"EXPLORE_WHEN_TO_USE": "variable",
|
|
271
271
|
"EXPLORE_WHEN_TO_USE_LEAN": "variable",
|
|
272
|
+
"EditedRuleTextPrecheck": "type",
|
|
272
273
|
"EffectiveConfigField": "interface",
|
|
273
274
|
"EffectiveMemoryScopes": "type",
|
|
274
275
|
"EffectivePermissionRule": "interface",
|
|
@@ -729,6 +730,7 @@
|
|
|
729
730
|
"RETRYABLE_REMOTE_ERROR_CODES": "variable",
|
|
730
731
|
"ROLE_TIER_DEFAULTS": "variable",
|
|
731
732
|
"ROOT_ADOPTION_FILE": "variable",
|
|
733
|
+
"ROUTE_ADJUDICATION_CONFORMANCE_CORPUS": "variable",
|
|
732
734
|
"RULE_SYNC_DROP_CODES": "variable",
|
|
733
735
|
"RUN_WORKFLOW_TOOL_NAME": "variable",
|
|
734
736
|
"RawPrefixInputs": "interface",
|
|
@@ -801,6 +803,15 @@
|
|
|
801
803
|
"RosterEntry": "interface",
|
|
802
804
|
"RosterGcOptions": "interface",
|
|
803
805
|
"RosterStore": "interface",
|
|
806
|
+
"RouteAdjudication": "type",
|
|
807
|
+
"RouteAdjudicationVector": "interface",
|
|
808
|
+
"RouteCredential": "interface",
|
|
809
|
+
"RouteCredentialSource": "type",
|
|
810
|
+
"RoutePairingConfig": "interface",
|
|
811
|
+
"RoutePairingPosture": "type",
|
|
812
|
+
"RoutePairingStatus": "type",
|
|
813
|
+
"RouteRefusalCode": "type",
|
|
814
|
+
"RouteRefusalDetail": "interface",
|
|
804
815
|
"RoutingBrainOptions": "interface",
|
|
805
816
|
"RuleAdd": "interface",
|
|
806
817
|
"RuleAddDelta": "interface",
|
|
@@ -1142,6 +1153,7 @@
|
|
|
1142
1153
|
"acquireCcLock": "function",
|
|
1143
1154
|
"addDotsOf": "function",
|
|
1144
1155
|
"addWorktree": "function",
|
|
1156
|
+
"adjudicateModelRoute": "function",
|
|
1145
1157
|
"admitMemoryScopes": "function",
|
|
1146
1158
|
"adoptFilePermissionRuleStore": "function",
|
|
1147
1159
|
"adoptLocalDataRoot": "function",
|
|
@@ -1386,6 +1398,7 @@
|
|
|
1386
1398
|
"guardedMemoryStore": "function",
|
|
1387
1399
|
"harnessContext": "function",
|
|
1388
1400
|
"harvestFilesToPatches": "function",
|
|
1401
|
+
"hasAuthCarrier": "function",
|
|
1389
1402
|
"hasBackgroundShell": "function",
|
|
1390
1403
|
"hasDestroy": "function",
|
|
1391
1404
|
"hasScheduler": "function",
|
|
@@ -1461,6 +1474,7 @@
|
|
|
1461
1474
|
"mysqlQuery": "function",
|
|
1462
1475
|
"nextSyncBaseline": "function",
|
|
1463
1476
|
"normalizeAgentName": "function",
|
|
1477
|
+
"normalizeBaseUrl": "function",
|
|
1464
1478
|
"normalizeForExactMatch": "function",
|
|
1465
1479
|
"normalizeMemorySpec": "function",
|
|
1466
1480
|
"normalizePersistedRuleHit": "function",
|
|
@@ -1494,6 +1508,7 @@
|
|
|
1494
1508
|
"peerAxisToken": "function",
|
|
1495
1509
|
"permissionRuleSyncContract": "function",
|
|
1496
1510
|
"pgQuery": "function",
|
|
1511
|
+
"precheckEditedRuleText": "function",
|
|
1497
1512
|
"prepareCardApproval": "function",
|
|
1498
1513
|
"prepareCcImport": "function",
|
|
1499
1514
|
"prepareStarterBatch": "function",
|
|
@@ -1563,6 +1578,7 @@
|
|
|
1563
1578
|
"resolveReadFace": "function",
|
|
1564
1579
|
"resolveReasoning": "function",
|
|
1565
1580
|
"resolveReasoningProfile": "function",
|
|
1581
|
+
"resolveRouteCredential": "function",
|
|
1566
1582
|
"resolveSubagentTranscriptTier": "function",
|
|
1567
1583
|
"resolveTaskLimits": "function",
|
|
1568
1584
|
"resolveTaskModel": "function",
|
|
@@ -1573,6 +1589,8 @@
|
|
|
1573
1589
|
"retiredWorkflowNameAliases": "function",
|
|
1574
1590
|
"retryBackoffMs": "function",
|
|
1575
1591
|
"riskSeverity": "function",
|
|
1592
|
+
"routePairingStatus": "function",
|
|
1593
|
+
"routeRefusalText": "function",
|
|
1576
1594
|
"ruleAdmitsCommand": "function",
|
|
1577
1595
|
"ruleSyncVector": "function",
|
|
1578
1596
|
"runCascade": "function",
|