@aaac/runtime 0.1.53 → 0.1.55

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.
Files changed (36) hide show
  1. package/dist/adapters/adk-sdk.d.ts +1 -1
  2. package/dist/adapters/adk-sdk.js +1 -1
  3. package/dist/adapters/claude-agent-sdk.d.ts +1 -1
  4. package/dist/adapters/mock.d.ts +1 -1
  5. package/dist/adapters/openai-agents-sdk.d.ts +1 -1
  6. package/dist/{chunk-YZQRSVDZ.js → chunk-3H3PVPPF.js} +198 -4
  7. package/dist/chunk-3H3PVPPF.js.map +1 -0
  8. package/dist/chunk-LDCQZPDG.js +11 -0
  9. package/dist/chunk-LDCQZPDG.js.map +1 -0
  10. package/dist/{chunk-M3GJAHLX.js → chunk-N4KNGDYY.js} +343 -28
  11. package/dist/chunk-N4KNGDYY.js.map +1 -0
  12. package/dist/{chunk-EH5VFZYJ.js → chunk-NMX4C6LC.js} +6 -2
  13. package/dist/chunk-NMX4C6LC.js.map +1 -0
  14. package/dist/{chunk-KNYJV2Q6.js → chunk-QVH5KKBR.js} +5 -9
  15. package/dist/chunk-QVH5KKBR.js.map +1 -0
  16. package/dist/claude-bundles/full.js +223 -217
  17. package/dist/claude-bundles/lean.js +5 -5
  18. package/dist/generator/index.d.ts +2 -286
  19. package/dist/generator/index.js +1 -1
  20. package/dist/index-LqEvaRk-.d.ts +299 -0
  21. package/dist/index.d.ts +29 -17
  22. package/dist/index.js +118 -436
  23. package/dist/index.js.map +1 -1
  24. package/dist/lib/claude-native/hooks-lite.d.ts +18 -325
  25. package/dist/lib/claude-native/hooks-lite.js +8 -2
  26. package/dist/lib/claude-native/index.d.ts +153 -20
  27. package/dist/lib/claude-native/index.js +162 -37
  28. package/dist/lib/claude-native/index.js.map +1 -1
  29. package/dist/{navigation-context-xrReMkTn.d.ts → navigation-context-D_E1NIUf.d.ts} +11 -3
  30. package/dist/{task-runner-Sez_CXcD.d.ts → task-runner-DfIEorkU.d.ts} +21 -9
  31. package/dist/workspace-pre-tool-use-C6nidc0q.d.ts +333 -0
  32. package/package.json +1 -1
  33. package/dist/chunk-EH5VFZYJ.js.map +0 -1
  34. package/dist/chunk-KNYJV2Q6.js.map +0 -1
  35. package/dist/chunk-M3GJAHLX.js.map +0 -1
  36. package/dist/chunk-YZQRSVDZ.js.map +0 -1
