agentfootprint 4.0.0 → 5.0.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/dist/core/agent/AgentBuilder.js +2 -2
- package/dist/core/agent/AgentBuilder.js.map +1 -1
- package/dist/esm/core/agent/AgentBuilder.js +3 -3
- package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
- package/dist/esm/index.js +21 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/injection-engine/factories/defineInjection.js +46 -0
- package/dist/esm/lib/injection-engine/factories/defineInjection.js.map +1 -0
- package/dist/esm/lib/injection-engine/index.js +4 -0
- package/dist/esm/lib/injection-engine/index.js.map +1 -1
- package/dist/esm/locales/index.js +4 -4
- package/dist/esm/locales/index.js.map +1 -1
- package/dist/esm/observe.js +5 -2
- package/dist/esm/observe.js.map +1 -1
- package/dist/esm/recorders/observability/{ThinkingRecorder.js → StatusRecorder.js} +4 -4
- package/dist/esm/recorders/observability/StatusRecorder.js.map +1 -0
- package/dist/esm/recorders/observability/thinking/thinkingTemplates.js +3 -3
- package/dist/esm/recorders/observability/thinking/thinkingTemplates.js.map +1 -1
- package/dist/esm/status.js +3 -3
- package/dist/esm/status.js.map +1 -1
- package/dist/esm/strategies/attach.js +5 -5
- package/dist/esm/strategies/attach.js.map +1 -1
- package/dist/index.js +25 -57
- package/dist/index.js.map +1 -1
- package/dist/lib/injection-engine/factories/defineInjection.js +50 -0
- package/dist/lib/injection-engine/factories/defineInjection.js.map +1 -0
- package/dist/lib/injection-engine/index.js +6 -1
- package/dist/lib/injection-engine/index.js.map +1 -1
- package/dist/locales/index.js +3 -3
- package/dist/locales/index.js.map +1 -1
- package/dist/observe.js +12 -4
- package/dist/observe.js.map +1 -1
- package/dist/recorders/observability/{ThinkingRecorder.js → StatusRecorder.js} +6 -6
- package/dist/recorders/observability/StatusRecorder.js.map +1 -0
- package/dist/recorders/observability/thinking/thinkingTemplates.js +6 -6
- package/dist/recorders/observability/thinking/thinkingTemplates.js.map +1 -1
- package/dist/status.js +6 -6
- package/dist/status.js.map +1 -1
- package/dist/strategies/attach.js +4 -4
- package/dist/strategies/attach.js.map +1 -1
- package/dist/types/core/agent/AgentBuilder.d.ts +1 -1
- package/dist/types/index.d.ts +4 -20
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/factories/defineInjection.d.ts +42 -0
- package/dist/types/lib/injection-engine/factories/defineInjection.d.ts.map +1 -0
- package/dist/types/lib/injection-engine/index.d.ts +1 -0
- package/dist/types/lib/injection-engine/index.d.ts.map +1 -1
- package/dist/types/locales/index.d.ts +2 -2
- package/dist/types/locales/index.d.ts.map +1 -1
- package/dist/types/observe.d.ts +6 -3
- package/dist/types/observe.d.ts.map +1 -1
- package/dist/types/recorders/observability/{ThinkingRecorder.d.ts → StatusRecorder.d.ts} +7 -7
- package/dist/types/recorders/observability/StatusRecorder.d.ts.map +1 -0
- package/dist/types/recorders/observability/thinking/thinkingTemplates.d.ts +8 -8
- package/dist/types/recorders/observability/thinking/thinkingTemplates.d.ts.map +1 -1
- package/dist/types/status.d.ts +3 -3
- package/dist/types/status.d.ts.map +1 -1
- package/dist/types/strategies/attach.d.ts +2 -2
- package/dist/types/strategies/attach.d.ts.map +1 -1
- package/dist/types/strategies/defaults/chatBubbleLiveStatus.d.ts +2 -2
- package/dist/types/strategies/types.d.ts +3 -3
- package/dist/types/strategies/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/esm/recorders/observability/ThinkingRecorder.js.map +0 -1
- package/dist/recorders/observability/ThinkingRecorder.js.map +0 -1
- package/dist/types/recorders/observability/ThinkingRecorder.d.ts.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -10,39 +10,23 @@ import './cache/strategies/OpenAICacheStrategy.js';
|
|
|
10
10
|
import './cache/strategies/BedrockCacheStrategy.js';
|
|
11
11
|
export type { CombinedRecorder, ScopeRecorder, FlowRecorder, EmitRecorder, WriteEvent, ReadEvent, CommitEvent, StageEvent, ErrorEvent, FlowStageEvent, FlowNextEvent, FlowDecisionEvent, FlowForkEvent, FlowSelectedEvent, FlowSubflowEvent, FlowSubflowRegisteredEvent, FlowLoopEvent, FlowBreakEvent, FlowErrorEvent, TraversalContext, EmitEvent, RedactionPolicy, RedactionReport, } from 'footprintjs';
|
|
12
12
|
export * from './events/types.js';
|
|
13
|
-
export * from './events/payloads.js';
|
|
13
|
+
export type * as Payloads from './events/payloads.js';
|
|
14
14
|
export { EVENT_NAMES, ALL_EVENT_TYPES, type AgentfootprintEvent, type AgentfootprintEventMap, type AgentfootprintEventType, } from './events/registry.js';
|
|
15
15
|
export { EventDispatcher, type EventListener, type WildcardListener, type ListenOptions, type Unsubscribe, type DomainWildcard, type AllWildcard, type WildcardSubscription, } from './events/dispatcher.js';
|
|
16
16
|
export * from './adapters/types.js';
|
|
17
17
|
export { INJECTION_KEYS, injectionKeyForSlot, isInjectionKey, type InjectionKey, stageRole, type StageRole, milestoneFor, type Milestone, type MilestoneKind, } from './conventions.js';
|
|
18
18
|
export { COMPOSITION_KEYS, type BudgetPressureRecord, type CompositionKey, type EvictionRecord, type InjectionRecord, type SlotComposition, } from './recorders/core/types.js';
|
|
19
19
|
export { buildEventMeta, parseSubflowPath, type RunContext } from './bridge/eventMeta.js';
|
|
20
|
-
export { ContextRecorder, type ContextRecorderOptions } from './recorders/core/ContextRecorder.js';
|
|
21
20
|
export { contextEngineering, isEngineeredSource, isBaselineSource, ENGINEERED_SOURCES, BASELINE_SOURCES, type ContextEngineeringHandle, type ContextEngineeringUnsubscribe, type ContextInjectedEvent, type ContextInjectedListener, } from './recorders/core/contextEngineering.js';
|
|
22
21
|
export { EmitBridge, type EmitBridgeOptions } from './recorders/core/EmitBridge.js';
|
|
23
|
-
export { streamRecorder, type StreamRecorderOptions } from './recorders/core/StreamRecorder.js';
|
|
24
|
-
export { agentRecorder, type AgentRecorderOptions } from './recorders/core/AgentRecorder.js';
|
|
25
|
-
export { contextEvaluatedRecorder, type ContextEvaluatedRecorderOptions, } from './recorders/core/ContextEvaluatedRecorder.js';
|
|
26
|
-
export { compositionRecorder, type CompositionRecorderOptions, } from './recorders/core/CompositionRecorder.js';
|
|
27
|
-
export { costRecorder, type CostRecorderOptions } from './recorders/core/CostRecorder.js';
|
|
28
|
-
export { permissionRecorder, type PermissionRecorderOptions, } from './recorders/core/PermissionRecorder.js';
|
|
29
|
-
export { evalRecorder, type EvalRecorderOptions } from './recorders/core/EvalRecorder.js';
|
|
30
|
-
export { memoryRecorder, type MemoryRecorderOptions } from './recorders/core/MemoryRecorder.js';
|
|
31
|
-
export { skillRecorder, type SkillRecorderOptions } from './recorders/core/SkillRecorder.js';
|
|
32
|
-
export { toolsRecorder, type ToolsRecorderOptions } from './recorders/core/ToolsRecorder.js';
|
|
33
22
|
export { typedEmit } from './recorders/core/typedEmit.js';
|
|
34
23
|
export type { EmittedEvent, EnableNamespace, Runner } from './core/runner.js';
|
|
35
24
|
export { RunnerBase, makeRunId } from './core/RunnerBase.js';
|
|
36
25
|
export type { GroupKind, GroupMember, GroupMetadata, GroupTranslator } from './core/translator.js';
|
|
37
26
|
export { pauseHere, askHuman, isPauseRequest, isPaused, type RunnerPauseOutcome, } from './core/pause.js';
|
|
38
|
-
export {
|
|
39
|
-
export { attachLogging, LoggingDomains, type LoggingDomain, type LoggingLogger, type LoggingOptions, } from './recorders/observability/LoggingRecorder.js';
|
|
40
|
-
export { attachFlowchart, type ContextInjection, type FlowchartHandle, type FlowchartOptions, type StepEdge, type StepGraph, type StepNode, } from './recorders/observability/FlowchartRecorder.js';
|
|
41
|
-
export { buildRunSteps, RunStepRecorder, runStepRecorder, type BuildRunStepsOptions, type RunStep, type RunStepGraph, type RunStepKind, type RunStepMeta, type RunStepRecorderOptions, type RunStepTransition, } from './recorders/observability/RunStepRecorder.js';
|
|
42
|
-
export { BoundaryRecorder, boundaryRecorder, type ActorArrow, type BoundaryAggregate, type BoundaryRangeLabel, type BoundaryRecorderOptions, type DomainContextInjectedEvent, type DomainDecisionBranchEvent, type DomainEvent, type DomainForkBranchEvent, type DomainLLMEndEvent, type DomainLLMStartEvent, type DomainLoopIterationEvent, type DomainRunEvent, type DomainSubflowEvent, type DomainToolEndEvent, type DomainToolStartEvent, } from './recorders/observability/BoundaryRecorder.js';
|
|
43
|
-
export { liveStateRecorder, LiveStateRecorder, LiveLLMTracker, LiveToolTracker, LiveAgentTurnTracker, type LLMLiveState, type ToolLiveState, type AgentTurnLiveState, type LiveStateRunnerLike, } from './recorders/observability/LiveStateRecorder.js';
|
|
27
|
+
export type { FlowchartHandle, FlowchartOptions, } from './recorders/observability/FlowchartRecorder.js';
|
|
44
28
|
export { defaultCommentaryTemplates, extractAgentName, extractCommentaryVars, renderCommentary, selectCommentaryKey, type CommentaryContext, type CommentaryTemplates, } from './recorders/observability/commentary/commentaryTemplates.js';
|
|
45
|
-
export {
|
|
29
|
+
export { defaultStatusTemplates, selectStatus, renderStatusLine, type StatusContext, type StatusState, type StatusKind, type StatusTemplates, } from './recorders/observability/thinking/thinkingTemplates.js';
|
|
46
30
|
export { LLMCall, LLMCallBuilder, type LLMCallInput, type LLMCallOptions, type LLMCallOutput, } from './core/LLMCall.js';
|
|
47
31
|
export { buildMessageApiChart, type MessageApiChartDeps, } from './core/agent/buildMessageApiChart.js';
|
|
48
32
|
export { buildAgentMessageApiChart, type AgentMessageApiChartDeps, } from './core/agent/buildAgentMessageApiChart.js';
|
|
@@ -62,7 +46,7 @@ export { browserAnthropic, BrowserAnthropicProvider, type BrowserAnthropicProvid
|
|
|
62
46
|
export { browserOpenai, BrowserOpenAIProvider, type BrowserOpenAIProviderOptions, } from './adapters/llm/BrowserOpenAIProvider.js';
|
|
63
47
|
export { createProvider, type ProviderKind, type CreateProviderOptions, } from './adapters/llm/createProvider.js';
|
|
64
48
|
export { toSSE, SSEFormatter, encodeSSE, type ToSSEOptions } from './stream.js';
|
|
65
|
-
export { type Injection, type InjectionTrigger, type InjectionContent, type InjectionContext, type InjectionEvaluation, evaluateInjections, buildInjectionEngineSubflow, projectActiveInjection, type InjectionEngineConfig, type ActiveInjection, defineInstruction, type DefineInstructionOptions, defineSkill, resolveSurfaceMode, SkillRegistry, type SkillRegistryOptions, buildListSkillsTool, buildReadSkillTool, type SkillToolPair, type DefineSkillOptions, type SurfaceMode, type RefreshPolicy, type AutoActivateMode, defineSteering, type DefineSteeringOptions, defineFact, type DefineFactOptions, } from './lib/injection-engine/index.js';
|
|
49
|
+
export { type Injection, type InjectionTrigger, type InjectionContent, type InjectionContext, type InjectionEvaluation, evaluateInjections, buildInjectionEngineSubflow, projectActiveInjection, type InjectionEngineConfig, type ActiveInjection, defineInstruction, type DefineInstructionOptions, defineSkill, resolveSurfaceMode, SkillRegistry, type SkillRegistryOptions, buildListSkillsTool, buildReadSkillTool, type SkillToolPair, type DefineSkillOptions, type SurfaceMode, type RefreshPolicy, type AutoActivateMode, defineSteering, type DefineSteeringOptions, defineFact, type DefineFactOptions, defineInjection, type DefineInjectionOptions, type InjectionFlavor, } from './lib/injection-engine/index.js';
|
|
66
50
|
export * from './patterns/index.js';
|
|
67
51
|
export { defaultPipeline, ephemeralPipeline, factPipeline, narrativePipeline, semanticPipeline, autoPipeline, } from './memory/pipeline/index.js';
|
|
68
52
|
export { heuristicExtractor, llmExtractor, } from './memory/beats/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAOpD,YAAY,EAEV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EAEZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EAEV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,aAAa,EACb,c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ChB,KAAK,cAAc,GACpB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* defineInjection — the unified injection factory (one factory, a `type`
|
|
3
|
+
* discriminant for the flavor).
|
|
4
|
+
*
|
|
5
|
+
* The named factories (`defineInstruction`, `defineSkill`, `defineSteering`,
|
|
6
|
+
* `defineFact`) are self-documenting sugar — prefer them when you know the
|
|
7
|
+
* flavor at author time. `defineInjection` is for the cases where the flavor is
|
|
8
|
+
* chosen *programmatically* (config-driven pipelines, a UI that lets users add
|
|
9
|
+
* any flavor, table-driven tests) — pass `type` and the same options the named
|
|
10
|
+
* factory takes:
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // these two are equivalent
|
|
14
|
+
* defineInstruction({ id: 'calm', prompt: '…', activeWhen });
|
|
15
|
+
* defineInjection({ type: 'instruction', id: 'calm', prompt: '…', activeWhen });
|
|
16
|
+
*
|
|
17
|
+
* @example // flavor decided at runtime
|
|
18
|
+
* const inj = defineInjection({ type: cfg.flavor, id: cfg.id, ...cfg.opts });
|
|
19
|
+
*
|
|
20
|
+
* All four flavors return the same `Injection` primitive — `type` simply routes
|
|
21
|
+
* to the matching named factory. RAG and Memory are NOT covered here: they are
|
|
22
|
+
* separate subsystems (retrieval + stores), not plain Injections.
|
|
23
|
+
*/
|
|
24
|
+
import type { Injection } from '../types.js';
|
|
25
|
+
import { type DefineFactOptions } from './defineFact.js';
|
|
26
|
+
import { type DefineInstructionOptions } from './defineInstruction.js';
|
|
27
|
+
import { type DefineSkillOptions } from './defineSkill.js';
|
|
28
|
+
import { type DefineSteeringOptions } from './defineSteering.js';
|
|
29
|
+
/** Discriminated union — `type` picks the flavor; the rest are that flavor's options. */
|
|
30
|
+
export type DefineInjectionOptions = ({
|
|
31
|
+
type: 'instruction';
|
|
32
|
+
} & DefineInstructionOptions) | ({
|
|
33
|
+
type: 'skill';
|
|
34
|
+
} & DefineSkillOptions) | ({
|
|
35
|
+
type: 'steering';
|
|
36
|
+
} & DefineSteeringOptions) | ({
|
|
37
|
+
type: 'fact';
|
|
38
|
+
} & DefineFactOptions);
|
|
39
|
+
/** The flavor discriminants `defineInjection` accepts. */
|
|
40
|
+
export type InjectionFlavor = DefineInjectionOptions['type'];
|
|
41
|
+
export declare function defineInjection(opts: DefineInjectionOptions): Injection;
|
|
42
|
+
//# sourceMappingURL=defineInjection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineInjection.d.ts","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineInjection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAqB,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAkB,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjF,yFAAyF;AACzF,MAAM,MAAM,sBAAsB,GAC9B,CAAC;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GAAG,wBAAwB,CAAC,GACpD,CAAC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,kBAAkB,CAAC,GACxC,CAAC;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,qBAAqB,CAAC,GAC9C,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAAC,CAAC;AAE3C,0DAA0D;AAC1D,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAE7D,wBAAgB,eAAe,CAAC,IAAI,EAAE,sBAAsB,GAAG,SAAS,CAqBvE"}
|
|
@@ -15,4 +15,5 @@ export { SkillRegistry, type SkillRegistryOptions } from './SkillRegistry.js';
|
|
|
15
15
|
export { buildListSkillsTool, buildReadSkillTool, type SkillToolPair } from './skillTools.js';
|
|
16
16
|
export { defineSteering, type DefineSteeringOptions } from './factories/defineSteering.js';
|
|
17
17
|
export { defineFact, type DefineFactOptions } from './factories/defineFact.js';
|
|
18
|
+
export { defineInjection, type DefineInjectionOptions, type InjectionFlavor, } from './factories/defineInjection.js';
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/injection-engine/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAGpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EACL,2BAA2B,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEpG,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,gBAAgB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAM9E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE9F,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/injection-engine/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAGpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EACL,2BAA2B,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEpG,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,gBAAgB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAM9E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE9F,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAK/E,OAAO,EACL,eAAe,EACf,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,MAAM,gCAAgC,CAAC"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* "Looking up your order…"
|
|
12
12
|
*
|
|
13
13
|
* v2.4 shipped these as `defaultCommentaryTemplates` and
|
|
14
|
-
* `
|
|
14
|
+
* `defaultStatusTemplates` (flat `Record<string, string>` maps with
|
|
15
15
|
* `{{var}}` substitution). The names worked but the framing was
|
|
16
16
|
* generic — "templates" collides with TypeScript / templating-engine
|
|
17
17
|
* terminology, and there was no first-class place to ship locale
|
|
@@ -70,7 +70,7 @@ export type { CommentaryTemplates as MessageCatalog } from '../recorders/observa
|
|
|
70
70
|
export declare const defaultCommentaryMessages: Readonly<Record<string, string>>;
|
|
71
71
|
/**
|
|
72
72
|
* Canonical English thinking bundle. Alias of v2.4's
|
|
73
|
-
* `
|
|
73
|
+
* `defaultStatusTemplates`.
|
|
74
74
|
*
|
|
75
75
|
* Keys mirror agentfootprint event types; values may contain
|
|
76
76
|
* `{{var}}` placeholders for runtime substitution.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locales/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAKH,YAAY,EAAE,mBAAmB,IAAI,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAE1H;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,kCAA6B,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locales/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAKH,YAAY,EAAE,mBAAmB,IAAI,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAE1H;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,kCAA6B,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,kCAAyB,CAAC;AAE9D;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACxE,QAAQ,EAAE,CAAC,EACX,SAAS,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC/C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAElC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACzC,YAAY,EAAE,SAAS,MAAM,EAAE,EAC/B,IAAI,GAAE,uBAAuB,GAAG,MAAW,GAC1C,IAAI,CAwBN"}
|
package/dist/types/observe.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* • PermissionRecorder — permission decisions + denials
|
|
26
26
|
* • SkillRecorder — skill activations
|
|
27
27
|
* • LoggingRecorder — structured log lines per event
|
|
28
|
-
* •
|
|
28
|
+
* • StatusRecorder — chat-bubble first-person status
|
|
29
29
|
*
|
|
30
30
|
* Domain-flavored consumers (Lens, Grafana, Datadog) compose Tier 1+2
|
|
31
31
|
* directly; Tier 3 dashboards are opt-in.
|
|
@@ -34,15 +34,18 @@ export { ContextRecorder, type ContextRecorderOptions } from './recorders/core/C
|
|
|
34
34
|
export { streamRecorder, type StreamRecorderOptions } from './recorders/core/StreamRecorder.js';
|
|
35
35
|
export { compositionRecorder, type CompositionRecorderOptions, } from './recorders/core/CompositionRecorder.js';
|
|
36
36
|
export { agentRecorder, type AgentRecorderOptions } from './recorders/core/AgentRecorder.js';
|
|
37
|
-
export { boundaryRecorder, BoundaryRecorder, type BoundaryAggregate, type BoundaryRecorderOptions, type BoundaryRangeLabel, type DomainEvent, type DomainLLMEndEvent, type DomainLLMStartEvent, type
|
|
37
|
+
export { boundaryRecorder, BoundaryRecorder, type ActorArrow, type BoundaryAggregate, type BoundaryRecorderOptions, type BoundaryRangeLabel, type DomainContextInjectedEvent, type DomainDecisionBranchEvent, type DomainEvent, type DomainForkBranchEvent, type DomainLLMEndEvent, type DomainLLMStartEvent, type DomainLoopIterationEvent, type DomainRunEvent, type DomainSubflowEvent, type DomainToolStartEvent, type DomainToolEndEvent, } from './recorders/observability/BoundaryRecorder.js';
|
|
38
|
+
export { buildRunSteps, RunStepRecorder, runStepRecorder, type BuildRunStepsOptions, type RunStep, type RunStepGraph, type RunStepKind, type RunStepMeta, type RunStepRecorderOptions, type RunStepTransition, } from './recorders/observability/RunStepRecorder.js';
|
|
38
39
|
export { attachFlowchart, buildStepGraph, type StepGraph, type StepNode, type StepEdge, type SlotBoundary, type ContextInjection, type FlowchartOptions, type FlowchartHandle, } from './recorders/observability/FlowchartRecorder.js';
|
|
39
40
|
export { liveStateRecorder, LiveStateRecorder, LiveLLMTracker, LiveToolTracker, LiveAgentTurnTracker, type LLMLiveState, type ToolLiveState, type AgentTurnLiveState, type LiveStateRunnerLike, } from './recorders/observability/LiveStateRecorder.js';
|
|
40
41
|
export { costRecorder, type CostRecorderOptions } from './recorders/core/CostRecorder.js';
|
|
42
|
+
export { toolsRecorder, type ToolsRecorderOptions } from './recorders/core/ToolsRecorder.js';
|
|
43
|
+
export { contextEvaluatedRecorder, type ContextEvaluatedRecorderOptions, } from './recorders/core/ContextEvaluatedRecorder.js';
|
|
41
44
|
export { evalRecorder, type EvalRecorderOptions } from './recorders/core/EvalRecorder.js';
|
|
42
45
|
export { memoryRecorder, type MemoryRecorderOptions } from './recorders/core/MemoryRecorder.js';
|
|
43
46
|
export { permissionRecorder, type PermissionRecorderOptions, } from './recorders/core/PermissionRecorder.js';
|
|
44
47
|
export { skillRecorder, type SkillRecorderOptions } from './recorders/core/SkillRecorder.js';
|
|
45
48
|
export { attachLogging, LoggingDomains, type LoggingLogger, type LoggingDomain, type LoggingOptions, } from './recorders/observability/LoggingRecorder.js';
|
|
46
|
-
export {
|
|
49
|
+
export { attachStatus, type StatusEvent, type StatusOptions, } from './recorders/observability/StatusRecorder.js';
|
|
47
50
|
export { typedEmit } from './recorders/core/typedEmit.js';
|
|
48
51
|
//# sourceMappingURL=observe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../../src/observe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAGhG,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,
|
|
1
|
+
{"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../../src/observe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAGhG,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACL,gBAAgB,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EAAE,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,GAC/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,aAAa,GACnB,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* StatusRecorder — Claude Code-style live status line for Agent runs.
|
|
3
3
|
*
|
|
4
4
|
* Pattern: Facade over EventDispatcher's wildcard subscription.
|
|
5
5
|
* Role: Tier 3 observability — the low-level helper behind
|
|
6
|
-
* `
|
|
6
|
+
* `attachStatus(dispatcher, { onStatus })` (exported from
|
|
7
7
|
* `agentfootprint/observe`). For the high-level, uniform path use
|
|
8
8
|
* `agent.enable.liveStatus({ strategy: chatBubbleLiveStatus({ onLine }) })`.
|
|
9
9
|
* One callback receives a human-readable status string at every
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import type { EventDispatcher, Unsubscribe } from '../../events/dispatcher.js';
|
|
15
15
|
import type { AgentfootprintEventMap } from '../../events/registry.js';
|
|
16
|
-
export interface
|
|
16
|
+
export interface StatusOptions {
|
|
17
17
|
/**
|
|
18
18
|
* Called with a human-readable status string at each meaningful moment
|
|
19
19
|
* (iteration start, tool start/end, route decision, turn end).
|
|
@@ -23,15 +23,15 @@ export interface ThinkingOptions {
|
|
|
23
23
|
* Custom formatter. Return `null` to skip an event; return a string
|
|
24
24
|
* to emit that status. Omit for the built-in renderer.
|
|
25
25
|
*/
|
|
26
|
-
readonly format?: (event:
|
|
26
|
+
readonly format?: (event: StatusEvent) => string | null;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Subset of events the thinking renderer formats. Discriminated on `type`.
|
|
30
30
|
*/
|
|
31
|
-
export type
|
|
31
|
+
export type StatusEvent = AgentfootprintEventMap['agentfootprint.agent.turn_start'] | AgentfootprintEventMap['agentfootprint.agent.turn_end'] | AgentfootprintEventMap['agentfootprint.agent.iteration_start'] | AgentfootprintEventMap['agentfootprint.agent.route_decided'] | AgentfootprintEventMap['agentfootprint.stream.tool_start'] | AgentfootprintEventMap['agentfootprint.stream.tool_end'];
|
|
32
32
|
/**
|
|
33
33
|
* Attach a thinking-status subscription to the event dispatcher.
|
|
34
34
|
* Returns an Unsubscribe — call to detach.
|
|
35
35
|
*/
|
|
36
|
-
export declare function
|
|
37
|
-
//# sourceMappingURL=
|
|
36
|
+
export declare function attachStatus(dispatcher: EventDispatcher, options: StatusOptions): Unsubscribe;
|
|
37
|
+
//# sourceMappingURL=StatusRecorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusRecorder.d.ts","sourceRoot":"","sources":["../../../../src/recorders/observability/StatusRecorder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAEV,sBAAsB,EAEvB,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,MAAM,GAAG,IAAI,CAAC;CACzD;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,sBAAsB,CAAC,iCAAiC,CAAC,GACzD,sBAAsB,CAAC,+BAA+B,CAAC,GACvD,sBAAsB,CAAC,sCAAsC,CAAC,GAC9D,sBAAsB,CAAC,oCAAoC,CAAC,GAC5D,sBAAsB,CAAC,kCAAkC,CAAC,GAC1D,sBAAsB,CAAC,gCAAgC,CAAC,CAAC;AAW7D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,eAAe,EAAE,OAAO,EAAE,aAAa,GAAG,WAAW,CAO7F"}
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
*/
|
|
41
41
|
import type { AgentfootprintEvent } from '../../../events/registry.js';
|
|
42
42
|
/** The four mid-call states a chat bubble might render. */
|
|
43
|
-
export type
|
|
43
|
+
export type StatusKind = 'idle' | 'tool' | 'streaming' | 'paused';
|
|
44
44
|
/**
|
|
45
45
|
* What the selector returns. The chat-bubble consumer feeds this into
|
|
46
46
|
* the renderer to get the final string.
|
|
47
47
|
*/
|
|
48
|
-
export interface
|
|
49
|
-
readonly state:
|
|
48
|
+
export interface StatusState {
|
|
49
|
+
readonly state: StatusKind;
|
|
50
50
|
/** Vars for `{{name}}` substitution in the matched template. */
|
|
51
51
|
readonly vars: Readonly<Record<string, string>>;
|
|
52
52
|
/** When `state === 'tool'`, the resolving toolName. The renderer
|
|
@@ -54,9 +54,9 @@ export interface ThinkingState {
|
|
|
54
54
|
readonly toolName?: string;
|
|
55
55
|
}
|
|
56
56
|
/** Flat template map. Keys: state kinds + per-tool overrides. */
|
|
57
|
-
export type
|
|
57
|
+
export type StatusTemplates = Readonly<Record<string, string>>;
|
|
58
58
|
/** Render context — what the consumer's app config injects. */
|
|
59
|
-
export interface
|
|
59
|
+
export interface StatusContext {
|
|
60
60
|
/** Active actor's name. Substituted as `{{appName}}` in templates. */
|
|
61
61
|
readonly appName: string;
|
|
62
62
|
}
|
|
@@ -65,7 +65,7 @@ export interface ThinkingContext {
|
|
|
65
65
|
* `.thinkingTemplates({...})`. Per-tool overrides go via
|
|
66
66
|
* `tool.<toolName>` keys.
|
|
67
67
|
*/
|
|
68
|
-
export declare const
|
|
68
|
+
export declare const defaultStatusTemplates: StatusTemplates;
|
|
69
69
|
/**
|
|
70
70
|
* Derive the current thinking state from the event log.
|
|
71
71
|
*
|
|
@@ -90,7 +90,7 @@ export declare const defaultThinkingTemplates: ThinkingTemplates;
|
|
|
90
90
|
* cancels its matching opener so a completed tool.start/tool.end
|
|
91
91
|
* pair leaves the state quiescent.
|
|
92
92
|
*/
|
|
93
|
-
export declare function
|
|
93
|
+
export declare function selectStatus(events: readonly AgentfootprintEvent[]): StatusState | null;
|
|
94
94
|
/**
|
|
95
95
|
* Resolve the matched template + substitute vars.
|
|
96
96
|
*
|
|
@@ -103,5 +103,5 @@ export declare function selectThinkingState(events: readonly AgentfootprintEvent
|
|
|
103
103
|
* keeps the contract honest (consumer can detect "no template" and
|
|
104
104
|
* fall back to its own default).
|
|
105
105
|
*/
|
|
106
|
-
export declare function
|
|
106
|
+
export declare function renderStatusLine(state: StatusState | null, ctx: StatusContext, templates?: StatusTemplates): string | null;
|
|
107
107
|
//# sourceMappingURL=thinkingTemplates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thinkingTemplates.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/thinking/thinkingTemplates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAIvE,2DAA2D;AAC3D,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"thinkingTemplates.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/thinking/thinkingTemplates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAIvE,2DAA2D;AAC3D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD;4EACwE;IACxE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,iEAAiE;AACjE,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE/D,+DAA+D;AAC/D,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAID;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,eAKpC,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,mBAAmB,EAAE,GAAG,WAAW,GAAG,IAAI,CAkFvF;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,WAAW,GAAG,IAAI,EACzB,GAAG,EAAE,aAAa,EAClB,SAAS,GAAE,eAAwC,GAClD,MAAM,GAAG,IAAI,CAaf"}
|
package/dist/types/status.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* agentfootprint/status — chat-bubble status surface.
|
|
3
3
|
*
|
|
4
|
-
* Pattern: pure projection. `
|
|
4
|
+
* Pattern: pure projection. `selectStatus` walks the typed
|
|
5
5
|
* event log forward, tracking active pause / tool / LLM state,
|
|
6
6
|
* and returns the CURRENT thinking state (or null when the
|
|
7
7
|
* bubble should hide).
|
|
8
8
|
* Role: Outer ring. Consumers (Lens, custom chat UIs, embedded
|
|
9
9
|
* widgets) call this to drive a "what is the agent doing
|
|
10
|
-
* right now?" indicator. Output feeds `
|
|
10
|
+
* right now?" indicator. Output feeds `renderStatusLine`
|
|
11
11
|
* which resolves a template + variables to a final string.
|
|
12
12
|
*
|
|
13
13
|
* Why a subpath:
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
*
|
|
46
46
|
* (null) run done / between calls → bubble hidden
|
|
47
47
|
*/
|
|
48
|
-
export {
|
|
48
|
+
export { defaultStatusTemplates, selectStatus, renderStatusLine, type StatusState, type StatusKind, type StatusTemplates, type StatusContext, } from './recorders/observability/thinking/thinkingTemplates.js';
|
|
49
49
|
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,yDAAyD,CAAC"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import type { EventDispatcher, Unsubscribe } from '../events/dispatcher.js';
|
|
20
20
|
import type { ObservabilityStrategy, CostStrategy, LiveStatusStrategy, CommonStrategyOptions, ObservabilityTier } from './types.js';
|
|
21
|
-
import { type
|
|
21
|
+
import { type StatusTemplates } from '../recorders/observability/thinking/thinkingTemplates.js';
|
|
22
22
|
export interface ObservabilityEnableOptions extends CommonStrategyOptions {
|
|
23
23
|
/** Cost-of-on knob. `'minimal'` → only error + lifecycle events.
|
|
24
24
|
* `'standard'` → most domains. `'firehose'` → every event including
|
|
@@ -40,7 +40,7 @@ export interface LiveStatusEnableOptions extends CommonStrategyOptions {
|
|
|
40
40
|
/** Override the bundled English thinking templates with locale /
|
|
41
41
|
* per-tool / per-skill overrides. Same shape as
|
|
42
42
|
* `agent.thinkingTemplates(...)`. */
|
|
43
|
-
readonly templates?:
|
|
43
|
+
readonly templates?: StatusTemplates;
|
|
44
44
|
/** App name woven into `{{appName}}` template var. */
|
|
45
45
|
readonly appName?: string;
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attach.d.ts","sourceRoot":"","sources":["../../../src/strategies/attach.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE5E,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EAEZ,kBAAkB,EAElB,qBAAqB,EACrB,iBAAiB,EAElB,MAAM,YAAY,CAAC;AACpB,OAAO,EAIL,KAAK,
|
|
1
|
+
{"version":3,"file":"attach.d.ts","sourceRoot":"","sources":["../../../src/strategies/attach.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE5E,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EAEZ,kBAAkB,EAElB,qBAAqB,EACrB,iBAAiB,EAElB,MAAM,YAAY,CAAC;AACpB,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,0DAA0D,CAAC;AA+IlE,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;IACvE;;mDAE+C;IAC/C,QAAQ,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAC3C;AAQD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,IAAI,GAAE,0BAA+B,GACpC,WAAW,CA2Bb;AAID,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,eAAe,EAC3B,IAAI,GAAE,iBAAsB,GAC3B,WAAW,CAiCb;AAID,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC;;0CAEsC;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,eAAe,CAAC;IACrC,sDAAsD;IACtD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAgBD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,eAAe,EAC3B,IAAI,EAAE,uBAAuB,GAC5B,WAAW,CA0Bb"}
|
|
@@ -24,10 +24,10 @@ export interface ChatBubbleLiveStatusOptions {
|
|
|
24
24
|
* whose job is "show this line in the chat bubble."
|
|
25
25
|
*
|
|
26
26
|
* NOTE: this is INTENTIONALLY the only callback. If you need access
|
|
27
|
-
* to the underlying `
|
|
27
|
+
* to the underlying `StatusState` (for color-per-state, animation
|
|
28
28
|
* triggers, etc.), build your own `LiveStatusStrategy` directly OR
|
|
29
29
|
* use `compose([chatBubbleLiveStatus({onLine}), customStrategy])`.
|
|
30
|
-
* We don't surface `
|
|
30
|
+
* We don't surface `StatusState` here because it's an INTERNAL
|
|
31
31
|
* shape — exposing it would couple consumer UIs to changes in the
|
|
32
32
|
* state machine.
|
|
33
33
|
*/
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
*/
|
|
35
35
|
import type { AgentfootprintEvent, AgentfootprintEventType } from '../events/registry.js';
|
|
36
36
|
import type { StepGraph } from '../recorders/observability/FlowchartRecorder.js';
|
|
37
|
-
import type {
|
|
37
|
+
import type { StatusState } from '../recorders/observability/thinking/thinkingTemplates.js';
|
|
38
38
|
/**
|
|
39
39
|
* Common base every strategy carries. Per-group strategies extend this
|
|
40
40
|
* with their typed `onEvent` signature + capability shape.
|
|
@@ -159,7 +159,7 @@ export interface CostStrategy extends BaseStrategy {
|
|
|
159
159
|
recordCost(tick: CostTick): void;
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* What a status strategy receives every time `
|
|
162
|
+
* What a status strategy receives every time `selectStatus`
|
|
163
163
|
* returns a new state. The renderer has already resolved templates to
|
|
164
164
|
* a final string; strategies decide where to send it.
|
|
165
165
|
*/
|
|
@@ -168,7 +168,7 @@ export interface StatusUpdate {
|
|
|
168
168
|
readonly line: string;
|
|
169
169
|
/** Underlying state for strategies that want to format their own
|
|
170
170
|
* view (e.g., emit different colors per state in a TUI). */
|
|
171
|
-
readonly state:
|
|
171
|
+
readonly state: StatusState;
|
|
172
172
|
}
|
|
173
173
|
export interface LiveStatusCapabilities {
|
|
174
174
|
/** Strategy supports streaming partial tokens (vs only state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/strategies/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/strategies/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AACj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AM,CAAC;IAC7B;;;uDAGmD;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;CACjC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThinkingRecorder.js","sourceRoot":"","sources":["../../../../src/recorders/observability/ThinkingRecorder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAiCH,MAAM,QAAQ,GAAyC,IAAI,GAAG,CAA0B;IACtF,iCAAiC;IACjC,+BAA+B;IAC/B,sCAAsC;IACtC,oCAAoC;IACpC,kCAAkC;IAClC,gCAAgC;CACjC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,UAA2B,EAAE,OAAwB;IAClF,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,gBAAgB,CAAC;IAClD,OAAO,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAA0B,EAAE,EAAE;QACvD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;YAAE,OAAO;QACtC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAsB,CAAC,CAAC;QAC9C,IAAI,MAAM,KAAK,IAAI;YAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,KAAoB;IAC5C,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,iCAAiC;YACpC,OAAO,aAAa,CAAC;QACvB,KAAK,sCAAsC;YACzC,OAAO,aAAa,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QAChD,KAAK,kCAAkC;YACrC,OAAO,WAAW,KAAK,CAAC,OAAO,CAAC,QAAQ,KAAK,CAAC;QAChD,KAAK,gCAAgC;YACnC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK;gBACxB,CAAC,CAAC,QAAQ,KAAK,CAAC,OAAO,CAAC,UAAU,SAAS;gBAC3C,CAAC,CAAC,mBAAmB,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACpD,KAAK,oCAAoC;YACvC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,KAAK,OAAO;gBACrC,CAAC,CAAC,qBAAqB;gBACvB,CAAC,CAAC,+BAA+B,CAAC;QACtC,KAAK,+BAA+B;YAClC,OAAO,MAAM,CAAC;QAChB;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThinkingRecorder.js","sourceRoot":"","sources":["../../../src/recorders/observability/ThinkingRecorder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAiCH,MAAM,QAAQ,GAAyC,IAAI,GAAG,CAA0B;IACtF,iCAAiC;IACjC,+BAA+B;IAC/B,sCAAsC;IACtC,oCAAoC;IACpC,kCAAkC;IAClC,gCAAgC;CACjC,CAAC,CAAC;AAEH;;;GAGG;AACH,SAAgB,cAAc,CAAC,UAA2B,EAAE,OAAwB;IAClF,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,gBAAgB,CAAC;IAClD,OAAO,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAA0B,EAAE,EAAE;QACvD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;YAAE,OAAO;QACtC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAsB,CAAC,CAAC;QAC9C,IAAI,MAAM,KAAK,IAAI;YAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC;AAPD,wCAOC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,KAAoB;IAC5C,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,iCAAiC;YACpC,OAAO,aA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