UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

1,131 lines (1,130 loc) • 23.6 kB
{ "repo": "core", "version": "7.6.1", "from": "9ec288b9927cb677dc56ab939cb6764f3de3d980", "to": "v7.6.1", "added": [ { "name": "ProcessFingerprint", "kind": "interface", "tier": "advanced", "at": [ "src/index.ts:800", "src/stores/file/fs-atomic.ts:1164", "src/stores/file/index.ts:55" ], "criteriaCovered": false, "breaking": false }, { "name": "RunnerSelfSeat", "kind": "interface", "tier": "internal", "at": [ "src/core/runner/contracts.ts:2135", "src/index.ts:28" ], "criteriaCovered": false, "breaking": false }, { "name": "isProcessLive", "kind": "function", "tier": "advanced", "at": [ "src/index.ts:799", "src/stores/file/fs-atomic.ts:1389", "src/stores/file/index.ts:55" ], "criteriaCovered": false, "breaking": false }, { "name": "processFingerprint", "kind": "function", "tier": "advanced", "at": [ "src/index.ts:798", "src/stores/file/fs-atomic.ts:1351", "src/stores/file/index.ts:55" ], "criteriaCovered": false, "breaking": false } ], "removed": [], "changed": [], "narrowed": [ { "id": "F4", "source": "behaviorFlips.summary", "text": "design/393 S0 (byte-invariant on the runtime, one d.ts narrowing): option types' `runner` member is `RunnerSelfSeat` — the one seat the Runner implements and every consumer names (sessions / runTask / runTaskStream / resume / resumeStream / agentCatalog / emitTaskOutcome / gateBaseline)" } ], "closedSetMembers": [], "typeKeys": [], "declarationMoves": [ { "name": "A2aServerSpec", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/mcp-server-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "AgentDefinition", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/agent-definition.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "BackgroundChildEvent", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/delegation-frames.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "BeforeWriteHook", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ] }, { "name": "BeforeWriteRequest", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ] }, { "name": "BeforeWriteResult", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ] }, { "name": "Brain", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/model-seat.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "BrainRetryErrClass", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "BrainStatus", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "BrainStatusPhase", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "CompactOutcome", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "DelegationLifecycleEvent", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/delegation-frames.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "DelegationTaskType", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "EffectiveMemoryScopes", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-result.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "EngineNotice", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/engine-notice.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "FileEditedHook", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "FileEditedNotice", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "HandsBandOptions", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "HumanInputDelivery", "kind": "type", "onSurface": true, "from": [ "src/core/human-input-projection.ts", "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/human-input-projection.ts", "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "HumanInputEvent", "kind": "type", "onSurface": true, "from": [ "src/core/human-input-projection.ts", "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/human-input-projection.ts", "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "HumanInputSource", "kind": "type", "onSurface": true, "from": [ "src/core/human-input-projection.ts", "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/human-input-projection.ts", "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ImageInput", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "McpElicitRequest", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/mcp-server-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "McpElicitResponse", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/mcp-server-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "McpServerSpec", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/mcp-server-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ModelRef", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/model-seat.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ModelRole", "kind": "type", "onSurface": true, "from": [ "src/core/roles.ts", "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/model-seat.ts", "src/core/roles.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ModelRoles", "kind": "type", "onSurface": true, "from": [ "src/core/roles.ts", "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/model-seat.ts", "src/core/roles.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "NestedUsage", "kind": null, "onSurface": false, "from": [ "src/core/types.ts" ], "to": [ "src/core/tool-spec.ts", "src/core/types.ts" ] }, { "name": "NestedUsageAccum", "kind": null, "onSurface": false, "from": [ "src/core/types.ts" ], "to": [ "src/core/tool-spec.ts", "src/core/types.ts" ] }, { "name": "OnElicit", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/mcp-server-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ProjectMemoryLoad", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/runner-deps.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "RemoteEnvFailureNote", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-result.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ResumePreflightInfo", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/runner-deps.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ResumePreflightVerdict", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/runner-deps.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ResumeTaskConfig", "kind": "type", "onSurface": true, "from": [ "src/core/runner/runtask.ts", "src/index.ts" ], "to": [ "src/core/runner/contracts.ts", "src/core/runner/runtask.ts", "src/index.ts" ] }, { "name": "ReversibilityVerdict", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/tool-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "RoleSpec", "kind": "type", "onSurface": true, "from": [ "src/core/roles.ts", "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/model-seat.ts", "src/core/roles.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "RunnerDeps", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/runner-deps.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "RuntimeCaps", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/runtime-caps.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "SkillManifest", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/agent-definition.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "SkillSpec", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/agent-definition.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "StaleToolResultOffloadOptions", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "TaskEvent", "kind": "type", "onSurface": true, "from": [ "src/core/runner/runtask.ts", "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/runner/runtask.ts", "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "TaskEventIdentity", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "TaskLimits", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-limits.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "TaskResult", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-result.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "TaskSpec", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "TaskStatus", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-result.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "TaskStream", "kind": "interface", "onSurface": true, "from": [ "src/core/runner/runtask.ts", "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/runner/runtask.ts", "src/core/task-stream.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ToolActivity", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/task-event.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ToolContentOrigin", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/tool-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ToolEffect", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/tool-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ToolExecuteContext", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/tool-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ToolReturn", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/tool-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "ToolSpec", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/tool-spec.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "TrackEditRequest", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ] }, { "name": "TrackEditResult", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ] }, { "name": "TrackFileEditHook", "kind": "type", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ], "to": [ "src/core/hands-band.ts", "src/core/types.ts", "src/index.ts", "src/tools/fs/fs-write.ts" ] }, { "name": "WorkflowGovernanceBaseline", "kind": "interface", "onSurface": true, "from": [ "src/core/types.ts", "src/index.ts" ], "to": [ "src/core/runtime-caps.ts", "src/core/types.ts", "src/index.ts" ] }, { "name": "__resetMalformedDelegationSeatAnnouncement", "kind": null, "onSurface": false, "from": [ "src/core/types.ts" ], "to": [ "src/core/delegation-frames.ts", "src/core/types.ts" ] }, { "name": "__resetMalformedNoticeSeatAnnouncement", "kind": null, "onSurface": false, "from": [ "src/core/types.ts" ], "to": [ "src/core/engine-notice.ts", "src/core/types.ts" ] }, { "name": "cloneObserverInput", "kind": null, "onSurface": false, "from": [ "src/core/hooks.ts" ], "to": [ "src/core/hooks.ts", "src/core/runner/gate-exit.ts" ] }, { "name": "deliverDelegationLifecycle", "kind": null, "onSurface": false, "from": [ "src/core/types.ts" ], "to": [ "src/core/delegation-frames.ts", "src/core/types.ts" ] }, { "name": "deliverEngineNotice", "kind": null, "onSurface": false, "from": [ "src/core/types.ts" ], "to": [ "src/core/engine-notice.ts", "src/core/types.ts" ] }, { "name": "formatHookFeedback", "kind": "function", "onSurface": true, "from": [ "src/core/hooks.ts", "src/index.ts" ], "to": [ "src/core/hooks.ts", "src/core/reminder-mint.ts", "src/index.ts" ] }, { "name": "normalizeOrgGateVerdict", "kind": null, "onSurface": false, "from": [ "src/core/hooks.ts" ], "to": [ "src/core/gate-lanes.ts", "src/core/hooks.ts" ] }, { "name": "normalizePersistedRuleHit", "kind": "function", "onSurface": true, "from": [ "src/core/hooks.ts", "src/index.ts" ], "to": [ "src/core/gate-lanes.ts", "src/core/hooks.ts", "src/index.ts" ] }, { "name": "persistedRuleMandateOf", "kind": null, "onSurface": false, "from": [ "src/core/hooks.ts" ], "to": [ "src/core/gate-lanes.ts", "src/core/hooks.ts" ] }, { "name": "undrainedUserInputNotices", "kind": null, "onSurface": false, "from": [ "src/core/types.ts" ], "to": [ "src/core/engine-notice.ts", "src/core/types.ts" ] } ], "mintMoves": [ { "code": "task.user_followup_undrained", "from": [ "src/core/types.ts" ], "to": [ "src/core/engine-notice.ts" ] }, { "code": "task.user_steer_undrained", "from": [ "src/core/types.ts" ], "to": [ "src/core/engine-notice.ts" ] } ], "criteriaObserves": [ { "kind": "taskEventField", "name": "tool_end.gate", "assertions": [ "G4.a", "G5.a" ] }, { "kind": "typeMember", "name": "FileStoreLockError.ownerPid", "assertions": [ "G1.a" ] }, { "kind": "typeMember", "name": "McpFailure.delivered", "assertions": [ "G3.a" ] }, { "kind": "typeMember", "name": "McpFailure.kind", "assertions": [ "G3.a" ] }, { "kind": "typeMember", "name": "RealApprovalGateBit.origin", "assertions": [ "G2.a" ] }, { "kind": "typeMember", "name": "TaskResult.terminal", "assertions": [ "G4.a" ] } ], "consumersHint": { "cli": [], "server": [], "sdk": [], "note": "scanned cli@c7ba1cca server@b8a3b6f5 sdk@b66b19e — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it" }, "breakingCount": 0, "breakingItems": [], "toResolvedAt": "957cc647a0bd382935a9f8b7b310100e2bca21f4" }