@intentius/chant 0.124.45 → 0.124.46
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/capabilities/aws.paths +148 -0
- package/dist/capabilities/base-mappings.json +122 -0
- package/dist/capabilities/catalog.d.ts +89 -0
- package/dist/capabilities/catalog.d.ts.map +1 -0
- package/dist/capabilities/catalog.js +204 -0
- package/dist/capabilities/language.d.ts +103 -0
- package/dist/capabilities/language.d.ts.map +1 -0
- package/dist/capabilities/language.js +335 -0
- package/dist/capabilities/matcher.d.ts +65 -0
- package/dist/capabilities/matcher.d.ts.map +1 -0
- package/dist/capabilities/matcher.js +299 -0
- package/dist/capabilities/view.d.ts +207 -0
- package/dist/capabilities/view.d.ts.map +1 -0
- package/dist/capabilities/view.js +484 -0
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/commands/lint.js +1 -0
- package/dist/cli/handlers/declared-graph.d.ts +44 -0
- package/dist/cli/handlers/declared-graph.d.ts.map +1 -0
- package/dist/cli/handlers/declared-graph.js +87 -0
- package/dist/cli/handlers/graph.d.ts +25 -0
- package/dist/cli/handlers/graph.d.ts.map +1 -1
- package/dist/cli/handlers/graph.js +93 -87
- package/dist/cli/handlers/pr-env.d.ts.map +1 -1
- package/dist/cli/handlers/pr-env.js +2 -1
- package/dist/cli/handlers/search-count.d.ts +89 -0
- package/dist/cli/handlers/search-count.d.ts.map +1 -0
- package/dist/cli/handlers/search-count.js +132 -0
- package/dist/cli/handlers/search.d.ts +358 -6
- package/dist/cli/handlers/search.d.ts.map +1 -1
- package/dist/cli/handlers/search.js +1065 -155
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +23 -3
- package/dist/cli/mcp/server.d.ts.map +1 -1
- package/dist/cli/mcp/server.js +3 -0
- package/dist/cli/mcp/tools/capabilities.d.ts +7 -0
- package/dist/cli/mcp/tools/capabilities.d.ts.map +1 -0
- package/dist/cli/mcp/tools/capabilities.js +27 -0
- package/dist/cli/mcp/workspace-tools.d.ts +3 -1
- package/dist/cli/mcp/workspace-tools.d.ts.map +1 -1
- package/dist/cli/mcp/workspace-tools.js +47 -2
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +64 -17
- package/dist/cli/registry.d.ts +22 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/pr-env-ports.d.ts +29 -0
- package/dist/components/pr-env-ports.d.ts.map +1 -0
- package/dist/components/pr-env-ports.js +77 -0
- package/dist/components/pr-env-run.d.ts +5 -21
- package/dist/components/pr-env-run.d.ts.map +1 -1
- package/dist/components/pr-env-run.js +6 -70
- package/dist/components/pr-environment.d.ts +2 -1
- package/dist/components/pr-environment.d.ts.map +1 -1
- package/dist/components/pr-environment.js +1 -1
- package/dist/config-environments.d.ts +92 -0
- package/dist/config-environments.d.ts.map +1 -0
- package/dist/config-environments.js +102 -0
- package/dist/config.d.ts +24 -84
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +9 -96
- package/dist/graph-detail.d.ts.map +1 -1
- package/dist/graph-detail.js +15 -3
- package/dist/graph-effective.d.ts +33 -2
- package/dist/graph-effective.d.ts.map +1 -1
- package/dist/graph-effective.js +215 -68
- package/dist/graph-ir.d.ts +23 -0
- package/dist/graph-ir.d.ts.map +1 -1
- package/dist/graph-ir.js +130 -0
- package/dist/graph-sub-template.d.ts +11 -0
- package/dist/graph-sub-template.d.ts.map +1 -0
- package/dist/graph-sub-template.js +19 -0
- package/dist/lexicon.d.ts +9 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/observe.d.ts +28 -0
- package/dist/lifecycle/observe.d.ts.map +1 -1
- package/dist/lifecycle/observe.js +23 -1
- package/dist/lint/rule.d.ts +6 -0
- package/dist/lint/rule.d.ts.map +1 -1
- package/dist/live-endpoint.d.ts +1 -1
- package/dist/live-endpoint.d.ts.map +1 -1
- package/dist/live-endpoint.js +1 -1
- package/dist/observation.d.ts +48 -1
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +21 -5
- package/dist/op/activities/activity-contracts.d.ts +4 -4
- package/dist/wave-runtime.mjs +250 -249
- package/dist/workspace/capabilities-contract.d.ts +66 -0
- package/dist/workspace/capabilities-contract.d.ts.map +1 -0
- package/dist/workspace/capabilities-contract.js +107 -0
- package/dist/workspace/capabilities.schema.json +229 -0
- package/dist/workspace/compose-graph.d.ts +9 -0
- package/dist/workspace/compose-graph.d.ts.map +1 -1
- package/dist/workspace/compose-graph.js +3 -1
- package/dist/workspace/conformance/index.d.ts +1 -1
- package/dist/workspace/conformance/index.d.ts.map +1 -1
- package/dist/workspace/conformance/index.js +39 -2
- package/dist/workspace/graph-cache.d.ts +8 -0
- package/dist/workspace/graph-cache.d.ts.map +1 -1
- package/dist/workspace/graph-cache.js +27 -3
- package/dist/workspace/graph-cli.d.ts +39 -2
- package/dist/workspace/graph-cli.d.ts.map +1 -1
- package/dist/workspace/graph-cli.js +66 -24
- package/dist/workspace/graph.schema.json +148 -0
- package/dist/workspace/kind-readers.d.ts +3 -0
- package/dist/workspace/kind-readers.d.ts.map +1 -1
- package/dist/workspace/kind-readers.js +7 -1
- package/dist/workspace/member-commands.d.ts +10 -1
- package/dist/workspace/member-commands.d.ts.map +1 -1
- package/dist/workspace/member-commands.js +17 -1
- package/dist/workspace/nested-graph.d.ts +2 -0
- package/dist/workspace/nested-graph.d.ts.map +1 -1
- package/dist/workspace/nested-graph.js +32 -1
- package/dist/workspace/reason-codes.d.ts +10 -0
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/reason-codes.js +12 -0
- package/dist/workspace/search-cli.d.ts +204 -0
- package/dist/workspace/search-cli.d.ts.map +1 -0
- package/dist/workspace/search-cli.js +466 -0
- package/dist/workspace/search-contract.d.ts +56 -0
- package/dist/workspace/search-contract.d.ts.map +1 -0
- package/dist/workspace/search-contract.js +70 -0
- package/dist/workspace/search.schema.json +822 -0
- package/package.json +1 -1
- package/src/__snapshots__/okf.test.ts.snap +10 -0
- package/src/capabilities/aws.paths +148 -0
- package/src/capabilities/base-mappings.json +122 -0
- package/src/capabilities/catalog.ts +230 -0
- package/src/capabilities/language.test.ts +191 -0
- package/src/capabilities/language.ts +373 -0
- package/src/capabilities/matcher.ts +315 -0
- package/src/capabilities/view-compose.test.ts +76 -0
- package/src/capabilities/view.ts +631 -0
- package/src/cli/commands/lint.ts +1 -0
- package/src/cli/handlers/declared-graph.ts +99 -0
- package/src/cli/handlers/graph.test.ts +94 -3
- package/src/cli/handlers/graph.ts +123 -96
- package/src/cli/handlers/pr-env.ts +1 -2
- package/src/cli/handlers/search-build-roots.test.ts +144 -0
- package/src/cli/handlers/search-count.test.ts +191 -0
- package/src/cli/handlers/search-count.ts +165 -0
- package/src/cli/handlers/search-json.test.ts +333 -0
- package/src/cli/handlers/search-live.test.ts +387 -0
- package/src/cli/handlers/search-paths.test.ts +235 -0
- package/src/cli/handlers/search.ts +1312 -166
- package/src/cli/main.test.ts +28 -3
- package/src/cli/main.ts +23 -3
- package/src/cli/mcp/server.test.ts +3 -3
- package/src/cli/mcp/server.ts +3 -0
- package/src/cli/mcp/tools/capabilities.ts +32 -0
- package/src/cli/mcp/workspace-tools.e2e.test.ts +21 -1
- package/src/cli/mcp/workspace-tools.ts +47 -2
- package/src/cli/parse-args.ts +52 -13
- package/src/cli/registry.ts +22 -0
- package/src/components/pr-env-ports.ts +89 -0
- package/src/components/pr-env-run-bundle.test.ts +54 -0
- package/src/components/pr-env-run.ts +5 -76
- package/src/components/pr-environment.ts +2 -1
- package/src/config-environments.ts +133 -0
- package/src/config.ts +37 -124
- package/src/graph-detail.ts +15 -3
- package/src/graph-effective.ts +226 -75
- package/src/graph-ir.test.ts +163 -0
- package/src/graph-ir.ts +147 -0
- package/src/graph-sub-template.ts +22 -0
- package/src/lexicon.ts +10 -0
- package/src/lifecycle/observe.test.ts +27 -1
- package/src/lifecycle/observe.ts +43 -1
- package/src/lint/rule.ts +6 -0
- package/src/live-endpoint.ts +1 -1
- package/src/observation.test.ts +25 -0
- package/src/observation.ts +69 -5
- package/src/workspace/capabilities-contract.test.ts +88 -0
- package/src/workspace/capabilities-contract.ts +132 -0
- package/src/workspace/capabilities.schema.json +229 -0
- package/src/workspace/compose-graph.ts +10 -1
- package/src/workspace/conformance/conformance.e2e.test.ts +14 -1
- package/src/workspace/conformance/index.ts +31 -2
- package/src/workspace/graph-cache.ts +27 -3
- package/src/workspace/graph-cli.ts +96 -24
- package/src/workspace/graph.schema.json +148 -0
- package/src/workspace/kind-readers.e2e.test.ts +28 -0
- package/src/workspace/kind-readers.test.ts +1 -1
- package/src/workspace/kind-readers.ts +7 -1
- package/src/workspace/member-commands.ts +22 -1
- package/src/workspace/nested-graph.ts +32 -1
- package/src/workspace/reason-codes.test.ts +7 -0
- package/src/workspace/reason-codes.ts +12 -0
- package/src/workspace/search-cli.e2e.test.ts +305 -0
- package/src/workspace/search-cli.ts +591 -0
- package/src/workspace/search-contract.ts +95 -0
- package/src/workspace/search.schema.json +822 -0
package/dist/observation.js
CHANGED
|
@@ -69,13 +69,15 @@ export function isObservationResult(value) {
|
|
|
69
69
|
* Build an {@link ObservationResult}. Lexicons use this rather than writing the
|
|
70
70
|
* discriminant by hand.
|
|
71
71
|
*/
|
|
72
|
-
export function observation(resources, unobserved, queried, notes, stackExports, sources) {
|
|
72
|
+
export function observation(resources, unobserved, queried, notes, stackExports, sources, annotations, rootReads) {
|
|
73
73
|
return {
|
|
74
74
|
observation: "v1",
|
|
75
75
|
resources,
|
|
76
76
|
...(unobserved && Object.keys(unobserved).length > 0 ? { unobserved } : {}),
|
|
77
77
|
...(queried && Object.keys(queried).length > 0 ? { queried } : {}),
|
|
78
78
|
...(sources && Object.keys(sources).length > 0 ? { sources } : {}),
|
|
79
|
+
...(annotations && Object.keys(annotations).length > 0 ? { annotations } : {}),
|
|
80
|
+
...(rootReads && Object.keys(rootReads).length > 0 ? { rootReads } : {}),
|
|
79
81
|
...(notes && notes.length > 0 ? { notes } : {}),
|
|
80
82
|
...(stackExports && Object.keys(stackExports).length > 0 ? { stackExports } : {}),
|
|
81
83
|
};
|
|
@@ -96,6 +98,8 @@ export function normalizeObservation(value) {
|
|
|
96
98
|
queried: value.queried ?? {},
|
|
97
99
|
sources: value.sources ?? {},
|
|
98
100
|
notes: [...new Set(value.notes ?? [])],
|
|
101
|
+
...(value.annotations && Object.keys(value.annotations).length > 0 ? { annotations: value.annotations } : {}),
|
|
102
|
+
...(value.rootReads && Object.keys(value.rootReads).length > 0 ? { rootReads: value.rootReads } : {}),
|
|
99
103
|
...(value.stackExports && Object.keys(value.stackExports).length > 0 ? { stackExports: value.stackExports } : {}),
|
|
100
104
|
};
|
|
101
105
|
}
|
|
@@ -142,11 +146,16 @@ export function mergeObservations(parts) {
|
|
|
142
146
|
// is one note (#1265).
|
|
143
147
|
const notes = new Set();
|
|
144
148
|
const stackExports = {};
|
|
149
|
+
// Annotations (#4372) merge like `sources`: per entity, disjoint parts.
|
|
150
|
+
const annotations = {};
|
|
151
|
+
const rootReads = {};
|
|
145
152
|
for (const part of parts) {
|
|
146
153
|
Object.assign(resources, part.resources);
|
|
147
154
|
Object.assign(unobserved, part.unobserved);
|
|
148
155
|
Object.assign(queried, part.queried);
|
|
149
156
|
Object.assign(sources, part.sources);
|
|
157
|
+
Object.assign(annotations, part.annotations ?? {});
|
|
158
|
+
Object.assign(rootReads, part.rootReads ?? {});
|
|
150
159
|
for (const n of part.notes)
|
|
151
160
|
notes.add(n);
|
|
152
161
|
Object.assign(stackExports, part.stackExports ?? {});
|
|
@@ -161,6 +170,8 @@ export function mergeObservations(parts) {
|
|
|
161
170
|
queried,
|
|
162
171
|
sources,
|
|
163
172
|
notes: [...notes],
|
|
173
|
+
...(Object.keys(annotations).length > 0 ? { annotations } : {}),
|
|
174
|
+
...(Object.keys(rootReads).length > 0 ? { rootReads } : {}),
|
|
164
175
|
...(Object.keys(stackExports).length > 0 ? { stackExports } : {}),
|
|
165
176
|
};
|
|
166
177
|
}
|
|
@@ -232,6 +243,7 @@ export async function observeEntities(declared, adapter) {
|
|
|
232
243
|
const resources = {};
|
|
233
244
|
const unobserved = {};
|
|
234
245
|
const queried = {};
|
|
246
|
+
const annotations = {};
|
|
235
247
|
const run = adapter.concurrently ?? ((items, fn) => boundedConcurrently(items, fn));
|
|
236
248
|
await run(declared, async (entity) => {
|
|
237
249
|
let result;
|
|
@@ -258,9 +270,13 @@ export async function observeEntities(declared, adapter) {
|
|
|
258
270
|
...(result.queried ? { queried: result.queried } : {}),
|
|
259
271
|
};
|
|
260
272
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
273
|
+
else if (result.annotations && Object.keys(result.annotations).length > 0) {
|
|
274
|
+
// `absent`: the verdict records nothing — in neither map is how the
|
|
275
|
+
// contract spells absence — but its address, when the adapter supplied
|
|
276
|
+
// one, lands in `queried` (#1620) so the absence can explain itself, and
|
|
277
|
+
// what the read learned about it lands in `annotations` (#4372).
|
|
278
|
+
annotations[entity.name] = result.annotations;
|
|
279
|
+
}
|
|
264
280
|
});
|
|
265
|
-
return observation(resources, unobserved, queried);
|
|
281
|
+
return observation(resources, unobserved, queried, undefined, undefined, undefined, annotations);
|
|
266
282
|
}
|
|
@@ -354,11 +354,11 @@ export declare const decideContract: import("../index.js").ActivityContract<{
|
|
|
354
354
|
backends?: Record<string, {
|
|
355
355
|
url: string;
|
|
356
356
|
key?: {
|
|
357
|
-
env: string;
|
|
358
|
-
} | {
|
|
359
357
|
capability: string;
|
|
360
358
|
member?: string | undefined;
|
|
361
359
|
env?: string | undefined;
|
|
360
|
+
} | {
|
|
361
|
+
env: string;
|
|
362
362
|
} | undefined;
|
|
363
363
|
timeoutMs?: number | undefined;
|
|
364
364
|
}> | undefined;
|
|
@@ -447,11 +447,11 @@ export declare const factoryAskContract: import("../index.js").ActivityContract<
|
|
|
447
447
|
backends?: Record<string, {
|
|
448
448
|
url: string;
|
|
449
449
|
key?: {
|
|
450
|
-
env: string;
|
|
451
|
-
} | {
|
|
452
450
|
capability: string;
|
|
453
451
|
member?: string | undefined;
|
|
454
452
|
env?: string | undefined;
|
|
453
|
+
} | {
|
|
454
|
+
env: string;
|
|
455
455
|
} | undefined;
|
|
456
456
|
timeoutMs?: number | undefined;
|
|
457
457
|
}> | undefined;
|