@anvia/core 1.10.0 → 1.11.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/README.md +1 -1
- package/dist/agent/agent.js +10 -9
- package/dist/agent/index.d.ts +5 -5
- package/dist/agent/index.js +13 -12
- package/dist/agent/resolve-options.js +4 -4
- package/dist/agent/resolved-agent.js +11 -10
- package/dist/agent/team/agent-team.js +13 -12
- package/dist/agent/team/index.js +13 -12
- package/dist/agent/tool-catalog.js +2 -2
- package/dist/{agent-BOoZ3jbr.d.ts → agent-BUEZxrEv.d.ts} +5 -3
- package/dist/{chunk-5I2NVRHC.js → chunk-5ZM5DB3O.js} +14 -2
- package/dist/chunk-5ZM5DB3O.js.map +1 -0
- package/dist/{chunk-GNBPXJC6.js → chunk-EF26KTFU.js} +2 -2
- package/dist/{chunk-2K7NSWUC.js → chunk-ET5SCES6.js} +8 -8
- package/dist/{chunk-7NWFT422.js → chunk-G4ZKCVBW.js} +3 -3
- package/dist/{chunk-V5NIO3J3.js → chunk-G7NJDOT5.js} +3 -3
- package/dist/{chunk-EWTZ3IAH.js → chunk-J6O567TG.js} +4 -4
- package/dist/{chunk-7AV3PEYW.js → chunk-LQFBCC74.js} +3 -3
- package/dist/chunk-M7LU47T5.js +143 -0
- package/dist/chunk-M7LU47T5.js.map +1 -0
- package/dist/{chunk-PILUQCGV.js → chunk-MNWULFRX.js} +2 -2
- package/dist/{chunk-MA3TYOKF.js → chunk-PLQAN4EO.js} +25 -1
- package/dist/chunk-PLQAN4EO.js.map +1 -0
- package/dist/{chunk-GI6APIEU.js → chunk-R4AJ2EE3.js} +4 -4
- package/dist/{chunk-M32FTMYD.js → chunk-SHSSCEGO.js} +2 -2
- package/dist/chunk-SHSSCEGO.js.map +1 -0
- package/dist/{chunk-AO2QL2VD.js → chunk-SISGNHNO.js} +48 -13
- package/dist/chunk-SISGNHNO.js.map +1 -0
- package/dist/{chunk-WLUWRBQ4.js → chunk-SVFEG2TI.js} +4 -1
- package/dist/chunk-SVFEG2TI.js.map +1 -0
- package/dist/{chunk-4IOC4SP6.js → chunk-X4XULHDO.js} +7 -7
- package/dist/embeddings/index.js +7 -7
- package/dist/evals/advanced-metrics.js +3 -3
- package/dist/evals/cli.js +4 -4
- package/dist/evals/index.d.ts +2 -2
- package/dist/evals/index.js +34 -34
- package/dist/evals/metrics.js +4 -4
- package/dist/evals/runner.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +13 -12
- package/dist/internal/agent-runtime/agent-run.js +8 -6
- package/dist/internal/agent-runtime/continuation-state.js +1 -1
- package/dist/internal/agent-runtime/execution.js +1 -1
- package/dist/internal/agent-runtime/loop-context.js +33 -0
- package/dist/internal/agent-runtime/loop-context.js.map +1 -0
- package/dist/internal/agent-runtime/memory.js +3 -1
- package/dist/internal/agent-runtime/retrieval.js +2 -2
- package/dist/internal/agent-runtime/tool-execution.js +2 -2
- package/dist/internal/agent.d.ts +46 -6
- package/dist/internal/agent.js +21 -11
- package/dist/internal/team-runtime/run.js +12 -11
- package/dist/memory/index.d.ts +2 -2
- package/dist/memory/index.js +1 -1
- package/dist/memory/options.js +1 -1
- package/dist/{middleware-BNxyEpUX.d.ts → middleware-D_WPyilQ.d.ts} +1 -1
- package/dist/observability/index.d.ts +2 -2
- package/dist/pipeline/index.d.ts +3 -3
- package/dist/redaction/index.js +19 -0
- package/dist/redaction/index.js.map +1 -1
- package/dist/skills/index.js +2 -2
- package/dist/skills/load.js +2 -2
- package/dist/skills/tools.js +2 -2
- package/dist/tool/dynamic-tools.js +2 -2
- package/dist/tool/index.d.ts +2 -2
- package/dist/tool/index.js +2 -2
- package/dist/{types-B8KBVXuH.d.ts → types-CaAiktBl.d.ts} +4 -1
- package/dist/vector-store/index.js +2 -2
- package/dist/vector-store/ingest.js +2 -2
- package/dist/vector-store/retrieve.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5I2NVRHC.js.map +0 -1
- package/dist/chunk-AO2QL2VD.js.map +0 -1
- package/dist/chunk-M32FTMYD.js.map +0 -1
- package/dist/chunk-MA3TYOKF.js.map +0 -1
- package/dist/chunk-WLUWRBQ4.js.map +0 -1
- /package/dist/{chunk-GNBPXJC6.js.map → chunk-EF26KTFU.js.map} +0 -0
- /package/dist/{chunk-2K7NSWUC.js.map → chunk-ET5SCES6.js.map} +0 -0
- /package/dist/{chunk-7NWFT422.js.map → chunk-G4ZKCVBW.js.map} +0 -0
- /package/dist/{chunk-V5NIO3J3.js.map → chunk-G7NJDOT5.js.map} +0 -0
- /package/dist/{chunk-EWTZ3IAH.js.map → chunk-J6O567TG.js.map} +0 -0
- /package/dist/{chunk-7AV3PEYW.js.map → chunk-LQFBCC74.js.map} +0 -0
- /package/dist/{chunk-PILUQCGV.js.map → chunk-MNWULFRX.js.map} +0 -0
- /package/dist/{chunk-GI6APIEU.js.map → chunk-R4AJ2EE3.js.map} +0 -0
- /package/dist/{chunk-4IOC4SP6.js.map → chunk-X4XULHDO.js.map} +0 -0
package/dist/evals/metrics.js
CHANGED
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
notContains,
|
|
12
12
|
requiredFields,
|
|
13
13
|
semanticSimilarity
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-ET5SCES6.js";
|
|
15
15
|
import "../chunk-ZPXOBQDS.js";
|
|
16
|
+
import "../chunk-EJR6VVB3.js";
|
|
17
|
+
import "../chunk-ZYXMWEL4.js";
|
|
16
18
|
import "../chunk-3P3YVJ7V.js";
|
|
17
19
|
import "../chunk-VCOGUS3Q.js";
|
|
18
|
-
import "../chunk-ZYXMWEL4.js";
|
|
19
|
-
import "../chunk-EJR6VVB3.js";
|
|
20
20
|
import "../chunk-TP3MCUXS.js";
|
|
21
21
|
import "../chunk-6RQYWZI3.js";
|
|
22
22
|
import "../chunk-NF6WBPFG.js";
|
|
23
23
|
import "../chunk-ERN7P6Q4.js";
|
|
24
|
-
import "../chunk-YCTXTOOQ.js";
|
|
25
24
|
import "../chunk-DU4WA6LQ.js";
|
|
26
25
|
import "../chunk-7F53DOML.js";
|
|
26
|
+
import "../chunk-YCTXTOOQ.js";
|
|
27
27
|
import "../chunk-4FIVU53H.js";
|
|
28
28
|
import "../chunk-LGPXCJJO.js";
|
|
29
29
|
import "../chunk-57AUTEQ6.js";
|
package/dist/evals/runner.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
EvalFailFastError,
|
|
3
3
|
EvalReporterDispatchError,
|
|
4
4
|
runEvalSuite
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-X4XULHDO.js";
|
|
6
6
|
import "../chunk-PHLGGRHC.js";
|
|
7
|
-
import "../chunk-ZYXMWEL4.js";
|
|
8
|
-
import "../chunk-EJR6VVB3.js";
|
|
9
7
|
import "../chunk-4OSA3MMA.js";
|
|
8
|
+
import "../chunk-EJR6VVB3.js";
|
|
9
|
+
import "../chunk-ZYXMWEL4.js";
|
|
10
10
|
import "../chunk-TP3MCUXS.js";
|
|
11
11
|
import "../chunk-6RQYWZI3.js";
|
|
12
12
|
import "../chunk-NF6WBPFG.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as Agent, a as AgentContextInput, b as AgentMemory, c as AgentMemoryOptions, d as AgentOptions, e as AgentToolInput, f as AgentToolOptions, C as CreateHybridVectorContextOptions, g as CreateVectorContextOptions, V as VectorContext, h as VectorContextBaseOptions, i as createVectorContext, j as isVectorContext } from './agent-
|
|
1
|
+
export { A as Agent, a as AgentContextInput, b as AgentMemory, c as AgentMemoryOptions, d as AgentOptions, e as AgentToolInput, f as AgentToolOptions, C as CreateHybridVectorContextOptions, g as CreateVectorContextOptions, V as VectorContext, h as VectorContextBaseOptions, i as createVectorContext, j as isVectorContext } from './agent-BUEZxrEv.js';
|
|
2
2
|
export { AgentRunBlockedError, AgentRunCancelledError, AgentStreamClosedError, AgentStructuredOutputError, AgentStructuredOutputFormat, AgentStructuredOutputPhase, AgentTeam, AgentTeamEvent, AgentTeamInteraction, AgentTeamInteractionError, AgentTeamLimitError, AgentTeamLimits, AgentTeamMember, AgentTeamMemberStatus, AgentTeamMemberSummary, AgentTeamMessage, AgentTeamOptions, AgentTeamOutcome, AgentTeamRunOptions, AgentTeamSpawnRule, AgentTeamStream, AgentToolSuspensionError, MaxTurnsError } from './agent/index.js';
|
|
3
|
-
export { A as AgentBlockedOutcome, a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, g as AgentInteractionOutcome, h as AgentLifecycle, i as AgentMemoryCompactionEvent, j as AgentMemoryCompactionOptions, k as AgentMiddleware, l as AgentOutcome, m as AgentPrompt, n as AgentResponse, o as AgentRunOptions, p as AgentRunSettings, q as AgentStartEvent, r as AgentSteerInput, s as AgentSteerReceipt, t as AgentStepFinishEvent, u as AgentStream, v as AgentStreamEvent, w as AgentToolCallDeltaEvent, x as AgentToolFinishEvent, y as AgentToolStartEvent, C as CompletionRequestMiddlewareArgs, z as CompletionRequestMiddlewareResult, B as CompletionResponseMiddlewareArgs, D as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, E as ToolInputMiddlewareResult, F as ToolOutputMiddlewareArgs, G as ToolOutputMiddlewareResult, H as ToolResultMiddlewareArgs, I as createMiddleware } from './middleware-
|
|
3
|
+
export { A as AgentBlockedOutcome, a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, g as AgentInteractionOutcome, h as AgentLifecycle, i as AgentMemoryCompactionEvent, j as AgentMemoryCompactionOptions, k as AgentMiddleware, l as AgentOutcome, m as AgentPrompt, n as AgentResponse, o as AgentRunOptions, p as AgentRunSettings, q as AgentStartEvent, r as AgentSteerInput, s as AgentSteerReceipt, t as AgentStepFinishEvent, u as AgentStream, v as AgentStreamEvent, w as AgentToolCallDeltaEvent, x as AgentToolFinishEvent, y as AgentToolStartEvent, C as CompletionRequestMiddlewareArgs, z as CompletionRequestMiddlewareResult, B as CompletionResponseMiddlewareArgs, D as CompletionResponseMiddlewareResult, T as ToolInputMiddlewareArgs, E as ToolInputMiddlewareResult, F as ToolOutputMiddlewareArgs, G as ToolOutputMiddlewareResult, H as ToolResultMiddlewareArgs, I as createMiddleware } from './middleware-D_WPyilQ.js';
|
|
4
4
|
export { M as ModelCallOptions } from './model-call-options-CZkSw_xN.js';
|
|
5
5
|
export { R as RetryContext, a as RetryOptions, b as RetrySetting } from './retry-CjvSlKGW.js';
|
|
6
6
|
export { C as COMPLETION_PROVIDER_OUTPUT_ERROR_CODE, a as CompletionBaseOptions, b as CompletionInput, c as CompletionProviderOutputError, d as CompletionProviderOutputErrorKind, e as CompletionProviderOutputErrorOptions, f as CompletionStructuredOutputError, g as CompletionStructuredOutputPhase, G as GenerateCompletionOptions, h as GenerateStructuredCompletionOptions, M as MessageMetadataSchema, R as REASONING_EFFORT_CONTROL_ID, i as ReasoningEffortControls, S as StandardJSONSchemaV1, j as StandardSchemaV1, k as StreamCompletionOptions, l as StreamStructuredCompletionOptions, m as createMessageSchema, n as defineCompletionModelControls, o as generateCompletion, p as isJsonValue, q as isMessage, r as isStandardSchema, s as messageSchema, t as messagesSchema, u as parseMessage, v as parseMessages, w as streamCompletion } from './provider-output-error-CQD0MWey.js';
|
|
@@ -9,7 +9,7 @@ export { a as allow, b as block, d as defineGuardrailPolicy, c as defineInputGua
|
|
|
9
9
|
export { G as GuardrailBoundary, a as GuardrailDecisionRecord, b as GuardrailMode, c as GuardrailPolicy, d as GuardrailPolicyInput, e as GuardrailPolicyOptions, I as InputGuardrail, f as InputGuardrailActions, g as InputGuardrailContext, O as OutputGuardrail, h as OutputGuardrailActions, i as OutputGuardrailContext } from './types-CqiX-4_C.js';
|
|
10
10
|
export { GenerateImageOptions, GeneratedImage, ImageGenerationModel, ImageGenerationRequest, ImageGenerationResult, generateImage } from './image-generation/index.js';
|
|
11
11
|
export { MemoryCompactionConflictError, MemoryCompactionError, createMemoryScopeKey, createSummaryMemoryCompactor, estimateMemoryTokens, isMemoryCompactionMessage } from './memory/index.js';
|
|
12
|
-
export { C as CreateMemoryScopeKeyOptions, a as CreateSummaryMemoryCompactorOptions, M as MemoryAppendOptions, b as MemoryClearOptions, c as MemoryCompactionCapability, d as MemoryCompactionConflictRetryOptions, e as MemoryCompactionInfo, f as MemoryCompactionMessage, g as MemoryCompactionMetadata, h as MemoryCompactionOptions, i as MemoryCompactionReplacePrefixOptions, j as MemoryCompactionReplacePrefixResult, k as MemoryCompactionResult, l as MemoryCompactionRetention, m as MemoryCompactionSnapshot, n as MemoryCompactionSnapshotOptions, o as MemoryCompactor, p as MemoryCompactorInput, q as MemoryCompactorResult, r as MemoryConversation, s as MemoryConversationGetOptions, t as MemoryConversationListOptions, u as MemoryConversationMessage, v as MemoryConversationSummary, w as MemoryErrorOptions, x as MemoryInspector, y as MemoryLoadOptions, z as MemoryOptions, A as MemorySavePolicy, B as MemoryScope, D as MemoryScopeKeyOptions, E as MemoryScopeKeyResolver, F as MemoryStore, G as MemoryTokenCounter } from './types-
|
|
12
|
+
export { C as CreateMemoryScopeKeyOptions, a as CreateSummaryMemoryCompactorOptions, M as MemoryAppendOptions, b as MemoryClearOptions, c as MemoryCompactionCapability, d as MemoryCompactionConflictRetryOptions, e as MemoryCompactionInfo, f as MemoryCompactionMessage, g as MemoryCompactionMetadata, h as MemoryCompactionOptions, i as MemoryCompactionReplacePrefixOptions, j as MemoryCompactionReplacePrefixResult, k as MemoryCompactionResult, l as MemoryCompactionRetention, m as MemoryCompactionSnapshot, n as MemoryCompactionSnapshotOptions, o as MemoryCompactor, p as MemoryCompactorInput, q as MemoryCompactorResult, r as MemoryConversation, s as MemoryConversationGetOptions, t as MemoryConversationListOptions, u as MemoryConversationMessage, v as MemoryConversationSummary, w as MemoryErrorOptions, x as MemoryInspector, y as MemoryLoadOptions, z as MemoryOptions, A as MemorySavePolicy, B as MemoryScope, D as MemoryScopeKeyOptions, E as MemoryScopeKeyResolver, F as MemoryStore, G as MemoryTokenCounter } from './types-CaAiktBl.js';
|
|
13
13
|
export { Z as ZodSchema } from './zod-schema-C7F4clpm.js';
|
|
14
14
|
export { loadSkills, skill } from './skills/index.js';
|
|
15
15
|
export { S as SkillValidationError } from './types-CIG2loIE.js';
|
package/dist/index.js
CHANGED
|
@@ -54,9 +54,9 @@ import {
|
|
|
54
54
|
import "./chunk-53TPAXYR.js";
|
|
55
55
|
import {
|
|
56
56
|
AgentTeam
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LQFBCC74.js";
|
|
58
58
|
import "./chunk-X6WS3XWL.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-G4ZKCVBW.js";
|
|
60
60
|
import "./chunk-PIMD4DYG.js";
|
|
61
61
|
import "./chunk-FSBDE6RF.js";
|
|
62
62
|
import "./chunk-3TAQXJBC.js";
|
|
@@ -65,20 +65,21 @@ import {
|
|
|
65
65
|
AgentTeamInteractionError,
|
|
66
66
|
AgentTeamLimitError
|
|
67
67
|
} from "./chunk-ENZ2XX27.js";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-G7NJDOT5.js";
|
|
69
69
|
import {
|
|
70
70
|
Agent
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
71
|
+
} from "./chunk-J6O567TG.js";
|
|
72
|
+
import "./chunk-SISGNHNO.js";
|
|
73
|
+
import "./chunk-SXE4J43E.js";
|
|
73
74
|
import "./chunk-DRSKZVC6.js";
|
|
74
75
|
import "./chunk-LAIATEUB.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-PLQAN4EO.js";
|
|
77
|
+
import "./chunk-M7LU47T5.js";
|
|
76
78
|
import "./chunk-PFJN5OIQ.js";
|
|
77
79
|
import "./chunk-7FBSGD6E.js";
|
|
78
80
|
import "./chunk-NPJ2T3L5.js";
|
|
79
81
|
import "./chunk-YWRXOPHC.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-5I2NVRHC.js";
|
|
82
|
+
import "./chunk-5ZM5DB3O.js";
|
|
82
83
|
import "./chunk-5IURMWFN.js";
|
|
83
84
|
import "./chunk-2NLINXRF.js";
|
|
84
85
|
import "./chunk-JMJFK3A4.js";
|
|
@@ -117,10 +118,10 @@ import "./chunk-NF6WBPFG.js";
|
|
|
117
118
|
import "./chunk-LBYJPMHC.js";
|
|
118
119
|
import "./chunk-KFAVEL5F.js";
|
|
119
120
|
import "./chunk-GLMYZ6OA.js";
|
|
120
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-MNWULFRX.js";
|
|
121
122
|
import {
|
|
122
123
|
estimateMemoryTokens
|
|
123
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-SVFEG2TI.js";
|
|
124
125
|
import "./chunk-ZPJFXRQZ.js";
|
|
125
126
|
import "./chunk-MEN4AFDZ.js";
|
|
126
127
|
import "./chunk-VZ5ZZBNX.js";
|
|
@@ -147,12 +148,12 @@ import "./chunk-PJNE75WC.js";
|
|
|
147
148
|
import "./chunk-PLDJCCVL.js";
|
|
148
149
|
import "./chunk-3J2CSVPR.js";
|
|
149
150
|
import "./chunk-ERN7P6Q4.js";
|
|
150
|
-
import "./chunk-YCTXTOOQ.js";
|
|
151
151
|
import "./chunk-DU4WA6LQ.js";
|
|
152
|
+
import "./chunk-7F53DOML.js";
|
|
153
|
+
import "./chunk-YCTXTOOQ.js";
|
|
152
154
|
import "./chunk-KO5NMTAM.js";
|
|
153
155
|
import "./chunk-TFIOU6UR.js";
|
|
154
156
|
import "./chunk-GPVXCY5I.js";
|
|
155
|
-
import "./chunk-7F53DOML.js";
|
|
156
157
|
import "./chunk-4FIVU53H.js";
|
|
157
158
|
import "./chunk-NVALGVQG.js";
|
|
158
159
|
import {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRun
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-SISGNHNO.js";
|
|
4
|
+
import "../../chunk-SXE4J43E.js";
|
|
4
5
|
import "../../chunk-DRSKZVC6.js";
|
|
5
6
|
import "../../chunk-LAIATEUB.js";
|
|
6
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-PLQAN4EO.js";
|
|
8
|
+
import "../../chunk-M7LU47T5.js";
|
|
7
9
|
import "../../chunk-PFJN5OIQ.js";
|
|
8
10
|
import "../../chunk-7FBSGD6E.js";
|
|
9
11
|
import "../../chunk-NPJ2T3L5.js";
|
|
10
12
|
import "../../chunk-YWRXOPHC.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-5I2NVRHC.js";
|
|
13
|
+
import "../../chunk-5ZM5DB3O.js";
|
|
13
14
|
import "../../chunk-5IURMWFN.js";
|
|
14
15
|
import "../../chunk-2NLINXRF.js";
|
|
15
16
|
import "../../chunk-JMJFK3A4.js";
|
|
@@ -32,6 +33,7 @@ import "../../chunk-NF6WBPFG.js";
|
|
|
32
33
|
import "../../chunk-LBYJPMHC.js";
|
|
33
34
|
import "../../chunk-KFAVEL5F.js";
|
|
34
35
|
import "../../chunk-GLMYZ6OA.js";
|
|
36
|
+
import "../../chunk-SVFEG2TI.js";
|
|
35
37
|
import "../../chunk-ZPJFXRQZ.js";
|
|
36
38
|
import "../../chunk-MEN4AFDZ.js";
|
|
37
39
|
import "../../chunk-VZ5ZZBNX.js";
|
|
@@ -49,12 +51,12 @@ import "../../chunk-PJNE75WC.js";
|
|
|
49
51
|
import "../../chunk-PLDJCCVL.js";
|
|
50
52
|
import "../../chunk-3J2CSVPR.js";
|
|
51
53
|
import "../../chunk-ERN7P6Q4.js";
|
|
52
|
-
import "../../chunk-YCTXTOOQ.js";
|
|
53
54
|
import "../../chunk-DU4WA6LQ.js";
|
|
55
|
+
import "../../chunk-7F53DOML.js";
|
|
56
|
+
import "../../chunk-YCTXTOOQ.js";
|
|
54
57
|
import "../../chunk-KO5NMTAM.js";
|
|
55
58
|
import "../../chunk-TFIOU6UR.js";
|
|
56
59
|
import "../../chunk-GPVXCY5I.js";
|
|
57
|
-
import "../../chunk-7F53DOML.js";
|
|
58
60
|
import "../../chunk-4FIVU53H.js";
|
|
59
61
|
import "../../chunk-ZHC5CD6J.js";
|
|
60
62
|
import "../../chunk-5V533R7F.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
finishLoopContext,
|
|
3
|
+
planLoopContext,
|
|
4
|
+
projectLoopContext,
|
|
5
|
+
summarizeLoopContext
|
|
6
|
+
} from "../../chunk-M7LU47T5.js";
|
|
7
|
+
import "../../chunk-5CKB7RQY.js";
|
|
8
|
+
import "../../chunk-LQJ4KHMY.js";
|
|
9
|
+
import "../../chunk-TP3MCUXS.js";
|
|
10
|
+
import "../../chunk-6RQYWZI3.js";
|
|
11
|
+
import "../../chunk-NF6WBPFG.js";
|
|
12
|
+
import "../../chunk-SVFEG2TI.js";
|
|
13
|
+
import "../../chunk-ZPJFXRQZ.js";
|
|
14
|
+
import "../../chunk-LGPXCJJO.js";
|
|
15
|
+
import "../../chunk-57AUTEQ6.js";
|
|
16
|
+
import "../../chunk-6OO5C5GW.js";
|
|
17
|
+
import "../../chunk-GSVOMQEE.js";
|
|
18
|
+
import "../../chunk-4ONUNWGC.js";
|
|
19
|
+
import "../../chunk-MIPBH5S7.js";
|
|
20
|
+
import "../../chunk-XQV3XNVT.js";
|
|
21
|
+
import "../../chunk-HJ6KTQTZ.js";
|
|
22
|
+
import "../../chunk-BONQTXRQ.js";
|
|
23
|
+
import "../../chunk-4C7AXYOM.js";
|
|
24
|
+
import "../../chunk-SQAAVYJG.js";
|
|
25
|
+
import "../../chunk-POXHJF3H.js";
|
|
26
|
+
import "../../chunk-USRKPEQN.js";
|
|
27
|
+
export {
|
|
28
|
+
finishLoopContext,
|
|
29
|
+
planLoopContext,
|
|
30
|
+
projectLoopContext,
|
|
31
|
+
summarizeLoopContext
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=loop-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRunMemory
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-PLQAN4EO.js";
|
|
4
|
+
import "../../chunk-M7LU47T5.js";
|
|
4
5
|
import "../../chunk-5CKB7RQY.js";
|
|
5
6
|
import "../../chunk-LQJ4KHMY.js";
|
|
6
7
|
import "../../chunk-TP3MCUXS.js";
|
|
7
8
|
import "../../chunk-6RQYWZI3.js";
|
|
8
9
|
import "../../chunk-NF6WBPFG.js";
|
|
10
|
+
import "../../chunk-SVFEG2TI.js";
|
|
9
11
|
import "../../chunk-ZPJFXRQZ.js";
|
|
10
12
|
import "../../chunk-LGPXCJJO.js";
|
|
11
13
|
import "../../chunk-57AUTEQ6.js";
|
|
@@ -9,12 +9,12 @@ import "../../chunk-ESOFEAYK.js";
|
|
|
9
9
|
import "../../chunk-CB2L2NIQ.js";
|
|
10
10
|
import "../../chunk-5WLIHNNJ.js";
|
|
11
11
|
import "../../chunk-ERN7P6Q4.js";
|
|
12
|
-
import "../../chunk-YCTXTOOQ.js";
|
|
13
12
|
import "../../chunk-DU4WA6LQ.js";
|
|
13
|
+
import "../../chunk-7F53DOML.js";
|
|
14
|
+
import "../../chunk-YCTXTOOQ.js";
|
|
14
15
|
import "../../chunk-KO5NMTAM.js";
|
|
15
16
|
import "../../chunk-TFIOU6UR.js";
|
|
16
17
|
import "../../chunk-GPVXCY5I.js";
|
|
17
|
-
import "../../chunk-7F53DOML.js";
|
|
18
18
|
import "../../chunk-4FIVU53H.js";
|
|
19
19
|
import "../../chunk-ZHC5CD6J.js";
|
|
20
20
|
import "../../chunk-5V533R7F.js";
|
|
@@ -25,12 +25,12 @@ import "../../chunk-PJNE75WC.js";
|
|
|
25
25
|
import "../../chunk-PLDJCCVL.js";
|
|
26
26
|
import "../../chunk-3J2CSVPR.js";
|
|
27
27
|
import "../../chunk-ERN7P6Q4.js";
|
|
28
|
-
import "../../chunk-YCTXTOOQ.js";
|
|
29
28
|
import "../../chunk-DU4WA6LQ.js";
|
|
29
|
+
import "../../chunk-7F53DOML.js";
|
|
30
|
+
import "../../chunk-YCTXTOOQ.js";
|
|
30
31
|
import "../../chunk-KO5NMTAM.js";
|
|
31
32
|
import "../../chunk-TFIOU6UR.js";
|
|
32
33
|
import "../../chunk-GPVXCY5I.js";
|
|
33
|
-
import "../../chunk-7F53DOML.js";
|
|
34
34
|
import "../../chunk-4FIVU53H.js";
|
|
35
35
|
import "../../chunk-5V533R7F.js";
|
|
36
36
|
import "../../chunk-LGPXCJJO.js";
|
package/dist/internal/agent.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as ResolvedAgentOptions, A as Agent } from '../agent-
|
|
2
|
-
import { d as CompletionModel, P as ProviderTool,
|
|
1
|
+
import { R as ResolvedAgentOptions, A as Agent } from '../agent-BUEZxrEv.js';
|
|
2
|
+
import { d as CompletionModel, P as ProviderTool, M as Message, U as Usage, k as CompletionResponse, j as CompletionRequest, y as ToolCallPart, G as ToolResultContentPart } from '../types-DYqZKDA8.js';
|
|
3
3
|
import { T as ToolIndex } from '../dynamic-tools-B3OjYyhC.js';
|
|
4
4
|
import { A as AnyTool, c as ToolCallContext, N as NormalizedToolOutput } from '../tool-W1cAPuRF.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { e as MemoryCompactionInfo, G as MemoryTokenCounter, o as MemoryCompactor, B as MemoryScope } from '../types-CaAiktBl.js';
|
|
6
|
+
import { v as AgentStreamEvent } from '../middleware-D_WPyilQ.js';
|
|
7
7
|
import '../retry-CjvSlKGW.js';
|
|
8
8
|
import '../types-CqiX-4_C.js';
|
|
9
9
|
import '../types-94Q2mPRa.js';
|
|
@@ -26,8 +26,46 @@ type AgentToolState = {
|
|
|
26
26
|
};
|
|
27
27
|
declare function getAgentToolState(agent: object): AgentToolState;
|
|
28
28
|
|
|
29
|
+
/** Indexes refer to the unchanged input transcript of this execution segment. */
|
|
30
|
+
type LoopContextCheckpoint = {
|
|
31
|
+
summary: string;
|
|
32
|
+
coveredMessages: number;
|
|
33
|
+
compactedMessageCount: number;
|
|
34
|
+
};
|
|
35
|
+
type PreparedLoopContext = {
|
|
36
|
+
messages: Message[];
|
|
37
|
+
checkpoint?: LoopContextCheckpoint | undefined;
|
|
38
|
+
compaction?: MemoryCompactionInfo | undefined;
|
|
39
|
+
};
|
|
40
|
+
type LoopContextPlan = {
|
|
41
|
+
messages: Message[];
|
|
42
|
+
prefix: Message[];
|
|
43
|
+
coveredMessages: number;
|
|
44
|
+
compactedMessageCount: number;
|
|
45
|
+
originalMessageCount: number;
|
|
46
|
+
originalTokenCount: number;
|
|
47
|
+
compactedTokenCount: number;
|
|
48
|
+
retainedTokenCount: number;
|
|
49
|
+
};
|
|
50
|
+
declare function projectLoopContext(messages: readonly Message[], checkpoint?: LoopContextCheckpoint): Message[];
|
|
51
|
+
/** Select only complete exchanges; parallel tool calls must all have results before a cut. */
|
|
52
|
+
declare function planLoopContext(messages: readonly Message[], checkpoint: LoopContextCheckpoint | undefined, options: {
|
|
53
|
+
afterTokens: number;
|
|
54
|
+
recentToolTurns?: number | undefined;
|
|
55
|
+
tokenCounter?: MemoryTokenCounter | undefined;
|
|
56
|
+
}, signal?: AbortSignal): Promise<LoopContextPlan | undefined>;
|
|
57
|
+
/** Validation is inside the summarizer boundary so durable retry budgets cover invalid results. */
|
|
58
|
+
declare function summarizeLoopContext(plan: LoopContextPlan, compactor: MemoryCompactor, scope: MemoryScope, signal?: AbortSignal): Promise<{
|
|
59
|
+
summary: string;
|
|
60
|
+
usage: Usage;
|
|
61
|
+
}>;
|
|
62
|
+
declare function finishLoopContext(plan: LoopContextPlan, result: {
|
|
63
|
+
summary: string;
|
|
64
|
+
usage: Usage;
|
|
65
|
+
}, counter?: MemoryTokenCounter, signal?: AbortSignal, attempts?: number): Promise<PreparedLoopContext>;
|
|
66
|
+
|
|
29
67
|
/** Runtime capability marker: older core versions must fail before accepting durable work. */
|
|
30
|
-
declare const AGENT_RUN_EXECUTION_VERSION =
|
|
68
|
+
declare const AGENT_RUN_EXECUTION_VERSION = 3;
|
|
31
69
|
/** Normalized generation progress; never includes raw provider responses. */
|
|
32
70
|
type AgentCompletionStreamEvent = Extract<AgentStreamEvent<unknown, unknown>, {
|
|
33
71
|
type: "text_delta" | "reasoning_delta" | "tool_call_delta" | "tool_call" | "source" | "provider_tool_call";
|
|
@@ -43,6 +81,8 @@ type AgentToolExecutionResult = {
|
|
|
43
81
|
};
|
|
44
82
|
/** Internal persistence boundary used by execution runtimes. Callbacks own external effects. */
|
|
45
83
|
interface AgentRunExecution {
|
|
84
|
+
/** Persist the context selected before each model call, including skipped compaction decisions. */
|
|
85
|
+
prepareMessages?(turn: number, messages: readonly Message[], checkpoint?: LoopContextCheckpoint): Promise<PreparedLoopContext>;
|
|
46
86
|
completion(turn: number, request: CompletionRequest, execute: () => Promise<CompletionResponse>): Promise<CompletionResponse>;
|
|
47
87
|
streamCompletion?(turn: number, request: CompletionRequest, execute: () => AgentCompletionStream): AgentCompletionStream;
|
|
48
88
|
tool(call: {
|
|
@@ -214,4 +254,4 @@ type InternalAgentRunOptions = {
|
|
|
214
254
|
};
|
|
215
255
|
declare function withInternalAgentRunOptions<T extends object>(options: T, internal: InternalAgentRunOptions): T;
|
|
216
256
|
|
|
217
|
-
export { AGENT_RUN_EXECUTION_VERSION, Agent, type AgentCompletionStream, type AgentCompletionStreamEvent, type AgentHook, type AgentRunExecution, type AgentToolExecutionResult, type InternalAgentRunOptions, ResolvedAgentOptions, createHook, createResolvedAgent, getAgentToolState, getResolvedAgentOptions, withInternalAgentRunOptions };
|
|
257
|
+
export { AGENT_RUN_EXECUTION_VERSION, Agent, type AgentCompletionStream, type AgentCompletionStreamEvent, type AgentHook, type AgentRunExecution, type AgentToolExecutionResult, type InternalAgentRunOptions, type LoopContextCheckpoint, type PreparedLoopContext, ResolvedAgentOptions, createHook, createResolvedAgent, finishLoopContext, getAgentToolState, getResolvedAgentOptions, planLoopContext, projectLoopContext, summarizeLoopContext, withInternalAgentRunOptions };
|
package/dist/internal/agent.js
CHANGED
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_RUN_EXECUTION_VERSION
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SHSSCEGO.js";
|
|
4
4
|
import {
|
|
5
5
|
createResolvedAgent,
|
|
6
6
|
getResolvedAgentOptions
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-G7NJDOT5.js";
|
|
8
8
|
import {
|
|
9
9
|
Agent
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-J6O567TG.js";
|
|
11
|
+
import "../chunk-SISGNHNO.js";
|
|
12
|
+
import "../chunk-SXE4J43E.js";
|
|
12
13
|
import "../chunk-DRSKZVC6.js";
|
|
13
14
|
import "../chunk-LAIATEUB.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-PLQAN4EO.js";
|
|
16
|
+
import {
|
|
17
|
+
finishLoopContext,
|
|
18
|
+
planLoopContext,
|
|
19
|
+
projectLoopContext,
|
|
20
|
+
summarizeLoopContext
|
|
21
|
+
} from "../chunk-M7LU47T5.js";
|
|
15
22
|
import "../chunk-PFJN5OIQ.js";
|
|
16
23
|
import {
|
|
17
24
|
withInternalAgentRunOptions
|
|
18
25
|
} from "../chunk-7FBSGD6E.js";
|
|
19
26
|
import "../chunk-NPJ2T3L5.js";
|
|
20
27
|
import "../chunk-YWRXOPHC.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-5I2NVRHC.js";
|
|
28
|
+
import "../chunk-5ZM5DB3O.js";
|
|
23
29
|
import "../chunk-5IURMWFN.js";
|
|
24
30
|
import "../chunk-2NLINXRF.js";
|
|
25
31
|
import "../chunk-JMJFK3A4.js";
|
|
@@ -47,8 +53,8 @@ import "../chunk-NF6WBPFG.js";
|
|
|
47
53
|
import "../chunk-LBYJPMHC.js";
|
|
48
54
|
import "../chunk-KFAVEL5F.js";
|
|
49
55
|
import "../chunk-GLMYZ6OA.js";
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-MNWULFRX.js";
|
|
57
|
+
import "../chunk-SVFEG2TI.js";
|
|
52
58
|
import "../chunk-ZPJFXRQZ.js";
|
|
53
59
|
import "../chunk-MEN4AFDZ.js";
|
|
54
60
|
import "../chunk-VZ5ZZBNX.js";
|
|
@@ -66,12 +72,12 @@ import "../chunk-PJNE75WC.js";
|
|
|
66
72
|
import "../chunk-PLDJCCVL.js";
|
|
67
73
|
import "../chunk-3J2CSVPR.js";
|
|
68
74
|
import "../chunk-ERN7P6Q4.js";
|
|
69
|
-
import "../chunk-YCTXTOOQ.js";
|
|
70
75
|
import "../chunk-DU4WA6LQ.js";
|
|
76
|
+
import "../chunk-7F53DOML.js";
|
|
77
|
+
import "../chunk-YCTXTOOQ.js";
|
|
71
78
|
import "../chunk-KO5NMTAM.js";
|
|
72
79
|
import "../chunk-TFIOU6UR.js";
|
|
73
80
|
import "../chunk-GPVXCY5I.js";
|
|
74
|
-
import "../chunk-7F53DOML.js";
|
|
75
81
|
import "../chunk-4FIVU53H.js";
|
|
76
82
|
import "../chunk-NVALGVQG.js";
|
|
77
83
|
import "../chunk-ZHC5CD6J.js";
|
|
@@ -103,8 +109,12 @@ export {
|
|
|
103
109
|
Agent,
|
|
104
110
|
createHook,
|
|
105
111
|
createResolvedAgent,
|
|
112
|
+
finishLoopContext,
|
|
106
113
|
getAgentToolState,
|
|
107
114
|
getResolvedAgentOptions,
|
|
115
|
+
planLoopContext,
|
|
116
|
+
projectLoopContext,
|
|
117
|
+
summarizeLoopContext,
|
|
108
118
|
withInternalAgentRunOptions
|
|
109
119
|
};
|
|
110
120
|
//# sourceMappingURL=agent.js.map
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TeamRun
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-G4ZKCVBW.js";
|
|
4
4
|
import "../../chunk-PIMD4DYG.js";
|
|
5
5
|
import "../../chunk-FSBDE6RF.js";
|
|
6
6
|
import "../../chunk-X35O3AQG.js";
|
|
7
7
|
import "../../chunk-ENZ2XX27.js";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-G7NJDOT5.js";
|
|
9
|
+
import "../../chunk-J6O567TG.js";
|
|
10
|
+
import "../../chunk-SISGNHNO.js";
|
|
11
|
+
import "../../chunk-SXE4J43E.js";
|
|
11
12
|
import "../../chunk-DRSKZVC6.js";
|
|
12
13
|
import "../../chunk-LAIATEUB.js";
|
|
13
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-PLQAN4EO.js";
|
|
15
|
+
import "../../chunk-M7LU47T5.js";
|
|
14
16
|
import "../../chunk-PFJN5OIQ.js";
|
|
15
17
|
import "../../chunk-7FBSGD6E.js";
|
|
16
18
|
import "../../chunk-NPJ2T3L5.js";
|
|
17
19
|
import "../../chunk-YWRXOPHC.js";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-5I2NVRHC.js";
|
|
20
|
+
import "../../chunk-5ZM5DB3O.js";
|
|
20
21
|
import "../../chunk-5IURMWFN.js";
|
|
21
22
|
import "../../chunk-2NLINXRF.js";
|
|
22
23
|
import "../../chunk-JMJFK3A4.js";
|
|
@@ -40,8 +41,8 @@ import "../../chunk-NF6WBPFG.js";
|
|
|
40
41
|
import "../../chunk-LBYJPMHC.js";
|
|
41
42
|
import "../../chunk-KFAVEL5F.js";
|
|
42
43
|
import "../../chunk-GLMYZ6OA.js";
|
|
43
|
-
import "../../chunk-
|
|
44
|
-
import "../../chunk-
|
|
44
|
+
import "../../chunk-MNWULFRX.js";
|
|
45
|
+
import "../../chunk-SVFEG2TI.js";
|
|
45
46
|
import "../../chunk-ZPJFXRQZ.js";
|
|
46
47
|
import "../../chunk-MEN4AFDZ.js";
|
|
47
48
|
import "../../chunk-VZ5ZZBNX.js";
|
|
@@ -59,12 +60,12 @@ import "../../chunk-PJNE75WC.js";
|
|
|
59
60
|
import "../../chunk-PLDJCCVL.js";
|
|
60
61
|
import "../../chunk-3J2CSVPR.js";
|
|
61
62
|
import "../../chunk-ERN7P6Q4.js";
|
|
62
|
-
import "../../chunk-YCTXTOOQ.js";
|
|
63
63
|
import "../../chunk-DU4WA6LQ.js";
|
|
64
|
+
import "../../chunk-7F53DOML.js";
|
|
65
|
+
import "../../chunk-YCTXTOOQ.js";
|
|
64
66
|
import "../../chunk-KO5NMTAM.js";
|
|
65
67
|
import "../../chunk-TFIOU6UR.js";
|
|
66
68
|
import "../../chunk-GPVXCY5I.js";
|
|
67
|
-
import "../../chunk-7F53DOML.js";
|
|
68
69
|
import "../../chunk-4FIVU53H.js";
|
|
69
70
|
import "../../chunk-NVALGVQG.js";
|
|
70
71
|
import "../../chunk-ZHC5CD6J.js";
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Message, U as Usage } from '../types-DYqZKDA8.js';
|
|
2
|
-
import { a as CreateSummaryMemoryCompactorOptions, o as MemoryCompactor, f as MemoryCompactionMessage, C as CreateMemoryScopeKeyOptions } from '../types-
|
|
3
|
-
export { M as MemoryAppendOptions, b as MemoryClearOptions, c as MemoryCompactionCapability, d as MemoryCompactionConflictRetryOptions, e as MemoryCompactionInfo, g as MemoryCompactionMetadata, h as MemoryCompactionOptions, i as MemoryCompactionReplacePrefixOptions, j as MemoryCompactionReplacePrefixResult, k as MemoryCompactionResult, l as MemoryCompactionRetention, m as MemoryCompactionSnapshot, n as MemoryCompactionSnapshotOptions, p as MemoryCompactorInput, q as MemoryCompactorResult, r as MemoryConversation, s as MemoryConversationGetOptions, t as MemoryConversationListOptions, u as MemoryConversationMessage, v as MemoryConversationSummary, w as MemoryErrorOptions, x as MemoryInspector, y as MemoryLoadOptions, z as MemoryOptions, A as MemorySavePolicy, B as MemoryScope, D as MemoryScopeKeyOptions, E as MemoryScopeKeyResolver, F as MemoryStore, G as MemoryTokenCounter } from '../types-
|
|
2
|
+
import { a as CreateSummaryMemoryCompactorOptions, o as MemoryCompactor, f as MemoryCompactionMessage, C as CreateMemoryScopeKeyOptions } from '../types-CaAiktBl.js';
|
|
3
|
+
export { M as MemoryAppendOptions, b as MemoryClearOptions, c as MemoryCompactionCapability, d as MemoryCompactionConflictRetryOptions, e as MemoryCompactionInfo, g as MemoryCompactionMetadata, h as MemoryCompactionOptions, i as MemoryCompactionReplacePrefixOptions, j as MemoryCompactionReplacePrefixResult, k as MemoryCompactionResult, l as MemoryCompactionRetention, m as MemoryCompactionSnapshot, n as MemoryCompactionSnapshotOptions, p as MemoryCompactorInput, q as MemoryCompactorResult, r as MemoryConversation, s as MemoryConversationGetOptions, t as MemoryConversationListOptions, u as MemoryConversationMessage, v as MemoryConversationSummary, w as MemoryErrorOptions, x as MemoryInspector, y as MemoryLoadOptions, z as MemoryOptions, A as MemorySavePolicy, B as MemoryScope, D as MemoryScopeKeyOptions, E as MemoryScopeKeyResolver, F as MemoryStore, G as MemoryTokenCounter } from '../types-CaAiktBl.js';
|
|
4
4
|
import '../model-call-options-CZkSw_xN.js';
|
|
5
5
|
import '../retry-CjvSlKGW.js';
|
|
6
6
|
|
package/dist/memory/index.js
CHANGED
package/dist/memory/options.js
CHANGED
|
@@ -2,7 +2,7 @@ import { M as Message, k as CompletionResponse, U as Usage, R as ReasoningConten
|
|
|
2
2
|
import { D as DeepReadonly, M as MaybePromise, d as GuardrailPolicyInput, a as GuardrailDecisionRecord } from './types-CqiX-4_C.js';
|
|
3
3
|
import { AgentInteractionRequest, AgentContinuation, AgentInteractionResponse } from './agent/interactions/index.js';
|
|
4
4
|
import { b as RetrySetting } from './retry-CjvSlKGW.js';
|
|
5
|
-
import { e as MemoryCompactionInfo, B as MemoryScope } from './types-
|
|
5
|
+
import { e as MemoryCompactionInfo, B as MemoryScope } from './types-CaAiktBl.js';
|
|
6
6
|
import { d as ToolCallStreamEvent } from './tool-W1cAPuRF.js';
|
|
7
7
|
|
|
8
8
|
type AgentLifecycleRunEvent = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { J as AgentGenerationEndArgs, K as AgentGenerationErrorArgs, L as AgentGenerationModelInfo, M as AgentGenerationObserver, N as AgentGenerationStartArgs, O as AgentGenerationUpdateArgs, P as AgentObservabilityOptions, Q as AgentObserver, R as AgentObserverErrorPolicy, S as AgentObserverMap, U as AgentObserverTraceInfo, V as AgentRunEndArgs, W as AgentRunErrorArgs, X as AgentRunEventArgs, Y as AgentRunObserver, Z as AgentRunPromptRef, _ as AgentRunStartArgs, $ as AgentToolEndArgs, a0 as AgentToolErrorArgs, a1 as AgentToolObserver, a2 as AgentToolStartArgs, a3 as AgentToolStreamEventArgs, a4 as AgentToolSuspendedArgs, a5 as AgentTraceInfo, a6 as AgentTraceOptions } from '../middleware-
|
|
1
|
+
export { J as AgentGenerationEndArgs, K as AgentGenerationErrorArgs, L as AgentGenerationModelInfo, M as AgentGenerationObserver, N as AgentGenerationStartArgs, O as AgentGenerationUpdateArgs, P as AgentObservabilityOptions, Q as AgentObserver, R as AgentObserverErrorPolicy, S as AgentObserverMap, U as AgentObserverTraceInfo, V as AgentRunEndArgs, W as AgentRunErrorArgs, X as AgentRunEventArgs, Y as AgentRunObserver, Z as AgentRunPromptRef, _ as AgentRunStartArgs, $ as AgentToolEndArgs, a0 as AgentToolErrorArgs, a1 as AgentToolObserver, a2 as AgentToolStartArgs, a3 as AgentToolStreamEventArgs, a4 as AgentToolSuspendedArgs, a5 as AgentTraceInfo, a6 as AgentTraceOptions } from '../middleware-D_WPyilQ.js';
|
|
2
2
|
import '../types-DYqZKDA8.js';
|
|
3
3
|
import '../model-call-options-CZkSw_xN.js';
|
|
4
4
|
import '../types-CqiX-4_C.js';
|
|
5
5
|
import '../agent/interactions/index.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../retry-CjvSlKGW.js';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-CaAiktBl.js';
|
|
9
9
|
import '../tool-W1cAPuRF.js';
|
|
10
10
|
|
|
11
11
|
type AgentObserverFailure = {
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as AgentInteractionOutcome, a6 as AgentTraceOptions, U as AgentObserverTraceInfo, R as AgentObserverErrorPolicy, a5 as AgentTraceInfo, f as AgentInput, p as AgentRunSettings } from '../middleware-
|
|
2
|
-
import { A as Agent } from '../agent-
|
|
1
|
+
import { g as AgentInteractionOutcome, a6 as AgentTraceOptions, U as AgentObserverTraceInfo, R as AgentObserverErrorPolicy, a5 as AgentTraceInfo, f as AgentInput, p as AgentRunSettings } from '../middleware-D_WPyilQ.js';
|
|
2
|
+
import { A as Agent } from '../agent-BUEZxrEv.js';
|
|
3
3
|
import { J as JsonObject, d as CompletionModel, f as CompletionModelControlsOf } from '../types-DYqZKDA8.js';
|
|
4
4
|
import { ExtractOptions } from '../extractor/index.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import '../types-CqiX-4_C.js';
|
|
7
7
|
import '../agent/interactions/index.js';
|
|
8
8
|
import '../retry-CjvSlKGW.js';
|
|
9
|
-
import '../types-
|
|
9
|
+
import '../types-CaAiktBl.js';
|
|
10
10
|
import '../tool-W1cAPuRF.js';
|
|
11
11
|
import '../types-94Q2mPRa.js';
|
|
12
12
|
import '../zod-schema-C7F4clpm.js';
|
package/dist/redaction/index.js
CHANGED
|
@@ -11,6 +11,25 @@ var ENCODED_VALUE_TYPES = {
|
|
|
11
11
|
redacted: true
|
|
12
12
|
};
|
|
13
13
|
var DEFAULT_PATTERNS = [
|
|
14
|
+
// Well-known provider token shapes without a sk-/token- prefix: fixed prefixes plus minimum
|
|
15
|
+
// lengths keep these precise enough for the precision-first default set. They run before PII
|
|
16
|
+
// patterns so card, IP, or phone matches cannot partially consume a credential. GitHub's
|
|
17
|
+
// stateless installation tokens (`ghs_APPID_JWT`) are base64url JWTs with underscores, dots,
|
|
18
|
+
// hyphens, and a variable length: that branch stops at its character-class boundary instead
|
|
19
|
+
// of a word boundary, so terminators like `-` or `_` cannot truncate the match. The legacy
|
|
20
|
+
// fixed-length families stay pinned to 36 characters with a word boundary.
|
|
21
|
+
{ name: "googleApiKey", regex: /\bAIza[0-9A-Za-z_-]{35}(?![0-9A-Za-z_-])/g },
|
|
22
|
+
{
|
|
23
|
+
name: "githubToken",
|
|
24
|
+
regex: /\b(?:gh[pour]_[A-Za-z0-9]{36}\b|ghs_[A-Za-z0-9_.-]{20,}|github_pat_[A-Za-z0-9_]{20,}\b)/g
|
|
25
|
+
},
|
|
26
|
+
{ name: "awsAccessKeyId", regex: /\b(?:AKIA|ASIA)[A-Z0-9]{16}\b/g },
|
|
27
|
+
// Slack's documented families: bot/user tokens (xoxb/xoxa/xoxp/xoxs/xoxr), rotating access
|
|
28
|
+
// tokens (xoxe-, xoxe.xapp-, xoxe.xoxb-, xoxe.xoxp-), workflow (xwfp), and app-level (xapp).
|
|
29
|
+
{
|
|
30
|
+
name: "slackToken",
|
|
31
|
+
regex: /\b(?:xox[baprsxe](?:\.x(?:app|oxb|oxp))?-[A-Za-z0-9.-]{10,}|xwfp-[A-Za-z0-9.-]{10,}|xapp-[A-Za-z0-9.-]{10,})\b/g
|
|
32
|
+
},
|
|
14
33
|
{ name: "email", regex: /\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi },
|
|
15
34
|
// The final digit is separate so a trailing separator is not part of the match.
|
|
16
35
|
{ name: "creditCard", regex: /\b(?:\d[ -]?){12,18}\d\b/g, validate: isCardNumber, numeric: true },
|