@walkeros/collector 4.8.2 → 4.8.3-next-1793115089237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @walkeros/collector
2
2
 
3
+ ## 4.8.3-next-1793115089237
4
+
5
+ ### Patch Changes
6
+
7
+ - 5313635: The `minimal` check of `conformance` accepts a setting the schema
8
+ leaves optional when the step needs it under the minimal example's config,
9
+ such as a site ID that only `loadScript: true` requires. It starts the step
10
+ without that setting and keeps it only when `init` refuses with a `config`
11
+ error.
12
+ - 5313635: `conformance` from `@walkeros/collector/dev` now checks the minimal
13
+ example of every destination. Pass `minimal` (the package's
14
+ `examples.minimal`, published from `src/examples/minimal.ts`), or
15
+ `withoutMinimal` with the reason the package publishes none. A destination's
16
+ conformance test that does neither fails until it adds one of the two.
17
+ - 34fd225: `runExamples` and `conformance` from `@walkeros/collector/dev` always
18
+ run every example the way `walkerOS.json` publishes it: each function in the
19
+ example runs from its source text, without the module it was written in. A
20
+ function that needs an import fails the package test and names the example.
21
+ The `published` option is gone.
22
+ - Updated dependencies [34fd225]
23
+ - Updated dependencies [5313635]
24
+ - Updated dependencies [5313635]
25
+ - Updated dependencies [5313635]
26
+ - Updated dependencies [5313635]
27
+ - Updated dependencies [5313635]
28
+ - Updated dependencies [34fd225]
29
+ - Updated dependencies [5313635]
30
+ - @walkeros/core@4.8.3-next-1793115089237
31
+
3
32
  ## 4.8.2
4
33
 
5
34
  ### Patch Changes
@@ -711,9 +740,6 @@
711
740
  and `event.context` remain required.
712
741
  - Each source self-registers via TypeScript module augmentation of `SourceMap`
713
742
  in `@walkeros/core`.
714
- - App-side coordination (`/workspaces/developer/app`) is a follow-up plan, not
715
- part of this release. Telemetry from v4 CLI/MCP will not validate against
716
- the existing app schema until that follow-up ships.
717
743
  - `Mapping.Rule.skip` is renamed to `Mapping.Rule.silent`. Customer flow.json
718
744
  configs using `skip: true` in mapping rules must rename to `silent: true`.
719
745
  Hard cut: no legacy alias, the field is gone.
package/dist/dev.d.mts CHANGED
@@ -30,9 +30,10 @@ interface SourceRunOptions extends RunOptions {
30
30
  page?: Flow.StepPage;
31
31
  }
32
32
  /**
33
- * Run every example of a step through a real collector and compare its `out`
34
- * (R4, as a literal) and `outcome`. Resolves when every example holds;
35
- * otherwise rejects with one error naming each failing example.
33
+ * Run every example of a step through a real collector, as `walkerOS.json`
34
+ * publishes it (`runAsPublished`), and compare its `out` (as a literal) and
35
+ * `outcome`. Resolves when every example holds; otherwise rejects with
36
+ * one error naming each failing example.
36
37
  */
37
38
  declare function runExamples<T extends Destination.TypesGeneric>(kind: 'destination', step: Destination.Instance<T>, examples: Flow.StepExamples, options?: DestinationRunOptions): Promise<void>;
38
39
  declare function runExamples<T extends Transformer.TypesGeneric>(kind: 'transformer', step: Transformer.Init<T>, examples: Flow.StepExamples, options?: TransformerRunOptions): Promise<void>;