@@ -0,0 +1,299 @@
1
+ import { z } from 'zod';
2
+ import './context-DKkamYX_.js';
3
+
4
+ /**
5
+ * Generator configuration — loads and validates agents.conf.yaml
6
+ */
7
+
8
+ declare const DEFAULT_CONFIG_PATH = "./agents.conf.yaml";
9
+ /**
10
+ * Project manifest filename — resolved under a project root, and under each
11
+ * workspace member root. Single definition for the whole runtime package.
12
+ */
13
+ declare const PROJECT_CONFIG_FILENAME = "project.yaml";
14
+ declare const RuntimeConfigSchema: z.ZodObject<{
15
+ dsl: z.ZodDefault<z.ZodString>;
16
+ generated_dir: z.ZodDefault<z.ZodString>;
17
+ bindings: z.ZodDefault<z.ZodArray<z.ZodString>>;
18
+ active_guardrail_policy: z.ZodOptional<z.ZodString>;
19
+ templates_dir: z.ZodOptional<z.ZodString>;
20
+ plugins: z.ZodDefault<z.ZodArray<z.ZodString>>;
21
+ recovery: z.ZodDefault<z.ZodObject<{
22
+ max_follow_ups: z.ZodDefault<z.ZodNumber>;
23
+ max_retries: z.ZodDefault<z.ZodNumber>;
24
+ }, z.core.$strip>>;
25
+ model_mapping: z.ZodDefault<z.ZodObject<{
26
+ fast: z.ZodOptional<z.ZodObject<{
27
+ adapter: z.ZodString;
28
+ model: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strip>>;
30
+ standard: z.ZodOptional<z.ZodObject<{
31
+ adapter: z.ZodString;
32
+ model: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>>;
34
+ thinking: z.ZodOptional<z.ZodObject<{
35
+ adapter: z.ZodString;
36
+ model: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$strip>>;
39
+ logging: z.ZodDefault<z.ZodObject<{
40
+ progress_log: z.ZodDefault<z.ZodObject<{
41
+ destination: z.ZodDefault<z.ZodEnum<{
42
+ file: "file";
43
+ both: "both";
44
+ stderr: "stderr";
45
+ none: "none";
46
+ }>>;
47
+ file: z.ZodOptional<z.ZodString>;
48
+ naming: z.ZodDefault<z.ZodEnum<{
49
+ single: "single";
50
+ "per-invocation": "per-invocation";
51
+ daily: "daily";
52
+ }>>;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>;
56
+ type RuntimeConfig = z.infer<typeof RuntimeConfigSchema>;
57
+ declare const ComponentOverrideSchema: z.ZodObject<{
58
+ agents: z.ZodOptional<z.ZodString>;
59
+ dsl: z.ZodOptional<z.ZodString>;
60
+ component_contract: z.ZodOptional<z.ZodString>;
61
+ generated_dir: z.ZodOptional<z.ZodString>;
62
+ bindings: z.ZodOptional<z.ZodObject<{
63
+ guardrail: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
+ hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
+ observability: z.ZodOptional<z.ZodObject<{
66
+ event_mapping: z.ZodOptional<z.ZodString>;
67
+ recorder: z.ZodOptional<z.ZodString>;
68
+ enabled: z.ZodOptional<z.ZodBoolean>;
69
+ db_path: z.ZodOptional<z.ZodString>;
70
+ otel: z.ZodOptional<z.ZodObject<{
71
+ endpoint: z.ZodString;
72
+ }, z.core.$strip>>;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>>;
75
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
+ model_mapping: z.ZodOptional<z.ZodDefault<z.ZodObject<{
77
+ fast: z.ZodOptional<z.ZodObject<{
78
+ adapter: z.ZodString;
79
+ model: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>>;
81
+ standard: z.ZodOptional<z.ZodObject<{
82
+ adapter: z.ZodString;
83
+ model: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>>;
85
+ thinking: z.ZodOptional<z.ZodObject<{
86
+ adapter: z.ZodString;
87
+ model: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strip>>;
89
+ }, z.core.$strip>>>;
90
+ recovery: z.ZodOptional<z.ZodDefault<z.ZodObject<{
91
+ max_follow_ups: z.ZodDefault<z.ZodNumber>;
92
+ max_retries: z.ZodDefault<z.ZodNumber>;
93
+ }, z.core.$strip>>>;
94
+ templates_dir: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strict>;
96
+ type ComponentOverride = z.infer<typeof ComponentOverrideSchema>;
97
+ declare const ProjectConfigSchema: z.ZodObject<{
98
+ schema: z.ZodOptional<z.ZodString>;
99
+ agents: z.ZodOptional<z.ZodString>;
100
+ dsl: z.ZodOptional<z.ZodString>;
101
+ generated_dir: z.ZodOptional<z.ZodString>;
102
+ bindings: z.ZodOptional<z.ZodObject<{
103
+ guardrail: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
+ hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
+ observability: z.ZodOptional<z.ZodObject<{
106
+ event_mapping: z.ZodOptional<z.ZodString>;
107
+ recorder: z.ZodOptional<z.ZodString>;
108
+ enabled: z.ZodOptional<z.ZodBoolean>;
109
+ db_path: z.ZodOptional<z.ZodString>;
110
+ otel: z.ZodOptional<z.ZodObject<{
111
+ endpoint: z.ZodString;
112
+ }, z.core.$strip>>;
113
+ }, z.core.$strip>>;
114
+ }, z.core.$strip>>;
115
+ active_guardrail_policy: z.ZodOptional<z.ZodString>;
116
+ templates_dir: z.ZodOptional<z.ZodString>;
117
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
118
+ recovery: z.ZodDefault<z.ZodObject<{
119
+ max_follow_ups: z.ZodDefault<z.ZodNumber>;
120
+ max_retries: z.ZodDefault<z.ZodNumber>;
121
+ }, z.core.$strip>>;
122
+ model_mapping: z.ZodDefault<z.ZodObject<{
123
+ fast: z.ZodOptional<z.ZodObject<{
124
+ adapter: z.ZodString;
125
+ model: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>>;
127
+ standard: z.ZodOptional<z.ZodObject<{
128
+ adapter: z.ZodString;
129
+ model: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strip>>;
131
+ thinking: z.ZodOptional<z.ZodObject<{
132
+ adapter: z.ZodString;
133
+ model: z.ZodOptional<z.ZodString>;
134
+ }, z.core.$strip>>;
135
+ }, z.core.$strip>>;
136
+ logging: z.ZodDefault<z.ZodObject<{
137
+ progress_log: z.ZodDefault<z.ZodObject<{
138
+ destination: z.ZodDefault<z.ZodEnum<{
139
+ file: "file";
140
+ both: "both";
141
+ stderr: "stderr";
142
+ none: "none";
143
+ }>>;
144
+ file: z.ZodOptional<z.ZodString>;
145
+ naming: z.ZodDefault<z.ZodEnum<{
146
+ single: "single";
147
+ "per-invocation": "per-invocation";
148
+ daily: "daily";
149
+ }>>;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>>;
152
+ artifacts: z.ZodOptional<z.ZodString>;
153
+ toolchains: z.ZodOptional<z.ZodString>;
154
+ components: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
155
+ agents: z.ZodOptional<z.ZodString>;
156
+ dsl: z.ZodOptional<z.ZodString>;
157
+ component_contract: z.ZodOptional<z.ZodString>;
158
+ generated_dir: z.ZodOptional<z.ZodString>;
159
+ bindings: z.ZodOptional<z.ZodObject<{
160
+ guardrail: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
+ observability: z.ZodOptional<z.ZodObject<{
163
+ event_mapping: z.ZodOptional<z.ZodString>;
164
+ recorder: z.ZodOptional<z.ZodString>;
165
+ enabled: z.ZodOptional<z.ZodBoolean>;
166
+ db_path: z.ZodOptional<z.ZodString>;
167
+ otel: z.ZodOptional<z.ZodObject<{
168
+ endpoint: z.ZodString;
169
+ }, z.core.$strip>>;
170
+ }, z.core.$strip>>;
171
+ }, z.core.$strip>>;
172
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
173
+ model_mapping: z.ZodOptional<z.ZodDefault<z.ZodObject<{
174
+ fast: z.ZodOptional<z.ZodObject<{
175
+ adapter: z.ZodString;
176
+ model: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strip>>;
178
+ standard: z.ZodOptional<z.ZodObject<{
179
+ adapter: z.ZodString;
180
+ model: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strip>>;
182
+ thinking: z.ZodOptional<z.ZodObject<{
183
+ adapter: z.ZodString;
184
+ model: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>>>;
187
+ recovery: z.ZodOptional<z.ZodDefault<z.ZodObject<{
188
+ max_follow_ups: z.ZodDefault<z.ZodNumber>;
189
+ max_retries: z.ZodDefault<z.ZodNumber>;
190
+ }, z.core.$strip>>>;
191
+ templates_dir: z.ZodOptional<z.ZodString>;
192
+ }, z.core.$strict>>>;
193
+ environments: z.ZodOptional<z.ZodObject<{
194
+ git: z.ZodOptional<z.ZodObject<{
195
+ hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
+ }, z.core.$strip>>;
197
+ cursor: z.ZodOptional<z.ZodObject<{
198
+ hooks_json: z.ZodOptional<z.ZodString>;
199
+ }, z.core.$strip>>;
200
+ ci: z.ZodOptional<z.ZodObject<{
201
+ provider: z.ZodOptional<z.ZodString>;
202
+ }, z.core.$strip>>;
203
+ }, z.core.$strip>>;
204
+ cli: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
205
+ agents: z.ZodOptional<z.ZodString>;
206
+ dsl: z.ZodOptional<z.ZodString>;
207
+ generated_dir: z.ZodOptional<z.ZodString>;
208
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
+ bindings: z.ZodOptional<z.ZodObject<{
210
+ guardrail: z.ZodOptional<z.ZodArray<z.ZodString>>;
211
+ hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ observability: z.ZodOptional<z.ZodObject<{
213
+ event_mapping: z.ZodOptional<z.ZodString>;
214
+ recorder: z.ZodOptional<z.ZodString>;
215
+ enabled: z.ZodOptional<z.ZodBoolean>;
216
+ db_path: z.ZodOptional<z.ZodString>;
217
+ otel: z.ZodOptional<z.ZodObject<{
218
+ endpoint: z.ZodString;
219
+ }, z.core.$strip>>;
220
+ }, z.core.$strip>>;
221
+ }, z.core.$strip>>;
222
+ }, z.core.$strict>>>;
223
+ workspace: z.ZodOptional<z.ZodObject<{
224
+ members: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
225
+ path: z.ZodString;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ glob: z.ZodString;
228
+ }, z.core.$strip>]>>;
229
+ runtime: z.ZodOptional<z.ZodObject<{
230
+ resolve_from: z.ZodOptional<z.ZodString>;
231
+ }, z.core.$strip>>;
232
+ discovery: z.ZodDefault<z.ZodObject<{
233
+ max_depth: z.ZodDefault<z.ZodNumber>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>>;
236
+ }, z.core.$strip>;
237
+ type ProjectConfig = z.infer<typeof ProjectConfigSchema>;
238
+ interface ResolvedProgressLog {
239
+ destination: "stderr" | "file" | "both" | "none";
240
+ file: string | undefined;
241
+ naming: "single" | "per-invocation" | "daily";
242
+ }
243
+ interface ResolvedEnvironments {
244
+ git?: {
245
+ hooks: string[];
246
+ };
247
+ cursor?: {
248
+ hooks_json: string;
249
+ };
250
+ ci?: {
251
+ provider: string;
252
+ };
253
+ }
254
+ interface ResolvedObservability {
255
+ eventMappingPath?: string;
256
+ recorder?: string;
257
+ /** Whether in-process agent-axis recording is enabled (default true when binding present). */
258
+ enabled?: boolean;
259
+ /** Resolved override for the SQLite DB path (undefined → DEFAULT_DB_PATH). */
260
+ dbPath?: string;
261
+ /**
262
+ * OTel Collector endpoint configuration.
263
+ * When present, OtelEmitter is configured with this endpoint at pipeline creation.
264
+ * Falls back to OTEL_EXPORTER_OTLP_ENDPOINT env var when absent.
265
+ */
266
+ otel?: {
267
+ endpoint: string;
268
+ };
269
+ }
270
+ interface ResolvedConfig extends RuntimeConfig {
271
+ configDir: string;
272
+ dslPath: string;
273
+ /**
274
+ * True when the manifest (or the applied component override) EXPLICITLY
275
+ * declares `agents:` / `dsl:`. When false, `dslPath` is only the
276
+ * `RuntimeConfigSchema` default (`./agent-contracts.yaml`) and must NOT be
277
+ * treated as a project overlay — the bundled `/$embedded/` DSL is used as-is.
278
+ */
279
+ dslDeclared: boolean;
280
+ generatedDir: string;
281
+ /** Resolved guardrail_impl matcher files (machine enforcement). */
282
+ bindingPaths: string[];
283
+ /** Resolved git-hook binding files (governance materialize, #68). */
284
+ hookBindingPaths: string[];
285
+ /** Observability event mapping + recorder, if configured. */
286
+ observability?: ResolvedObservability;
287
+ templatesDir: string | undefined;
288
+ pluginPaths: string[];
289
+ resolvedLogging: {
290
+ progressLog: ResolvedProgressLog;
291
+ };
292
+ artifactsPath?: string;
293
+ toolchainsPath?: string;
294
+ environments?: ResolvedEnvironments;
295
+ componentOverrides?: Record<string, ComponentOverride>;
296
+ }
297
+ declare function loadProjectConfig(configPath: string, target?: string): Promise<ResolvedConfig>;
298
+
299
+ export { type ComponentOverride as C, DEFAULT_CONFIG_PATH as D, PROJECT_CONFIG_FILENAME as P, type ResolvedConfig as R, ComponentOverrideSchema as a, type ProjectConfig as b, ProjectConfigSchema as c, type ResolvedEnvironments as d, loadProjectConfig as l };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- import { b as SdkFunctionTool, O as ObserverEmitFn, c as TaskContext, d as TaskOutcome, e as AgentContractLike, f as TaskContractLike, P as PromptBuilderOptions, W as WorkflowResult, S as SdkAdapter, g as WorkflowRegistries, H as HandoffInput, h as StepCompleteEvent, i as StepResult, D as DelegateStep, j as MemoryStore, M as MemoryRef, R as ResolvedComponent, k as ArtifactBindingConfig, l as RunToolchainChecksOptions, m as ModelMappingConfig, n as TaskRunResult, L as LibraryToolRegistry, o as ResolvedToolchain, p as LibraryToolDefinition } from './task-runner-Sez_CXcD.js';
2
- export { q as AdapterOrFactory, A as AdapterSendOptions, a as AgentExecutionRequest, r as AgentProgressEvent, B as BoundResolveOptions, s as BoundResolver, C as CacheConfig, t as CandidateAgent, u as ConvergenceEnvelope, v as ConvergenceEnvelopePayload, E as EnvelopeParams, w as EvaluateStep, G as GateStep, I as InMemoryStore, x as InnerSpanOptions, y as ModelAwareSdkAdapterFactory, z as ModelClass, F as ModelResolver, J as ModelResolverOptions, K as OBSERVABILITY_ENV_VARS, N as ObservabilityIds, Q as ReceiveSpec, U as ResolvedModel, V as RetryDecision, X as SdkAdapterFactory, Y as SplitPrompt, Z as TaskRunOptions, T as TokenUsage, _ as ToolchainCheckResult, $ as ToolchainManifest, a0 as ToolchainManifestSchema, a1 as WorkflowContractLike, a2 as WorkflowInvocation, a3 as WorkflowRunOptions, a4 as WorkflowStep, a5 as buildCandidateAgents, a6 as buildGateEvaluationPrompt, a7 as buildObservabilityEnv, a8 as buildPerAgentGuardrails, a9 as buildRetryFollowUp, aa as buildSdkFunctionTools, ab as buildSplitTaskPrompt, ac as buildTaskPrompt, ad as collectAnalyzerToolIds, ae as createExecutionEnvelope, af as createLibraryToolRegistry, ag as createModelResolver, ah as createRegistryFromSdkTools, ai as deriveToolchainsForAgents, aj as emitIterationClose, ak as emitIterationMetric, al as emitIterationOpen, am as emitLlmTurnClose, an as emitLlmTurnOpen, ao as emitSessionClose, ap as emitSessionOpen, aq as emitSubagentClose, ar as emitSubagentOpen, as as emitToolExecClose, at as emitToolExecOpen, au as emitToolchainClose, av as emitToolchainOpen, aw as extractStructuredResult, ax as getEffectiveGuardrailIds, ay as getGuardrailRulesForAgent, az as guardrailContextToRuleData, aA as isNavigationIndex, aB as parseGateEvaluationResponse, aC as renderAgentSystemPrompt, aD as renderAnalyzerExplorationMandatePrompt, aE as renderNavigationIndexPrompt, aF as runTask, aG as runToolchainChecks, aH as runWorkflow, aI as serializeObserverEmit, aJ as shouldInjectAnalyzerExplorationMandate, aK as zodSchemaToPromptDescription, aL as zodSchemaToYamlExample } from './task-runner-Sez_CXcD.js';
3
- import { a as GuardrailRuleData, G as GuardrailHooks, H as HookResponse, b as GuardrailCheckResult } from './guardrail-hooks-slK-z0Dz.js';
4
- export { c as GuardrailCheckFunctions, d as GuardrailRule, e as HookContext, f as createGuardrailHooks, g as createGuardrailHooksForAgent, h as createGuardrailHooksFromRules, i as getBlockingViolations, j as getWarnings, k as hasBlockingViolation } from './guardrail-hooks-slK-z0Dz.js';
1
+ import { b as SdkFunctionTool, O as ObserverEmitFn, c as TaskContext, d as TaskOutcome, e as AgentContractLike, f as TaskContractLike, P as PromptBuilderOptions, W as WorkflowResult, S as SdkAdapter, g as WorkflowRegistries, H as HandoffInput, h as StepCompleteEvent, i as StepResult, D as DelegateStep, j as MemoryStore, M as MemoryRef, R as ResolvedComponent, k as ArtifactBindingConfig, l as RunToolchainChecksOptions, m as ModelMappingConfig, n as TaskRunResult, L as LibraryToolRegistry, o as ResolvedToolchain, p as LibraryToolDefinition } from './task-runner-DfIEorkU.js';
2
+ export { q as AdapterOrFactory, A as AdapterSendOptions, a as AgentExecutionRequest, r as AgentProgressEvent, B as BoundResolveOptions, s as BoundResolver, C as CacheConfig, t as CandidateAgent, u as ConvergenceEnvelope, v as ConvergenceEnvelopePayload, E as EnvelopeParams, w as EvaluateStep, G as GateStep, I as InMemoryStore, x as InnerSpanOptions, y as ModelAwareSdkAdapterFactory, z as ModelClass, F as ModelResolver, J as ModelResolverOptions, K as OBSERVABILITY_ENV_VARS, N as ObservabilityIds, Q as ReceiveSpec, U as ResolvedModel, V as RetryDecision, X as SdkAdapterFactory, Y as SplitPrompt, Z as TaskRunOptions, T as TokenUsage, _ as ToolchainCheckResult, $ as ToolchainManifest, a0 as ToolchainManifestSchema, a1 as WorkflowContractLike, a2 as WorkflowInvocation, a3 as WorkflowRunOptions, a4 as WorkflowStep, a5 as buildCandidateAgents, a6 as buildGateEvaluationPrompt, a7 as buildObservabilityEnv, a8 as buildPerAgentGuardrails, a9 as buildRetryFollowUp, aa as buildSdkFunctionTools, ab as buildSplitTaskPrompt, ac as buildTaskPrompt, ad as collectAnalyzerToolIds, ae as createExecutionEnvelope, af as createLibraryToolRegistry, ag as createModelResolver, ah as createRegistryFromSdkTools, ai as deriveToolchainsForAgents, aj as emitIterationClose, ak as emitIterationMetric, al as emitIterationOpen, am as emitLlmTurnClose, an as emitLlmTurnOpen, ao as emitSessionClose, ap as emitSessionOpen, aq as emitSubagentClose, ar as emitSubagentOpen, as as emitToolExecClose, at as emitToolExecOpen, au as emitToolchainClose, av as emitToolchainOpen, aw as extractStructuredResult, ax as getEffectiveGuardrailIds, ay as getGuardrailRulesForAgent, az as guardrailContextToRuleData, aA as isNavigationIndex, aB as parseGateEvaluationResponse, aC as renderAgentSystemPrompt, aD as renderAnalyzerExplorationMandatePrompt, aE as renderNavigationIndexPrompt, aF as runTask, aG as runToolchainChecks, aH as runWorkflow, aI as serializeObserverEmit, aJ as shouldInjectAnalyzerExplorationMandate, aK as zodSchemaToPromptDescription, aL as zodSchemaToYamlExample } from './task-runner-DfIEorkU.js';
3
+ import { G as GuardrailHooks, H as HookResponse, b as GuardrailCheckResult } from './guardrail-hooks-slK-z0Dz.js';
4
+ export { c as GuardrailCheckFunctions, d as GuardrailRule, a as GuardrailRuleData, e as HookContext, f as createGuardrailHooks, g as createGuardrailHooksForAgent, h as createGuardrailHooksFromRules, i as getBlockingViolations, j as getWarnings, k as hasBlockingViolation } from './guardrail-hooks-slK-z0Dz.js';
5
5
  import { z } from 'zod';
6
6
  import { OperationIR, ComponentIR } from '@aaac/contracts';
7
7
  import { OtelEmitter } from '@aaac/observability';
8
8
  export { ExecutionEnvelope } from '@aaac/observability';
9
- import { ResolvedConfig } from './generator/index.js';
10
- export { a as NavigationContext, N as NavigationContextOptions, b as buildNavigationContext } from './navigation-context-xrReMkTn.js';
9
+ import { R as ResolvedConfig } from './index-LqEvaRk-.js';
10
+ export { P as PROJECT_CONFIG_FILENAME } from './index-LqEvaRk-.js';
11
+ export { a as NavigationContext, N as NavigationContextOptions, b as buildNavigationContext } from './navigation-context-D_E1NIUf.js';
11
12
  import './context-DKkamYX_.js';
12
13
 
13
14
  /**
@@ -370,13 +371,11 @@ interface RequiredEntities {
370
371
  interface DslContext {
371
372
  readonly registries: WorkflowRegistries;
372
373
  readonly dsl: Record<string, unknown>;
373
- readonly guardrailRules?: GuardrailRuleData;
374
374
  }
375
375
  declare class DslValidationError extends Error {
376
376
  readonly missing: string[];
377
377
  constructor(missing: string[]);
378
378
  }
379
- declare function buildGuardrailRulesFromDsl(dsl: Record<string, unknown>): GuardrailRuleData | undefined;
380
379
  declare function buildRegistriesFromDsl(dsl: Record<string, unknown>): WorkflowRegistries;
381
380
  /**
382
381
  * Build a DslContext from embedded DSL data, optionally merging with
@@ -669,7 +668,6 @@ declare function createRuntimeBinding(component: ComponentIR, handlers?: Record<
669
668
  * guardrails operate on the merged DSL.
670
669
  */
671
670
 
672
- declare const PROJECT_CONFIG_FILENAME = "project.yaml";
673
671
  /**
674
672
  * Walk up from `startDir` to the filesystem root looking for the nearest
675
673
  * `project.yaml`. Returns the absolute path, or undefined if none is found.
@@ -737,6 +735,27 @@ interface CreateComponentScopeOptions {
737
735
  }
738
736
  declare function createComponentScope(componentIR: ComponentIR, binding: RuntimeBinding, options?: CreateComponentScopeOptions): ComponentScope;
739
737
 
738
+ /**
739
+ * Project artifact composition — the ONE place where the project manifest's
740
+ * `artifacts:` contract (an artifact-contracts registry) is composed onto a
741
+ * resolved agents DSL. Both the execution path (BoundResolver) and the
742
+ * navigation-index path consume this; neither resolves the registry itself.
743
+ *
744
+ * Composition, not intersection (`docs/governance-layer-spec.md` §2.2: the
745
+ * runtime joins every declared contract into one static DSL, and the
746
+ * navigation-index is built from that join):
747
+ *
748
+ * - DSL artifact whose id the registry declares → the registry's concrete
749
+ * data is merged over the component's default (upstream binding semantics).
750
+ * - DSL artifact the registry does not declare → keeps its component default;
751
+ * upstream reports `unbound-artifact`.
752
+ * - Registry artifact no DSL artifact maps to → STILL a project artifact. It is
753
+ * declared here so the binder merges and path-substitutes it exactly like the
754
+ * mapped ones. Dropping it (the previous behaviour) meant an artifact the
755
+ * project governs — including `authority: generated` ones — was invisible to
756
+ * `@` completion and unprotected by the PreToolUse edit guard. This mirrors
757
+ * `toolchains:`, whose registry entries are all composed in (bound-resolver).
758
+ */
740
759
  interface ArtifactResolveOptions {
741
760
  dsl: Record<string, unknown>;
742
761
  artifactBinding?: {
@@ -867,13 +886,6 @@ declare const ClaudeConfigSchema: z.ZodObject<{
867
886
  }, z.core.$strip>>;
868
887
  guard_command: z.ZodOptional<z.ZodString>;
869
888
  component_id: z.ZodOptional<z.ZodString>;
870
- workspace: z.ZodOptional<z.ZodObject<{
871
- members: z.ZodArray<z.ZodObject<{
872
- path: z.ZodString;
873
- config_path: z.ZodOptional<z.ZodString>;
874
- }, z.core.$strip>>;
875
- resolve_from: z.ZodOptional<z.ZodString>;
876
- }, z.core.$strip>>;
877
889
  }, z.core.$strip>;
878
890
  type ClaudeConfig = z.infer<typeof ClaudeConfigSchema>;
879
891
  /** Parse and default-fill an opaque config payload from component.yaml. */
@@ -966,4 +978,4 @@ declare function executePrompt(message: string, ir: ComponentIR, binding: Runtim
966
978
  /** Package version string. */
967
979
  declare const version: string;
968
980
 
969
- export { type AaacInvocationContext, type AaacObserver, type AaacPolicy, type AaacRuntime, AgentContractLike, AgentLogWriter, type AgentLogWriterOptions, type AgentPlugin, type AnalyzeImpactInput, type AnalyzerBridge, type AnalyzerBridgeOptions, ArtifactBindingConfig, type ArtifactResolveOptions, type ArtifactResolveResult, type BuildCallGraphInput, type CheckResult as ClaudeCheckResult, type ClaudeConfig, type FileAction as ClaudeFileAction, type SyncOptions as ClaudeSyncOptions, type SyncResult as ClaudeSyncResult, type ComponentScope, type CreateAdapterOptions, type CreateComponentScopeOptions, type CreateProjectRuntimeOptions, DelegateStep, type DslContext, DslValidationError, type EvaluateGuardrailOptions, type EvaluateGuardrailResult, type ExecuteOptions, type ExecuteTaskOptions, type ExecuteWorkflowOptions, FileMemoryStore, type GenerateContextPackInput, type GuardStatusOptions, type GuardStatusResult, GuardrailCheckResult, GuardrailHooks, type GuardrailListEntry, type GuardrailResult, GuardrailRuleData, HandoffInput, HookResponse, LibraryToolDefinition, LibraryToolRegistry, type ListGuardrailsOptions, type ListGuardrailsResult, type LoadDslOptions, MemoryRef, MemoryStore, type MemoryStoreEntry, ModelMappingConfig, ObserverEmitFn, type OperationHandler, type OperationMemoryRefConfig, type OperationToolDef, PROJECT_CONFIG_FILENAME, type PermissionMode, type PluginLoadResult, PluginRegistry, type ProcessEditOptions, type ProcessTaskOptions, type ProcessWorkflowOptions, type ProgressSink, type ProgressSinkOptions, type ProjectRuntime, type PromptBuilderArgs, PromptBuilderOptions, type PromptExecuteOptions, type PromptResult, type RequiredEntities, type ResolvedAdapterSelection, ResolvedComponent, ResolvedToolchain, type RunLogEvent, RunToolchainChecksOptions, type Runtime, type RuntimeBinding, type RuntimeConfig, SdkAdapter, SdkFunctionTool, StepCompleteEvent, StepResult, TaskContext, TaskContractLike, type TaskHookContext, TaskOutcome, TaskRunResult, WORKFLOW_INPUT_STEP_ID, WorkflowBuilder, type WorkflowHookContext, type WorkflowInputHandoff, type WorkflowInputOutput, WorkflowRegistries, WorkflowResult, buildGuardrailRulesFromDsl, buildRegistriesFromDsl, buildWorkflowInputOutput, checkClaude, createAdapter, createAnalyzerBridge, createComponentScope, createProgressSink, createProjectRuntime, createRuntime, createRuntimeBinding, emitProcessEdit, emitProcessTaskClose, emitProcessTaskOpen, emitProcessWorkflowClose, emitProcessWorkflowOpen, evaluateGuardrail, executePrompt, executeTask, executeWorkflow, findProjectConfig, formatWorkflowInputContext, guardStatus, isContextPack, isFileEditTool, jsonSchemaToZod, listGuardrails, loadDslContext, loadPlugins, loadPluginsFromDirectory, loadPluginsFromPaths, operationsToTools, parseClaudeConfig, parseRouterResponse, pluginRegistry, renderContextPackPrompt, resolveArtifacts, stepDependsOnWorkflowInput, syncClaude, version };
981
+ export { type AaacInvocationContext, type AaacObserver, type AaacPolicy, type AaacRuntime, AgentContractLike, AgentLogWriter, type AgentLogWriterOptions, type AgentPlugin, type AnalyzeImpactInput, type AnalyzerBridge, type AnalyzerBridgeOptions, ArtifactBindingConfig, type ArtifactResolveOptions, type ArtifactResolveResult, type BuildCallGraphInput, type CheckResult as ClaudeCheckResult, type ClaudeConfig, type FileAction as ClaudeFileAction, type SyncOptions as ClaudeSyncOptions, type SyncResult as ClaudeSyncResult, type ComponentScope, type CreateAdapterOptions, type CreateComponentScopeOptions, type CreateProjectRuntimeOptions, DelegateStep, type DslContext, DslValidationError, type EvaluateGuardrailOptions, type EvaluateGuardrailResult, type ExecuteOptions, type ExecuteTaskOptions, type ExecuteWorkflowOptions, FileMemoryStore, type GenerateContextPackInput, type GuardStatusOptions, type GuardStatusResult, GuardrailCheckResult, GuardrailHooks, type GuardrailListEntry, type GuardrailResult, HandoffInput, HookResponse, LibraryToolDefinition, LibraryToolRegistry, type ListGuardrailsOptions, type ListGuardrailsResult, type LoadDslOptions, MemoryRef, MemoryStore, type MemoryStoreEntry, ModelMappingConfig, ObserverEmitFn, type OperationHandler, type OperationMemoryRefConfig, type OperationToolDef, type PermissionMode, type PluginLoadResult, PluginRegistry, type ProcessEditOptions, type ProcessTaskOptions, type ProcessWorkflowOptions, type ProgressSink, type ProgressSinkOptions, type ProjectRuntime, type PromptBuilderArgs, PromptBuilderOptions, type PromptExecuteOptions, type PromptResult, type RequiredEntities, type ResolvedAdapterSelection, ResolvedComponent, ResolvedToolchain, type RunLogEvent, RunToolchainChecksOptions, type Runtime, type RuntimeBinding, type RuntimeConfig, SdkAdapter, SdkFunctionTool, StepCompleteEvent, StepResult, TaskContext, TaskContractLike, type TaskHookContext, TaskOutcome, TaskRunResult, WORKFLOW_INPUT_STEP_ID, WorkflowBuilder, type WorkflowHookContext, type WorkflowInputHandoff, type WorkflowInputOutput, WorkflowRegistries, WorkflowResult, buildRegistriesFromDsl, buildWorkflowInputOutput, checkClaude, createAdapter, createAnalyzerBridge, createComponentScope, createProgressSink, createProjectRuntime, createRuntime, createRuntimeBinding, emitProcessEdit, emitProcessTaskClose, emitProcessTaskOpen, emitProcessWorkflowClose, emitProcessWorkflowOpen, evaluateGuardrail, executePrompt, executeTask, executeWorkflow, findProjectConfig, formatWorkflowInputContext, guardStatus, isContextPack, isFileEditTool, jsonSchemaToZod, listGuardrails, loadDslContext, loadPlugins, loadPluginsFromDirectory, loadPluginsFromPaths, operationsToTools, parseClaudeConfig, parseRouterResponse, pluginRegistry, renderContextPackPrompt, resolveArtifacts, stepDependsOnWorkflowInput, syncClaude, version };