agentfootprint 9.96.1 → 9.98.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 +77 -0
- package/dist/artifacts/datasetResult.js +119 -0
- package/dist/artifacts/datasetResult.js.map +1 -0
- package/dist/artifacts/index.js +4 -1
- package/dist/artifacts/index.js.map +1 -1
- package/dist/core/Agent.js +43 -6
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/RunnerBase.js +10 -0
- package/dist/core/RunnerBase.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +22 -3
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/inputRequest.js +202 -0
- package/dist/core/inputRequest.js.map +1 -0
- package/dist/core/pause.js +17 -1
- package/dist/core/pause.js.map +1 -1
- package/dist/core/toolSessions.js +10 -8
- package/dist/core/toolSessions.js.map +1 -1
- package/dist/esm/artifacts/datasetResult.d.ts +44 -0
- package/dist/esm/artifacts/datasetResult.js +114 -0
- package/dist/esm/artifacts/datasetResult.js.map +1 -0
- package/dist/esm/artifacts/index.d.ts +1 -0
- package/dist/esm/artifacts/index.js +1 -0
- package/dist/esm/artifacts/index.js.map +1 -1
- package/dist/esm/core/Agent.d.ts +2 -2
- package/dist/esm/core/Agent.js +43 -6
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/RunnerBase.d.ts +7 -0
- package/dist/esm/core/RunnerBase.js +10 -0
- package/dist/esm/core/RunnerBase.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.d.ts +1 -0
- package/dist/esm/core/agent/stages/toolCalls.js +22 -3
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/inputRequest.d.ts +62 -0
- package/dist/esm/core/inputRequest.js +194 -0
- package/dist/esm/core/inputRequest.js.map +1 -0
- package/dist/esm/core/pause.d.ts +9 -0
- package/dist/esm/core/pause.js +14 -0
- package/dist/esm/core/pause.js.map +1 -1
- package/dist/esm/core/toolSessions.d.ts +10 -7
- package/dist/esm/core/toolSessions.js +10 -8
- package/dist/esm/core/toolSessions.js.map +1 -1
- package/dist/esm/hosting/httpHost.js +7 -2
- package/dist/esm/hosting/httpHost.js.map +1 -1
- package/dist/esm/hosting/index.d.ts +1 -1
- package/dist/esm/hosting/index.js +1 -1
- package/dist/esm/hosting/index.js.map +1 -1
- package/dist/esm/hosting/ingressRecord.js +8 -3
- package/dist/esm/hosting/ingressRecord.js.map +1 -1
- package/dist/esm/hosting/sessionWire.d.ts +7 -0
- package/dist/esm/hosting/sessionWire.js +6 -3
- package/dist/esm/hosting/sessionWire.js.map +1 -1
- package/dist/esm/hosting/standingAgent.js +70 -4
- package/dist/esm/hosting/standingAgent.js.map +1 -1
- package/dist/esm/hosting/types.d.ts +3 -0
- package/dist/esm/hosting/types.js.map +1 -1
- package/dist/esm/hosting/wireOps.d.ts +2 -0
- package/dist/esm/hosting/wireOps.js +4 -1
- package/dist/esm/hosting/wireOps.js.map +1 -1
- package/dist/esm/index.d.ts +5 -3
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/integrity/assertion/conflicts.d.ts +5 -32
- package/dist/esm/integrity/assertion/conflicts.js +6 -69
- package/dist/esm/integrity/assertion/conflicts.js.map +1 -1
- package/dist/esm/integrity/assertion/types.d.ts +8 -69
- package/dist/esm/integrity/assertion/types.js +0 -0
- package/dist/esm/integrity/assertion/types.js.map +1 -1
- package/dist/esm/lib/injection-engine/factories/defineMenuHint.js +3 -5
- package/dist/esm/lib/injection-engine/factories/defineMenuHint.js.map +1 -1
- package/dist/esm/lib/injection-engine/skillToolDescriptors.d.ts +4 -2
- package/dist/esm/lib/injection-engine/skillToolDescriptors.js +17 -8
- package/dist/esm/lib/injection-engine/skillToolDescriptors.js.map +1 -1
- package/dist/esm/lib/mcp/mcpClient.js +5 -97
- package/dist/esm/lib/mcp/mcpClient.js.map +1 -1
- package/dist/esm/lib/mcp/mockMcpClient.d.ts +8 -4
- package/dist/esm/lib/mcp/mockMcpClient.js +6 -5
- package/dist/esm/lib/mcp/mockMcpClient.js.map +1 -1
- package/dist/esm/lib/mcp/toolResult.d.ts +8 -0
- package/dist/esm/lib/mcp/toolResult.js +244 -0
- package/dist/esm/lib/mcp/toolResult.js.map +1 -0
- package/dist/esm/lib/mcp/types.d.ts +15 -0
- package/dist/esm/lib/semantics/check.d.ts +7 -1
- package/dist/esm/lib/semantics/check.js +16 -0
- package/dist/esm/lib/semantics/check.js.map +1 -1
- package/dist/esm/lib/semantics/cli.js +3 -0
- package/dist/esm/lib/semantics/cli.js.map +1 -1
- package/dist/esm/lib/semantics/projection.d.ts +15 -0
- package/dist/esm/lib/semantics/projection.js +186 -0
- package/dist/esm/lib/semantics/projection.js.map +1 -0
- package/dist/esm/lib/time-travel/index.d.ts +1 -1
- package/dist/esm/lib/time-travel/index.js.map +1 -1
- package/dist/esm/lib/time-travel/receipt.d.ts +5 -0
- package/dist/esm/lib/time-travel/receipt.js +2 -0
- package/dist/esm/lib/time-travel/receipt.js.map +1 -1
- package/dist/esm/lib/time-travel/requestMeasurement.d.ts +33 -0
- package/dist/esm/lib/time-travel/requestMeasurement.js +120 -0
- package/dist/esm/lib/time-travel/requestMeasurement.js.map +1 -0
- package/dist/esm/lib/time-travel/servedView.js +8 -1
- package/dist/esm/lib/time-travel/servedView.js.map +1 -1
- package/dist/hosting/httpHost.js +6 -1
- package/dist/hosting/httpHost.js.map +1 -1
- package/dist/hosting/index.js +2 -1
- package/dist/hosting/index.js.map +1 -1
- package/dist/hosting/ingressRecord.js +7 -2
- package/dist/hosting/ingressRecord.js.map +1 -1
- package/dist/hosting/sessionWire.js +7 -4
- package/dist/hosting/sessionWire.js.map +1 -1
- package/dist/hosting/standingAgent.js +69 -3
- package/dist/hosting/standingAgent.js.map +1 -1
- package/dist/hosting/types.js.map +1 -1
- package/dist/hosting/wireOps.js +4 -1
- package/dist/hosting/wireOps.js.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/integrity/assertion/conflicts.js +6 -69
- package/dist/integrity/assertion/conflicts.js.map +1 -1
- package/dist/integrity/assertion/types.js +0 -0
- package/dist/integrity/assertion/types.js.map +1 -1
- package/dist/lib/injection-engine/factories/defineMenuHint.js +3 -5
- package/dist/lib/injection-engine/factories/defineMenuHint.js.map +1 -1
- package/dist/lib/injection-engine/skillToolDescriptors.js +17 -8
- package/dist/lib/injection-engine/skillToolDescriptors.js.map +1 -1
- package/dist/lib/mcp/mcpClient.js +5 -97
- package/dist/lib/mcp/mcpClient.js.map +1 -1
- package/dist/lib/mcp/mockMcpClient.js +6 -5
- package/dist/lib/mcp/mockMcpClient.js.map +1 -1
- package/dist/lib/mcp/toolResult.js +249 -0
- package/dist/lib/mcp/toolResult.js.map +1 -0
- package/dist/lib/semantics/check.js +16 -0
- package/dist/lib/semantics/check.js.map +1 -1
- package/dist/lib/semantics/cli.js +3 -0
- package/dist/lib/semantics/cli.js.map +1 -1
- package/dist/lib/semantics/projection.js +191 -0
- package/dist/lib/semantics/projection.js.map +1 -0
- package/dist/lib/time-travel/index.js.map +1 -1
- package/dist/lib/time-travel/receipt.js +2 -0
- package/dist/lib/time-travel/receipt.js.map +1 -1
- package/dist/lib/time-travel/requestMeasurement.js +124 -0
- package/dist/lib/time-travel/requestMeasurement.js.map +1 -0
- package/dist/lib/time-travel/servedView.js +8 -1
- package/dist/lib/time-travel/servedView.js.map +1 -1
- package/dist/types/artifacts/datasetResult.d.ts +45 -0
- package/dist/types/artifacts/datasetResult.d.ts.map +1 -0
- package/dist/types/artifacts/index.d.ts +1 -0
- package/dist/types/artifacts/index.d.ts.map +1 -1
- package/dist/types/core/Agent.d.ts +2 -2
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/RunnerBase.d.ts +7 -0
- package/dist/types/core/RunnerBase.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts +1 -0
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/inputRequest.d.ts +63 -0
- package/dist/types/core/inputRequest.d.ts.map +1 -0
- package/dist/types/core/pause.d.ts +9 -0
- package/dist/types/core/pause.d.ts.map +1 -1
- package/dist/types/core/toolSessions.d.ts +10 -7
- package/dist/types/core/toolSessions.d.ts.map +1 -1
- package/dist/types/hosting/httpHost.d.ts.map +1 -1
- package/dist/types/hosting/index.d.ts +1 -1
- package/dist/types/hosting/index.d.ts.map +1 -1
- package/dist/types/hosting/ingressRecord.d.ts.map +1 -1
- package/dist/types/hosting/sessionWire.d.ts +7 -0
- package/dist/types/hosting/sessionWire.d.ts.map +1 -1
- package/dist/types/hosting/standingAgent.d.ts.map +1 -1
- package/dist/types/hosting/types.d.ts +3 -0
- package/dist/types/hosting/types.d.ts.map +1 -1
- package/dist/types/hosting/wireOps.d.ts +2 -0
- package/dist/types/hosting/wireOps.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/integrity/assertion/conflicts.d.ts +5 -32
- package/dist/types/integrity/assertion/conflicts.d.ts.map +1 -1
- package/dist/types/integrity/assertion/types.d.ts +8 -69
- package/dist/types/integrity/assertion/types.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/factories/defineMenuHint.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/skillToolDescriptors.d.ts +4 -2
- package/dist/types/lib/injection-engine/skillToolDescriptors.d.ts.map +1 -1
- package/dist/types/lib/mcp/mcpClient.d.ts.map +1 -1
- package/dist/types/lib/mcp/mockMcpClient.d.ts +8 -4
- package/dist/types/lib/mcp/mockMcpClient.d.ts.map +1 -1
- package/dist/types/lib/mcp/toolResult.d.ts +9 -0
- package/dist/types/lib/mcp/toolResult.d.ts.map +1 -0
- package/dist/types/lib/mcp/types.d.ts +15 -0
- package/dist/types/lib/mcp/types.d.ts.map +1 -1
- package/dist/types/lib/semantics/check.d.ts +7 -1
- package/dist/types/lib/semantics/check.d.ts.map +1 -1
- package/dist/types/lib/semantics/cli.d.ts.map +1 -1
- package/dist/types/lib/semantics/projection.d.ts +16 -0
- package/dist/types/lib/semantics/projection.d.ts.map +1 -0
- package/dist/types/lib/time-travel/index.d.ts +1 -1
- package/dist/types/lib/time-travel/index.d.ts.map +1 -1
- package/dist/types/lib/time-travel/receipt.d.ts +5 -0
- package/dist/types/lib/time-travel/receipt.d.ts.map +1 -1
- package/dist/types/lib/time-travel/requestMeasurement.d.ts +34 -0
- package/dist/types/lib/time-travel/requestMeasurement.d.ts.map +1 -0
- package/dist/types/lib/time-travel/servedView.d.ts.map +1 -1
- package/package.json +6 -2
package/dist/esm/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type { CombinedRecorder, ScopeRecorder, FlowRecorder, EmitRecorder, Write
|
|
|
12
12
|
export * from './adapters/types.js';
|
|
13
13
|
export { INJECTION_KEYS, injectionKeyForSlot, isInjectionKey, type InjectionKey, stageRole, type StageRole, milestoneFor, type Milestone, type MilestoneKind, MILESTONE_KINDS, MILESTONE_TAG_PREFIX, MILESTONE_LABEL_TAG_PREFIX, milestoneTag, milestoneTags, milestoneTagsFor, milestoneFromTags, RESERVED_SUBFLOW_PREFIX, isReservedSubflowSegment, } from './conventions.js';
|
|
14
14
|
export { milestoneOf, milestoneStops, milestoneStopsStrategy } from './lib/time-travel/index.js';
|
|
15
|
-
export { epochAt, epochLocations, keyedFold, messageDigestInput, toolDigestInput, receiptAt, receiptHash, servedAt, servedViews, RECEIPT_BOUNDARY, SERVED_GAPS, UNGAPPED_FIELDS, type EpochLocation, type FoldBasis, type KeyedFold, type Receipt, type ReceiptCacheMarker, type ReceiptMessage, type ReceiptParams, type ReceiptPiece, type ReceiptRequestOnlyMessage, type ServedGap, type ServedGapCause, type ServedGapKind, type ServedPiece, type ServedRequestOnly, type ServedView, type StoredReceipt, } from './lib/time-travel/index.js';
|
|
15
|
+
export { epochAt, epochLocations, keyedFold, messageDigestInput, toolDigestInput, receiptAt, receiptHash, servedAt, servedViews, RECEIPT_BOUNDARY, SERVED_GAPS, UNGAPPED_FIELDS, type EpochLocation, type FoldBasis, type KeyedFold, type Receipt, type ReceiptCacheMarker, type ReceiptMessage, type ReceiptParams, type ReceiptPiece, type ReceiptRequestOnlyMessage, type RequestMeasurement, type RequestJsonSize, type ServedGap, type ServedGapCause, type ServedGapKind, type ServedPiece, type ServedRequestOnly, type ServedView, type StoredReceipt, } from './lib/time-travel/index.js';
|
|
16
16
|
export { COMPOSITION_KEYS, type BudgetPressureRecord, type CompositionKey, type EvictionRecord, type InjectionRecord, type SlotComposition, } from './recorders/core/types.js';
|
|
17
17
|
export { type RunContext } from './bridge/eventMeta.js';
|
|
18
18
|
export { contextEngineering, isEngineeredSource, isBaselineSource, ENGINEERED_SOURCES, BASELINE_SOURCES, type ContextEngineeringHandle, type ContextEngineeringUnsubscribe, type ContextInjectedEvent, type ContextInjectedListener, } from './recorders/core/contextEngineering.js';
|
|
@@ -20,7 +20,9 @@ export type { EmittedEvent, EnableNamespace, Runner } from './core/runner.js';
|
|
|
20
20
|
export { RunnerBase, makeRunId } from './core/RunnerBase.js';
|
|
21
21
|
export type { ObservabilityHandle, StrategyHandle } from './strategies/types.js';
|
|
22
22
|
export type { GroupKind, GroupMember, GroupMetadata, GroupTranslator } from './core/translator.js';
|
|
23
|
-
export { pauseHere, askHuman, isPauseRequest, isPaused, isCheckInPause, isAskPause, pauseDemandsDecision, DecisionRequiredError, StaleDecisionError, PauseAnswerRequiredError, type ConsentGate, type ConsentGateKind, type MiddlewareAsk, type RunnerPauseOutcome, } from './core/pause.js';
|
|
23
|
+
export { pauseHere, askHuman, requestInput, isInputPause, isPauseRequest, isPaused, isCheckInPause, isAskPause, pauseDemandsDecision, DecisionRequiredError, StaleDecisionError, PauseAnswerRequiredError, type ConsentGate, type ConsentGateKind, type MiddlewareAsk, type RunnerPauseOutcome, } from './core/pause.js';
|
|
24
|
+
export type { InputValue, InputField, InputRequestDeclaration, AwaitingInput, InputResponse, InputCancellation, InputResponseResult, } from './core/inputRequest.js';
|
|
25
|
+
export { InputRequestError } from './core/inputRequest.js';
|
|
24
26
|
export { readAskComponent, assertAskComponent, InvalidAskComponentError, type AskComponent, type AskComponentRefusalReason, } from './core/askComponent.js';
|
|
25
27
|
export { allow, ask, deny, MessageDeniedError, type AllowOutcome, type AskOutcome, type AskPayload, type DenyOutcome, type MessageDeniedContext, type MessageMiddleware, type MessageMiddlewareContext, type MessageOutcome, type MiddlewareDecision, type ToolCallMiddleware, type ToolMiddleware, type ToolMiddlewareContext, type ToolOutcome, type ToolResultContext, type ToolResultMiddleware, type ToolResultOutcome, } from './core/agent/middleware/index.js';
|
|
26
28
|
export { LOOP_MOMENTS, actKeyFor, type ActKey, type LoopMoment } from './core/agent/moments.js';
|
|
@@ -69,7 +71,7 @@ export { composeNotCovered, COUNTER_AGGREGATION_WORDS, explainSemantics, isCount
|
|
|
69
71
|
export { toolSessionKey, hashSessionKey, ToolTeardownTimeoutError, TOOL_TEARDOWN_TIMEOUT_MS, type TeardownScope, type TeardownReason, type TeardownOptions, } from './core/toolSessions.js';
|
|
70
72
|
export { codeRunnerTool, codeShape, codeRunsOf, toolSessionsOf, TOOL_SESSIONS, type CodeRunnerToolOptions, type CodeRunnerToolScope, type HoldsToolSessions, type CodeRunFacts, } from './core/codeRunnerTool.js';
|
|
71
73
|
export { toolContractCheckup, formatToolContractCheckup, type ToolContractCheckup, type ToolContractProblem, type ToolContractCode, type ServerToolEntry, } from './core/toolContract.js';
|
|
72
|
-
export { ARTIFACT_REF_PREFIX, ArtifactIntegrityError, bindArtifacts, RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput, CHART_WALK_ARTIFACT_KIND, chartWalkPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, type ArtifactEventFact, type ArtifactEventSink, type ArtifactListOptions, type ArtifactListResult, type ArtifactMeta, type ArtifactOp, type ArtifactOrigin, type ArtifactPutResult, type ArtifactRecord, type ArtifactRef, type ArtifactRefusalReason, type ArtifactRetention, type ArtifactScope, type ArtifactStore, type ArtifactSweepReason, type BindArtifactsOptions, type FileArtifactsOptions, type GcsArtifactsOptions, type InMemoryArtifacts, type InMemoryArtifactsOptions, type PutArtifactInput, type RecordingMintFacts, type S3ArtifactsOptions, type SqliteArtifacts, type SqliteArtifactsOptions, type SweptArtifact, type ToolArtifactPutInput, type ToolArtifacts, } from './artifacts/index.js';
|
|
74
|
+
export { ARTIFACT_REF_PREFIX, ArtifactIntegrityError, bindArtifacts, RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput, CHART_WALK_ARTIFACT_KIND, chartWalkPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, type ArtifactEventFact, type ArtifactEventSink, type ArtifactListOptions, type ArtifactListResult, type ArtifactMeta, type ArtifactOp, type ArtifactOrigin, type ArtifactPutResult, type ArtifactRecord, type ArtifactRef, type ArtifactRefusalReason, type ArtifactRetention, type ArtifactScope, type ArtifactStore, type ArtifactSweepReason, type BindArtifactsOptions, type FileArtifactsOptions, type GcsArtifactsOptions, type InMemoryArtifacts, type InMemoryArtifactsOptions, type PutArtifactInput, type RecordingMintFacts, type S3ArtifactsOptions, type SqliteArtifacts, type SqliteArtifactsOptions, type SweptArtifact, type ToolArtifactPutInput, type ToolArtifacts, withDatasetArtifacts, stageDatasetArtifacts, type DatasetArtifactInput, type DatasetArtifactReceipt, type DatasetPublication, type DatasetResultAdapter, type DatasetResultPlan, } from './artifacts/index.js';
|
|
73
75
|
export { canGetArtifactStream, canPutArtifactStream, canStreamArtifacts, type ArtifactStreamPutInput, type ArtifactStreamRecord, type StreamingArtifactStore, } from './artifacts/index.js';
|
|
74
76
|
export { artifactStoreConformance, formatArtifactStoreReport, runArtifactStoreCase, runArtifactStoreConformance, type ArtifactConformanceKit, type ArtifactStoreCase, type ArtifactStoreCaseName, type ArtifactStoreHarness, type ArtifactStoreHarnessHook, type ArtifactStoreMember, type ArtifactStoreOutcome, type ArtifactStoreReport, } from './artifacts/index.js';
|
|
75
77
|
export { assertToolWants, isPlacedToolResult, placedResultKind, PRESENT_TOOL_NAME, type ArtifactPlacement, type PlacedToolResult, type PresentedResult, type PresentSnapshot, type ToolWants, } from './artifacts/index.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -84,7 +84,7 @@ export { RunnerBase, makeRunId } from './core/RunnerBase.js';
|
|
|
84
84
|
// detect pauses via `isPauseRequest(err)` / `isPaused(outcome)`.
|
|
85
85
|
// `askHuman` is the HITL-named alias for `pauseHere` — same behavior,
|
|
86
86
|
// reads more naturally inside a tool that's asking a person to decide.
|
|
87
|
-
export { pauseHere, askHuman, isPauseRequest, isPaused, isCheckInPause, isAskPause,
|
|
87
|
+
export { pauseHere, askHuman, requestInput, isInputPause, isPauseRequest, isPaused, isCheckInPause, isAskPause,
|
|
88
88
|
// 8.13.0 — a consent gate (a tool's `checkIn`, a middleware's `ask`) is
|
|
89
89
|
// answered with a decision, never a value. `pauseDemandsDecision` is how a
|
|
90
90
|
// consumer asks which kind of pause it is holding; `DecisionRequiredError` is
|
|
@@ -96,6 +96,7 @@ pauseDemandsDecision, DecisionRequiredError, StaleDecisionError,
|
|
|
96
96
|
// conversations and the caller picks; the library used to pick silently and
|
|
97
97
|
// crash a turn later.
|
|
98
98
|
PauseAnswerRequiredError, } from './core/pause.js';
|
|
99
|
+
export { InputRequestError } from './core/inputRequest.js';
|
|
99
100
|
// Typed HITL (9.24.0) — the OPTIONAL component half of a human ask: WHICH
|
|
100
101
|
// registered screen component collects the answer, with small `props` inline
|
|
101
102
|
// and the big half as an artifact ref (`propsRef`) that rides the STORE, not
|
|
@@ -333,7 +334,7 @@ RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput,
|
|
|
333
334
|
// The chart-walk kind (9.76.0) — a runbook's inner walk, one row per
|
|
334
335
|
// execution step with the decide() evidence in the `condition` rows,
|
|
335
336
|
// checked in under 'recording/chart-walk' beside 'recording/run'.
|
|
336
|
-
CHART_WALK_ARTIFACT_KIND, chartWalkPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, } from './artifacts/index.js';
|
|
337
|
+
CHART_WALK_ARTIFACT_KIND, chartWalkPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, withDatasetArtifacts, stageDatasetArtifacts, } from './artifacts/index.js';
|
|
337
338
|
// Artifacts, the optional streaming leg (9.25.0) — `putStream`/`getStream` are
|
|
338
339
|
// FEATURE-DETECTED members of the port, so a store that cannot move bytes
|
|
339
340
|
// without holding them whole leaves them absent rather than faking one. The
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,oEAAoE;AACpE,8DAA8D;AAC9D,uEAAuE;AACvE,kEAAkE;AAClE,sEAAsE;AACtE,sDAAsD;AACtD,OAAO,8CAA8C,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qB,CAAC;AAEpC,uEAAuE;AACvE,uEAAuE;AACvE,oEAAoE;AACpE,sEAAsE;AACtE,8CAA8C;AAE9C,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,OAAO,EACL,SAAS,EACT,uBAAuB,EAEvB,cAAc,GAGf,MAAM,oBAAoB,CAAC;AAE5B,yEAAyE;AACzE,0EAA0E;AAC1E,qEAAqE;AACrE,iEAAiE;AACjE,OAAO,EACL,IAAI,GAML,MAAM,6BAA6B,CAAC;AAErC,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,oEAAoE;AACpE,yDAAyD;AACzD,wEAAwE;AACxE,gDAAgD;AAChD,wEAAwE;AACxE,gEAAgE;AAEhE,wEAAwE;AACxE,wEAAwE;AACxE,uDAAuD;AAEvD,mEAAmE;AACnE,oEAAoE;AACpE,sDAAsD;AAEtD,2EAA2E;AAC3E,OAAO,EACL,qBAAqB,GAKtB,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,35 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Pattern: pure function over a finite assertion set. No I/O, no store.
|
|
5
|
-
* Role: the algebra's first comparison: two `asserted` (never quoted)
|
|
6
|
-
* assertions on one single-valued `(subject, predicate, epoch)`
|
|
7
|
-
* key with different comparable values cannot both be true.
|
|
8
|
-
*
|
|
9
|
-
* What it deliberately does NOT do:
|
|
10
|
-
* - fire across strata (history is quotation);
|
|
11
|
-
* - compare unknowns (honest absence — an unknown neither corroborates
|
|
12
|
-
* nor contradicts);
|
|
13
|
-
* - fire on multi-valued predicates (the declared exception);
|
|
14
|
-
* - infer subject identity (no stamp, no comparison);
|
|
15
|
-
* - resolve anything — it names pairs; the caller files findings.
|
|
16
|
-
*
|
|
17
|
-
* Values compare by structural equality over their comparable face (a
|
|
18
|
-
* known `Claim` compares by its value), via JSON with sorted keys — the
|
|
19
|
-
* same determinism bar the house holds serialization to elsewhere.
|
|
20
|
-
*/
|
|
21
|
-
import { type Assertion } from './types.js';
|
|
22
|
-
/** One exclusion: the two-or-more assertions that cannot all be true. */
|
|
23
|
-
export interface Conflict {
|
|
24
|
-
readonly key: string;
|
|
25
|
-
/** Every distinct-valued assertion on the key, in input order. */
|
|
26
|
-
readonly assertions: readonly Assertion[];
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Find every single-valued key carrying two or more distinct values.
|
|
30
|
-
*
|
|
31
|
-
* @param assertions the finite set under comparison (one payload, or one
|
|
32
|
-
* write-delta joined with the standing set for a subject)
|
|
33
|
-
* @param multiValued predicates exempt from single-valuedness, declared
|
|
2
|
+
* Shared exclusion comparison with Agent's existing recording keys.
|
|
3
|
+
* This wrapper reports conflicts; callers retain their own findings and policy.
|
|
34
4
|
*/
|
|
5
|
+
import { type Assertion, type Conflict } from 'contextfootprint';
|
|
6
|
+
export type { Conflict } from 'contextfootprint';
|
|
7
|
+
/** Find conflicting current readings, retaining original witnesses and order. */
|
|
35
8
|
export declare function conflictsOf(assertions: readonly Assertion[], multiValued?: ReadonlySet<string>): readonly Conflict[];
|
|
@@ -1,74 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Pattern: pure function over a finite assertion set. No I/O, no store.
|
|
5
|
-
* Role: the algebra's first comparison: two `asserted` (never quoted)
|
|
6
|
-
* assertions on one single-valued `(subject, predicate, epoch)`
|
|
7
|
-
* key with different comparable values cannot both be true.
|
|
8
|
-
*
|
|
9
|
-
* What it deliberately does NOT do:
|
|
10
|
-
* - fire across strata (history is quotation);
|
|
11
|
-
* - compare unknowns (honest absence — an unknown neither corroborates
|
|
12
|
-
* nor contradicts);
|
|
13
|
-
* - fire on multi-valued predicates (the declared exception);
|
|
14
|
-
* - infer subject identity (no stamp, no comparison);
|
|
15
|
-
* - resolve anything — it names pairs; the caller files findings.
|
|
16
|
-
*
|
|
17
|
-
* Values compare by structural equality over their comparable face (a
|
|
18
|
-
* known `Claim` compares by its value), via JSON with sorted keys — the
|
|
19
|
-
* same determinism bar the house holds serialization to elsewhere.
|
|
20
|
-
*/
|
|
21
|
-
import { assertionKey, comparableValueOf, participates } from './types.js';
|
|
22
|
-
/** Deterministic structural rendering — sorted keys, no ambient state. */
|
|
23
|
-
function renderValue(value) {
|
|
24
|
-
const face = comparableValueOf(value);
|
|
25
|
-
return JSON.stringify(face, (_k, v) => {
|
|
26
|
-
if (v !== null && typeof v === 'object' && !Array.isArray(v)) {
|
|
27
|
-
const sorted = {};
|
|
28
|
-
for (const key of Object.keys(v).sort()) {
|
|
29
|
-
sorted[key] = v[key];
|
|
30
|
-
}
|
|
31
|
-
return sorted;
|
|
32
|
-
}
|
|
33
|
-
return v;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Find every single-valued key carrying two or more distinct values.
|
|
38
|
-
*
|
|
39
|
-
* @param assertions the finite set under comparison (one payload, or one
|
|
40
|
-
* write-delta joined with the standing set for a subject)
|
|
41
|
-
* @param multiValued predicates exempt from single-valuedness, declared
|
|
2
|
+
* Shared exclusion comparison with Agent's existing recording keys.
|
|
3
|
+
* This wrapper reports conflicts; callers retain their own findings and policy.
|
|
42
4
|
*/
|
|
5
|
+
import { conflictsOf as compareAssertions } from 'contextfootprint';
|
|
6
|
+
import { assertionKey } from './types.js';
|
|
7
|
+
/** Find conflicting current readings, retaining original witnesses and order. */
|
|
43
8
|
export function conflictsOf(assertions, multiValued = new Set()) {
|
|
44
|
-
|
|
45
|
-
for (const a of assertions) {
|
|
46
|
-
if (a.stratum !== 'asserted')
|
|
47
|
-
continue; // history is quotation
|
|
48
|
-
if (multiValued.has(a.predicate))
|
|
49
|
-
continue; // the declared exception
|
|
50
|
-
if (!participates(a.value))
|
|
51
|
-
continue; // unknowns never compare
|
|
52
|
-
const key = assertionKey(a);
|
|
53
|
-
let entry = byKey.get(key);
|
|
54
|
-
if (entry === undefined) {
|
|
55
|
-
entry = { byValue: new Map(), order: [] };
|
|
56
|
-
byKey.set(key, entry);
|
|
57
|
-
}
|
|
58
|
-
const rendered = renderValue(a.value);
|
|
59
|
-
const bucket = entry.byValue.get(rendered);
|
|
60
|
-
if (bucket === undefined)
|
|
61
|
-
entry.byValue.set(rendered, [a]);
|
|
62
|
-
else
|
|
63
|
-
bucket.push(a);
|
|
64
|
-
entry.order.push(a);
|
|
65
|
-
}
|
|
66
|
-
const conflicts = [];
|
|
67
|
-
for (const [key, entry] of byKey) {
|
|
68
|
-
if (entry.byValue.size < 2)
|
|
69
|
-
continue;
|
|
70
|
-
conflicts.push({ key, assertions: entry.order });
|
|
71
|
-
}
|
|
72
|
-
return conflicts;
|
|
9
|
+
return compareAssertions(assertions, multiValued, assertionKey);
|
|
73
10
|
}
|
|
74
11
|
//# sourceMappingURL=conflicts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflicts.js","sourceRoot":"","sources":["../../../../src/integrity/assertion/conflicts.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"conflicts.js","sourceRoot":"","sources":["../../../../src/integrity/assertion/conflicts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAiC,MAAM,kBAAkB,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,iFAAiF;AACjF,MAAM,UAAU,WAAW,CACzB,UAAgC,EAChC,cAAmC,IAAI,GAAG,EAAE;IAE5C,OAAO,iBAAiB,CAAC,UAAU,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,74 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Pattern: plain data + a keyed identity. Pure, structuredClone-safe.
|
|
6
|
-
* Role: the Context Integrity substrate. Everything a seam adapter
|
|
7
|
-
* hands a check is first normalised into assertions keyed by
|
|
8
|
-
* `(subject, predicate, epoch)`, so every check compares one
|
|
9
|
-
* shape and subject identity is READ off stamps, never inferred.
|
|
10
|
-
*
|
|
11
|
-
* THE TWO RULES:
|
|
12
|
-
*
|
|
13
|
-
* **Serving is asserting; history is quotation.** A tool schema on the
|
|
14
|
-
* wire asserts "available now"; a block labelled current-state asserts its
|
|
15
|
-
* contents as current. Transcript history is `quoted` — it legitimately
|
|
16
|
-
* holds superseded values, and checks never fire across the quoted
|
|
17
|
-
* stratum. This one distinction eliminates the false-positive class of
|
|
18
|
-
* stale-but-honest history with no judgment call.
|
|
19
|
-
*
|
|
20
|
-
* **Single-valued by default.** Two `asserted` assertions on one key with
|
|
21
|
-
* different values contradict; multi-valued predicates are the declared
|
|
22
|
-
* exception. Exemptions are declared, rules are never authored.
|
|
23
|
-
*
|
|
24
|
-
* Honest absence: a value that IS an unknown (a `Claim` whose kind is not
|
|
25
|
-
* `'known'`) never participates in a comparison — an unknown can neither
|
|
26
|
-
* corroborate nor contradict, and anything derived from it is unknown.
|
|
2
|
+
* Agent's assertion types and value conventions are shared with ContextFootprint.
|
|
3
|
+
* Collection, current/quoted stamping and diagnostic disposition remain here.
|
|
27
4
|
*/
|
|
5
|
+
import type { Assertion } from 'contextfootprint';
|
|
6
|
+
export type { Assertion, AssertionStratum, SubjectRef } from 'contextfootprint';
|
|
7
|
+
export { sameSubject, participates, comparableValueOf } from 'contextfootprint';
|
|
28
8
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* shared stamped subject are incomparable, and incomparable means silent —
|
|
33
|
-
* which is why the disposition ledger counts `unreachable`.
|
|
9
|
+
* Preserve Agent's recorded identity encoding across the extraction.
|
|
10
|
+
* This legacy delimiter format retains its existing collision behavior; new
|
|
11
|
+
* consumers use ContextFootprint's tuple key. Recording migration is separate.
|
|
34
12
|
*/
|
|
35
|
-
export interface SubjectRef {
|
|
36
|
-
/** What kind of thing — 'map' | 'skill' | 'tool' | 'action' | app kinds. Open by design. */
|
|
37
|
-
readonly kind: string;
|
|
38
|
-
readonly id: string;
|
|
39
|
-
}
|
|
40
|
-
/** The strata rule, as a type: only `asserted` facts can contradict. */
|
|
41
|
-
export type AssertionStratum = 'asserted' | 'quoted';
|
|
42
|
-
/** One typed claim about one subject. */
|
|
43
|
-
export interface Assertion {
|
|
44
|
-
readonly subject: SubjectRef;
|
|
45
|
-
/** The relation this asserts — 'status', 'offered', 'position', … */
|
|
46
|
-
readonly predicate: string;
|
|
47
|
-
/**
|
|
48
|
-
* The claimed value. May be a plain value or a `Claim<T>`; a non-`known`
|
|
49
|
-
* Claim never participates in any comparison (honest absence).
|
|
50
|
-
*/
|
|
51
|
-
readonly value: unknown;
|
|
52
|
-
/**
|
|
53
|
-
* The epoch this was asserted UNDER — a monotonic version from the
|
|
54
|
-
* subject's own counter (a session version, a cursor version). Two
|
|
55
|
-
* assertions at DIFFERENT epochs are history, not contradiction; absent
|
|
56
|
-
* means "the current, unversioned world", and only matches absent.
|
|
57
|
-
*/
|
|
58
|
-
readonly epoch?: number;
|
|
59
|
-
readonly stratum: AssertionStratum;
|
|
60
|
-
/** Where this came from — one plain sentence or a source ref. */
|
|
61
|
-
readonly provenance: string;
|
|
62
|
-
/** The universal join key into commit logs and recordings, when known. */
|
|
63
|
-
readonly runtimeStageId?: string;
|
|
64
|
-
/** Dev-posture canary material — quarantined from every real count. */
|
|
65
|
-
readonly synthetic?: true;
|
|
66
|
-
}
|
|
67
|
-
/** The identity a single-valued comparison runs over. */
|
|
68
13
|
export declare function assertionKey(a: Assertion): string;
|
|
69
|
-
/** Same stamped subject — the only identity the algebra ever claims. */
|
|
70
|
-
export declare function sameSubject(a: SubjectRef, b: SubjectRef): boolean;
|
|
71
|
-
/** Does this value participate in comparisons? Unknowns never do. */
|
|
72
|
-
export declare function participates(value: unknown): boolean;
|
|
73
|
-
/** The comparable face of a value: a known Claim compares by its value. */
|
|
74
|
-
export declare function comparableValueOf(value: unknown): unknown;
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/integrity/assertion/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/integrity/assertion/types.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEhF;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,CAAY;IACvC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC3D,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC,SAAS,SAAS,KAAK,EAAE,CAAC;AACpF,CAAC"}
|
|
@@ -28,12 +28,10 @@
|
|
|
28
28
|
* false-positive on somebody else's injection of that name.
|
|
29
29
|
*/
|
|
30
30
|
export const MENU_HINT_METADATA_KEY = 'skillMenuHint';
|
|
31
|
-
const DEFAULT_BODY =
|
|
32
|
-
|
|
33
|
-
'candidate skills (with advisory relevance where a scorer ran). Read it and activate the ' +
|
|
31
|
+
const DEFAULT_BODY = "Note: a routing menu is open for this turn. The `read_skill` tool's description begins " +
|
|
32
|
+
'with candidate skills (with advisory relevance when supplied). Read it and activate the ' +
|
|
34
33
|
'one that actually fits, or answer directly WITHOUT calling read_skill to stay where you ' +
|
|
35
|
-
'are.
|
|
36
|
-
'your judgment wins.';
|
|
34
|
+
'are. Use the conversation to decide; the menu is guidance, not an instruction to pick.';
|
|
37
35
|
export function defineMenuHint(options = {}) {
|
|
38
36
|
return {
|
|
39
37
|
id: options.id ?? 'skill-menu-hint',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineMenuHint.js","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineMenuHint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAYH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAwB,CAAC;AAE/D,MAAM,YAAY,GAChB,
|
|
1
|
+
{"version":3,"file":"defineMenuHint.js","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineMenuHint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAYH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAwB,CAAC;AAE/D,MAAM,YAAY,GAChB,yFAAyF;IACzF,0FAA0F;IAC1F,0FAA0F;IAC1F,wFAAwF,CAAC;AAE3F,MAAM,UAAU,cAAc,CAAC,UAA2B,EAAE;IAC1D,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,EAAE,IAAI,iBAAiB;QACnC,MAAM,EAAE,cAAc;QACtB,WAAW,EAAE,gEAAgE;QAC7E,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YACZ,yEAAyE;YACzE,wEAAwE;YACxE,kEAAkE;YAClE,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,CAAC,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK,SAAS;SACjF;QACD,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAE;QAC5C,MAAM,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,IAAI,IAAI,YAAY,EAAE;KACvD,CAAC;AACJ,CAAC"}
|
|
@@ -79,8 +79,8 @@ export interface ReadSkillOffer {
|
|
|
79
79
|
readonly cursorId?: string;
|
|
80
80
|
/**
|
|
81
81
|
* Turn-start MENU (SG-C): when set, the description LEADS with these
|
|
82
|
-
* candidates (id + one-line description; advisory relevance %s
|
|
83
|
-
*
|
|
82
|
+
* candidates (id + one-line description; supplied advisory relevance %s),
|
|
83
|
+
* names the cursor, and states STAY as a first-class
|
|
84
84
|
* option ("answer without calling read_skill to stay in '<cursor>'").
|
|
85
85
|
*
|
|
86
86
|
* Set only while the turn's menu verdict is outstanding (turn start, before
|
|
@@ -90,6 +90,8 @@ export interface ReadSkillOffer {
|
|
|
90
90
|
* retire four honesty mechanisms), and {@link ReadSkillOffer.hiddenIds}
|
|
91
91
|
* filters menu rows exactly as it filters every other list: a role-hidden
|
|
92
92
|
* skill is never NAMED, menu or no menu.
|
|
93
|
+
* Descriptions appear once per skill id in this offer. Later catalog or
|
|
94
|
+
* reachability rows retain the id and refer to its description above.
|
|
93
95
|
*/
|
|
94
96
|
readonly menu?: {
|
|
95
97
|
readonly candidates: ReadonlyArray<{
|
|
@@ -133,6 +133,16 @@ function describeOffer(allSkills, line, fullCatalog, offer) {
|
|
|
133
133
|
// the "not reachable" list and the plain catalog all read from this.
|
|
134
134
|
const hidden = new Set(offer.hiddenIds ?? []);
|
|
135
135
|
const skills = visibleSkills(allSkills, offer);
|
|
136
|
+
// One description per id, local to THIS offer. Membership still appears in
|
|
137
|
+
// every applicable section: relevance is not reachability. Never deduplicate
|
|
138
|
+
// by description text — distinct skills can legitimately share that text.
|
|
139
|
+
const described = new Set();
|
|
140
|
+
const describeOnce = (s) => {
|
|
141
|
+
if (described.has(s.id))
|
|
142
|
+
return ` - ${s.id}`;
|
|
143
|
+
described.add(s.id);
|
|
144
|
+
return line(s);
|
|
145
|
+
};
|
|
136
146
|
// The turn-start MENU leads (SG-C) — rendered from the turn verdict, ids
|
|
137
147
|
// resolved against the (hidden-filtered) catalog so an id this description
|
|
138
148
|
// may not name, or one that is not a skill here, is silently skipped rather
|
|
@@ -142,7 +152,7 @@ function describeOffer(allSkills, line, fullCatalog, offer) {
|
|
|
142
152
|
.filter((c) => byId.has(c.id))
|
|
143
153
|
.map((c) => {
|
|
144
154
|
const pct = c.relevance !== undefined ? ` (relevance ~${Math.round(c.relevance * 100)}%)` : '';
|
|
145
|
-
return `${
|
|
155
|
+
return `${describeOnce(byId.get(c.id))}${pct}`;
|
|
146
156
|
});
|
|
147
157
|
// ── THE CURSOR IS NAMED ON EVERY CALL THAT HAS ONE (9.84.0) ─────────
|
|
148
158
|
// This used to be the STAY clause and nothing else, so it appeared only while
|
|
@@ -206,9 +216,8 @@ function describeOffer(allSkills, line, fullCatalog, offer) {
|
|
|
206
216
|
// rides; the gate's self-call notice names tools because it reads the merged
|
|
207
217
|
// list after the fact.
|
|
208
218
|
const menuLead = offer.menu !== undefined && menuRows.length > 0
|
|
209
|
-
? `This turn needs a routing choice
|
|
210
|
-
`
|
|
211
|
-
`conversation):\n${menuRows.join('\n')}\n` +
|
|
219
|
+
? `This turn needs a routing choice. Candidates for this turn ` +
|
|
220
|
+
`(advisory; use the conversation to choose):\n${menuRows.join('\n')}\n` +
|
|
212
221
|
(staying
|
|
213
222
|
? cursorLead
|
|
214
223
|
: `Answering WITHOUT calling read_skill is also allowed.\n\n${cursorLead}`)
|
|
@@ -220,7 +229,7 @@ function describeOffer(allSkills, line, fullCatalog, offer) {
|
|
|
220
229
|
? `Activate a skill for the next iteration. No skills are available to you — ` +
|
|
221
230
|
`answer without one, or say what you are unable to do.\n\n${tail}`
|
|
222
231
|
: `${menuLead}Activate a skill for the next iteration. Available skills:\n${skills
|
|
223
|
-
.map(
|
|
232
|
+
.map(describeOnce)
|
|
224
233
|
.join('\n')}\n\n${tail}`;
|
|
225
234
|
}
|
|
226
235
|
// The four target classes, from their ONE owner (9.86.0). `grantable` is the
|
|
@@ -256,7 +265,7 @@ function describeOffer(allSkills, line, fullCatalog, offer) {
|
|
|
256
265
|
return (`${menuLead}Activate a skill for the next iteration. This map is a decision TREE: ` +
|
|
257
266
|
`it routes by predicate on every iteration and keeps no cursor, so read_skill ` +
|
|
258
267
|
`cannot move it — a pick of a routed skill is refused. What a pick CAN open are ` +
|
|
259
|
-
`the skills the tree does not route:\n${open.map(
|
|
268
|
+
`the skills the tree does not route:\n${open.map(describeOnce).join('\n')}\n\n${tail}`);
|
|
260
269
|
}
|
|
261
270
|
// The cursor is never in `grantable` — `makeReachableSkills` filters it out of
|
|
262
271
|
// its own successor set, because a MOVE to where you already are is not a move.
|
|
@@ -270,7 +279,7 @@ function describeOffer(allSkills, line, fullCatalog, offer) {
|
|
|
270
279
|
const shut = skills.filter((s) => classOf(s.id) === 'unreachable');
|
|
271
280
|
const parts = [];
|
|
272
281
|
if (open.length > 0) {
|
|
273
|
-
parts.push(`Reachable from here:\n${open.map(
|
|
282
|
+
parts.push(`Reachable from here:\n${open.map(describeOnce).join('\n')}`);
|
|
274
283
|
}
|
|
275
284
|
else if (!hopsSpoken.held) {
|
|
276
285
|
// Nothing was wired out of here at all — an absence this description holds
|
|
@@ -279,7 +288,7 @@ function describeOffer(allSkills, line, fullCatalog, offer) {
|
|
|
279
288
|
}
|
|
280
289
|
if (offer.showRefusable !== false && shut.length > 0) {
|
|
281
290
|
parts.push(`Not reachable from here (read_skill for these will be refused):\n${shut
|
|
282
|
-
.map(
|
|
291
|
+
.map(describeOnce)
|
|
283
292
|
.join('\n')}`);
|
|
284
293
|
}
|
|
285
294
|
// With every clause omitted the description names the cursor and stops, which
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skillToolDescriptors.js","sourceRoot":"","sources":["../../../../src/lib/injection-engine/skillToolDescriptors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"skillToolDescriptors.js","sourceRoot":"","sources":["../../../../src/lib/injection-engine/skillToolDescriptors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,C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