@wringer/core 0.1.1 → 0.1.2

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { bindDrivers } from './bind-drivers.ts';
2
2
  export type { BoundHelpers } from './bind-drivers.ts';
3
+ export { buildBuiltinCommand } from './build-commands.ts';
3
4
  export { buildEnvelope } from './build-envelope.ts';
4
5
  export type { EnvelopeInput } from './build-envelope.ts';
5
6
  export { buildEnvelopeJSONSchema } from './build-envelope-json-schema.ts';
@@ -16,6 +17,7 @@ export type { StateFileSystem } from './create-node-state-file-system.ts';
16
17
  export { createWringer, defaultStateDir } from './create-wringer.ts';
17
18
  export type { WringerBuilder, WringerOptions } from './create-wringer.ts';
18
19
  export { defineDriver } from './define-driver.ts';
20
+ export { prepareArgs } from './prepare-args.ts';
19
21
  export { findOwnValue } from './find-own-value.ts';
20
22
  export type { DriverDefinition, DriverFactory } from './define-driver.ts';
21
23
  export { dataCapBytes } from './cap-data.ts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wringer/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "The core of wringer: the envelope, the registry, the fence, the run state and the evidence",
5
5
  "homepage": "https://github.com/zgeoff/wringer/tree/main/packages/core#readme",
6
6
  "bugs": "https://github.com/zgeoff/wringer/issues",
@@ -35,13 +35,13 @@
35
35
  "schema": "bun scripts/write-envelope-schema.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@zgeoff/std": "0.4.2",
38
+ "@zgeoff/std": "0.4.3",
39
39
  "ts-pattern": "5.9.2",
40
40
  "xstate": "5.33.3",
41
41
  "zod": "4.6.7"
42
42
  },
43
43
  "devDependencies": {
44
- "@zgeoff/testing": "0.2.1",
44
+ "@zgeoff/testing": "0.3.0",
45
45
  "ajv": "8.20.0",
46
46
  "tiny-invariant": "1.3.3"
47
47
  },
@@ -47,7 +47,8 @@ type GateData = z.infer<typeof gateDataSchema>;
47
47
  export function buildVerdictCommands(): readonly RegisteredCommand[] {
48
48
  const done: BuiltinCommandSpec<DoneArgs, Verdict> = {
49
49
  path: [doneCommand],
50
- summary: 'Record a verdict for a feature from the drives since the doctor passed',
50
+ summary:
51
+ 'Record a verdict for a feature from its commands that touched the app since the doctor passed',
51
52
  args: doneArgsSchema,
52
53
  data: verdictSchema,
53
54
  effect: 'read',
@@ -120,7 +121,7 @@ async function recordVerdict(args: DoneArgs, ctx: BuiltinContext): Promise<Verdi
120
121
 
121
122
  if (drives.length === 0) {
122
123
  throw new WringerError('check-failed', {
123
- message: `No drive of ${feature} passed on run ${ctx.run.runID} since the doctor passed.`,
124
+ message: `No command of ${feature} that touches the app passed on run ${ctx.run.runID} since the doctor passed.`,
124
125
  hint: `Drive the feature with \`--feature ${feature}\`, then run \`done\` again.`,
125
126
  });
126
127
  }
package/src/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { bindDrivers } from './bind-drivers.ts';
2
2
  export type { BoundHelpers } from './bind-drivers.ts';
3
+ export { buildBuiltinCommand } from './build-commands.ts';
3
4
  export { buildEnvelope } from './build-envelope.ts';
4
5
  export type { EnvelopeInput } from './build-envelope.ts';
5
6
  export { buildEnvelopeJSONSchema } from './build-envelope-json-schema.ts';
@@ -16,6 +17,7 @@ export type { StateFileSystem } from './create-node-state-file-system.ts';
16
17
  export { createWringer, defaultStateDir } from './create-wringer.ts';
17
18
  export type { WringerBuilder, WringerOptions } from './create-wringer.ts';
18
19
  export { defineDriver } from './define-driver.ts';
20
+ export { prepareArgs } from './prepare-args.ts';
19
21
  export { findOwnValue } from './find-own-value.ts';
20
22
  export type { DriverDefinition, DriverFactory } from './define-driver.ts';
21
23
  export { dataCapBytes } from './cap-data.ts';