@@ -40,8 +41,8 @@ declare function runExamples<T extends Store.TypesGeneric>(kind: 'store', step:
40
41
  declare function runExamples<T extends Source.TypesGeneric>(kind: 'source', step: Source.Init<T>, examples: Flow.StepExamples, options?: SourceRunOptions): Promise<void>;
41
42
 
42
43
  /**
43
- * The conformance kit: the checks of the step contract (design Q9 plus item
44
- * 11), run on a real collector with the boundary under the kit's control.
44
+ * The conformance kit: the checks of the step contract (items 1 to 12), run
45
+ * on a real collector with the boundary under the kit's control.
45
46
  * Each package declares one profile; the profile, not the package, decides
46
47
  * which checks run, so no package skips a check of its own.
47
48
  */
@@ -70,6 +71,27 @@ interface ConformanceOptions {
70
71
  * browser profiles (`web-sdk`, `vendor-global`) require it.
71
72
  */
72
73
  page?: Flow.StepPage;
74
+ /**
75
+ * Destinations: the package's minimal example (`examples.minimal`). Item
76
+ * 12 starts the step with the settings `composeQuickstart` composes from
77
+ * it and the package's `$meta` (from `<root>/package.json`), pushes one
78
+ * public success example and requires it delivered.
79
+ */
80
+ minimal?: Flow.MinimalExample;
81
+ /** A package with several exports: the export this step is. */
82
+ exportName?: string;
83
+ /**
84
+ * A package with several exports: its `exportExamples`. Item 12 reads the
85
+ * step's minimal example there and requires one for every export.
86
+ */
87
+ exportExamples?: Record<string, {
88
+ minimal?: Flow.MinimalExample;
89
+ }>;
90
+ /**
91
+ * Destinations: the reason the package publishes no minimal example. Its
92
+ * docs page then keeps a hand-written setup.
93
+ */
94
+ withoutMinimal?: string;
73
95
  }
74
96
  /** Every failed check of one conformance run: `items` lists their numbers. */
75
97
  declare class ConformanceError extends Error {
package/dist/dev.d.ts CHANGED
@@ -30,9 +30,10 @@ interface SourceRunOptions extends RunOptions {
30
30
  page?: Flow.StepPage;
31
31
  }
32
32
  /**
33
- * Run every example of a step through a real collector and compare its `out`
34
- * (R4, as a literal) and `outcome`. Resolves when every example holds;
35
- * otherwise rejects with one error naming each failing example.
33
+ * Run every example of a step through a real collector, as `walkerOS.json`
34
+ * publishes it (`runAsPublished`), and compare its `out` (as a literal) and
35
+ * `outcome`. Resolves when every example holds; otherwise rejects with
36
+ * one error naming each failing example.
36
37
  */
37
38
  declare function runExamples<T extends Destination.TypesGeneric>(kind: 'destination', step: Destination.Instance<T>, examples: Flow.StepExamples, options?: DestinationRunOptions): Promise<void>;
38
39
  declare function runExamples<T extends Transformer.TypesGeneric>(kind: 'transformer', step: Transformer.Init<T>, examples: Flow.StepExamples, options?: TransformerRunOptions): Promise<void>;
@@ -40,8 +41,8 @@ declare function runExamples<T extends Store.TypesGeneric>(kind: 'store', step:
40
41
  declare function runExamples<T extends Source.TypesGeneric>(kind: 'source', step: Source.Init<T>, examples: Flow.StepExamples, options?: SourceRunOptions): Promise<void>;
41
42
 
42
43
  /**
43
- * The conformance kit: the checks of the step contract (design Q9 plus item
44
- * 11), run on a real collector with the boundary under the kit's control.
44
+ * The conformance kit: the checks of the step contract (items 1 to 12), run
45
+ * on a real collector with the boundary under the kit's control.
45
46
  * Each package declares one profile; the profile, not the package, decides
46
47
  * which checks run, so no package skips a check of its own.
47
48
  */
@@ -70,6 +71,27 @@ interface ConformanceOptions {
70
71
  * browser profiles (`web-sdk`, `vendor-global`) require it.
71
72
  */
72
73
  page?: Flow.StepPage;
74
+ /**
75
+ * Destinations: the package's minimal example (`examples.minimal`). Item
76
+ * 12 starts the step with the settings `composeQuickstart` composes from
77
+ * it and the package's `$meta` (from `<root>/package.json`), pushes one
78
+ * public success example and requires it delivered.
79
+ */
80
+ minimal?: Flow.MinimalExample;
81
+ /** A package with several exports: the export this step is. */
82
+ exportName?: string;
83
+ /**
84
+ * A package with several exports: its `exportExamples`. Item 12 reads the
85
+ * step's minimal example there and requires one for every export.
86
+ */
87
+ exportExamples?: Record<string, {
88
+ minimal?: Flow.MinimalExample;
89
+ }>;
90
+ /**
91
+ * Destinations: the reason the package publishes no minimal example. Its
92
+ * docs page then keeps a hand-written setup.
93
+ */
94
+ withoutMinimal?: string;
73
95
  }
74
96
  /** Every failed check of one conformance run: `items` lists their numbers. */
75
97
  declare class ConformanceError extends Error {