@oneie/sdk 0.14.10 → 0.14.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.
- package/dist/generated/base-manifest.d.ts.map +1 -1
- package/dist/generated/base-manifest.js +25 -0
- package/dist/generated/base-manifest.js.map +1 -1
- package/dist/generated/schemas.d.ts +13 -0
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +13 -0
- package/dist/generated/schemas.js.map +1 -1
- package/dist/market.d.ts +2 -0
- package/dist/market.d.ts.map +1 -1
- package/dist/market.js +2 -0
- package/dist/market.js.map +1 -1
- package/dist/receivers.d.ts +208 -0
- package/dist/receivers.d.ts.map +1 -1
- package/dist/receivers.js +153 -4
- package/dist/receivers.js.map +1 -1
- package/dist/templates.d.ts.map +1 -1
- package/dist/templates.js +3 -1
- package/dist/templates.js.map +1 -1
- package/dist/work-contract-grammar.json +10 -0
- package/package.json +2 -2
package/dist/receivers.d.ts
CHANGED
|
@@ -911,6 +911,7 @@ export declare const RECEIVERS: {
|
|
|
911
911
|
}, z.core.$strip>>;
|
|
912
912
|
"world:route": Receiver<z.ZodObject<{
|
|
913
913
|
tags: z.ZodArray<z.ZodString>;
|
|
914
|
+
decide: z.ZodOptional<z.ZodBoolean>;
|
|
914
915
|
deliver: z.ZodOptional<z.ZodBoolean>;
|
|
915
916
|
reply: z.ZodOptional<z.ZodBoolean>;
|
|
916
917
|
board: z.ZodOptional<z.ZodLiteral<"marketplace">>;
|
|
@@ -925,6 +926,13 @@ export declare const RECEIVERS: {
|
|
|
925
926
|
ceo: "ceo";
|
|
926
927
|
}>>;
|
|
927
928
|
actor: z.ZodOptional<z.ZodString>;
|
|
929
|
+
receiver: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
930
|
+
rung: z.ZodOptional<z.ZodNumber>;
|
|
931
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
932
|
+
ceo: "ceo";
|
|
933
|
+
highway: "highway";
|
|
934
|
+
classified: "classified";
|
|
935
|
+
}>>;
|
|
928
936
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
929
937
|
reply: z.ZodOptional<z.ZodObject<{
|
|
930
938
|
ok: z.ZodBoolean;
|
|
@@ -932,6 +940,20 @@ export declare const RECEIVERS: {
|
|
|
932
940
|
error: z.ZodOptional<z.ZodString>;
|
|
933
941
|
}, z.core.$strip>>;
|
|
934
942
|
}, z.core.$strip>>;
|
|
943
|
+
"world:suggest-workflow": Receiver<z.ZodObject<{
|
|
944
|
+
tags: z.ZodArray<z.ZodString>;
|
|
945
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
946
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
947
|
+
}, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
|
|
948
|
+
ok: z.ZodBoolean;
|
|
949
|
+
suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
950
|
+
workflowId: z.ZodString;
|
|
951
|
+
name: z.ZodString;
|
|
952
|
+
weight: z.ZodNumber;
|
|
953
|
+
tags: z.ZodArray<z.ZodString>;
|
|
954
|
+
}, z.core.$strip>>>;
|
|
955
|
+
error: z.ZodOptional<z.ZodString>;
|
|
956
|
+
}, z.core.$strip>>;
|
|
935
957
|
"tasks:announce": Receiver<z.ZodObject<{
|
|
936
958
|
taskId: z.ZodString;
|
|
937
959
|
tags: z.ZodArray<z.ZodString>;
|
|
@@ -1119,6 +1141,8 @@ export declare const RECEIVERS: {
|
|
|
1119
1141
|
price: z.ZodNumber;
|
|
1120
1142
|
currency: z.ZodDefault<z.ZodString>;
|
|
1121
1143
|
deadline: z.ZodString;
|
|
1144
|
+
pid: z.ZodOptional<z.ZodString>;
|
|
1145
|
+
ppid: z.ZodOptional<z.ZodString>;
|
|
1122
1146
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
1123
1147
|
ok: z.ZodLiteral<true>;
|
|
1124
1148
|
deal: z.ZodObject<{
|
|
@@ -1253,6 +1277,26 @@ export declare const RECEIVERS: {
|
|
|
1253
1277
|
stage: z.ZodString;
|
|
1254
1278
|
}, z.core.$strip>>;
|
|
1255
1279
|
}, z.core.$strip>]>>;
|
|
1280
|
+
"market:offers": Receiver<z.ZodObject<{
|
|
1281
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
1282
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
1283
|
+
ok: z.ZodLiteral<true>;
|
|
1284
|
+
deals: z.ZodArray<z.ZodObject<{
|
|
1285
|
+
id: z.ZodString;
|
|
1286
|
+
buyer: z.ZodString;
|
|
1287
|
+
seller: z.ZodString;
|
|
1288
|
+
skill: z.ZodString;
|
|
1289
|
+
price: z.ZodNumber;
|
|
1290
|
+
currency: z.ZodString;
|
|
1291
|
+
stage: z.ZodString;
|
|
1292
|
+
version: z.ZodNumber;
|
|
1293
|
+
pid: z.ZodOptional<z.ZodString>;
|
|
1294
|
+
ppid: z.ZodOptional<z.ZodString>;
|
|
1295
|
+
}, z.core.$strip>>;
|
|
1296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1297
|
+
ok: z.ZodLiteral<false>;
|
|
1298
|
+
error: z.ZodString;
|
|
1299
|
+
}, z.core.$strip>]>>;
|
|
1256
1300
|
"market:hire": Receiver<z.ZodObject<{
|
|
1257
1301
|
providerUid: z.ZodString;
|
|
1258
1302
|
skillId: z.ZodString;
|
|
@@ -2176,6 +2220,104 @@ export declare const RECEIVERS: {
|
|
|
2176
2220
|
status: z.ZodOptional<z.ZodString>;
|
|
2177
2221
|
error: z.ZodOptional<z.ZodString>;
|
|
2178
2222
|
}, z.core.$strip>>;
|
|
2223
|
+
'pages:publish-pack': Receiver<z.ZodObject<{
|
|
2224
|
+
slug: z.ZodString;
|
|
2225
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2226
|
+
slug: z.ZodString;
|
|
2227
|
+
}, z.core.$strip>]>>>;
|
|
2228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2229
|
+
ok: z.ZodBoolean;
|
|
2230
|
+
published: z.ZodOptional<z.ZodNumber>;
|
|
2231
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2232
|
+
}, z.core.$strip>>;
|
|
2233
|
+
"pages:fill-pack": Receiver<z.ZodObject<{
|
|
2234
|
+
slug: z.ZodString;
|
|
2235
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
2236
|
+
pageSlug: z.ZodString;
|
|
2237
|
+
slug: z.ZodString;
|
|
2238
|
+
}, z.core.$strip>>;
|
|
2239
|
+
facts: z.ZodObject<{
|
|
2240
|
+
identity: z.ZodObject<{
|
|
2241
|
+
company: z.ZodString;
|
|
2242
|
+
ownerName: z.ZodString;
|
|
2243
|
+
phone: z.ZodString;
|
|
2244
|
+
foundedYear: z.ZodNumber;
|
|
2245
|
+
city: z.ZodString;
|
|
2246
|
+
state: z.ZodString;
|
|
2247
|
+
metro: z.ZodString;
|
|
2248
|
+
streetAddress: z.ZodString;
|
|
2249
|
+
}, z.core.$strip>;
|
|
2250
|
+
licensing: z.ZodObject<{
|
|
2251
|
+
usdot: z.ZodOptional<z.ZodString>;
|
|
2252
|
+
mc: z.ZodOptional<z.ZodString>;
|
|
2253
|
+
stateLicenseNumber: z.ZodString;
|
|
2254
|
+
regulatorOverride: z.ZodOptional<z.ZodString>;
|
|
2255
|
+
}, z.core.$strip>;
|
|
2256
|
+
reputation: z.ZodObject<{
|
|
2257
|
+
starRating: z.ZodNumber;
|
|
2258
|
+
reviewCount: z.ZodNumber;
|
|
2259
|
+
movesCompleted: z.ZodNumber;
|
|
2260
|
+
}, z.core.$strip>;
|
|
2261
|
+
serviceArea: z.ZodObject<{
|
|
2262
|
+
neighborhoods: z.ZodArray<z.ZodString>;
|
|
2263
|
+
}, z.core.$strip>;
|
|
2264
|
+
pricing: z.ZodObject<{
|
|
2265
|
+
hourlyRatePerMover: z.ZodNumber;
|
|
2266
|
+
truckFee: z.ZodNumber;
|
|
2267
|
+
tiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2268
|
+
low: z.ZodNumber;
|
|
2269
|
+
high: z.ZodNumber;
|
|
2270
|
+
}, z.core.$strip>>>;
|
|
2271
|
+
}, z.core.$strip>;
|
|
2272
|
+
story: z.ZodOptional<z.ZodObject<{
|
|
2273
|
+
originSentence: z.ZodOptional<z.ZodString>;
|
|
2274
|
+
}, z.core.$strip>>;
|
|
2275
|
+
testimonials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2276
|
+
quote: z.ZodString;
|
|
2277
|
+
reviewerName: z.ZodString;
|
|
2278
|
+
moveType: z.ZodString;
|
|
2279
|
+
}, z.core.$strip>>>;
|
|
2280
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2281
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2282
|
+
}, z.core.$strip>>;
|
|
2283
|
+
}, z.core.$strip>;
|
|
2284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2285
|
+
ok: z.ZodBoolean;
|
|
2286
|
+
filled: z.ZodOptional<z.ZodNumber>;
|
|
2287
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2288
|
+
}, z.core.$strip>>;
|
|
2289
|
+
"pages:fill-pack-extract": Receiver<z.ZodObject<{
|
|
2290
|
+
slug: z.ZodString;
|
|
2291
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2294
|
+
ok: z.ZodBoolean;
|
|
2295
|
+
facts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2296
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2297
|
+
}, z.core.$strip>>;
|
|
2298
|
+
"movers:build": Receiver<z.ZodObject<{
|
|
2299
|
+
slug: z.ZodString;
|
|
2300
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2301
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2302
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2303
|
+
ok: z.ZodBoolean;
|
|
2304
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
2305
|
+
facts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2306
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2307
|
+
}, z.core.$strip>>;
|
|
2308
|
+
"movers:funnel-provision": Receiver<z.ZodObject<{
|
|
2309
|
+
name: z.ZodString;
|
|
2310
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2311
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2312
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
2313
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2314
|
+
visitorHash: z.ZodString;
|
|
2315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2316
|
+
ok: z.ZodBoolean;
|
|
2317
|
+
previewToken: z.ZodOptional<z.ZodString>;
|
|
2318
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2319
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2320
|
+
}, z.core.$strip>>;
|
|
2179
2321
|
"pages:versions": Receiver<z.ZodObject<{
|
|
2180
2322
|
slug: z.ZodString;
|
|
2181
2323
|
page: z.ZodString;
|
|
@@ -2202,6 +2344,14 @@ export declare const RECEIVERS: {
|
|
|
2202
2344
|
restoredTs: z.ZodOptional<z.ZodNumber>;
|
|
2203
2345
|
error: z.ZodOptional<z.ZodString>;
|
|
2204
2346
|
}, z.core.$strip>>;
|
|
2347
|
+
"mover:agent-context": Receiver<z.ZodObject<{
|
|
2348
|
+
slug: z.ZodString;
|
|
2349
|
+
facts: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2351
|
+
ok: z.ZodBoolean;
|
|
2352
|
+
chars: z.ZodOptional<z.ZodNumber>;
|
|
2353
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2354
|
+
}, z.core.$strip>>;
|
|
2205
2355
|
"settings:write": Receiver<z.ZodObject<{
|
|
2206
2356
|
slug: z.ZodOptional<z.ZodString>;
|
|
2207
2357
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2719,9 +2869,57 @@ export declare const RECEIVERS: {
|
|
|
2719
2869
|
}, z.core.$strip>, z.ZodObject<{
|
|
2720
2870
|
ok: z.ZodBoolean;
|
|
2721
2871
|
stepCount: z.ZodOptional<z.ZodNumber>;
|
|
2872
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2722
2873
|
idMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2723
2874
|
error: z.ZodOptional<z.ZodString>;
|
|
2724
2875
|
}, z.core.$strip>>;
|
|
2876
|
+
"workflow:validate": Receiver<z.ZodObject<{
|
|
2877
|
+
workflowId: z.ZodString;
|
|
2878
|
+
diff: z.ZodObject<{
|
|
2879
|
+
add: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2880
|
+
tempId: z.ZodString;
|
|
2881
|
+
kind: z.ZodEnum<{
|
|
2882
|
+
human: "human";
|
|
2883
|
+
agent: "agent";
|
|
2884
|
+
skill: "skill";
|
|
2885
|
+
trigger: "trigger";
|
|
2886
|
+
tool: "tool";
|
|
2887
|
+
condition: "condition";
|
|
2888
|
+
delay: "delay";
|
|
2889
|
+
sell: "sell";
|
|
2890
|
+
}>;
|
|
2891
|
+
name: z.ZodString;
|
|
2892
|
+
config: z.ZodString;
|
|
2893
|
+
position: z.ZodOptional<z.ZodString>;
|
|
2894
|
+
}, z.core.$strip>>>;
|
|
2895
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2896
|
+
connect: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2897
|
+
source: z.ZodString;
|
|
2898
|
+
target: z.ZodString;
|
|
2899
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
2900
|
+
}, z.core.$strip>>>;
|
|
2901
|
+
disconnect: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2902
|
+
source: z.ZodString;
|
|
2903
|
+
target: z.ZodString;
|
|
2904
|
+
}, z.core.$strip>>>;
|
|
2905
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2906
|
+
stepId: z.ZodString;
|
|
2907
|
+
field: z.ZodEnum<{
|
|
2908
|
+
name: "name";
|
|
2909
|
+
config: "config";
|
|
2910
|
+
position: "position";
|
|
2911
|
+
"exit-condition": "exit-condition";
|
|
2912
|
+
owner: "owner";
|
|
2913
|
+
}>;
|
|
2914
|
+
value: z.ZodString;
|
|
2915
|
+
}, z.core.$strip>>>;
|
|
2916
|
+
}, z.core.$strip>;
|
|
2917
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2918
|
+
ok: z.ZodBoolean;
|
|
2919
|
+
stepCount: z.ZodOptional<z.ZodNumber>;
|
|
2920
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2921
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2922
|
+
}, z.core.$strip>>;
|
|
2725
2923
|
"workflow:run": Receiver<z.ZodObject<{
|
|
2726
2924
|
workflowId: z.ZodString;
|
|
2727
2925
|
triggerPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2797,6 +2995,16 @@ export declare const RECEIVERS: {
|
|
|
2797
2995
|
group: z.ZodOptional<z.ZodString>;
|
|
2798
2996
|
error: z.ZodOptional<z.ZodString>;
|
|
2799
2997
|
}, z.core.$strip>>;
|
|
2998
|
+
"workflow:settled-notify": Receiver<z.ZodObject<{
|
|
2999
|
+
runId: z.ZodString;
|
|
3000
|
+
group: z.ZodString;
|
|
3001
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3002
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
3003
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3004
|
+
ok: z.ZodBoolean;
|
|
3005
|
+
group: z.ZodOptional<z.ZodString>;
|
|
3006
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3007
|
+
}, z.core.$strip>>;
|
|
2800
3008
|
"workflow:stop": Receiver<z.ZodObject<{
|
|
2801
3009
|
runId: z.ZodString;
|
|
2802
3010
|
}, z.core.$strip>, z.ZodObject<{
|
package/dist/receivers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receivers.d.ts","sourceRoot":"","sources":["../src/receivers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB;;;;;;;;;;;;;GAaG;AAEH;sEACsE;AACtE,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,+DAA+D;AAC/D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,oDAAoD;AACpD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAEzD,6CAA6C;AAC7C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,QAAQ,CACvB,GAAG,SAAS,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,EACvC,GAAG,SAAS,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU;IAEvC,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,OAAO,EAAE,GAAG,CAAC;IACb,oCAAoC;IACpC,QAAQ,EAAE,GAAG,CAAC;IACd,gEAAgE;IAChE,MAAM,EAAE,cAAc,CAAC;IACvB,mEAAmE;IACnE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;2EACuE;IACvE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,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AElD,+CAA+C;AAC/C,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,YAAY,IACtC,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEzF,iDAAiD;AACjD,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,YAAY,IACtC,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,UAAU,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE1F;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAClB,iFAAiF;;IAEjF,wDAAwD;;IAExD,iEAAiE;;IAEjE,mDAAmD;;IAEnD,8DAA8D;;IAE9D,wFAAwF;;CAEvC,CAAC;AAEpD,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAC"}
|
package/dist/receivers.js
CHANGED
|
@@ -734,24 +734,49 @@ export const RECEIVERS = {
|
|
|
734
734
|
}),
|
|
735
735
|
"world:route": receiver({
|
|
736
736
|
receiver: "world:route",
|
|
737
|
-
summary: "Route a tagged signal to THE handler via the ladder: learned tag-node path (follow_route) → staked subscribers (reputation-ranked) → CEO standing workflow; marks the delivery path so the next route is smarter. reply:true also invokes the resolved actor and returns its answer inline",
|
|
737
|
+
summary: "Route a tagged signal to THE handler via the ladder: learned tag-node path (follow_route) → staked subscribers (reputation-ranked) → CEO standing workflow; marks the delivery path so the next route is smarter. reply:true also invokes the resolved actor and returns its answer inline. decide:true instead answers the deterministic verdict { receiver, rung, reason } (reason: highway|classified|ceo) from the learned lane — a pure read, zero side effects, zero tokens; TypeQL twin: route_verdict (migration 0043)",
|
|
738
738
|
request: z.object({
|
|
739
739
|
tags: z.array(z.string()),
|
|
740
|
+
decide: z.boolean().optional(), // true → verdict-only: no delivery, no mark, no CEO trigger
|
|
740
741
|
deliver: z.boolean().optional(),
|
|
741
742
|
reply: z.boolean().optional(),
|
|
742
743
|
board: z.literal("marketplace").optional(),
|
|
743
744
|
slug: z.string().optional(),
|
|
744
745
|
workspace: z.string().optional(),
|
|
745
|
-
}).catchall(z.unknown()), // extra keys = the message payload (e.g. content) — carried through to the resolved actor, never stripped
|
|
746
|
+
}).catchall(z.unknown()), // extra keys = the message payload (e.g. content, text) — carried through to the resolved actor, never stripped
|
|
746
747
|
response: z.object({
|
|
747
748
|
ok: z.boolean(),
|
|
748
749
|
routed: z.enum(["learned", "staked", "explore", "ceo"]).optional(),
|
|
749
750
|
actor: z.string().optional(),
|
|
751
|
+
// decide:true verdict fields — receiver null ⇔ reason 'ceo'; rung 1:1 with reason (highway→1 classified→2 ceo→3)
|
|
752
|
+
receiver: z.string().nullable().optional(),
|
|
753
|
+
rung: z.number().optional(),
|
|
754
|
+
reason: z.enum(["highway", "classified", "ceo"]).optional(),
|
|
750
755
|
tags: z.array(z.string()).optional(),
|
|
751
756
|
reply: z.object({ ok: z.boolean(), text: z.string().optional(), error: z.string().optional() }).optional(),
|
|
752
757
|
}),
|
|
753
758
|
effect: "ask",
|
|
754
759
|
}),
|
|
760
|
+
"world:suggest-workflow": receiver({
|
|
761
|
+
receiver: "world:suggest-workflow",
|
|
762
|
+
summary: "Rank staked workflows by tag match + earned track record (claw_paths), read-only — no delivery, no run, no auto-trigger. Requires >=3 successful runs before a workflow is surfaced; caps at 3 suggestions",
|
|
763
|
+
request: z.object({
|
|
764
|
+
tags: z.array(z.string()),
|
|
765
|
+
workspace: z.string().optional(),
|
|
766
|
+
slug: z.string().optional(),
|
|
767
|
+
}).catchall(z.unknown()),
|
|
768
|
+
response: z.object({
|
|
769
|
+
ok: z.boolean(),
|
|
770
|
+
suggestions: z.array(z.object({
|
|
771
|
+
workflowId: z.string(),
|
|
772
|
+
name: z.string(),
|
|
773
|
+
weight: z.number(),
|
|
774
|
+
tags: z.array(z.string()),
|
|
775
|
+
})).optional(),
|
|
776
|
+
error: z.string().optional(),
|
|
777
|
+
}),
|
|
778
|
+
effect: "ask", idempotent: true,
|
|
779
|
+
}),
|
|
755
780
|
"tasks:announce": receiver({
|
|
756
781
|
receiver: "tasks:announce",
|
|
757
782
|
summary: "Announce a task into the world by its tags — the first caller of world:announce",
|
|
@@ -979,6 +1004,8 @@ export const RECEIVERS = {
|
|
|
979
1004
|
price: z.number().nonnegative(),
|
|
980
1005
|
currency: z.string().default("credits"),
|
|
981
1006
|
deadline: z.string().datetime(),
|
|
1007
|
+
pid: z.string().optional(),
|
|
1008
|
+
ppid: z.string().optional(),
|
|
982
1009
|
}),
|
|
983
1010
|
response: z.union([
|
|
984
1011
|
z.object({ ok: z.literal(true), deal: z.object({ id: z.string(), stage: z.string(), version: z.number() }) }),
|
|
@@ -1077,6 +1104,20 @@ export const RECEIVERS = {
|
|
|
1077
1104
|
]),
|
|
1078
1105
|
effect: "ask", auth: "required", reversible: false, idempotent: false,
|
|
1079
1106
|
}),
|
|
1107
|
+
"market:offers": receiver({
|
|
1108
|
+
receiver: "market:offers",
|
|
1109
|
+
summary: "List the caller's own deals (as buyer or seller), optionally filtered by stage",
|
|
1110
|
+
request: z.object({ stage: z.string().optional() }),
|
|
1111
|
+
response: z.union([
|
|
1112
|
+
z.object({ ok: z.literal(true), deals: z.array(z.object({
|
|
1113
|
+
id: z.string(), buyer: z.string(), seller: z.string(), skill: z.string(),
|
|
1114
|
+
price: z.number(), currency: z.string(), stage: z.string(), version: z.number(),
|
|
1115
|
+
pid: z.string().optional(), ppid: z.string().optional(),
|
|
1116
|
+
})) }),
|
|
1117
|
+
z.object({ ok: z.literal(false), error: z.string() }),
|
|
1118
|
+
]),
|
|
1119
|
+
effect: "ask", auth: "required", cost: "free", idempotent: true,
|
|
1120
|
+
}),
|
|
1080
1121
|
// ── market (TRADE) ──
|
|
1081
1122
|
"market:hire": receiver({
|
|
1082
1123
|
receiver: "market:hire",
|
|
@@ -1911,6 +1952,76 @@ export const RECEIVERS = {
|
|
|
1911
1952
|
response: z.object({ ok: z.boolean(), slug: z.string().optional(), title: z.string().optional(), url: z.string().optional(), status: z.string().optional(), error: z.string().optional() }),
|
|
1912
1953
|
effect: "ask", cost: "free", reversible: true, idempotent: true, auth: "member",
|
|
1913
1954
|
}),
|
|
1955
|
+
'pages:publish-pack': receiver({
|
|
1956
|
+
receiver: "pages:publish-pack",
|
|
1957
|
+
summary: "Publish all (or a listed subset of) a workspace's draft pack pages in one call — the go-live step. Reuses pages:publish's exact UPDATE, looped once, gated once.",
|
|
1958
|
+
request: z.object({ slug: z.string(), pages: z.array(z.union([z.string(), z.object({ slug: z.string() })])).optional() }),
|
|
1959
|
+
response: z.object({ ok: z.boolean(), published: z.number().optional(), error: z.string().optional() }),
|
|
1960
|
+
effect: "ask", cost: "free", reversible: true, idempotent: true, auth: "member",
|
|
1961
|
+
}),
|
|
1962
|
+
"pages:fill-pack": receiver({
|
|
1963
|
+
receiver: "pages:fill-pack",
|
|
1964
|
+
summary: "Fill a pack's instantiated pages with real business facts — one call, still drafts. Never fabricates a testimonial; pricing derives from one rate, not typed per page.",
|
|
1965
|
+
request: z.object({
|
|
1966
|
+
slug: z.string(),
|
|
1967
|
+
pages: z.array(z.object({ pageSlug: z.string(), slug: z.string() })),
|
|
1968
|
+
facts: z.object({
|
|
1969
|
+
identity: z.object({
|
|
1970
|
+
company: z.string(),
|
|
1971
|
+
ownerName: z.string(),
|
|
1972
|
+
phone: z.string(),
|
|
1973
|
+
foundedYear: z.number(),
|
|
1974
|
+
city: z.string(),
|
|
1975
|
+
state: z.string(),
|
|
1976
|
+
metro: z.string(),
|
|
1977
|
+
streetAddress: z.string(),
|
|
1978
|
+
}),
|
|
1979
|
+
licensing: z.object({
|
|
1980
|
+
usdot: z.string().optional(),
|
|
1981
|
+
mc: z.string().optional(),
|
|
1982
|
+
stateLicenseNumber: z.string(),
|
|
1983
|
+
regulatorOverride: z.string().optional(),
|
|
1984
|
+
}),
|
|
1985
|
+
reputation: z.object({ starRating: z.number(), reviewCount: z.number(), movesCompleted: z.number() }),
|
|
1986
|
+
serviceArea: z.object({ neighborhoods: z.array(z.string()).min(1) }),
|
|
1987
|
+
pricing: z.object({
|
|
1988
|
+
hourlyRatePerMover: z.number(),
|
|
1989
|
+
truckFee: z.number(),
|
|
1990
|
+
tiers: z.record(z.string(), z.object({ low: z.number(), high: z.number() })).optional(),
|
|
1991
|
+
}),
|
|
1992
|
+
story: z.object({ originSentence: z.string().optional() }).optional(),
|
|
1993
|
+
testimonials: z.array(z.object({ quote: z.string(), reviewerName: z.string(), moveType: z.string() })).optional(),
|
|
1994
|
+
source: z.object({ url: z.string().optional() }).optional(),
|
|
1995
|
+
}),
|
|
1996
|
+
}),
|
|
1997
|
+
response: z.object({ ok: z.boolean(), filled: z.number().optional(), error: z.string().optional() }),
|
|
1998
|
+
effect: "ask", cost: "free", reversible: true, idempotent: false, auth: "member",
|
|
1999
|
+
}),
|
|
2000
|
+
"pages:fill-pack-extract": receiver({
|
|
2001
|
+
receiver: "pages:fill-pack-extract",
|
|
2002
|
+
summary: "Best-effort business facts from an operator's own URL or a free-text description — fetch-then-confirm, never fetch-then-apply. Returns candidate facts for a form to pre-fill; nothing here writes a page.",
|
|
2003
|
+
request: z.object({ slug: z.string(), url: z.string().optional(), text: z.string().optional() }),
|
|
2004
|
+
response: z.object({ ok: z.boolean(), facts: z.record(z.string(), z.unknown()).optional(), error: z.string().optional() }),
|
|
2005
|
+
effect: "ask", cost: "variable", reversible: true, idempotent: true, auth: "member",
|
|
2006
|
+
}),
|
|
2007
|
+
"movers:build": receiver({
|
|
2008
|
+
receiver: "movers:build",
|
|
2009
|
+
summary: "The one intake orchestrator — takes a URL or a free-text description, extracts MoverBusinessFacts, clones the movers-factory template, and starts the run. The single op every door (web form, chat) shares; composes pages:fill-pack-extract + workflow:create + workflow:run, adds no new build primitive.",
|
|
2010
|
+
request: z.object({ slug: z.string(), url: z.string().optional(), describe: z.string().optional() }),
|
|
2011
|
+
response: z.object({ ok: z.boolean(), runId: z.string().optional(), facts: z.record(z.string(), z.unknown()).optional(), error: z.string().optional() }),
|
|
2012
|
+
effect: "ask", cost: "variable", reversible: false, idempotent: false, auth: "member",
|
|
2013
|
+
examples: [{ slug: "summit-movers", describe: "We're Summit Movers, family-run in Austin since 2015, licensed CAL-T, $65/hr per mover." }],
|
|
2014
|
+
surfaces: { chat: true },
|
|
2015
|
+
}),
|
|
2016
|
+
"movers:funnel-provision": receiver({
|
|
2017
|
+
receiver: "movers:funnel-provision",
|
|
2018
|
+
summary: "Open, sponsored no-account provision — takes a company name plus a URL or description, provisions a capped child workspace under moverchat, and starts movers:build. Rate-limited per visitor + a global daily ceiling; refuses past any wall rather than draining moverchat's operating credits. The single writer behind both the homepage door and this chat tool.",
|
|
2019
|
+
request: z.object({ name: z.string(), url: z.string().optional(), describe: z.string().optional(), phone: z.string().optional(), email: z.string().optional(), visitorHash: z.string() }),
|
|
2020
|
+
response: z.object({ ok: z.boolean(), previewToken: z.string().optional(), slug: z.string().optional(), error: z.string().optional() }),
|
|
2021
|
+
effect: "ask", cost: "variable", reversible: false, idempotent: false, auth: "public",
|
|
2022
|
+
examples: [{ name: "Summit Movers", url: "https://summitmovers.example.com", visitorHash: "chat:web:conv-123" }],
|
|
2023
|
+
surfaces: { chat: true },
|
|
2024
|
+
}),
|
|
1914
2025
|
"pages:versions": receiver({
|
|
1915
2026
|
receiver: "pages:versions",
|
|
1916
2027
|
summary: "List a page's saved version snapshots, newest first",
|
|
@@ -1925,6 +2036,13 @@ export const RECEIVERS = {
|
|
|
1925
2036
|
response: z.object({ ok: z.boolean(), slug: z.string().optional(), title: z.string().optional(), url: z.string().optional(), status: z.string().optional(), restoredTs: z.number().optional(), error: z.string().optional() }),
|
|
1926
2037
|
effect: "ask", cost: "free", reversible: false, idempotent: false, auth: "member",
|
|
1927
2038
|
}),
|
|
2039
|
+
"mover:agent-context": receiver({
|
|
2040
|
+
receiver: "mover:agent-context",
|
|
2041
|
+
summary: "The fact→agent bridge — render MoverBusinessFacts into ground-truth prose and write it to the workspace's company_context, so the mounted chat agent answers as the operator's real business. Never invents a service/review/policy; same facts as pages:fill-pack, one intake, two artifacts.",
|
|
2042
|
+
request: z.object({ slug: z.string(), facts: z.record(z.string(), z.unknown()) }),
|
|
2043
|
+
response: z.object({ ok: z.boolean(), chars: z.number().optional(), error: z.string().optional() }),
|
|
2044
|
+
effect: "ask", cost: "free", reversible: true, idempotent: true, auth: "member",
|
|
2045
|
+
}),
|
|
1928
2046
|
"settings:write": receiver({
|
|
1929
2047
|
receiver: "settings:write",
|
|
1930
2048
|
summary: "Write a workspace setting value (caller or authorized descendant)",
|
|
@@ -2088,7 +2206,7 @@ export const RECEIVERS = {
|
|
|
2088
2206
|
slug: z.string(), // provider workspace
|
|
2089
2207
|
service: z.string().optional(), // service_id; omitted → the workspace's first active
|
|
2090
2208
|
date: z.string().optional(), // 'YYYY-MM-DD'; omitted → next N open days
|
|
2091
|
-
days: z.number().int().min(1).max(
|
|
2209
|
+
days: z.number().int().min(1).max(62).optional(), // window size when date omitted (month calendar needs ~2 months)
|
|
2092
2210
|
}),
|
|
2093
2211
|
response: z.object({
|
|
2094
2212
|
service: z.object({
|
|
@@ -2387,13 +2505,31 @@ export const RECEIVERS = {
|
|
|
2387
2505
|
response: z.object({
|
|
2388
2506
|
ok: z.boolean(),
|
|
2389
2507
|
stepCount: z.number().optional(),
|
|
2508
|
+
warnings: z.array(z.string()).optional(), // §9 advisories (never block); grammar: code | code:stepId
|
|
2390
2509
|
idMap: z.record(z.string(), z.string()).optional(), // tempId → persisted id
|
|
2391
|
-
error: z.string().optional(), // 'cycle_detected' | 'conflict' | 'invalid_diff'
|
|
2510
|
+
error: z.string().optional(), // 'cycle_detected' | 'conflict' | 'invalid_diff' | 'multiple_triggers' | 'edge_unknown_step' | 'invalid_config' | 'bad_expr' | 'unsupported_field'
|
|
2392
2511
|
}),
|
|
2393
2512
|
effect: "ask", cost: "free", reversible: true, idempotent: false, simulatable: true,
|
|
2394
2513
|
auth: "manage_workflows",
|
|
2395
2514
|
examples: [{ workflowId: "wf_abc", diff: { add: [{ tempId: "s1", kind: "trigger", name: "On signup", config: "{}" }] }, simulate: true }],
|
|
2396
2515
|
}),
|
|
2516
|
+
"workflow:validate": receiver({
|
|
2517
|
+
receiver: "workflow:validate",
|
|
2518
|
+
summary: "Run the §9 gate on a WorkflowDiff without persisting — kinds/config shapes, exactly-one-trigger, edges reference real steps, chain cycles; advisories ride back as warnings (grammar: code | code:stepId, never block). Every save door calls this.",
|
|
2519
|
+
request: z.object({
|
|
2520
|
+
workflowId: z.string(),
|
|
2521
|
+
diff: WorkflowDiffSchema,
|
|
2522
|
+
}),
|
|
2523
|
+
response: z.object({
|
|
2524
|
+
ok: z.boolean(),
|
|
2525
|
+
stepCount: z.number().optional(),
|
|
2526
|
+
warnings: z.array(z.string()).optional(),
|
|
2527
|
+
error: z.string().optional(), // 'multiple_triggers'|'edge_unknown_step'|'invalid_config'|'bad_expr'|'cycle_detected'|'invalid_diff'|'unsupported_field'
|
|
2528
|
+
}),
|
|
2529
|
+
effect: "ask", cost: "free", reversible: true, idempotent: true, simulatable: true,
|
|
2530
|
+
auth: "manage_workflows",
|
|
2531
|
+
examples: [{ workflowId: "wf_abc", diff: { add: [{ tempId: "s1", kind: "trigger", name: "On signup", config: "{}" }] } }],
|
|
2532
|
+
}),
|
|
2397
2533
|
"workflow:run": receiver({
|
|
2398
2534
|
receiver: "workflow:run",
|
|
2399
2535
|
summary: "Start a run — spawns the WorkflowRun DO, executes each step, marks path strength on traversed edges",
|
|
@@ -2497,6 +2633,19 @@ export const RECEIVERS = {
|
|
|
2497
2633
|
effect: "signal", cost: "free", idempotent: true, simulatable: false, auth: "manage_workflows",
|
|
2498
2634
|
examples: [{ runId: "run_1", stepId: "s2", stepName: "Approve contract" }],
|
|
2499
2635
|
}),
|
|
2636
|
+
"workflow:settled-notify": receiver({
|
|
2637
|
+
receiver: "workflow:settled-notify",
|
|
2638
|
+
summary: "Tell a run's started_by that it finished when there is no chat conversation to carry the outcome (manual/canvas/scheduled runs). settle() fires this group-less terminal only; a plain status line, never approval markup. Sibling of workflow:resumed-notify.",
|
|
2639
|
+
request: z.object({
|
|
2640
|
+
runId: z.string(),
|
|
2641
|
+
group: z.string(), // started_by — the workspace to notify
|
|
2642
|
+
status: z.string().optional(), // 'done' | 'failed'
|
|
2643
|
+
workflowName: z.string().optional(),
|
|
2644
|
+
}),
|
|
2645
|
+
response: z.object({ ok: z.boolean(), group: z.string().optional(), error: z.string().optional() }),
|
|
2646
|
+
effect: "signal", cost: "free", idempotent: true, simulatable: false, auth: "manage_workflows",
|
|
2647
|
+
examples: [{ runId: "run_1", group: "acme", status: "done" }],
|
|
2648
|
+
}),
|
|
2500
2649
|
"workflow:stop": receiver({
|
|
2501
2650
|
receiver: "workflow:stop",
|
|
2502
2651
|
summary: "Park a live run at its current step (status → paused); preserves the resume cursor so human:resolve or a re-run continues it",
|