@ripplo/testing 0.7.10 → 0.7.11
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.
|
@@ -396,7 +396,6 @@ declare const workflowSchema: z.ZodObject<{
|
|
|
396
396
|
}, z.core.$strip>>>;
|
|
397
397
|
name: z.ZodString;
|
|
398
398
|
params: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
399
|
-
example: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
400
399
|
valueSpace: z.ZodString;
|
|
401
400
|
}, z.core.$strip>>;
|
|
402
401
|
singletons: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -482,7 +481,6 @@ declare const workflowSchema: z.ZodObject<{
|
|
|
482
481
|
intent: z.ZodString;
|
|
483
482
|
name: z.ZodString;
|
|
484
483
|
params: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
485
|
-
example: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
486
484
|
valueSpace: z.ZodString;
|
|
487
485
|
}, z.core.$strip>>;
|
|
488
486
|
singletons: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -687,7 +685,6 @@ declare const lockfileSchema: z.ZodObject<{
|
|
|
687
685
|
}, z.core.$strip>>>;
|
|
688
686
|
name: z.ZodString;
|
|
689
687
|
params: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
690
|
-
example: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
691
688
|
valueSpace: z.ZodString;
|
|
692
689
|
}, z.core.$strip>>;
|
|
693
690
|
singletons: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -773,7 +770,6 @@ declare const lockfileSchema: z.ZodObject<{
|
|
|
773
770
|
intent: z.ZodString;
|
|
774
771
|
name: z.ZodString;
|
|
775
772
|
params: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
776
|
-
example: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
777
773
|
valueSpace: z.ZodString;
|
|
778
774
|
}, z.core.$strip>>;
|
|
779
775
|
singletons: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -944,7 +940,6 @@ type Primitive = string | number | boolean;
|
|
|
944
940
|
type Fields = Record<string, Primitive>;
|
|
945
941
|
interface ParamToken {
|
|
946
942
|
readonly base: string;
|
|
947
|
-
readonly example: Primitive | undefined;
|
|
948
943
|
readonly valueSpace: string;
|
|
949
944
|
}
|
|
950
945
|
type EntityKind = "of" | "only" | "maybe";
|
package/dist/express.d.ts
CHANGED
package/dist/express.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Capture, S as Step, P as PredicateInput, L as Locator, B as Binding, A as AnyBinding, G as GivenItem, W as Workflow, a as EntityList, b as SingletonList, c as Lockfile, U as UniqueNames, d as BrowserSingleton, e as LeafPredicate, f as Primitive, F as FieldHandle, D as DeclSource, R as Row, g as Primitive$1, h as SingletonDef } from './engine-
|
|
2
|
-
export { i as AbsenceHandle, j as BranchInput, k as CLIENT_MOUNT_KEY, l as CLIENT_SEED_KEY, m as ConditionInput, n as ConditionPredicate, o as ConditionedBranch, p as CountCondition, q as DuplicateEntityName, E as Engine, r as EngineError, s as EngineImpls, t as EngineRead, u as EntityDef, v as EntityHandle, w as EntityImpl, x as FieldOptions, y as Fields, H as Handle, N as NamedBranch, z as Selection, I as SingletonConfig, J as SingletonImpl, K as SingletonValue, M as WithinMatcher, O as and, Q as branch, T as changed, V as count, X as createEngine, Y as disabled, Z as enabled, _ as entity, $ as field, a0 as focused, a1 as id, a2 as key, a3 as not, a4 as singleton, a5 as text, a6 as v, a7 as value, a8 as visible, a9 as when, aa as within } from './engine-
|
|
1
|
+
import { C as Capture, S as Step, P as PredicateInput, L as Locator, B as Binding, A as AnyBinding, G as GivenItem, W as Workflow, a as EntityList, b as SingletonList, c as Lockfile, U as UniqueNames, d as BrowserSingleton, e as LeafPredicate, f as Primitive, F as FieldHandle, D as DeclSource, R as Row, g as Primitive$1, h as SingletonDef } from './engine-Dv3trweR.js';
|
|
2
|
+
export { i as AbsenceHandle, j as BranchInput, k as CLIENT_MOUNT_KEY, l as CLIENT_SEED_KEY, m as ConditionInput, n as ConditionPredicate, o as ConditionedBranch, p as CountCondition, q as DuplicateEntityName, E as Engine, r as EngineError, s as EngineImpls, t as EngineRead, u as EntityDef, v as EntityHandle, w as EntityImpl, x as FieldOptions, y as Fields, H as Handle, N as NamedBranch, z as Selection, I as SingletonConfig, J as SingletonImpl, K as SingletonValue, M as WithinMatcher, O as and, Q as branch, T as changed, V as count, X as createEngine, Y as disabled, Z as enabled, _ as entity, $ as field, a0 as focused, a1 as id, a2 as key, a3 as not, a4 as singleton, a5 as text, a6 as v, a7 as value, a8 as visible, a9 as when, aa as within } from './engine-Dv3trweR.js';
|
|
3
3
|
import 'neverthrow';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -99,7 +99,7 @@ declare const url: BrowserSingletonDef<"url">;
|
|
|
99
99
|
declare const title: BrowserSingletonDef<"title">;
|
|
100
100
|
declare const viewport: BrowserSingletonDef<"viewport">;
|
|
101
101
|
|
|
102
|
-
declare function arbitrary<T extends Primitive>(field: FieldHandle<T
|
|
102
|
+
declare function arbitrary<T extends Primitive>(field: FieldHandle<T>): Binding<T>;
|
|
103
103
|
|
|
104
104
|
interface ClientSingletonImpl<T extends Primitive$1> {
|
|
105
105
|
readonly read: () => T | null;
|
package/dist/index.js
CHANGED
|
@@ -759,7 +759,7 @@ function assignParams(bindings) {
|
|
|
759
759
|
return {
|
|
760
760
|
counts: { ...acc.counts, [token.base]: ordinal + 1 },
|
|
761
761
|
names: new Map([...acc.names, [b, name]]),
|
|
762
|
-
params: { ...acc.params, [name]: {
|
|
762
|
+
params: { ...acc.params, [name]: { valueSpace: token.valueSpace } }
|
|
763
763
|
};
|
|
764
764
|
},
|
|
765
765
|
{ counts: {}, names: /* @__PURE__ */ new Map(), params: {} }
|
|
@@ -1125,10 +1125,9 @@ function slugify(intent) {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
1127
|
// src/params.ts
|
|
1128
|
-
function arbitrary(field2
|
|
1128
|
+
function arbitrary(field2) {
|
|
1129
1129
|
const token = {
|
|
1130
1130
|
base: `${field2.entity}_${field2.field}`,
|
|
1131
|
-
example,
|
|
1132
1131
|
valueSpace: field2.valueSpaceName
|
|
1133
1132
|
};
|
|
1134
1133
|
return paramBinding(token);
|
|
@@ -1560,7 +1559,6 @@ var stepSchema = z4.object({
|
|
|
1560
1559
|
expect: z4.array(predicateSchema).default([])
|
|
1561
1560
|
});
|
|
1562
1561
|
var paramSchema = z4.object({
|
|
1563
|
-
example: primitiveSchema.optional(),
|
|
1564
1562
|
valueSpace: z4.string().min(1)
|
|
1565
1563
|
});
|
|
1566
1564
|
var setupSchema = z4.object({
|
package/package.json
CHANGED