@crewhaus/spec 0.4.0 → 0.5.0
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 +1253 -60
- package/dist/index.js +257 -11
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1421,6 +1421,22 @@ declare const thredzObject: z.ZodObject<{
|
|
|
1421
1421
|
api_key: z.ZodString;
|
|
1422
1422
|
base_url: z.ZodOptional<z.ZodString>;
|
|
1423
1423
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
1424
|
+
/**
|
|
1425
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
1426
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
1427
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
1428
|
+
* `individual` space only by the key that owns it.
|
|
1429
|
+
*
|
|
1430
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
1431
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
1432
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
1433
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
1434
|
+
*
|
|
1435
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
1436
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
1437
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
1438
|
+
*/
|
|
1439
|
+
space: z.ZodOptional<z.ZodString>;
|
|
1424
1440
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
1425
1441
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
1426
1442
|
/**
|
|
@@ -1435,6 +1451,7 @@ declare const thredzObject: z.ZodObject<{
|
|
|
1435
1451
|
api_key: string;
|
|
1436
1452
|
base_url?: string | undefined;
|
|
1437
1453
|
visibility?: "private" | "shared" | undefined;
|
|
1454
|
+
space?: string | undefined;
|
|
1438
1455
|
goals?: boolean | undefined;
|
|
1439
1456
|
agents?: string | boolean | undefined;
|
|
1440
1457
|
messaging?: boolean | undefined;
|
|
@@ -1442,6 +1459,7 @@ declare const thredzObject: z.ZodObject<{
|
|
|
1442
1459
|
api_key: string;
|
|
1443
1460
|
base_url?: string | undefined;
|
|
1444
1461
|
visibility?: "private" | "shared" | undefined;
|
|
1462
|
+
space?: string | undefined;
|
|
1445
1463
|
goals?: boolean | undefined;
|
|
1446
1464
|
agents?: string | boolean | undefined;
|
|
1447
1465
|
messaging?: boolean | undefined;
|
|
@@ -1450,6 +1468,22 @@ declare const thredzBlock: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString,
|
|
|
1450
1468
|
api_key: z.ZodString;
|
|
1451
1469
|
base_url: z.ZodOptional<z.ZodString>;
|
|
1452
1470
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
1471
|
+
/**
|
|
1472
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
1473
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
1474
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
1475
|
+
* `individual` space only by the key that owns it.
|
|
1476
|
+
*
|
|
1477
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
1478
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
1479
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
1480
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
1481
|
+
*
|
|
1482
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
1483
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
1484
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
1485
|
+
*/
|
|
1486
|
+
space: z.ZodOptional<z.ZodString>;
|
|
1453
1487
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
1454
1488
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
1455
1489
|
/**
|
|
@@ -1464,6 +1498,7 @@ declare const thredzBlock: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString,
|
|
|
1464
1498
|
api_key: string;
|
|
1465
1499
|
base_url?: string | undefined;
|
|
1466
1500
|
visibility?: "private" | "shared" | undefined;
|
|
1501
|
+
space?: string | undefined;
|
|
1467
1502
|
goals?: boolean | undefined;
|
|
1468
1503
|
agents?: string | boolean | undefined;
|
|
1469
1504
|
messaging?: boolean | undefined;
|
|
@@ -1471,6 +1506,7 @@ declare const thredzBlock: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString,
|
|
|
1471
1506
|
api_key: string;
|
|
1472
1507
|
base_url?: string | undefined;
|
|
1473
1508
|
visibility?: "private" | "shared" | undefined;
|
|
1509
|
+
space?: string | undefined;
|
|
1474
1510
|
goals?: boolean | undefined;
|
|
1475
1511
|
agents?: string | boolean | undefined;
|
|
1476
1512
|
messaging?: boolean | undefined;
|
|
@@ -1718,6 +1754,73 @@ declare const observabilityBlock: z.ZodOptional<z.ZodObject<{
|
|
|
1718
1754
|
endpoint?: string | undefined;
|
|
1719
1755
|
} | undefined;
|
|
1720
1756
|
}>>;
|
|
1757
|
+
/**
|
|
1758
|
+
* "Watch me" — observe this harness's interactions and learn from them
|
|
1759
|
+
* (design/watch-me.md). Presence turns on the live capture tap; `crewhaus
|
|
1760
|
+
* watchme report` distills the watched sessions post-hoc. Carried on the
|
|
1761
|
+
* three interactive-loop shapes (cli, channel, managed); the strict unions
|
|
1762
|
+
* reject the key loudly elsewhere (research/crew are a named deferral,
|
|
1763
|
+
* design/watch-me.md §13.1).
|
|
1764
|
+
*
|
|
1765
|
+
* Deliberately a SIBLING of `observability:`, not a sub-key of it:
|
|
1766
|
+
* observability controls the generic telemetry subscribers (ring buffer,
|
|
1767
|
+
* printers, metrics, cost, alerts, otel) while watchme is a learning feature
|
|
1768
|
+
* with its own durable store and spec-synthesis outputs. Capture is
|
|
1769
|
+
* INDEPENDENT of `observability.trace.level` — that knob controls the ring
|
|
1770
|
+
* buffer + printers only, never the watchme tap.
|
|
1771
|
+
*
|
|
1772
|
+
* Every knob defaults, so a bare `watchme: {}` is a complete declaration.
|
|
1773
|
+
* NO `watchme.*` path is optimizer-tunable — see the exclusion note beside
|
|
1774
|
+
* OPTIMIZABLE_PATHS in `@crewhaus/spec-patch`.
|
|
1775
|
+
*/
|
|
1776
|
+
declare const watchmeBlock: z.ZodOptional<z.ZodObject<{
|
|
1777
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1778
|
+
/** "full" = write the .events.jsonl trace sibling; "mirrors" = rely on the
|
|
1779
|
+
* default-on advisor mirrors only (retro-analysis grade, no extra file). */
|
|
1780
|
+
capture: z.ZodDefault<z.ZodEnum<["full", "mirrors"]>>;
|
|
1781
|
+
judge: z.ZodOptional<z.ZodObject<{
|
|
1782
|
+
/** Judge model for the sampled phase-2 quality pass. Refused at runtime
|
|
1783
|
+
* if unpriced (dream-engine pattern) — the budget cap must be
|
|
1784
|
+
* enforceable. */
|
|
1785
|
+
model: z.ZodDefault<z.ZodString>;
|
|
1786
|
+
/** Fraction of ungraded turns escalated to the judge. */
|
|
1787
|
+
sample_rate: z.ZodDefault<z.ZodNumber>;
|
|
1788
|
+
/** Per-report spend cap. 0 (default) = deterministic-only reports. */
|
|
1789
|
+
budget_usd: z.ZodDefault<z.ZodNumber>;
|
|
1790
|
+
}, "strict", z.ZodTypeAny, {
|
|
1791
|
+
model: string;
|
|
1792
|
+
budget_usd: number;
|
|
1793
|
+
sample_rate: number;
|
|
1794
|
+
}, {
|
|
1795
|
+
model?: string | undefined;
|
|
1796
|
+
budget_usd?: number | undefined;
|
|
1797
|
+
sample_rate?: number | undefined;
|
|
1798
|
+
}>>;
|
|
1799
|
+
/** "user" additionally registers this harness in the global registry at run time. */
|
|
1800
|
+
scope: z.ZodDefault<z.ZodEnum<["harness", "user"]>>;
|
|
1801
|
+
/** Publish redacted distilled findings to the wiki/Thredz at report time. */
|
|
1802
|
+
share: z.ZodDefault<z.ZodBoolean>;
|
|
1803
|
+
}, "strict", z.ZodTypeAny, {
|
|
1804
|
+
enabled: boolean;
|
|
1805
|
+
scope: "harness" | "user";
|
|
1806
|
+
capture: "full" | "mirrors";
|
|
1807
|
+
share: boolean;
|
|
1808
|
+
judge?: {
|
|
1809
|
+
model: string;
|
|
1810
|
+
budget_usd: number;
|
|
1811
|
+
sample_rate: number;
|
|
1812
|
+
} | undefined;
|
|
1813
|
+
}, {
|
|
1814
|
+
judge?: {
|
|
1815
|
+
model?: string | undefined;
|
|
1816
|
+
budget_usd?: number | undefined;
|
|
1817
|
+
sample_rate?: number | undefined;
|
|
1818
|
+
} | undefined;
|
|
1819
|
+
enabled?: boolean | undefined;
|
|
1820
|
+
scope?: "harness" | "user" | undefined;
|
|
1821
|
+
capture?: "full" | "mirrors" | undefined;
|
|
1822
|
+
share?: boolean | undefined;
|
|
1823
|
+
}>>;
|
|
1721
1824
|
/**
|
|
1722
1825
|
* Item 1 (G30) — the `expose:` block: project THIS compiled bundle's turn
|
|
1723
1826
|
* function as an MCP server so Claude Code / IDEs / other CrewHaus runtimes
|
|
@@ -2993,6 +3096,22 @@ declare const cliSchema: z.ZodObject<{
|
|
|
2993
3096
|
api_key: z.ZodString;
|
|
2994
3097
|
base_url: z.ZodOptional<z.ZodString>;
|
|
2995
3098
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
3099
|
+
/**
|
|
3100
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
3101
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
3102
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
3103
|
+
* `individual` space only by the key that owns it.
|
|
3104
|
+
*
|
|
3105
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
3106
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
3107
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
3108
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
3109
|
+
*
|
|
3110
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
3111
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
3112
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
3113
|
+
*/
|
|
3114
|
+
space: z.ZodOptional<z.ZodString>;
|
|
2996
3115
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
2997
3116
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
2998
3117
|
/**
|
|
@@ -3007,6 +3126,7 @@ declare const cliSchema: z.ZodObject<{
|
|
|
3007
3126
|
api_key: string;
|
|
3008
3127
|
base_url?: string | undefined;
|
|
3009
3128
|
visibility?: "private" | "shared" | undefined;
|
|
3129
|
+
space?: string | undefined;
|
|
3010
3130
|
goals?: boolean | undefined;
|
|
3011
3131
|
agents?: string | boolean | undefined;
|
|
3012
3132
|
messaging?: boolean | undefined;
|
|
@@ -3014,6 +3134,7 @@ declare const cliSchema: z.ZodObject<{
|
|
|
3014
3134
|
api_key: string;
|
|
3015
3135
|
base_url?: string | undefined;
|
|
3016
3136
|
visibility?: "private" | "shared" | undefined;
|
|
3137
|
+
space?: string | undefined;
|
|
3017
3138
|
goals?: boolean | undefined;
|
|
3018
3139
|
agents?: string | boolean | undefined;
|
|
3019
3140
|
messaging?: boolean | undefined;
|
|
@@ -3226,6 +3347,54 @@ declare const cliSchema: z.ZodObject<{
|
|
|
3226
3347
|
endpoint?: string | undefined;
|
|
3227
3348
|
} | undefined;
|
|
3228
3349
|
}>>;
|
|
3350
|
+
watchme: z.ZodOptional<z.ZodObject<{
|
|
3351
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3352
|
+
/** "full" = write the .events.jsonl trace sibling; "mirrors" = rely on the
|
|
3353
|
+
* default-on advisor mirrors only (retro-analysis grade, no extra file). */
|
|
3354
|
+
capture: z.ZodDefault<z.ZodEnum<["full", "mirrors"]>>;
|
|
3355
|
+
judge: z.ZodOptional<z.ZodObject<{
|
|
3356
|
+
/** Judge model for the sampled phase-2 quality pass. Refused at runtime
|
|
3357
|
+
* if unpriced (dream-engine pattern) — the budget cap must be
|
|
3358
|
+
* enforceable. */
|
|
3359
|
+
model: z.ZodDefault<z.ZodString>;
|
|
3360
|
+
/** Fraction of ungraded turns escalated to the judge. */
|
|
3361
|
+
sample_rate: z.ZodDefault<z.ZodNumber>;
|
|
3362
|
+
/** Per-report spend cap. 0 (default) = deterministic-only reports. */
|
|
3363
|
+
budget_usd: z.ZodDefault<z.ZodNumber>;
|
|
3364
|
+
}, "strict", z.ZodTypeAny, {
|
|
3365
|
+
model: string;
|
|
3366
|
+
budget_usd: number;
|
|
3367
|
+
sample_rate: number;
|
|
3368
|
+
}, {
|
|
3369
|
+
model?: string | undefined;
|
|
3370
|
+
budget_usd?: number | undefined;
|
|
3371
|
+
sample_rate?: number | undefined;
|
|
3372
|
+
}>>;
|
|
3373
|
+
/** "user" additionally registers this harness in the global registry at run time. */
|
|
3374
|
+
scope: z.ZodDefault<z.ZodEnum<["harness", "user"]>>;
|
|
3375
|
+
/** Publish redacted distilled findings to the wiki/Thredz at report time. */
|
|
3376
|
+
share: z.ZodDefault<z.ZodBoolean>;
|
|
3377
|
+
}, "strict", z.ZodTypeAny, {
|
|
3378
|
+
enabled: boolean;
|
|
3379
|
+
scope: "harness" | "user";
|
|
3380
|
+
capture: "full" | "mirrors";
|
|
3381
|
+
share: boolean;
|
|
3382
|
+
judge?: {
|
|
3383
|
+
model: string;
|
|
3384
|
+
budget_usd: number;
|
|
3385
|
+
sample_rate: number;
|
|
3386
|
+
} | undefined;
|
|
3387
|
+
}, {
|
|
3388
|
+
judge?: {
|
|
3389
|
+
model?: string | undefined;
|
|
3390
|
+
budget_usd?: number | undefined;
|
|
3391
|
+
sample_rate?: number | undefined;
|
|
3392
|
+
} | undefined;
|
|
3393
|
+
enabled?: boolean | undefined;
|
|
3394
|
+
scope?: "harness" | "user" | undefined;
|
|
3395
|
+
capture?: "full" | "mirrors" | undefined;
|
|
3396
|
+
share?: boolean | undefined;
|
|
3397
|
+
}>>;
|
|
3229
3398
|
cli: z.ZodOptional<z.ZodObject<{
|
|
3230
3399
|
banner: z.ZodOptional<z.ZodObject<{
|
|
3231
3400
|
taglineMode: z.ZodDefault<z.ZodEnum<["static", "random"]>>;
|
|
@@ -3472,6 +3641,7 @@ declare const cliSchema: z.ZodObject<{
|
|
|
3472
3641
|
api_key: string;
|
|
3473
3642
|
base_url?: string | undefined;
|
|
3474
3643
|
visibility?: "private" | "shared" | undefined;
|
|
3644
|
+
space?: string | undefined;
|
|
3475
3645
|
goals?: boolean | undefined;
|
|
3476
3646
|
agents?: string | boolean | undefined;
|
|
3477
3647
|
messaging?: boolean | undefined;
|
|
@@ -3659,6 +3829,17 @@ declare const cliSchema: z.ZodObject<{
|
|
|
3659
3829
|
endpoint?: string | undefined;
|
|
3660
3830
|
} | undefined;
|
|
3661
3831
|
} | undefined;
|
|
3832
|
+
watchme?: {
|
|
3833
|
+
enabled: boolean;
|
|
3834
|
+
scope: "harness" | "user";
|
|
3835
|
+
capture: "full" | "mirrors";
|
|
3836
|
+
share: boolean;
|
|
3837
|
+
judge?: {
|
|
3838
|
+
model: string;
|
|
3839
|
+
budget_usd: number;
|
|
3840
|
+
sample_rate: number;
|
|
3841
|
+
} | undefined;
|
|
3842
|
+
} | undefined;
|
|
3662
3843
|
chains?: {
|
|
3663
3844
|
kind: "evm";
|
|
3664
3845
|
id: string;
|
|
@@ -3796,6 +3977,7 @@ declare const cliSchema: z.ZodObject<{
|
|
|
3796
3977
|
api_key: string;
|
|
3797
3978
|
base_url?: string | undefined;
|
|
3798
3979
|
visibility?: "private" | "shared" | undefined;
|
|
3980
|
+
space?: string | undefined;
|
|
3799
3981
|
goals?: boolean | undefined;
|
|
3800
3982
|
agents?: string | boolean | undefined;
|
|
3801
3983
|
messaging?: boolean | undefined;
|
|
@@ -3983,6 +4165,17 @@ declare const cliSchema: z.ZodObject<{
|
|
|
3983
4165
|
endpoint?: string | undefined;
|
|
3984
4166
|
} | undefined;
|
|
3985
4167
|
} | undefined;
|
|
4168
|
+
watchme?: {
|
|
4169
|
+
judge?: {
|
|
4170
|
+
model?: string | undefined;
|
|
4171
|
+
budget_usd?: number | undefined;
|
|
4172
|
+
sample_rate?: number | undefined;
|
|
4173
|
+
} | undefined;
|
|
4174
|
+
enabled?: boolean | undefined;
|
|
4175
|
+
scope?: "harness" | "user" | undefined;
|
|
4176
|
+
capture?: "full" | "mirrors" | undefined;
|
|
4177
|
+
share?: boolean | undefined;
|
|
4178
|
+
} | undefined;
|
|
3986
4179
|
chains?: {
|
|
3987
4180
|
kind: "evm";
|
|
3988
4181
|
id: string;
|
|
@@ -6193,14 +6386,17 @@ declare const whatsappChannelSchema: z.ZodObject<{
|
|
|
6193
6386
|
phoneNumberId: z.ZodString;
|
|
6194
6387
|
accessToken: z.ZodString;
|
|
6195
6388
|
appSecret: z.ZodString;
|
|
6389
|
+
verifyToken: z.ZodOptional<z.ZodString>;
|
|
6196
6390
|
}, "strict", z.ZodTypeAny, {
|
|
6197
6391
|
phoneNumberId: string;
|
|
6198
6392
|
accessToken: string;
|
|
6199
6393
|
appSecret: string;
|
|
6394
|
+
verifyToken?: string | undefined;
|
|
6200
6395
|
}, {
|
|
6201
6396
|
phoneNumberId: string;
|
|
6202
6397
|
accessToken: string;
|
|
6203
6398
|
appSecret: string;
|
|
6399
|
+
verifyToken?: string | undefined;
|
|
6204
6400
|
}>;
|
|
6205
6401
|
declare const imessageChannelSchema: z.ZodObject<{
|
|
6206
6402
|
chatDbPath: z.ZodOptional<z.ZodString>;
|
|
@@ -7377,14 +7573,17 @@ declare const channelSchema: z.ZodObject<{
|
|
|
7377
7573
|
phoneNumberId: z.ZodString;
|
|
7378
7574
|
accessToken: z.ZodString;
|
|
7379
7575
|
appSecret: z.ZodString;
|
|
7576
|
+
verifyToken: z.ZodOptional<z.ZodString>;
|
|
7380
7577
|
}, "strict", z.ZodTypeAny, {
|
|
7381
7578
|
phoneNumberId: string;
|
|
7382
7579
|
accessToken: string;
|
|
7383
7580
|
appSecret: string;
|
|
7581
|
+
verifyToken?: string | undefined;
|
|
7384
7582
|
}, {
|
|
7385
7583
|
phoneNumberId: string;
|
|
7386
7584
|
accessToken: string;
|
|
7387
7585
|
appSecret: string;
|
|
7586
|
+
verifyToken?: string | undefined;
|
|
7388
7587
|
}>>;
|
|
7389
7588
|
imessage: z.ZodOptional<z.ZodObject<{
|
|
7390
7589
|
chatDbPath: z.ZodOptional<z.ZodString>;
|
|
@@ -7415,6 +7614,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
7415
7614
|
phoneNumberId: string;
|
|
7416
7615
|
accessToken: string;
|
|
7417
7616
|
appSecret: string;
|
|
7617
|
+
verifyToken?: string | undefined;
|
|
7418
7618
|
} | undefined;
|
|
7419
7619
|
imessage?: {
|
|
7420
7620
|
chatDbPath?: string | undefined;
|
|
@@ -7439,6 +7639,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
7439
7639
|
phoneNumberId: string;
|
|
7440
7640
|
accessToken: string;
|
|
7441
7641
|
appSecret: string;
|
|
7642
|
+
verifyToken?: string | undefined;
|
|
7442
7643
|
} | undefined;
|
|
7443
7644
|
imessage?: {
|
|
7444
7645
|
chatDbPath?: string | undefined;
|
|
@@ -7463,6 +7664,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
7463
7664
|
phoneNumberId: string;
|
|
7464
7665
|
accessToken: string;
|
|
7465
7666
|
appSecret: string;
|
|
7667
|
+
verifyToken?: string | undefined;
|
|
7466
7668
|
} | undefined;
|
|
7467
7669
|
imessage?: {
|
|
7468
7670
|
chatDbPath?: string | undefined;
|
|
@@ -7487,6 +7689,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
7487
7689
|
phoneNumberId: string;
|
|
7488
7690
|
accessToken: string;
|
|
7489
7691
|
appSecret: string;
|
|
7692
|
+
verifyToken?: string | undefined;
|
|
7490
7693
|
} | undefined;
|
|
7491
7694
|
imessage?: {
|
|
7492
7695
|
chatDbPath?: string | undefined;
|
|
@@ -7496,9 +7699,9 @@ declare const channelSchema: z.ZodObject<{
|
|
|
7496
7699
|
routing: z.ZodObject<{
|
|
7497
7700
|
sessionKey: z.ZodEnum<["thread", "user", "channel"]>;
|
|
7498
7701
|
}, "strict", z.ZodTypeAny, {
|
|
7499
|
-
sessionKey: "
|
|
7702
|
+
sessionKey: "user" | "thread" | "channel";
|
|
7500
7703
|
}, {
|
|
7501
|
-
sessionKey: "
|
|
7704
|
+
sessionKey: "user" | "thread" | "channel";
|
|
7502
7705
|
}>;
|
|
7503
7706
|
mcp_servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
7504
7707
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -8113,6 +8316,22 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8113
8316
|
api_key: z.ZodString;
|
|
8114
8317
|
base_url: z.ZodOptional<z.ZodString>;
|
|
8115
8318
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
8319
|
+
/**
|
|
8320
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
8321
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
8322
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
8323
|
+
* `individual` space only by the key that owns it.
|
|
8324
|
+
*
|
|
8325
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
8326
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
8327
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
8328
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
8329
|
+
*
|
|
8330
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
8331
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
8332
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
8333
|
+
*/
|
|
8334
|
+
space: z.ZodOptional<z.ZodString>;
|
|
8116
8335
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
8117
8336
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
8118
8337
|
/**
|
|
@@ -8127,6 +8346,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8127
8346
|
api_key: string;
|
|
8128
8347
|
base_url?: string | undefined;
|
|
8129
8348
|
visibility?: "private" | "shared" | undefined;
|
|
8349
|
+
space?: string | undefined;
|
|
8130
8350
|
goals?: boolean | undefined;
|
|
8131
8351
|
agents?: string | boolean | undefined;
|
|
8132
8352
|
messaging?: boolean | undefined;
|
|
@@ -8134,6 +8354,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8134
8354
|
api_key: string;
|
|
8135
8355
|
base_url?: string | undefined;
|
|
8136
8356
|
visibility?: "private" | "shared" | undefined;
|
|
8357
|
+
space?: string | undefined;
|
|
8137
8358
|
goals?: boolean | undefined;
|
|
8138
8359
|
agents?: string | boolean | undefined;
|
|
8139
8360
|
messaging?: boolean | undefined;
|
|
@@ -8346,6 +8567,54 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8346
8567
|
endpoint?: string | undefined;
|
|
8347
8568
|
} | undefined;
|
|
8348
8569
|
}>>;
|
|
8570
|
+
watchme: z.ZodOptional<z.ZodObject<{
|
|
8571
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
8572
|
+
/** "full" = write the .events.jsonl trace sibling; "mirrors" = rely on the
|
|
8573
|
+
* default-on advisor mirrors only (retro-analysis grade, no extra file). */
|
|
8574
|
+
capture: z.ZodDefault<z.ZodEnum<["full", "mirrors"]>>;
|
|
8575
|
+
judge: z.ZodOptional<z.ZodObject<{
|
|
8576
|
+
/** Judge model for the sampled phase-2 quality pass. Refused at runtime
|
|
8577
|
+
* if unpriced (dream-engine pattern) — the budget cap must be
|
|
8578
|
+
* enforceable. */
|
|
8579
|
+
model: z.ZodDefault<z.ZodString>;
|
|
8580
|
+
/** Fraction of ungraded turns escalated to the judge. */
|
|
8581
|
+
sample_rate: z.ZodDefault<z.ZodNumber>;
|
|
8582
|
+
/** Per-report spend cap. 0 (default) = deterministic-only reports. */
|
|
8583
|
+
budget_usd: z.ZodDefault<z.ZodNumber>;
|
|
8584
|
+
}, "strict", z.ZodTypeAny, {
|
|
8585
|
+
model: string;
|
|
8586
|
+
budget_usd: number;
|
|
8587
|
+
sample_rate: number;
|
|
8588
|
+
}, {
|
|
8589
|
+
model?: string | undefined;
|
|
8590
|
+
budget_usd?: number | undefined;
|
|
8591
|
+
sample_rate?: number | undefined;
|
|
8592
|
+
}>>;
|
|
8593
|
+
/** "user" additionally registers this harness in the global registry at run time. */
|
|
8594
|
+
scope: z.ZodDefault<z.ZodEnum<["harness", "user"]>>;
|
|
8595
|
+
/** Publish redacted distilled findings to the wiki/Thredz at report time. */
|
|
8596
|
+
share: z.ZodDefault<z.ZodBoolean>;
|
|
8597
|
+
}, "strict", z.ZodTypeAny, {
|
|
8598
|
+
enabled: boolean;
|
|
8599
|
+
scope: "harness" | "user";
|
|
8600
|
+
capture: "full" | "mirrors";
|
|
8601
|
+
share: boolean;
|
|
8602
|
+
judge?: {
|
|
8603
|
+
model: string;
|
|
8604
|
+
budget_usd: number;
|
|
8605
|
+
sample_rate: number;
|
|
8606
|
+
} | undefined;
|
|
8607
|
+
}, {
|
|
8608
|
+
judge?: {
|
|
8609
|
+
model?: string | undefined;
|
|
8610
|
+
budget_usd?: number | undefined;
|
|
8611
|
+
sample_rate?: number | undefined;
|
|
8612
|
+
} | undefined;
|
|
8613
|
+
enabled?: boolean | undefined;
|
|
8614
|
+
scope?: "harness" | "user" | undefined;
|
|
8615
|
+
capture?: "full" | "mirrors" | undefined;
|
|
8616
|
+
share?: boolean | undefined;
|
|
8617
|
+
}>>;
|
|
8349
8618
|
heartbeat: z.ZodOptional<z.ZodObject<{
|
|
8350
8619
|
every: z.ZodString;
|
|
8351
8620
|
instructions: z.ZodString;
|
|
@@ -8514,7 +8783,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8514
8783
|
}>>;
|
|
8515
8784
|
}, "strict", z.ZodTypeAny, {
|
|
8516
8785
|
routing: {
|
|
8517
|
-
sessionKey: "
|
|
8786
|
+
sessionKey: "user" | "thread" | "channel";
|
|
8518
8787
|
};
|
|
8519
8788
|
name: string;
|
|
8520
8789
|
target: "channel";
|
|
@@ -8610,6 +8879,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8610
8879
|
phoneNumberId: string;
|
|
8611
8880
|
accessToken: string;
|
|
8612
8881
|
appSecret: string;
|
|
8882
|
+
verifyToken?: string | undefined;
|
|
8613
8883
|
} | undefined;
|
|
8614
8884
|
imessage?: {
|
|
8615
8885
|
chatDbPath?: string | undefined;
|
|
@@ -8642,6 +8912,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8642
8912
|
api_key: string;
|
|
8643
8913
|
base_url?: string | undefined;
|
|
8644
8914
|
visibility?: "private" | "shared" | undefined;
|
|
8915
|
+
space?: string | undefined;
|
|
8645
8916
|
goals?: boolean | undefined;
|
|
8646
8917
|
agents?: string | boolean | undefined;
|
|
8647
8918
|
messaging?: boolean | undefined;
|
|
@@ -8814,6 +9085,17 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8814
9085
|
endpoint?: string | undefined;
|
|
8815
9086
|
} | undefined;
|
|
8816
9087
|
} | undefined;
|
|
9088
|
+
watchme?: {
|
|
9089
|
+
enabled: boolean;
|
|
9090
|
+
scope: "harness" | "user";
|
|
9091
|
+
capture: "full" | "mirrors";
|
|
9092
|
+
share: boolean;
|
|
9093
|
+
judge?: {
|
|
9094
|
+
model: string;
|
|
9095
|
+
budget_usd: number;
|
|
9096
|
+
sample_rate: number;
|
|
9097
|
+
} | undefined;
|
|
9098
|
+
} | undefined;
|
|
8817
9099
|
chains?: {
|
|
8818
9100
|
kind: "evm";
|
|
8819
9101
|
id: string;
|
|
@@ -8871,7 +9153,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8871
9153
|
} | undefined;
|
|
8872
9154
|
}, {
|
|
8873
9155
|
routing: {
|
|
8874
|
-
sessionKey: "
|
|
9156
|
+
sessionKey: "user" | "thread" | "channel";
|
|
8875
9157
|
};
|
|
8876
9158
|
name: string;
|
|
8877
9159
|
target: "channel";
|
|
@@ -8967,6 +9249,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8967
9249
|
phoneNumberId: string;
|
|
8968
9250
|
accessToken: string;
|
|
8969
9251
|
appSecret: string;
|
|
9252
|
+
verifyToken?: string | undefined;
|
|
8970
9253
|
} | undefined;
|
|
8971
9254
|
imessage?: {
|
|
8972
9255
|
chatDbPath?: string | undefined;
|
|
@@ -8999,6 +9282,7 @@ declare const channelSchema: z.ZodObject<{
|
|
|
8999
9282
|
api_key: string;
|
|
9000
9283
|
base_url?: string | undefined;
|
|
9001
9284
|
visibility?: "private" | "shared" | undefined;
|
|
9285
|
+
space?: string | undefined;
|
|
9002
9286
|
goals?: boolean | undefined;
|
|
9003
9287
|
agents?: string | boolean | undefined;
|
|
9004
9288
|
messaging?: boolean | undefined;
|
|
@@ -9171,6 +9455,17 @@ declare const channelSchema: z.ZodObject<{
|
|
|
9171
9455
|
endpoint?: string | undefined;
|
|
9172
9456
|
} | undefined;
|
|
9173
9457
|
} | undefined;
|
|
9458
|
+
watchme?: {
|
|
9459
|
+
judge?: {
|
|
9460
|
+
model?: string | undefined;
|
|
9461
|
+
budget_usd?: number | undefined;
|
|
9462
|
+
sample_rate?: number | undefined;
|
|
9463
|
+
} | undefined;
|
|
9464
|
+
enabled?: boolean | undefined;
|
|
9465
|
+
scope?: "harness" | "user" | undefined;
|
|
9466
|
+
capture?: "full" | "mirrors" | undefined;
|
|
9467
|
+
share?: boolean | undefined;
|
|
9468
|
+
} | undefined;
|
|
9174
9469
|
chains?: {
|
|
9175
9470
|
kind: "evm";
|
|
9176
9471
|
id: string;
|
|
@@ -9250,9 +9545,28 @@ declare const graphNodeSchema: z.ZodObject<{
|
|
|
9250
9545
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9251
9546
|
tool_config: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
|
|
9252
9547
|
/**
|
|
9253
|
-
*
|
|
9254
|
-
*
|
|
9255
|
-
*
|
|
9548
|
+
* A human approval gate on this node, and a PRE-condition: the node
|
|
9549
|
+
* calls `ctx.requestApproval(prompt)` BEFORE its model turn, so the
|
|
9550
|
+
* prompt is answered against the UPSTREAM state (which the `hitl_pause`
|
|
9551
|
+
* event and the bundle's pause report both print) and no tokens are
|
|
9552
|
+
* spent until the human answers. The engine pauses, persists a
|
|
9553
|
+
* checkpoint, and waits for `resume(checkpointId, decision)` from the
|
|
9554
|
+
* operator/CLI; the resumed run replays this node from the top and
|
|
9555
|
+
* makes its FIRST model call.
|
|
9556
|
+
*
|
|
9557
|
+
* The decision string is recorded at `state["<node>_decision"]`, which
|
|
9558
|
+
* every downstream node reads as part of the upstream state. (NOTE:
|
|
9559
|
+
* `edges[].when.key` cannot name it yet — that key must name a declared
|
|
9560
|
+
* node; see the `graphEdgeWhenSchema` note below.) A rejecting decision
|
|
9561
|
+
* — `reject`, `no`, `deny`, `decline`, `abort`, `cancel`, `stop`, `veto`
|
|
9562
|
+
* (trimmed, case-insensitive) — cancels this node's turn entirely, so
|
|
9563
|
+
* the node records only its decision and no output; any other string,
|
|
9564
|
+
* including free text, approves it. To halt the run on a rejection,
|
|
9565
|
+
* guard the node's outgoing edge with `when: { key: <node>, exists:
|
|
9566
|
+
* true }` — a cancelled node records no output, so no edge matches.
|
|
9567
|
+
*
|
|
9568
|
+
* To have a human approve a node's OWN output, put the gate on the
|
|
9569
|
+
* DOWNSTREAM node: its upstream state is exactly that output.
|
|
9256
9570
|
*/
|
|
9257
9571
|
hitl: z.ZodOptional<z.ZodObject<{
|
|
9258
9572
|
prompt: z.ZodString;
|
|
@@ -9359,9 +9673,28 @@ declare const graphAnyNodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
9359
9673
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9360
9674
|
tool_config: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
|
|
9361
9675
|
/**
|
|
9362
|
-
*
|
|
9363
|
-
*
|
|
9364
|
-
*
|
|
9676
|
+
* A human approval gate on this node, and a PRE-condition: the node
|
|
9677
|
+
* calls `ctx.requestApproval(prompt)` BEFORE its model turn, so the
|
|
9678
|
+
* prompt is answered against the UPSTREAM state (which the `hitl_pause`
|
|
9679
|
+
* event and the bundle's pause report both print) and no tokens are
|
|
9680
|
+
* spent until the human answers. The engine pauses, persists a
|
|
9681
|
+
* checkpoint, and waits for `resume(checkpointId, decision)` from the
|
|
9682
|
+
* operator/CLI; the resumed run replays this node from the top and
|
|
9683
|
+
* makes its FIRST model call.
|
|
9684
|
+
*
|
|
9685
|
+
* The decision string is recorded at `state["<node>_decision"]`, which
|
|
9686
|
+
* every downstream node reads as part of the upstream state. (NOTE:
|
|
9687
|
+
* `edges[].when.key` cannot name it yet — that key must name a declared
|
|
9688
|
+
* node; see the `graphEdgeWhenSchema` note below.) A rejecting decision
|
|
9689
|
+
* — `reject`, `no`, `deny`, `decline`, `abort`, `cancel`, `stop`, `veto`
|
|
9690
|
+
* (trimmed, case-insensitive) — cancels this node's turn entirely, so
|
|
9691
|
+
* the node records only its decision and no output; any other string,
|
|
9692
|
+
* including free text, approves it. To halt the run on a rejection,
|
|
9693
|
+
* guard the node's outgoing edge with `when: { key: <node>, exists:
|
|
9694
|
+
* true }` — a cancelled node records no output, so no edge matches.
|
|
9695
|
+
*
|
|
9696
|
+
* To have a human approve a node's OWN output, put the gate on the
|
|
9697
|
+
* DOWNSTREAM node: its upstream state is exactly that output.
|
|
9365
9698
|
*/
|
|
9366
9699
|
hitl: z.ZodOptional<z.ZodObject<{
|
|
9367
9700
|
prompt: z.ZodString;
|
|
@@ -9447,8 +9780,16 @@ declare const graphAnyNodeSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
9447
9780
|
* - `equals` — take the edge when `state[key] === equals` (string/number/
|
|
9448
9781
|
* boolean strict equality).
|
|
9449
9782
|
* - `exists: true` — take the edge when `state[key] !== undefined` (the
|
|
9450
|
-
* node has produced output
|
|
9451
|
-
*
|
|
9783
|
+
* node has produced output — which, for a `hitl:` node, is FALSE when
|
|
9784
|
+
* the operator rejected the gate, since a rejected node records only
|
|
9785
|
+
* `state["<node>_decision"]`).
|
|
9786
|
+
*
|
|
9787
|
+
* GAP (unchanged by the pre-condition HITL fix): `key` may not yet name a
|
|
9788
|
+
* hitl node's `<node>_decision` record — the cross-check below pins it to a
|
|
9789
|
+
* declared node name, so a rejection can be observed via `exists` on the
|
|
9790
|
+
* node itself but not matched on the decision string. Widening it means
|
|
9791
|
+
* touching the three mirrored checks (this one, ir-passes' graph
|
|
9792
|
+
* wellformedness, target-graph's validateGraph).
|
|
9452
9793
|
*
|
|
9453
9794
|
* Lowered to `IrGraphEdge.when` and emitted as a graph-engine
|
|
9454
9795
|
* `EdgeCondition` (`(state) => state[key] === equals` / `!== undefined`).
|
|
@@ -9546,9 +9887,28 @@ declare const graphSchema: z.ZodObject<{
|
|
|
9546
9887
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9547
9888
|
tool_config: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
|
|
9548
9889
|
/**
|
|
9549
|
-
*
|
|
9550
|
-
*
|
|
9551
|
-
*
|
|
9890
|
+
* A human approval gate on this node, and a PRE-condition: the node
|
|
9891
|
+
* calls `ctx.requestApproval(prompt)` BEFORE its model turn, so the
|
|
9892
|
+
* prompt is answered against the UPSTREAM state (which the `hitl_pause`
|
|
9893
|
+
* event and the bundle's pause report both print) and no tokens are
|
|
9894
|
+
* spent until the human answers. The engine pauses, persists a
|
|
9895
|
+
* checkpoint, and waits for `resume(checkpointId, decision)` from the
|
|
9896
|
+
* operator/CLI; the resumed run replays this node from the top and
|
|
9897
|
+
* makes its FIRST model call.
|
|
9898
|
+
*
|
|
9899
|
+
* The decision string is recorded at `state["<node>_decision"]`, which
|
|
9900
|
+
* every downstream node reads as part of the upstream state. (NOTE:
|
|
9901
|
+
* `edges[].when.key` cannot name it yet — that key must name a declared
|
|
9902
|
+
* node; see the `graphEdgeWhenSchema` note below.) A rejecting decision
|
|
9903
|
+
* — `reject`, `no`, `deny`, `decline`, `abort`, `cancel`, `stop`, `veto`
|
|
9904
|
+
* (trimmed, case-insensitive) — cancels this node's turn entirely, so
|
|
9905
|
+
* the node records only its decision and no output; any other string,
|
|
9906
|
+
* including free text, approves it. To halt the run on a rejection,
|
|
9907
|
+
* guard the node's outgoing edge with `when: { key: <node>, exists:
|
|
9908
|
+
* true }` — a cancelled node records no output, so no edge matches.
|
|
9909
|
+
*
|
|
9910
|
+
* To have a human approve a node's OWN output, put the gate on the
|
|
9911
|
+
* DOWNSTREAM node: its upstream state is exactly that output.
|
|
9552
9912
|
*/
|
|
9553
9913
|
hitl: z.ZodOptional<z.ZodObject<{
|
|
9554
9914
|
prompt: z.ZodString;
|
|
@@ -11067,6 +11427,56 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11067
11427
|
on_fail?: "retry" | "halt" | "note" | undefined;
|
|
11068
11428
|
max_retries?: number | undefined;
|
|
11069
11429
|
}>>;
|
|
11430
|
+
feedback: z.ZodOptional<z.ZodObject<{
|
|
11431
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
11432
|
+
modality: z.ZodDefault<z.ZodEnum<["binary", "stars", "scale", "comment"]>>;
|
|
11433
|
+
scale: z.ZodOptional<z.ZodObject<{
|
|
11434
|
+
min: z.ZodNumber;
|
|
11435
|
+
max: z.ZodNumber;
|
|
11436
|
+
}, "strict", z.ZodTypeAny, {
|
|
11437
|
+
min: number;
|
|
11438
|
+
max: number;
|
|
11439
|
+
}, {
|
|
11440
|
+
min: number;
|
|
11441
|
+
max: number;
|
|
11442
|
+
}>>;
|
|
11443
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
11444
|
+
location: z.ZodString;
|
|
11445
|
+
}, "strict", z.ZodTypeAny, {
|
|
11446
|
+
location: string;
|
|
11447
|
+
}, {
|
|
11448
|
+
location: string;
|
|
11449
|
+
}>>;
|
|
11450
|
+
autoDistill: z.ZodOptional<z.ZodBoolean>;
|
|
11451
|
+
exitPrompt: z.ZodOptional<z.ZodBoolean>;
|
|
11452
|
+
channelReactions: z.ZodOptional<z.ZodBoolean>;
|
|
11453
|
+
}, "strict", z.ZodTypeAny, {
|
|
11454
|
+
modality: "binary" | "stars" | "scale" | "comment";
|
|
11455
|
+
enabled?: boolean | undefined;
|
|
11456
|
+
scale?: {
|
|
11457
|
+
min: number;
|
|
11458
|
+
max: number;
|
|
11459
|
+
} | undefined;
|
|
11460
|
+
storage?: {
|
|
11461
|
+
location: string;
|
|
11462
|
+
} | undefined;
|
|
11463
|
+
autoDistill?: boolean | undefined;
|
|
11464
|
+
exitPrompt?: boolean | undefined;
|
|
11465
|
+
channelReactions?: boolean | undefined;
|
|
11466
|
+
}, {
|
|
11467
|
+
enabled?: boolean | undefined;
|
|
11468
|
+
scale?: {
|
|
11469
|
+
min: number;
|
|
11470
|
+
max: number;
|
|
11471
|
+
} | undefined;
|
|
11472
|
+
modality?: "binary" | "stars" | "scale" | "comment" | undefined;
|
|
11473
|
+
storage?: {
|
|
11474
|
+
location: string;
|
|
11475
|
+
} | undefined;
|
|
11476
|
+
autoDistill?: boolean | undefined;
|
|
11477
|
+
exitPrompt?: boolean | undefined;
|
|
11478
|
+
channelReactions?: boolean | undefined;
|
|
11479
|
+
}>>;
|
|
11070
11480
|
memory: z.ZodOptional<z.ZodObject<{
|
|
11071
11481
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
11072
11482
|
backend: z.ZodOptional<z.ZodEnum<["file", "thredz"]>>;
|
|
@@ -11275,6 +11685,22 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11275
11685
|
api_key: z.ZodString;
|
|
11276
11686
|
base_url: z.ZodOptional<z.ZodString>;
|
|
11277
11687
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
11688
|
+
/**
|
|
11689
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
11690
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
11691
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
11692
|
+
* `individual` space only by the key that owns it.
|
|
11693
|
+
*
|
|
11694
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
11695
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
11696
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
11697
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
11698
|
+
*
|
|
11699
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
11700
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
11701
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
11702
|
+
*/
|
|
11703
|
+
space: z.ZodOptional<z.ZodString>;
|
|
11278
11704
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
11279
11705
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
11280
11706
|
/**
|
|
@@ -11289,6 +11715,7 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11289
11715
|
api_key: string;
|
|
11290
11716
|
base_url?: string | undefined;
|
|
11291
11717
|
visibility?: "private" | "shared" | undefined;
|
|
11718
|
+
space?: string | undefined;
|
|
11292
11719
|
goals?: boolean | undefined;
|
|
11293
11720
|
agents?: string | boolean | undefined;
|
|
11294
11721
|
messaging?: boolean | undefined;
|
|
@@ -11296,6 +11723,7 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11296
11723
|
api_key: string;
|
|
11297
11724
|
base_url?: string | undefined;
|
|
11298
11725
|
visibility?: "private" | "shared" | undefined;
|
|
11726
|
+
space?: string | undefined;
|
|
11299
11727
|
goals?: boolean | undefined;
|
|
11300
11728
|
agents?: string | boolean | undefined;
|
|
11301
11729
|
messaging?: boolean | undefined;
|
|
@@ -11508,6 +11936,54 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11508
11936
|
endpoint?: string | undefined;
|
|
11509
11937
|
} | undefined;
|
|
11510
11938
|
}>>;
|
|
11939
|
+
watchme: z.ZodOptional<z.ZodObject<{
|
|
11940
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
11941
|
+
/** "full" = write the .events.jsonl trace sibling; "mirrors" = rely on the
|
|
11942
|
+
* default-on advisor mirrors only (retro-analysis grade, no extra file). */
|
|
11943
|
+
capture: z.ZodDefault<z.ZodEnum<["full", "mirrors"]>>;
|
|
11944
|
+
judge: z.ZodOptional<z.ZodObject<{
|
|
11945
|
+
/** Judge model for the sampled phase-2 quality pass. Refused at runtime
|
|
11946
|
+
* if unpriced (dream-engine pattern) — the budget cap must be
|
|
11947
|
+
* enforceable. */
|
|
11948
|
+
model: z.ZodDefault<z.ZodString>;
|
|
11949
|
+
/** Fraction of ungraded turns escalated to the judge. */
|
|
11950
|
+
sample_rate: z.ZodDefault<z.ZodNumber>;
|
|
11951
|
+
/** Per-report spend cap. 0 (default) = deterministic-only reports. */
|
|
11952
|
+
budget_usd: z.ZodDefault<z.ZodNumber>;
|
|
11953
|
+
}, "strict", z.ZodTypeAny, {
|
|
11954
|
+
model: string;
|
|
11955
|
+
budget_usd: number;
|
|
11956
|
+
sample_rate: number;
|
|
11957
|
+
}, {
|
|
11958
|
+
model?: string | undefined;
|
|
11959
|
+
budget_usd?: number | undefined;
|
|
11960
|
+
sample_rate?: number | undefined;
|
|
11961
|
+
}>>;
|
|
11962
|
+
/** "user" additionally registers this harness in the global registry at run time. */
|
|
11963
|
+
scope: z.ZodDefault<z.ZodEnum<["harness", "user"]>>;
|
|
11964
|
+
/** Publish redacted distilled findings to the wiki/Thredz at report time. */
|
|
11965
|
+
share: z.ZodDefault<z.ZodBoolean>;
|
|
11966
|
+
}, "strict", z.ZodTypeAny, {
|
|
11967
|
+
enabled: boolean;
|
|
11968
|
+
scope: "harness" | "user";
|
|
11969
|
+
capture: "full" | "mirrors";
|
|
11970
|
+
share: boolean;
|
|
11971
|
+
judge?: {
|
|
11972
|
+
model: string;
|
|
11973
|
+
budget_usd: number;
|
|
11974
|
+
sample_rate: number;
|
|
11975
|
+
} | undefined;
|
|
11976
|
+
}, {
|
|
11977
|
+
judge?: {
|
|
11978
|
+
model?: string | undefined;
|
|
11979
|
+
budget_usd?: number | undefined;
|
|
11980
|
+
sample_rate?: number | undefined;
|
|
11981
|
+
} | undefined;
|
|
11982
|
+
enabled?: boolean | undefined;
|
|
11983
|
+
scope?: "harness" | "user" | undefined;
|
|
11984
|
+
capture?: "full" | "mirrors" | undefined;
|
|
11985
|
+
share?: boolean | undefined;
|
|
11986
|
+
}>>;
|
|
11511
11987
|
schedule: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
11512
11988
|
kind: z.ZodLiteral<"cron">;
|
|
11513
11989
|
cron: z.ZodString;
|
|
@@ -11638,6 +12114,7 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11638
12114
|
api_key: string;
|
|
11639
12115
|
base_url?: string | undefined;
|
|
11640
12116
|
visibility?: "private" | "shared" | undefined;
|
|
12117
|
+
space?: string | undefined;
|
|
11641
12118
|
goals?: boolean | undefined;
|
|
11642
12119
|
agents?: string | boolean | undefined;
|
|
11643
12120
|
messaging?: boolean | undefined;
|
|
@@ -11708,6 +12185,20 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11708
12185
|
on_fail?: "retry" | "halt" | "note" | undefined;
|
|
11709
12186
|
max_retries?: number | undefined;
|
|
11710
12187
|
} | undefined;
|
|
12188
|
+
feedback?: {
|
|
12189
|
+
modality: "binary" | "stars" | "scale" | "comment";
|
|
12190
|
+
enabled?: boolean | undefined;
|
|
12191
|
+
scale?: {
|
|
12192
|
+
min: number;
|
|
12193
|
+
max: number;
|
|
12194
|
+
} | undefined;
|
|
12195
|
+
storage?: {
|
|
12196
|
+
location: string;
|
|
12197
|
+
} | undefined;
|
|
12198
|
+
autoDistill?: boolean | undefined;
|
|
12199
|
+
exitPrompt?: boolean | undefined;
|
|
12200
|
+
channelReactions?: boolean | undefined;
|
|
12201
|
+
} | undefined;
|
|
11711
12202
|
memory?: {
|
|
11712
12203
|
backend?: "file" | "thredz" | undefined;
|
|
11713
12204
|
enabled?: boolean | undefined;
|
|
@@ -11785,6 +12276,17 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11785
12276
|
endpoint?: string | undefined;
|
|
11786
12277
|
} | undefined;
|
|
11787
12278
|
} | undefined;
|
|
12279
|
+
watchme?: {
|
|
12280
|
+
enabled: boolean;
|
|
12281
|
+
scope: "harness" | "user";
|
|
12282
|
+
capture: "full" | "mirrors";
|
|
12283
|
+
share: boolean;
|
|
12284
|
+
judge?: {
|
|
12285
|
+
model: string;
|
|
12286
|
+
budget_usd: number;
|
|
12287
|
+
sample_rate: number;
|
|
12288
|
+
} | undefined;
|
|
12289
|
+
} | undefined;
|
|
11788
12290
|
schedule?: {
|
|
11789
12291
|
kind: "cron";
|
|
11790
12292
|
cron: string;
|
|
@@ -11892,6 +12394,7 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11892
12394
|
api_key: string;
|
|
11893
12395
|
base_url?: string | undefined;
|
|
11894
12396
|
visibility?: "private" | "shared" | undefined;
|
|
12397
|
+
space?: string | undefined;
|
|
11895
12398
|
goals?: boolean | undefined;
|
|
11896
12399
|
agents?: string | boolean | undefined;
|
|
11897
12400
|
messaging?: boolean | undefined;
|
|
@@ -11962,6 +12465,20 @@ declare const managedSchema: z.ZodObject<{
|
|
|
11962
12465
|
on_fail?: "retry" | "halt" | "note" | undefined;
|
|
11963
12466
|
max_retries?: number | undefined;
|
|
11964
12467
|
} | undefined;
|
|
12468
|
+
feedback?: {
|
|
12469
|
+
enabled?: boolean | undefined;
|
|
12470
|
+
scale?: {
|
|
12471
|
+
min: number;
|
|
12472
|
+
max: number;
|
|
12473
|
+
} | undefined;
|
|
12474
|
+
modality?: "binary" | "stars" | "scale" | "comment" | undefined;
|
|
12475
|
+
storage?: {
|
|
12476
|
+
location: string;
|
|
12477
|
+
} | undefined;
|
|
12478
|
+
autoDistill?: boolean | undefined;
|
|
12479
|
+
exitPrompt?: boolean | undefined;
|
|
12480
|
+
channelReactions?: boolean | undefined;
|
|
12481
|
+
} | undefined;
|
|
11965
12482
|
memory?: {
|
|
11966
12483
|
backend?: "file" | "thredz" | undefined;
|
|
11967
12484
|
enabled?: boolean | undefined;
|
|
@@ -12039,6 +12556,17 @@ declare const managedSchema: z.ZodObject<{
|
|
|
12039
12556
|
endpoint?: string | undefined;
|
|
12040
12557
|
} | undefined;
|
|
12041
12558
|
} | undefined;
|
|
12559
|
+
watchme?: {
|
|
12560
|
+
judge?: {
|
|
12561
|
+
model?: string | undefined;
|
|
12562
|
+
budget_usd?: number | undefined;
|
|
12563
|
+
sample_rate?: number | undefined;
|
|
12564
|
+
} | undefined;
|
|
12565
|
+
enabled?: boolean | undefined;
|
|
12566
|
+
scope?: "harness" | "user" | undefined;
|
|
12567
|
+
capture?: "full" | "mirrors" | undefined;
|
|
12568
|
+
share?: boolean | undefined;
|
|
12569
|
+
} | undefined;
|
|
12042
12570
|
schedule?: {
|
|
12043
12571
|
kind: "cron";
|
|
12044
12572
|
cron: string;
|
|
@@ -14173,34 +14701,108 @@ declare const crewSchema: z.ZodObject<{
|
|
|
14173
14701
|
scope?: "auto" | "spec" | "session" | undefined;
|
|
14174
14702
|
focusMaxChars?: number | undefined;
|
|
14175
14703
|
}>]>>;
|
|
14176
|
-
thredz: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
|
|
14177
|
-
api_key: z.ZodString;
|
|
14704
|
+
thredz: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
14178
14705
|
base_url: z.ZodOptional<z.ZodString>;
|
|
14179
14706
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
14707
|
+
space: z.ZodOptional<z.ZodString>;
|
|
14180
14708
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
14181
14709
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
14182
|
-
/**
|
|
14183
|
-
* Item 5 (G44) — enable the nine Thredz messaging tools (`message_send`
|
|
14184
|
-
* / `inbox_poll` / `message_ack` / `thread_get` / `agent_*`). DEFAULT
|
|
14185
|
-
* false: the send-side tools are destructive + justification-gated, so
|
|
14186
|
-
* they stay off unless the author asks. The Thredz server side is already
|
|
14187
|
-
* live (thredz-api) — this flips their registration on.
|
|
14188
|
-
*/
|
|
14189
14710
|
messaging: z.ZodOptional<z.ZodBoolean>;
|
|
14711
|
+
} & {
|
|
14712
|
+
api_key: z.ZodOptional<z.ZodString>;
|
|
14713
|
+
roles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14714
|
+
api_key: z.ZodOptional<z.ZodString>;
|
|
14715
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
14716
|
+
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
14717
|
+
space: z.ZodOptional<z.ZodString>;
|
|
14718
|
+
goals: z.ZodOptional<z.ZodBoolean>;
|
|
14719
|
+
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
14720
|
+
messaging: z.ZodOptional<z.ZodBoolean>;
|
|
14721
|
+
}, "strict", z.ZodTypeAny, {
|
|
14722
|
+
api_key?: string | undefined;
|
|
14723
|
+
base_url?: string | undefined;
|
|
14724
|
+
visibility?: "private" | "shared" | undefined;
|
|
14725
|
+
space?: string | undefined;
|
|
14726
|
+
goals?: boolean | undefined;
|
|
14727
|
+
agents?: string | boolean | undefined;
|
|
14728
|
+
messaging?: boolean | undefined;
|
|
14729
|
+
}, {
|
|
14730
|
+
api_key?: string | undefined;
|
|
14731
|
+
base_url?: string | undefined;
|
|
14732
|
+
visibility?: "private" | "shared" | undefined;
|
|
14733
|
+
space?: string | undefined;
|
|
14734
|
+
goals?: boolean | undefined;
|
|
14735
|
+
agents?: string | boolean | undefined;
|
|
14736
|
+
messaging?: boolean | undefined;
|
|
14737
|
+
}>>>;
|
|
14190
14738
|
}, "strict", z.ZodTypeAny, {
|
|
14191
|
-
api_key
|
|
14739
|
+
api_key?: string | undefined;
|
|
14192
14740
|
base_url?: string | undefined;
|
|
14193
14741
|
visibility?: "private" | "shared" | undefined;
|
|
14742
|
+
space?: string | undefined;
|
|
14194
14743
|
goals?: boolean | undefined;
|
|
14195
14744
|
agents?: string | boolean | undefined;
|
|
14196
14745
|
messaging?: boolean | undefined;
|
|
14746
|
+
roles?: Record<string, {
|
|
14747
|
+
api_key?: string | undefined;
|
|
14748
|
+
base_url?: string | undefined;
|
|
14749
|
+
visibility?: "private" | "shared" | undefined;
|
|
14750
|
+
space?: string | undefined;
|
|
14751
|
+
goals?: boolean | undefined;
|
|
14752
|
+
agents?: string | boolean | undefined;
|
|
14753
|
+
messaging?: boolean | undefined;
|
|
14754
|
+
}> | undefined;
|
|
14197
14755
|
}, {
|
|
14198
|
-
api_key
|
|
14756
|
+
api_key?: string | undefined;
|
|
14757
|
+
base_url?: string | undefined;
|
|
14758
|
+
visibility?: "private" | "shared" | undefined;
|
|
14759
|
+
space?: string | undefined;
|
|
14760
|
+
goals?: boolean | undefined;
|
|
14761
|
+
agents?: string | boolean | undefined;
|
|
14762
|
+
messaging?: boolean | undefined;
|
|
14763
|
+
roles?: Record<string, {
|
|
14764
|
+
api_key?: string | undefined;
|
|
14765
|
+
base_url?: string | undefined;
|
|
14766
|
+
visibility?: "private" | "shared" | undefined;
|
|
14767
|
+
space?: string | undefined;
|
|
14768
|
+
goals?: boolean | undefined;
|
|
14769
|
+
agents?: string | boolean | undefined;
|
|
14770
|
+
messaging?: boolean | undefined;
|
|
14771
|
+
}> | undefined;
|
|
14772
|
+
}>, {
|
|
14773
|
+
api_key?: string | undefined;
|
|
14774
|
+
base_url?: string | undefined;
|
|
14775
|
+
visibility?: "private" | "shared" | undefined;
|
|
14776
|
+
space?: string | undefined;
|
|
14777
|
+
goals?: boolean | undefined;
|
|
14778
|
+
agents?: string | boolean | undefined;
|
|
14779
|
+
messaging?: boolean | undefined;
|
|
14780
|
+
roles?: Record<string, {
|
|
14781
|
+
api_key?: string | undefined;
|
|
14782
|
+
base_url?: string | undefined;
|
|
14783
|
+
visibility?: "private" | "shared" | undefined;
|
|
14784
|
+
space?: string | undefined;
|
|
14785
|
+
goals?: boolean | undefined;
|
|
14786
|
+
agents?: string | boolean | undefined;
|
|
14787
|
+
messaging?: boolean | undefined;
|
|
14788
|
+
}> | undefined;
|
|
14789
|
+
}, {
|
|
14790
|
+
api_key?: string | undefined;
|
|
14199
14791
|
base_url?: string | undefined;
|
|
14200
14792
|
visibility?: "private" | "shared" | undefined;
|
|
14793
|
+
space?: string | undefined;
|
|
14201
14794
|
goals?: boolean | undefined;
|
|
14202
14795
|
agents?: string | boolean | undefined;
|
|
14203
14796
|
messaging?: boolean | undefined;
|
|
14797
|
+
roles?: Record<string, {
|
|
14798
|
+
api_key?: string | undefined;
|
|
14799
|
+
base_url?: string | undefined;
|
|
14800
|
+
visibility?: "private" | "shared" | undefined;
|
|
14801
|
+
space?: string | undefined;
|
|
14802
|
+
goals?: boolean | undefined;
|
|
14803
|
+
agents?: string | boolean | undefined;
|
|
14804
|
+
messaging?: boolean | undefined;
|
|
14805
|
+
}> | undefined;
|
|
14204
14806
|
}>]>>;
|
|
14205
14807
|
learning: z.ZodOptional<z.ZodObject<{
|
|
14206
14808
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -14523,9 +15125,6 @@ declare const crewSchema: z.ZodObject<{
|
|
|
14523
15125
|
}>>;
|
|
14524
15126
|
}, "strict", z.ZodTypeAny, {
|
|
14525
15127
|
model: string;
|
|
14526
|
-
name: string;
|
|
14527
|
-
target: "crew";
|
|
14528
|
-
entry: string;
|
|
14529
15128
|
roles: Record<string, {
|
|
14530
15129
|
instructions: string;
|
|
14531
15130
|
tools?: string[] | undefined;
|
|
@@ -14595,6 +15194,9 @@ declare const crewSchema: z.ZodObject<{
|
|
|
14595
15194
|
}> | undefined;
|
|
14596
15195
|
tool_config?: Record<string, unknown> | undefined;
|
|
14597
15196
|
}>;
|
|
15197
|
+
name: string;
|
|
15198
|
+
target: "crew";
|
|
15199
|
+
entry: string;
|
|
14598
15200
|
permissions?: {
|
|
14599
15201
|
mode?: "default" | "plan" | "auto" | undefined;
|
|
14600
15202
|
rules?: {
|
|
@@ -14625,12 +15227,22 @@ declare const crewSchema: z.ZodObject<{
|
|
|
14625
15227
|
} | undefined;
|
|
14626
15228
|
} | undefined;
|
|
14627
15229
|
thredz?: string | boolean | {
|
|
14628
|
-
api_key
|
|
15230
|
+
api_key?: string | undefined;
|
|
14629
15231
|
base_url?: string | undefined;
|
|
14630
15232
|
visibility?: "private" | "shared" | undefined;
|
|
15233
|
+
space?: string | undefined;
|
|
14631
15234
|
goals?: boolean | undefined;
|
|
14632
15235
|
agents?: string | boolean | undefined;
|
|
14633
15236
|
messaging?: boolean | undefined;
|
|
15237
|
+
roles?: Record<string, {
|
|
15238
|
+
api_key?: string | undefined;
|
|
15239
|
+
base_url?: string | undefined;
|
|
15240
|
+
visibility?: "private" | "shared" | undefined;
|
|
15241
|
+
space?: string | undefined;
|
|
15242
|
+
goals?: boolean | undefined;
|
|
15243
|
+
agents?: string | boolean | undefined;
|
|
15244
|
+
messaging?: boolean | undefined;
|
|
15245
|
+
}> | undefined;
|
|
14634
15246
|
} | undefined;
|
|
14635
15247
|
version?: number | undefined;
|
|
14636
15248
|
mcp_servers?: Record<string, {
|
|
@@ -14791,9 +15403,6 @@ declare const crewSchema: z.ZodObject<{
|
|
|
14791
15403
|
} | undefined;
|
|
14792
15404
|
}, {
|
|
14793
15405
|
model: string;
|
|
14794
|
-
name: string;
|
|
14795
|
-
target: "crew";
|
|
14796
|
-
entry: string;
|
|
14797
15406
|
roles: Record<string, {
|
|
14798
15407
|
instructions: string;
|
|
14799
15408
|
tools?: string[] | undefined;
|
|
@@ -14863,6 +15472,9 @@ declare const crewSchema: z.ZodObject<{
|
|
|
14863
15472
|
}> | undefined;
|
|
14864
15473
|
tool_config?: Record<string, unknown> | undefined;
|
|
14865
15474
|
}>;
|
|
15475
|
+
name: string;
|
|
15476
|
+
target: "crew";
|
|
15477
|
+
entry: string;
|
|
14866
15478
|
permissions?: {
|
|
14867
15479
|
mode?: "default" | "plan" | "auto" | undefined;
|
|
14868
15480
|
rules?: {
|
|
@@ -14893,12 +15505,22 @@ declare const crewSchema: z.ZodObject<{
|
|
|
14893
15505
|
} | undefined;
|
|
14894
15506
|
} | undefined;
|
|
14895
15507
|
thredz?: string | boolean | {
|
|
14896
|
-
api_key
|
|
15508
|
+
api_key?: string | undefined;
|
|
14897
15509
|
base_url?: string | undefined;
|
|
14898
15510
|
visibility?: "private" | "shared" | undefined;
|
|
15511
|
+
space?: string | undefined;
|
|
14899
15512
|
goals?: boolean | undefined;
|
|
14900
15513
|
agents?: string | boolean | undefined;
|
|
14901
15514
|
messaging?: boolean | undefined;
|
|
15515
|
+
roles?: Record<string, {
|
|
15516
|
+
api_key?: string | undefined;
|
|
15517
|
+
base_url?: string | undefined;
|
|
15518
|
+
visibility?: "private" | "shared" | undefined;
|
|
15519
|
+
space?: string | undefined;
|
|
15520
|
+
goals?: boolean | undefined;
|
|
15521
|
+
agents?: string | boolean | undefined;
|
|
15522
|
+
messaging?: boolean | undefined;
|
|
15523
|
+
}> | undefined;
|
|
14902
15524
|
} | undefined;
|
|
14903
15525
|
version?: number | undefined;
|
|
14904
15526
|
mcp_servers?: Record<string, {
|
|
@@ -15733,6 +16355,22 @@ declare const researchSchema: z.ZodObject<{
|
|
|
15733
16355
|
api_key: z.ZodString;
|
|
15734
16356
|
base_url: z.ZodOptional<z.ZodString>;
|
|
15735
16357
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
16358
|
+
/**
|
|
16359
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
16360
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
16361
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
16362
|
+
* `individual` space only by the key that owns it.
|
|
16363
|
+
*
|
|
16364
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
16365
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
16366
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
16367
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
16368
|
+
*
|
|
16369
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
16370
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
16371
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
16372
|
+
*/
|
|
16373
|
+
space: z.ZodOptional<z.ZodString>;
|
|
15736
16374
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
15737
16375
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
15738
16376
|
/**
|
|
@@ -15747,6 +16385,7 @@ declare const researchSchema: z.ZodObject<{
|
|
|
15747
16385
|
api_key: string;
|
|
15748
16386
|
base_url?: string | undefined;
|
|
15749
16387
|
visibility?: "private" | "shared" | undefined;
|
|
16388
|
+
space?: string | undefined;
|
|
15750
16389
|
goals?: boolean | undefined;
|
|
15751
16390
|
agents?: string | boolean | undefined;
|
|
15752
16391
|
messaging?: boolean | undefined;
|
|
@@ -15754,6 +16393,7 @@ declare const researchSchema: z.ZodObject<{
|
|
|
15754
16393
|
api_key: string;
|
|
15755
16394
|
base_url?: string | undefined;
|
|
15756
16395
|
visibility?: "private" | "shared" | undefined;
|
|
16396
|
+
space?: string | undefined;
|
|
15757
16397
|
goals?: boolean | undefined;
|
|
15758
16398
|
agents?: string | boolean | undefined;
|
|
15759
16399
|
messaging?: boolean | undefined;
|
|
@@ -15992,6 +16632,7 @@ declare const researchSchema: z.ZodObject<{
|
|
|
15992
16632
|
api_key: string;
|
|
15993
16633
|
base_url?: string | undefined;
|
|
15994
16634
|
visibility?: "private" | "shared" | undefined;
|
|
16635
|
+
space?: string | undefined;
|
|
15995
16636
|
goals?: boolean | undefined;
|
|
15996
16637
|
agents?: string | boolean | undefined;
|
|
15997
16638
|
messaging?: boolean | undefined;
|
|
@@ -16184,6 +16825,7 @@ declare const researchSchema: z.ZodObject<{
|
|
|
16184
16825
|
api_key: string;
|
|
16185
16826
|
base_url?: string | undefined;
|
|
16186
16827
|
visibility?: "private" | "shared" | undefined;
|
|
16828
|
+
space?: string | undefined;
|
|
16187
16829
|
goals?: boolean | undefined;
|
|
16188
16830
|
agents?: string | boolean | undefined;
|
|
16189
16831
|
messaging?: boolean | undefined;
|
|
@@ -17733,12 +18375,29 @@ declare const browserDriverSchema: z.ZodObject<{
|
|
|
17733
18375
|
height?: number | undefined;
|
|
17734
18376
|
}>>;
|
|
17735
18377
|
startUrl: z.ZodOptional<z.ZodString>;
|
|
18378
|
+
/**
|
|
18379
|
+
* SECURITY — opt in to private/loopback navigation targets. Default false:
|
|
18380
|
+
* the Navigate tool refuses private/loopback/link-local/metadata hosts
|
|
18381
|
+
* before `driver.goto`, and the chromium backend routes every request
|
|
18382
|
+
* through a DNS-pinning proxy that refuses the same floor at the
|
|
18383
|
+
* connection layer. Together they stop a prompt-injected page from
|
|
18384
|
+
* reaching the host's own services.
|
|
18385
|
+
*
|
|
18386
|
+
* Set true ONLY when the browser legitimately must reach a private target
|
|
18387
|
+
* the operator controls AND the page content is trusted — an intranet app
|
|
18388
|
+
* under test, or a locally-served fixture page (what the browser runtime
|
|
18389
|
+
* smoke does). It relaxes BOTH layers for this spec, so it stays a
|
|
18390
|
+
* per-spec reviewed decision and never a global switch. The http/https
|
|
18391
|
+
* scheme allowlist is NOT waived.
|
|
18392
|
+
*/
|
|
18393
|
+
allowPrivateTargets: z.ZodDefault<z.ZodBoolean>;
|
|
17736
18394
|
}, "strict", z.ZodTypeAny, {
|
|
17737
18395
|
backend: "host" | "chromium" | "remote";
|
|
17738
18396
|
viewport: {
|
|
17739
18397
|
width: number;
|
|
17740
18398
|
height: number;
|
|
17741
18399
|
};
|
|
18400
|
+
allowPrivateTargets: boolean;
|
|
17742
18401
|
startUrl?: string | undefined;
|
|
17743
18402
|
}, {
|
|
17744
18403
|
backend?: "host" | "chromium" | "remote" | undefined;
|
|
@@ -17747,6 +18406,7 @@ declare const browserDriverSchema: z.ZodObject<{
|
|
|
17747
18406
|
height?: number | undefined;
|
|
17748
18407
|
} | undefined;
|
|
17749
18408
|
startUrl?: string | undefined;
|
|
18409
|
+
allowPrivateTargets?: boolean | undefined;
|
|
17750
18410
|
}>;
|
|
17751
18411
|
declare const browserSchema: z.ZodObject<{
|
|
17752
18412
|
name: z.ZodString;
|
|
@@ -18023,12 +18683,29 @@ declare const browserSchema: z.ZodObject<{
|
|
|
18023
18683
|
height?: number | undefined;
|
|
18024
18684
|
}>>;
|
|
18025
18685
|
startUrl: z.ZodOptional<z.ZodString>;
|
|
18686
|
+
/**
|
|
18687
|
+
* SECURITY — opt in to private/loopback navigation targets. Default false:
|
|
18688
|
+
* the Navigate tool refuses private/loopback/link-local/metadata hosts
|
|
18689
|
+
* before `driver.goto`, and the chromium backend routes every request
|
|
18690
|
+
* through a DNS-pinning proxy that refuses the same floor at the
|
|
18691
|
+
* connection layer. Together they stop a prompt-injected page from
|
|
18692
|
+
* reaching the host's own services.
|
|
18693
|
+
*
|
|
18694
|
+
* Set true ONLY when the browser legitimately must reach a private target
|
|
18695
|
+
* the operator controls AND the page content is trusted — an intranet app
|
|
18696
|
+
* under test, or a locally-served fixture page (what the browser runtime
|
|
18697
|
+
* smoke does). It relaxes BOTH layers for this spec, so it stays a
|
|
18698
|
+
* per-spec reviewed decision and never a global switch. The http/https
|
|
18699
|
+
* scheme allowlist is NOT waived.
|
|
18700
|
+
*/
|
|
18701
|
+
allowPrivateTargets: z.ZodDefault<z.ZodBoolean>;
|
|
18026
18702
|
}, "strict", z.ZodTypeAny, {
|
|
18027
18703
|
backend: "host" | "chromium" | "remote";
|
|
18028
18704
|
viewport: {
|
|
18029
18705
|
width: number;
|
|
18030
18706
|
height: number;
|
|
18031
18707
|
};
|
|
18708
|
+
allowPrivateTargets: boolean;
|
|
18032
18709
|
startUrl?: string | undefined;
|
|
18033
18710
|
}, {
|
|
18034
18711
|
backend?: "host" | "chromium" | "remote" | undefined;
|
|
@@ -18037,6 +18714,7 @@ declare const browserSchema: z.ZodObject<{
|
|
|
18037
18714
|
height?: number | undefined;
|
|
18038
18715
|
} | undefined;
|
|
18039
18716
|
startUrl?: string | undefined;
|
|
18717
|
+
allowPrivateTargets?: boolean | undefined;
|
|
18040
18718
|
}>>;
|
|
18041
18719
|
/** Vision-grounding model. Defaults to the agent's primary model. */
|
|
18042
18720
|
groundingModel: z.ZodOptional<z.ZodString>;
|
|
@@ -18345,6 +19023,7 @@ declare const browserSchema: z.ZodObject<{
|
|
|
18345
19023
|
width: number;
|
|
18346
19024
|
height: number;
|
|
18347
19025
|
};
|
|
19026
|
+
allowPrivateTargets: boolean;
|
|
18348
19027
|
startUrl?: string | undefined;
|
|
18349
19028
|
};
|
|
18350
19029
|
tools?: string[] | undefined;
|
|
@@ -18537,6 +19216,7 @@ declare const browserSchema: z.ZodObject<{
|
|
|
18537
19216
|
height?: number | undefined;
|
|
18538
19217
|
} | undefined;
|
|
18539
19218
|
startUrl?: string | undefined;
|
|
19219
|
+
allowPrivateTargets?: boolean | undefined;
|
|
18540
19220
|
} | undefined;
|
|
18541
19221
|
groundingModel?: string | undefined;
|
|
18542
19222
|
}>;
|
|
@@ -20917,6 +21597,22 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
20917
21597
|
api_key: z.ZodString;
|
|
20918
21598
|
base_url: z.ZodOptional<z.ZodString>;
|
|
20919
21599
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
21600
|
+
/**
|
|
21601
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
21602
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
21603
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
21604
|
+
* `individual` space only by the key that owns it.
|
|
21605
|
+
*
|
|
21606
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
21607
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
21608
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
21609
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
21610
|
+
*
|
|
21611
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
21612
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
21613
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
21614
|
+
*/
|
|
21615
|
+
space: z.ZodOptional<z.ZodString>;
|
|
20920
21616
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
20921
21617
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
20922
21618
|
/**
|
|
@@ -20931,6 +21627,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
20931
21627
|
api_key: string;
|
|
20932
21628
|
base_url?: string | undefined;
|
|
20933
21629
|
visibility?: "private" | "shared" | undefined;
|
|
21630
|
+
space?: string | undefined;
|
|
20934
21631
|
goals?: boolean | undefined;
|
|
20935
21632
|
agents?: string | boolean | undefined;
|
|
20936
21633
|
messaging?: boolean | undefined;
|
|
@@ -20938,6 +21635,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
20938
21635
|
api_key: string;
|
|
20939
21636
|
base_url?: string | undefined;
|
|
20940
21637
|
visibility?: "private" | "shared" | undefined;
|
|
21638
|
+
space?: string | undefined;
|
|
20941
21639
|
goals?: boolean | undefined;
|
|
20942
21640
|
agents?: string | boolean | undefined;
|
|
20943
21641
|
messaging?: boolean | undefined;
|
|
@@ -21150,6 +21848,54 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
21150
21848
|
endpoint?: string | undefined;
|
|
21151
21849
|
} | undefined;
|
|
21152
21850
|
}>>;
|
|
21851
|
+
watchme: z.ZodOptional<z.ZodObject<{
|
|
21852
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
21853
|
+
/** "full" = write the .events.jsonl trace sibling; "mirrors" = rely on the
|
|
21854
|
+
* default-on advisor mirrors only (retro-analysis grade, no extra file). */
|
|
21855
|
+
capture: z.ZodDefault<z.ZodEnum<["full", "mirrors"]>>;
|
|
21856
|
+
judge: z.ZodOptional<z.ZodObject<{
|
|
21857
|
+
/** Judge model for the sampled phase-2 quality pass. Refused at runtime
|
|
21858
|
+
* if unpriced (dream-engine pattern) — the budget cap must be
|
|
21859
|
+
* enforceable. */
|
|
21860
|
+
model: z.ZodDefault<z.ZodString>;
|
|
21861
|
+
/** Fraction of ungraded turns escalated to the judge. */
|
|
21862
|
+
sample_rate: z.ZodDefault<z.ZodNumber>;
|
|
21863
|
+
/** Per-report spend cap. 0 (default) = deterministic-only reports. */
|
|
21864
|
+
budget_usd: z.ZodDefault<z.ZodNumber>;
|
|
21865
|
+
}, "strict", z.ZodTypeAny, {
|
|
21866
|
+
model: string;
|
|
21867
|
+
budget_usd: number;
|
|
21868
|
+
sample_rate: number;
|
|
21869
|
+
}, {
|
|
21870
|
+
model?: string | undefined;
|
|
21871
|
+
budget_usd?: number | undefined;
|
|
21872
|
+
sample_rate?: number | undefined;
|
|
21873
|
+
}>>;
|
|
21874
|
+
/** "user" additionally registers this harness in the global registry at run time. */
|
|
21875
|
+
scope: z.ZodDefault<z.ZodEnum<["harness", "user"]>>;
|
|
21876
|
+
/** Publish redacted distilled findings to the wiki/Thredz at report time. */
|
|
21877
|
+
share: z.ZodDefault<z.ZodBoolean>;
|
|
21878
|
+
}, "strict", z.ZodTypeAny, {
|
|
21879
|
+
enabled: boolean;
|
|
21880
|
+
scope: "harness" | "user";
|
|
21881
|
+
capture: "full" | "mirrors";
|
|
21882
|
+
share: boolean;
|
|
21883
|
+
judge?: {
|
|
21884
|
+
model: string;
|
|
21885
|
+
budget_usd: number;
|
|
21886
|
+
sample_rate: number;
|
|
21887
|
+
} | undefined;
|
|
21888
|
+
}, {
|
|
21889
|
+
judge?: {
|
|
21890
|
+
model?: string | undefined;
|
|
21891
|
+
budget_usd?: number | undefined;
|
|
21892
|
+
sample_rate?: number | undefined;
|
|
21893
|
+
} | undefined;
|
|
21894
|
+
enabled?: boolean | undefined;
|
|
21895
|
+
scope?: "harness" | "user" | undefined;
|
|
21896
|
+
capture?: "full" | "mirrors" | undefined;
|
|
21897
|
+
share?: boolean | undefined;
|
|
21898
|
+
}>>;
|
|
21153
21899
|
cli: z.ZodOptional<z.ZodObject<{
|
|
21154
21900
|
banner: z.ZodOptional<z.ZodObject<{
|
|
21155
21901
|
taglineMode: z.ZodDefault<z.ZodEnum<["static", "random"]>>;
|
|
@@ -21396,6 +22142,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
21396
22142
|
api_key: string;
|
|
21397
22143
|
base_url?: string | undefined;
|
|
21398
22144
|
visibility?: "private" | "shared" | undefined;
|
|
22145
|
+
space?: string | undefined;
|
|
21399
22146
|
goals?: boolean | undefined;
|
|
21400
22147
|
agents?: string | boolean | undefined;
|
|
21401
22148
|
messaging?: boolean | undefined;
|
|
@@ -21583,6 +22330,17 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
21583
22330
|
endpoint?: string | undefined;
|
|
21584
22331
|
} | undefined;
|
|
21585
22332
|
} | undefined;
|
|
22333
|
+
watchme?: {
|
|
22334
|
+
enabled: boolean;
|
|
22335
|
+
scope: "harness" | "user";
|
|
22336
|
+
capture: "full" | "mirrors";
|
|
22337
|
+
share: boolean;
|
|
22338
|
+
judge?: {
|
|
22339
|
+
model: string;
|
|
22340
|
+
budget_usd: number;
|
|
22341
|
+
sample_rate: number;
|
|
22342
|
+
} | undefined;
|
|
22343
|
+
} | undefined;
|
|
21586
22344
|
chains?: {
|
|
21587
22345
|
kind: "evm";
|
|
21588
22346
|
id: string;
|
|
@@ -21720,6 +22478,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
21720
22478
|
api_key: string;
|
|
21721
22479
|
base_url?: string | undefined;
|
|
21722
22480
|
visibility?: "private" | "shared" | undefined;
|
|
22481
|
+
space?: string | undefined;
|
|
21723
22482
|
goals?: boolean | undefined;
|
|
21724
22483
|
agents?: string | boolean | undefined;
|
|
21725
22484
|
messaging?: boolean | undefined;
|
|
@@ -21907,6 +22666,17 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
21907
22666
|
endpoint?: string | undefined;
|
|
21908
22667
|
} | undefined;
|
|
21909
22668
|
} | undefined;
|
|
22669
|
+
watchme?: {
|
|
22670
|
+
judge?: {
|
|
22671
|
+
model?: string | undefined;
|
|
22672
|
+
budget_usd?: number | undefined;
|
|
22673
|
+
sample_rate?: number | undefined;
|
|
22674
|
+
} | undefined;
|
|
22675
|
+
enabled?: boolean | undefined;
|
|
22676
|
+
scope?: "harness" | "user" | undefined;
|
|
22677
|
+
capture?: "full" | "mirrors" | undefined;
|
|
22678
|
+
share?: boolean | undefined;
|
|
22679
|
+
} | undefined;
|
|
21910
22680
|
chains?: {
|
|
21911
22681
|
kind: "evm";
|
|
21912
22682
|
id: string;
|
|
@@ -23741,14 +24511,17 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
23741
24511
|
phoneNumberId: z.ZodString;
|
|
23742
24512
|
accessToken: z.ZodString;
|
|
23743
24513
|
appSecret: z.ZodString;
|
|
24514
|
+
verifyToken: z.ZodOptional<z.ZodString>;
|
|
23744
24515
|
}, "strict", z.ZodTypeAny, {
|
|
23745
24516
|
phoneNumberId: string;
|
|
23746
24517
|
accessToken: string;
|
|
23747
24518
|
appSecret: string;
|
|
24519
|
+
verifyToken?: string | undefined;
|
|
23748
24520
|
}, {
|
|
23749
24521
|
phoneNumberId: string;
|
|
23750
24522
|
accessToken: string;
|
|
23751
24523
|
appSecret: string;
|
|
24524
|
+
verifyToken?: string | undefined;
|
|
23752
24525
|
}>>;
|
|
23753
24526
|
imessage: z.ZodOptional<z.ZodObject<{
|
|
23754
24527
|
chatDbPath: z.ZodOptional<z.ZodString>;
|
|
@@ -23779,6 +24552,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
23779
24552
|
phoneNumberId: string;
|
|
23780
24553
|
accessToken: string;
|
|
23781
24554
|
appSecret: string;
|
|
24555
|
+
verifyToken?: string | undefined;
|
|
23782
24556
|
} | undefined;
|
|
23783
24557
|
imessage?: {
|
|
23784
24558
|
chatDbPath?: string | undefined;
|
|
@@ -23803,6 +24577,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
23803
24577
|
phoneNumberId: string;
|
|
23804
24578
|
accessToken: string;
|
|
23805
24579
|
appSecret: string;
|
|
24580
|
+
verifyToken?: string | undefined;
|
|
23806
24581
|
} | undefined;
|
|
23807
24582
|
imessage?: {
|
|
23808
24583
|
chatDbPath?: string | undefined;
|
|
@@ -23827,6 +24602,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
23827
24602
|
phoneNumberId: string;
|
|
23828
24603
|
accessToken: string;
|
|
23829
24604
|
appSecret: string;
|
|
24605
|
+
verifyToken?: string | undefined;
|
|
23830
24606
|
} | undefined;
|
|
23831
24607
|
imessage?: {
|
|
23832
24608
|
chatDbPath?: string | undefined;
|
|
@@ -23851,6 +24627,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
23851
24627
|
phoneNumberId: string;
|
|
23852
24628
|
accessToken: string;
|
|
23853
24629
|
appSecret: string;
|
|
24630
|
+
verifyToken?: string | undefined;
|
|
23854
24631
|
} | undefined;
|
|
23855
24632
|
imessage?: {
|
|
23856
24633
|
chatDbPath?: string | undefined;
|
|
@@ -23860,9 +24637,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
23860
24637
|
routing: z.ZodObject<{
|
|
23861
24638
|
sessionKey: z.ZodEnum<["thread", "user", "channel"]>;
|
|
23862
24639
|
}, "strict", z.ZodTypeAny, {
|
|
23863
|
-
sessionKey: "
|
|
24640
|
+
sessionKey: "user" | "thread" | "channel";
|
|
23864
24641
|
}, {
|
|
23865
|
-
sessionKey: "
|
|
24642
|
+
sessionKey: "user" | "thread" | "channel";
|
|
23866
24643
|
}>;
|
|
23867
24644
|
mcp_servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
23868
24645
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -24477,6 +25254,22 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
24477
25254
|
api_key: z.ZodString;
|
|
24478
25255
|
base_url: z.ZodOptional<z.ZodString>;
|
|
24479
25256
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
25257
|
+
/**
|
|
25258
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
25259
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
25260
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
25261
|
+
* `individual` space only by the key that owns it.
|
|
25262
|
+
*
|
|
25263
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
25264
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
25265
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
25266
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
25267
|
+
*
|
|
25268
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
25269
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
25270
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
25271
|
+
*/
|
|
25272
|
+
space: z.ZodOptional<z.ZodString>;
|
|
24480
25273
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
24481
25274
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
24482
25275
|
/**
|
|
@@ -24491,6 +25284,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
24491
25284
|
api_key: string;
|
|
24492
25285
|
base_url?: string | undefined;
|
|
24493
25286
|
visibility?: "private" | "shared" | undefined;
|
|
25287
|
+
space?: string | undefined;
|
|
24494
25288
|
goals?: boolean | undefined;
|
|
24495
25289
|
agents?: string | boolean | undefined;
|
|
24496
25290
|
messaging?: boolean | undefined;
|
|
@@ -24498,6 +25292,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
24498
25292
|
api_key: string;
|
|
24499
25293
|
base_url?: string | undefined;
|
|
24500
25294
|
visibility?: "private" | "shared" | undefined;
|
|
25295
|
+
space?: string | undefined;
|
|
24501
25296
|
goals?: boolean | undefined;
|
|
24502
25297
|
agents?: string | boolean | undefined;
|
|
24503
25298
|
messaging?: boolean | undefined;
|
|
@@ -24710,6 +25505,54 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
24710
25505
|
endpoint?: string | undefined;
|
|
24711
25506
|
} | undefined;
|
|
24712
25507
|
}>>;
|
|
25508
|
+
watchme: z.ZodOptional<z.ZodObject<{
|
|
25509
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
25510
|
+
/** "full" = write the .events.jsonl trace sibling; "mirrors" = rely on the
|
|
25511
|
+
* default-on advisor mirrors only (retro-analysis grade, no extra file). */
|
|
25512
|
+
capture: z.ZodDefault<z.ZodEnum<["full", "mirrors"]>>;
|
|
25513
|
+
judge: z.ZodOptional<z.ZodObject<{
|
|
25514
|
+
/** Judge model for the sampled phase-2 quality pass. Refused at runtime
|
|
25515
|
+
* if unpriced (dream-engine pattern) — the budget cap must be
|
|
25516
|
+
* enforceable. */
|
|
25517
|
+
model: z.ZodDefault<z.ZodString>;
|
|
25518
|
+
/** Fraction of ungraded turns escalated to the judge. */
|
|
25519
|
+
sample_rate: z.ZodDefault<z.ZodNumber>;
|
|
25520
|
+
/** Per-report spend cap. 0 (default) = deterministic-only reports. */
|
|
25521
|
+
budget_usd: z.ZodDefault<z.ZodNumber>;
|
|
25522
|
+
}, "strict", z.ZodTypeAny, {
|
|
25523
|
+
model: string;
|
|
25524
|
+
budget_usd: number;
|
|
25525
|
+
sample_rate: number;
|
|
25526
|
+
}, {
|
|
25527
|
+
model?: string | undefined;
|
|
25528
|
+
budget_usd?: number | undefined;
|
|
25529
|
+
sample_rate?: number | undefined;
|
|
25530
|
+
}>>;
|
|
25531
|
+
/** "user" additionally registers this harness in the global registry at run time. */
|
|
25532
|
+
scope: z.ZodDefault<z.ZodEnum<["harness", "user"]>>;
|
|
25533
|
+
/** Publish redacted distilled findings to the wiki/Thredz at report time. */
|
|
25534
|
+
share: z.ZodDefault<z.ZodBoolean>;
|
|
25535
|
+
}, "strict", z.ZodTypeAny, {
|
|
25536
|
+
enabled: boolean;
|
|
25537
|
+
scope: "harness" | "user";
|
|
25538
|
+
capture: "full" | "mirrors";
|
|
25539
|
+
share: boolean;
|
|
25540
|
+
judge?: {
|
|
25541
|
+
model: string;
|
|
25542
|
+
budget_usd: number;
|
|
25543
|
+
sample_rate: number;
|
|
25544
|
+
} | undefined;
|
|
25545
|
+
}, {
|
|
25546
|
+
judge?: {
|
|
25547
|
+
model?: string | undefined;
|
|
25548
|
+
budget_usd?: number | undefined;
|
|
25549
|
+
sample_rate?: number | undefined;
|
|
25550
|
+
} | undefined;
|
|
25551
|
+
enabled?: boolean | undefined;
|
|
25552
|
+
scope?: "harness" | "user" | undefined;
|
|
25553
|
+
capture?: "full" | "mirrors" | undefined;
|
|
25554
|
+
share?: boolean | undefined;
|
|
25555
|
+
}>>;
|
|
24713
25556
|
heartbeat: z.ZodOptional<z.ZodObject<{
|
|
24714
25557
|
every: z.ZodString;
|
|
24715
25558
|
instructions: z.ZodString;
|
|
@@ -24878,7 +25721,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
24878
25721
|
}>>;
|
|
24879
25722
|
}, "strict", z.ZodTypeAny, {
|
|
24880
25723
|
routing: {
|
|
24881
|
-
sessionKey: "
|
|
25724
|
+
sessionKey: "user" | "thread" | "channel";
|
|
24882
25725
|
};
|
|
24883
25726
|
name: string;
|
|
24884
25727
|
target: "channel";
|
|
@@ -24974,6 +25817,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
24974
25817
|
phoneNumberId: string;
|
|
24975
25818
|
accessToken: string;
|
|
24976
25819
|
appSecret: string;
|
|
25820
|
+
verifyToken?: string | undefined;
|
|
24977
25821
|
} | undefined;
|
|
24978
25822
|
imessage?: {
|
|
24979
25823
|
chatDbPath?: string | undefined;
|
|
@@ -25006,6 +25850,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
25006
25850
|
api_key: string;
|
|
25007
25851
|
base_url?: string | undefined;
|
|
25008
25852
|
visibility?: "private" | "shared" | undefined;
|
|
25853
|
+
space?: string | undefined;
|
|
25009
25854
|
goals?: boolean | undefined;
|
|
25010
25855
|
agents?: string | boolean | undefined;
|
|
25011
25856
|
messaging?: boolean | undefined;
|
|
@@ -25178,6 +26023,17 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
25178
26023
|
endpoint?: string | undefined;
|
|
25179
26024
|
} | undefined;
|
|
25180
26025
|
} | undefined;
|
|
26026
|
+
watchme?: {
|
|
26027
|
+
enabled: boolean;
|
|
26028
|
+
scope: "harness" | "user";
|
|
26029
|
+
capture: "full" | "mirrors";
|
|
26030
|
+
share: boolean;
|
|
26031
|
+
judge?: {
|
|
26032
|
+
model: string;
|
|
26033
|
+
budget_usd: number;
|
|
26034
|
+
sample_rate: number;
|
|
26035
|
+
} | undefined;
|
|
26036
|
+
} | undefined;
|
|
25181
26037
|
chains?: {
|
|
25182
26038
|
kind: "evm";
|
|
25183
26039
|
id: string;
|
|
@@ -25235,7 +26091,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
25235
26091
|
} | undefined;
|
|
25236
26092
|
}, {
|
|
25237
26093
|
routing: {
|
|
25238
|
-
sessionKey: "
|
|
26094
|
+
sessionKey: "user" | "thread" | "channel";
|
|
25239
26095
|
};
|
|
25240
26096
|
name: string;
|
|
25241
26097
|
target: "channel";
|
|
@@ -25331,6 +26187,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
25331
26187
|
phoneNumberId: string;
|
|
25332
26188
|
accessToken: string;
|
|
25333
26189
|
appSecret: string;
|
|
26190
|
+
verifyToken?: string | undefined;
|
|
25334
26191
|
} | undefined;
|
|
25335
26192
|
imessage?: {
|
|
25336
26193
|
chatDbPath?: string | undefined;
|
|
@@ -25363,6 +26220,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
25363
26220
|
api_key: string;
|
|
25364
26221
|
base_url?: string | undefined;
|
|
25365
26222
|
visibility?: "private" | "shared" | undefined;
|
|
26223
|
+
space?: string | undefined;
|
|
25366
26224
|
goals?: boolean | undefined;
|
|
25367
26225
|
agents?: string | boolean | undefined;
|
|
25368
26226
|
messaging?: boolean | undefined;
|
|
@@ -25535,6 +26393,17 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
25535
26393
|
endpoint?: string | undefined;
|
|
25536
26394
|
} | undefined;
|
|
25537
26395
|
} | undefined;
|
|
26396
|
+
watchme?: {
|
|
26397
|
+
judge?: {
|
|
26398
|
+
model?: string | undefined;
|
|
26399
|
+
budget_usd?: number | undefined;
|
|
26400
|
+
sample_rate?: number | undefined;
|
|
26401
|
+
} | undefined;
|
|
26402
|
+
enabled?: boolean | undefined;
|
|
26403
|
+
scope?: "harness" | "user" | undefined;
|
|
26404
|
+
capture?: "full" | "mirrors" | undefined;
|
|
26405
|
+
share?: boolean | undefined;
|
|
26406
|
+
} | undefined;
|
|
25538
26407
|
chains?: {
|
|
25539
26408
|
kind: "evm";
|
|
25540
26409
|
id: string;
|
|
@@ -25619,9 +26488,28 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
25619
26488
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25620
26489
|
tool_config: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
|
|
25621
26490
|
/**
|
|
25622
|
-
*
|
|
25623
|
-
*
|
|
25624
|
-
*
|
|
26491
|
+
* A human approval gate on this node, and a PRE-condition: the node
|
|
26492
|
+
* calls `ctx.requestApproval(prompt)` BEFORE its model turn, so the
|
|
26493
|
+
* prompt is answered against the UPSTREAM state (which the `hitl_pause`
|
|
26494
|
+
* event and the bundle's pause report both print) and no tokens are
|
|
26495
|
+
* spent until the human answers. The engine pauses, persists a
|
|
26496
|
+
* checkpoint, and waits for `resume(checkpointId, decision)` from the
|
|
26497
|
+
* operator/CLI; the resumed run replays this node from the top and
|
|
26498
|
+
* makes its FIRST model call.
|
|
26499
|
+
*
|
|
26500
|
+
* The decision string is recorded at `state["<node>_decision"]`, which
|
|
26501
|
+
* every downstream node reads as part of the upstream state. (NOTE:
|
|
26502
|
+
* `edges[].when.key` cannot name it yet — that key must name a declared
|
|
26503
|
+
* node; see the `graphEdgeWhenSchema` note below.) A rejecting decision
|
|
26504
|
+
* — `reject`, `no`, `deny`, `decline`, `abort`, `cancel`, `stop`, `veto`
|
|
26505
|
+
* (trimmed, case-insensitive) — cancels this node's turn entirely, so
|
|
26506
|
+
* the node records only its decision and no output; any other string,
|
|
26507
|
+
* including free text, approves it. To halt the run on a rejection,
|
|
26508
|
+
* guard the node's outgoing edge with `when: { key: <node>, exists:
|
|
26509
|
+
* true }` — a cancelled node records no output, so no edge matches.
|
|
26510
|
+
*
|
|
26511
|
+
* To have a human approve a node's OWN output, put the gate on the
|
|
26512
|
+
* DOWNSTREAM node: its upstream state is exactly that output.
|
|
25625
26513
|
*/
|
|
25626
26514
|
hitl: z.ZodOptional<z.ZodObject<{
|
|
25627
26515
|
prompt: z.ZodString;
|
|
@@ -27114,6 +28002,56 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27114
28002
|
on_fail?: "retry" | "halt" | "note" | undefined;
|
|
27115
28003
|
max_retries?: number | undefined;
|
|
27116
28004
|
}>>;
|
|
28005
|
+
feedback: z.ZodOptional<z.ZodObject<{
|
|
28006
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
28007
|
+
modality: z.ZodDefault<z.ZodEnum<["binary", "stars", "scale", "comment"]>>;
|
|
28008
|
+
scale: z.ZodOptional<z.ZodObject<{
|
|
28009
|
+
min: z.ZodNumber;
|
|
28010
|
+
max: z.ZodNumber;
|
|
28011
|
+
}, "strict", z.ZodTypeAny, {
|
|
28012
|
+
min: number;
|
|
28013
|
+
max: number;
|
|
28014
|
+
}, {
|
|
28015
|
+
min: number;
|
|
28016
|
+
max: number;
|
|
28017
|
+
}>>;
|
|
28018
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
28019
|
+
location: z.ZodString;
|
|
28020
|
+
}, "strict", z.ZodTypeAny, {
|
|
28021
|
+
location: string;
|
|
28022
|
+
}, {
|
|
28023
|
+
location: string;
|
|
28024
|
+
}>>;
|
|
28025
|
+
autoDistill: z.ZodOptional<z.ZodBoolean>;
|
|
28026
|
+
exitPrompt: z.ZodOptional<z.ZodBoolean>;
|
|
28027
|
+
channelReactions: z.ZodOptional<z.ZodBoolean>;
|
|
28028
|
+
}, "strict", z.ZodTypeAny, {
|
|
28029
|
+
modality: "binary" | "stars" | "scale" | "comment";
|
|
28030
|
+
enabled?: boolean | undefined;
|
|
28031
|
+
scale?: {
|
|
28032
|
+
min: number;
|
|
28033
|
+
max: number;
|
|
28034
|
+
} | undefined;
|
|
28035
|
+
storage?: {
|
|
28036
|
+
location: string;
|
|
28037
|
+
} | undefined;
|
|
28038
|
+
autoDistill?: boolean | undefined;
|
|
28039
|
+
exitPrompt?: boolean | undefined;
|
|
28040
|
+
channelReactions?: boolean | undefined;
|
|
28041
|
+
}, {
|
|
28042
|
+
enabled?: boolean | undefined;
|
|
28043
|
+
scale?: {
|
|
28044
|
+
min: number;
|
|
28045
|
+
max: number;
|
|
28046
|
+
} | undefined;
|
|
28047
|
+
modality?: "binary" | "stars" | "scale" | "comment" | undefined;
|
|
28048
|
+
storage?: {
|
|
28049
|
+
location: string;
|
|
28050
|
+
} | undefined;
|
|
28051
|
+
autoDistill?: boolean | undefined;
|
|
28052
|
+
exitPrompt?: boolean | undefined;
|
|
28053
|
+
channelReactions?: boolean | undefined;
|
|
28054
|
+
}>>;
|
|
27117
28055
|
memory: z.ZodOptional<z.ZodObject<{
|
|
27118
28056
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
27119
28057
|
backend: z.ZodOptional<z.ZodEnum<["file", "thredz"]>>;
|
|
@@ -27322,6 +28260,22 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27322
28260
|
api_key: z.ZodString;
|
|
27323
28261
|
base_url: z.ZodOptional<z.ZodString>;
|
|
27324
28262
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
28263
|
+
/**
|
|
28264
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
28265
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
28266
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
28267
|
+
* `individual` space only by the key that owns it.
|
|
28268
|
+
*
|
|
28269
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
28270
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
28271
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
28272
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
28273
|
+
*
|
|
28274
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
28275
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
28276
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
28277
|
+
*/
|
|
28278
|
+
space: z.ZodOptional<z.ZodString>;
|
|
27325
28279
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
27326
28280
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
27327
28281
|
/**
|
|
@@ -27336,6 +28290,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27336
28290
|
api_key: string;
|
|
27337
28291
|
base_url?: string | undefined;
|
|
27338
28292
|
visibility?: "private" | "shared" | undefined;
|
|
28293
|
+
space?: string | undefined;
|
|
27339
28294
|
goals?: boolean | undefined;
|
|
27340
28295
|
agents?: string | boolean | undefined;
|
|
27341
28296
|
messaging?: boolean | undefined;
|
|
@@ -27343,6 +28298,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27343
28298
|
api_key: string;
|
|
27344
28299
|
base_url?: string | undefined;
|
|
27345
28300
|
visibility?: "private" | "shared" | undefined;
|
|
28301
|
+
space?: string | undefined;
|
|
27346
28302
|
goals?: boolean | undefined;
|
|
27347
28303
|
agents?: string | boolean | undefined;
|
|
27348
28304
|
messaging?: boolean | undefined;
|
|
@@ -27555,6 +28511,54 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27555
28511
|
endpoint?: string | undefined;
|
|
27556
28512
|
} | undefined;
|
|
27557
28513
|
}>>;
|
|
28514
|
+
watchme: z.ZodOptional<z.ZodObject<{
|
|
28515
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
28516
|
+
/** "full" = write the .events.jsonl trace sibling; "mirrors" = rely on the
|
|
28517
|
+
* default-on advisor mirrors only (retro-analysis grade, no extra file). */
|
|
28518
|
+
capture: z.ZodDefault<z.ZodEnum<["full", "mirrors"]>>;
|
|
28519
|
+
judge: z.ZodOptional<z.ZodObject<{
|
|
28520
|
+
/** Judge model for the sampled phase-2 quality pass. Refused at runtime
|
|
28521
|
+
* if unpriced (dream-engine pattern) — the budget cap must be
|
|
28522
|
+
* enforceable. */
|
|
28523
|
+
model: z.ZodDefault<z.ZodString>;
|
|
28524
|
+
/** Fraction of ungraded turns escalated to the judge. */
|
|
28525
|
+
sample_rate: z.ZodDefault<z.ZodNumber>;
|
|
28526
|
+
/** Per-report spend cap. 0 (default) = deterministic-only reports. */
|
|
28527
|
+
budget_usd: z.ZodDefault<z.ZodNumber>;
|
|
28528
|
+
}, "strict", z.ZodTypeAny, {
|
|
28529
|
+
model: string;
|
|
28530
|
+
budget_usd: number;
|
|
28531
|
+
sample_rate: number;
|
|
28532
|
+
}, {
|
|
28533
|
+
model?: string | undefined;
|
|
28534
|
+
budget_usd?: number | undefined;
|
|
28535
|
+
sample_rate?: number | undefined;
|
|
28536
|
+
}>>;
|
|
28537
|
+
/** "user" additionally registers this harness in the global registry at run time. */
|
|
28538
|
+
scope: z.ZodDefault<z.ZodEnum<["harness", "user"]>>;
|
|
28539
|
+
/** Publish redacted distilled findings to the wiki/Thredz at report time. */
|
|
28540
|
+
share: z.ZodDefault<z.ZodBoolean>;
|
|
28541
|
+
}, "strict", z.ZodTypeAny, {
|
|
28542
|
+
enabled: boolean;
|
|
28543
|
+
scope: "harness" | "user";
|
|
28544
|
+
capture: "full" | "mirrors";
|
|
28545
|
+
share: boolean;
|
|
28546
|
+
judge?: {
|
|
28547
|
+
model: string;
|
|
28548
|
+
budget_usd: number;
|
|
28549
|
+
sample_rate: number;
|
|
28550
|
+
} | undefined;
|
|
28551
|
+
}, {
|
|
28552
|
+
judge?: {
|
|
28553
|
+
model?: string | undefined;
|
|
28554
|
+
budget_usd?: number | undefined;
|
|
28555
|
+
sample_rate?: number | undefined;
|
|
28556
|
+
} | undefined;
|
|
28557
|
+
enabled?: boolean | undefined;
|
|
28558
|
+
scope?: "harness" | "user" | undefined;
|
|
28559
|
+
capture?: "full" | "mirrors" | undefined;
|
|
28560
|
+
share?: boolean | undefined;
|
|
28561
|
+
}>>;
|
|
27558
28562
|
schedule: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
27559
28563
|
kind: z.ZodLiteral<"cron">;
|
|
27560
28564
|
cron: z.ZodString;
|
|
@@ -27685,6 +28689,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27685
28689
|
api_key: string;
|
|
27686
28690
|
base_url?: string | undefined;
|
|
27687
28691
|
visibility?: "private" | "shared" | undefined;
|
|
28692
|
+
space?: string | undefined;
|
|
27688
28693
|
goals?: boolean | undefined;
|
|
27689
28694
|
agents?: string | boolean | undefined;
|
|
27690
28695
|
messaging?: boolean | undefined;
|
|
@@ -27755,6 +28760,20 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27755
28760
|
on_fail?: "retry" | "halt" | "note" | undefined;
|
|
27756
28761
|
max_retries?: number | undefined;
|
|
27757
28762
|
} | undefined;
|
|
28763
|
+
feedback?: {
|
|
28764
|
+
modality: "binary" | "stars" | "scale" | "comment";
|
|
28765
|
+
enabled?: boolean | undefined;
|
|
28766
|
+
scale?: {
|
|
28767
|
+
min: number;
|
|
28768
|
+
max: number;
|
|
28769
|
+
} | undefined;
|
|
28770
|
+
storage?: {
|
|
28771
|
+
location: string;
|
|
28772
|
+
} | undefined;
|
|
28773
|
+
autoDistill?: boolean | undefined;
|
|
28774
|
+
exitPrompt?: boolean | undefined;
|
|
28775
|
+
channelReactions?: boolean | undefined;
|
|
28776
|
+
} | undefined;
|
|
27758
28777
|
memory?: {
|
|
27759
28778
|
backend?: "file" | "thredz" | undefined;
|
|
27760
28779
|
enabled?: boolean | undefined;
|
|
@@ -27832,6 +28851,17 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27832
28851
|
endpoint?: string | undefined;
|
|
27833
28852
|
} | undefined;
|
|
27834
28853
|
} | undefined;
|
|
28854
|
+
watchme?: {
|
|
28855
|
+
enabled: boolean;
|
|
28856
|
+
scope: "harness" | "user";
|
|
28857
|
+
capture: "full" | "mirrors";
|
|
28858
|
+
share: boolean;
|
|
28859
|
+
judge?: {
|
|
28860
|
+
model: string;
|
|
28861
|
+
budget_usd: number;
|
|
28862
|
+
sample_rate: number;
|
|
28863
|
+
} | undefined;
|
|
28864
|
+
} | undefined;
|
|
27835
28865
|
schedule?: {
|
|
27836
28866
|
kind: "cron";
|
|
27837
28867
|
cron: string;
|
|
@@ -27939,6 +28969,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
27939
28969
|
api_key: string;
|
|
27940
28970
|
base_url?: string | undefined;
|
|
27941
28971
|
visibility?: "private" | "shared" | undefined;
|
|
28972
|
+
space?: string | undefined;
|
|
27942
28973
|
goals?: boolean | undefined;
|
|
27943
28974
|
agents?: string | boolean | undefined;
|
|
27944
28975
|
messaging?: boolean | undefined;
|
|
@@ -28009,6 +29040,20 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
28009
29040
|
on_fail?: "retry" | "halt" | "note" | undefined;
|
|
28010
29041
|
max_retries?: number | undefined;
|
|
28011
29042
|
} | undefined;
|
|
29043
|
+
feedback?: {
|
|
29044
|
+
enabled?: boolean | undefined;
|
|
29045
|
+
scale?: {
|
|
29046
|
+
min: number;
|
|
29047
|
+
max: number;
|
|
29048
|
+
} | undefined;
|
|
29049
|
+
modality?: "binary" | "stars" | "scale" | "comment" | undefined;
|
|
29050
|
+
storage?: {
|
|
29051
|
+
location: string;
|
|
29052
|
+
} | undefined;
|
|
29053
|
+
autoDistill?: boolean | undefined;
|
|
29054
|
+
exitPrompt?: boolean | undefined;
|
|
29055
|
+
channelReactions?: boolean | undefined;
|
|
29056
|
+
} | undefined;
|
|
28012
29057
|
memory?: {
|
|
28013
29058
|
backend?: "file" | "thredz" | undefined;
|
|
28014
29059
|
enabled?: boolean | undefined;
|
|
@@ -28086,6 +29131,17 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
28086
29131
|
endpoint?: string | undefined;
|
|
28087
29132
|
} | undefined;
|
|
28088
29133
|
} | undefined;
|
|
29134
|
+
watchme?: {
|
|
29135
|
+
judge?: {
|
|
29136
|
+
model?: string | undefined;
|
|
29137
|
+
budget_usd?: number | undefined;
|
|
29138
|
+
sample_rate?: number | undefined;
|
|
29139
|
+
} | undefined;
|
|
29140
|
+
enabled?: boolean | undefined;
|
|
29141
|
+
scope?: "harness" | "user" | undefined;
|
|
29142
|
+
capture?: "full" | "mirrors" | undefined;
|
|
29143
|
+
share?: boolean | undefined;
|
|
29144
|
+
} | undefined;
|
|
28089
29145
|
schedule?: {
|
|
28090
29146
|
kind: "cron";
|
|
28091
29147
|
cron: string;
|
|
@@ -29646,34 +30702,108 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
29646
30702
|
scope?: "auto" | "spec" | "session" | undefined;
|
|
29647
30703
|
focusMaxChars?: number | undefined;
|
|
29648
30704
|
}>]>>;
|
|
29649
|
-
thredz: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodObject<{
|
|
29650
|
-
api_key: z.ZodString;
|
|
30705
|
+
thredz: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
29651
30706
|
base_url: z.ZodOptional<z.ZodString>;
|
|
29652
30707
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
30708
|
+
space: z.ZodOptional<z.ZodString>;
|
|
29653
30709
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
29654
30710
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
29655
|
-
/**
|
|
29656
|
-
* Item 5 (G44) — enable the nine Thredz messaging tools (`message_send`
|
|
29657
|
-
* / `inbox_poll` / `message_ack` / `thread_get` / `agent_*`). DEFAULT
|
|
29658
|
-
* false: the send-side tools are destructive + justification-gated, so
|
|
29659
|
-
* they stay off unless the author asks. The Thredz server side is already
|
|
29660
|
-
* live (thredz-api) — this flips their registration on.
|
|
29661
|
-
*/
|
|
29662
30711
|
messaging: z.ZodOptional<z.ZodBoolean>;
|
|
30712
|
+
} & {
|
|
30713
|
+
api_key: z.ZodOptional<z.ZodString>;
|
|
30714
|
+
roles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
30715
|
+
api_key: z.ZodOptional<z.ZodString>;
|
|
30716
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
30717
|
+
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
30718
|
+
space: z.ZodOptional<z.ZodString>;
|
|
30719
|
+
goals: z.ZodOptional<z.ZodBoolean>;
|
|
30720
|
+
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
30721
|
+
messaging: z.ZodOptional<z.ZodBoolean>;
|
|
30722
|
+
}, "strict", z.ZodTypeAny, {
|
|
30723
|
+
api_key?: string | undefined;
|
|
30724
|
+
base_url?: string | undefined;
|
|
30725
|
+
visibility?: "private" | "shared" | undefined;
|
|
30726
|
+
space?: string | undefined;
|
|
30727
|
+
goals?: boolean | undefined;
|
|
30728
|
+
agents?: string | boolean | undefined;
|
|
30729
|
+
messaging?: boolean | undefined;
|
|
30730
|
+
}, {
|
|
30731
|
+
api_key?: string | undefined;
|
|
30732
|
+
base_url?: string | undefined;
|
|
30733
|
+
visibility?: "private" | "shared" | undefined;
|
|
30734
|
+
space?: string | undefined;
|
|
30735
|
+
goals?: boolean | undefined;
|
|
30736
|
+
agents?: string | boolean | undefined;
|
|
30737
|
+
messaging?: boolean | undefined;
|
|
30738
|
+
}>>>;
|
|
29663
30739
|
}, "strict", z.ZodTypeAny, {
|
|
29664
|
-
api_key
|
|
30740
|
+
api_key?: string | undefined;
|
|
29665
30741
|
base_url?: string | undefined;
|
|
29666
30742
|
visibility?: "private" | "shared" | undefined;
|
|
30743
|
+
space?: string | undefined;
|
|
29667
30744
|
goals?: boolean | undefined;
|
|
29668
30745
|
agents?: string | boolean | undefined;
|
|
29669
30746
|
messaging?: boolean | undefined;
|
|
30747
|
+
roles?: Record<string, {
|
|
30748
|
+
api_key?: string | undefined;
|
|
30749
|
+
base_url?: string | undefined;
|
|
30750
|
+
visibility?: "private" | "shared" | undefined;
|
|
30751
|
+
space?: string | undefined;
|
|
30752
|
+
goals?: boolean | undefined;
|
|
30753
|
+
agents?: string | boolean | undefined;
|
|
30754
|
+
messaging?: boolean | undefined;
|
|
30755
|
+
}> | undefined;
|
|
29670
30756
|
}, {
|
|
29671
|
-
api_key
|
|
30757
|
+
api_key?: string | undefined;
|
|
29672
30758
|
base_url?: string | undefined;
|
|
29673
30759
|
visibility?: "private" | "shared" | undefined;
|
|
30760
|
+
space?: string | undefined;
|
|
29674
30761
|
goals?: boolean | undefined;
|
|
29675
30762
|
agents?: string | boolean | undefined;
|
|
29676
30763
|
messaging?: boolean | undefined;
|
|
30764
|
+
roles?: Record<string, {
|
|
30765
|
+
api_key?: string | undefined;
|
|
30766
|
+
base_url?: string | undefined;
|
|
30767
|
+
visibility?: "private" | "shared" | undefined;
|
|
30768
|
+
space?: string | undefined;
|
|
30769
|
+
goals?: boolean | undefined;
|
|
30770
|
+
agents?: string | boolean | undefined;
|
|
30771
|
+
messaging?: boolean | undefined;
|
|
30772
|
+
}> | undefined;
|
|
30773
|
+
}>, {
|
|
30774
|
+
api_key?: string | undefined;
|
|
30775
|
+
base_url?: string | undefined;
|
|
30776
|
+
visibility?: "private" | "shared" | undefined;
|
|
30777
|
+
space?: string | undefined;
|
|
30778
|
+
goals?: boolean | undefined;
|
|
30779
|
+
agents?: string | boolean | undefined;
|
|
30780
|
+
messaging?: boolean | undefined;
|
|
30781
|
+
roles?: Record<string, {
|
|
30782
|
+
api_key?: string | undefined;
|
|
30783
|
+
base_url?: string | undefined;
|
|
30784
|
+
visibility?: "private" | "shared" | undefined;
|
|
30785
|
+
space?: string | undefined;
|
|
30786
|
+
goals?: boolean | undefined;
|
|
30787
|
+
agents?: string | boolean | undefined;
|
|
30788
|
+
messaging?: boolean | undefined;
|
|
30789
|
+
}> | undefined;
|
|
30790
|
+
}, {
|
|
30791
|
+
api_key?: string | undefined;
|
|
30792
|
+
base_url?: string | undefined;
|
|
30793
|
+
visibility?: "private" | "shared" | undefined;
|
|
30794
|
+
space?: string | undefined;
|
|
30795
|
+
goals?: boolean | undefined;
|
|
30796
|
+
agents?: string | boolean | undefined;
|
|
30797
|
+
messaging?: boolean | undefined;
|
|
30798
|
+
roles?: Record<string, {
|
|
30799
|
+
api_key?: string | undefined;
|
|
30800
|
+
base_url?: string | undefined;
|
|
30801
|
+
visibility?: "private" | "shared" | undefined;
|
|
30802
|
+
space?: string | undefined;
|
|
30803
|
+
goals?: boolean | undefined;
|
|
30804
|
+
agents?: string | boolean | undefined;
|
|
30805
|
+
messaging?: boolean | undefined;
|
|
30806
|
+
}> | undefined;
|
|
29677
30807
|
}>]>>;
|
|
29678
30808
|
learning: z.ZodOptional<z.ZodObject<{
|
|
29679
30809
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -29996,9 +31126,6 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
29996
31126
|
}>>;
|
|
29997
31127
|
}, "strict", z.ZodTypeAny, {
|
|
29998
31128
|
model: string;
|
|
29999
|
-
name: string;
|
|
30000
|
-
target: "crew";
|
|
30001
|
-
entry: string;
|
|
30002
31129
|
roles: Record<string, {
|
|
30003
31130
|
instructions: string;
|
|
30004
31131
|
tools?: string[] | undefined;
|
|
@@ -30068,6 +31195,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
30068
31195
|
}> | undefined;
|
|
30069
31196
|
tool_config?: Record<string, unknown> | undefined;
|
|
30070
31197
|
}>;
|
|
31198
|
+
name: string;
|
|
31199
|
+
target: "crew";
|
|
31200
|
+
entry: string;
|
|
30071
31201
|
permissions?: {
|
|
30072
31202
|
mode?: "default" | "plan" | "auto" | undefined;
|
|
30073
31203
|
rules?: {
|
|
@@ -30098,12 +31228,22 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
30098
31228
|
} | undefined;
|
|
30099
31229
|
} | undefined;
|
|
30100
31230
|
thredz?: string | boolean | {
|
|
30101
|
-
api_key
|
|
31231
|
+
api_key?: string | undefined;
|
|
30102
31232
|
base_url?: string | undefined;
|
|
30103
31233
|
visibility?: "private" | "shared" | undefined;
|
|
31234
|
+
space?: string | undefined;
|
|
30104
31235
|
goals?: boolean | undefined;
|
|
30105
31236
|
agents?: string | boolean | undefined;
|
|
30106
31237
|
messaging?: boolean | undefined;
|
|
31238
|
+
roles?: Record<string, {
|
|
31239
|
+
api_key?: string | undefined;
|
|
31240
|
+
base_url?: string | undefined;
|
|
31241
|
+
visibility?: "private" | "shared" | undefined;
|
|
31242
|
+
space?: string | undefined;
|
|
31243
|
+
goals?: boolean | undefined;
|
|
31244
|
+
agents?: string | boolean | undefined;
|
|
31245
|
+
messaging?: boolean | undefined;
|
|
31246
|
+
}> | undefined;
|
|
30107
31247
|
} | undefined;
|
|
30108
31248
|
version?: number | undefined;
|
|
30109
31249
|
mcp_servers?: Record<string, {
|
|
@@ -30264,9 +31404,6 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
30264
31404
|
} | undefined;
|
|
30265
31405
|
}, {
|
|
30266
31406
|
model: string;
|
|
30267
|
-
name: string;
|
|
30268
|
-
target: "crew";
|
|
30269
|
-
entry: string;
|
|
30270
31407
|
roles: Record<string, {
|
|
30271
31408
|
instructions: string;
|
|
30272
31409
|
tools?: string[] | undefined;
|
|
@@ -30336,6 +31473,9 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
30336
31473
|
}> | undefined;
|
|
30337
31474
|
tool_config?: Record<string, unknown> | undefined;
|
|
30338
31475
|
}>;
|
|
31476
|
+
name: string;
|
|
31477
|
+
target: "crew";
|
|
31478
|
+
entry: string;
|
|
30339
31479
|
permissions?: {
|
|
30340
31480
|
mode?: "default" | "plan" | "auto" | undefined;
|
|
30341
31481
|
rules?: {
|
|
@@ -30366,12 +31506,22 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
30366
31506
|
} | undefined;
|
|
30367
31507
|
} | undefined;
|
|
30368
31508
|
thredz?: string | boolean | {
|
|
30369
|
-
api_key
|
|
31509
|
+
api_key?: string | undefined;
|
|
30370
31510
|
base_url?: string | undefined;
|
|
30371
31511
|
visibility?: "private" | "shared" | undefined;
|
|
31512
|
+
space?: string | undefined;
|
|
30372
31513
|
goals?: boolean | undefined;
|
|
30373
31514
|
agents?: string | boolean | undefined;
|
|
30374
31515
|
messaging?: boolean | undefined;
|
|
31516
|
+
roles?: Record<string, {
|
|
31517
|
+
api_key?: string | undefined;
|
|
31518
|
+
base_url?: string | undefined;
|
|
31519
|
+
visibility?: "private" | "shared" | undefined;
|
|
31520
|
+
space?: string | undefined;
|
|
31521
|
+
goals?: boolean | undefined;
|
|
31522
|
+
agents?: string | boolean | undefined;
|
|
31523
|
+
messaging?: boolean | undefined;
|
|
31524
|
+
}> | undefined;
|
|
30375
31525
|
} | undefined;
|
|
30376
31526
|
version?: number | undefined;
|
|
30377
31527
|
mcp_servers?: Record<string, {
|
|
@@ -31192,6 +32342,22 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
31192
32342
|
api_key: z.ZodString;
|
|
31193
32343
|
base_url: z.ZodOptional<z.ZodString>;
|
|
31194
32344
|
visibility: z.ZodOptional<z.ZodEnum<["private", "shared"]>>;
|
|
32345
|
+
/**
|
|
32346
|
+
* 0.5.0 — a Thredz **wiki space** (Pro/Scale) to scope this agent's memory
|
|
32347
|
+
* to; becomes the synthesized server's `THREDZ_DEFAULT_SPACE`. A `shared`
|
|
32348
|
+
* space is readable by every wiki-enabled key on the account; an
|
|
32349
|
+
* `individual` space only by the key that owns it.
|
|
32350
|
+
*
|
|
32351
|
+
* The space TYPE is chosen when the space is created (over the API, or via
|
|
32352
|
+
* the model-callable `wiki_space_create`), not here — so this cannot be
|
|
32353
|
+
* validated at compile time and `visibility` is not cross-checked against
|
|
32354
|
+
* it. Inside a space the space's type decides visibility outright.
|
|
32355
|
+
*
|
|
32356
|
+
* ONE individual space per API KEY is a hard Thredz limit, so per-agent
|
|
32357
|
+
* private memory means a per-agent `api_key`. That is one `thredz:` block
|
|
32358
|
+
* per spec today; a crew gives each role its own (see the role-keyed form).
|
|
32359
|
+
*/
|
|
32360
|
+
space: z.ZodOptional<z.ZodString>;
|
|
31195
32361
|
goals: z.ZodOptional<z.ZodBoolean>;
|
|
31196
32362
|
agents: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
|
|
31197
32363
|
/**
|
|
@@ -31206,6 +32372,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
31206
32372
|
api_key: string;
|
|
31207
32373
|
base_url?: string | undefined;
|
|
31208
32374
|
visibility?: "private" | "shared" | undefined;
|
|
32375
|
+
space?: string | undefined;
|
|
31209
32376
|
goals?: boolean | undefined;
|
|
31210
32377
|
agents?: string | boolean | undefined;
|
|
31211
32378
|
messaging?: boolean | undefined;
|
|
@@ -31213,6 +32380,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
31213
32380
|
api_key: string;
|
|
31214
32381
|
base_url?: string | undefined;
|
|
31215
32382
|
visibility?: "private" | "shared" | undefined;
|
|
32383
|
+
space?: string | undefined;
|
|
31216
32384
|
goals?: boolean | undefined;
|
|
31217
32385
|
agents?: string | boolean | undefined;
|
|
31218
32386
|
messaging?: boolean | undefined;
|
|
@@ -31451,6 +32619,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
31451
32619
|
api_key: string;
|
|
31452
32620
|
base_url?: string | undefined;
|
|
31453
32621
|
visibility?: "private" | "shared" | undefined;
|
|
32622
|
+
space?: string | undefined;
|
|
31454
32623
|
goals?: boolean | undefined;
|
|
31455
32624
|
agents?: string | boolean | undefined;
|
|
31456
32625
|
messaging?: boolean | undefined;
|
|
@@ -31643,6 +32812,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
31643
32812
|
api_key: string;
|
|
31644
32813
|
base_url?: string | undefined;
|
|
31645
32814
|
visibility?: "private" | "shared" | undefined;
|
|
32815
|
+
space?: string | undefined;
|
|
31646
32816
|
goals?: boolean | undefined;
|
|
31647
32817
|
agents?: string | boolean | undefined;
|
|
31648
32818
|
messaging?: boolean | undefined;
|
|
@@ -33406,12 +34576,29 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
33406
34576
|
height?: number | undefined;
|
|
33407
34577
|
}>>;
|
|
33408
34578
|
startUrl: z.ZodOptional<z.ZodString>;
|
|
34579
|
+
/**
|
|
34580
|
+
* SECURITY — opt in to private/loopback navigation targets. Default false:
|
|
34581
|
+
* the Navigate tool refuses private/loopback/link-local/metadata hosts
|
|
34582
|
+
* before `driver.goto`, and the chromium backend routes every request
|
|
34583
|
+
* through a DNS-pinning proxy that refuses the same floor at the
|
|
34584
|
+
* connection layer. Together they stop a prompt-injected page from
|
|
34585
|
+
* reaching the host's own services.
|
|
34586
|
+
*
|
|
34587
|
+
* Set true ONLY when the browser legitimately must reach a private target
|
|
34588
|
+
* the operator controls AND the page content is trusted — an intranet app
|
|
34589
|
+
* under test, or a locally-served fixture page (what the browser runtime
|
|
34590
|
+
* smoke does). It relaxes BOTH layers for this spec, so it stays a
|
|
34591
|
+
* per-spec reviewed decision and never a global switch. The http/https
|
|
34592
|
+
* scheme allowlist is NOT waived.
|
|
34593
|
+
*/
|
|
34594
|
+
allowPrivateTargets: z.ZodDefault<z.ZodBoolean>;
|
|
33409
34595
|
}, "strict", z.ZodTypeAny, {
|
|
33410
34596
|
backend: "host" | "chromium" | "remote";
|
|
33411
34597
|
viewport: {
|
|
33412
34598
|
width: number;
|
|
33413
34599
|
height: number;
|
|
33414
34600
|
};
|
|
34601
|
+
allowPrivateTargets: boolean;
|
|
33415
34602
|
startUrl?: string | undefined;
|
|
33416
34603
|
}, {
|
|
33417
34604
|
backend?: "host" | "chromium" | "remote" | undefined;
|
|
@@ -33420,6 +34607,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
33420
34607
|
height?: number | undefined;
|
|
33421
34608
|
} | undefined;
|
|
33422
34609
|
startUrl?: string | undefined;
|
|
34610
|
+
allowPrivateTargets?: boolean | undefined;
|
|
33423
34611
|
}>>;
|
|
33424
34612
|
/** Vision-grounding model. Defaults to the agent's primary model. */
|
|
33425
34613
|
groundingModel: z.ZodOptional<z.ZodString>;
|
|
@@ -33728,6 +34916,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
33728
34916
|
width: number;
|
|
33729
34917
|
height: number;
|
|
33730
34918
|
};
|
|
34919
|
+
allowPrivateTargets: boolean;
|
|
33731
34920
|
startUrl?: string | undefined;
|
|
33732
34921
|
};
|
|
33733
34922
|
tools?: string[] | undefined;
|
|
@@ -33920,6 +35109,7 @@ export declare const Spec: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
|
33920
35109
|
height?: number | undefined;
|
|
33921
35110
|
} | undefined;
|
|
33922
35111
|
startUrl?: string | undefined;
|
|
35112
|
+
allowPrivateTargets?: boolean | undefined;
|
|
33923
35113
|
} | undefined;
|
|
33924
35114
|
groundingModel?: string | undefined;
|
|
33925
35115
|
}>, z.ZodObject<{
|
|
@@ -35054,6 +36244,9 @@ export type SpecBudgetBlock = z.infer<typeof budgetBlock>;
|
|
|
35054
36244
|
/** Ops item 37 + Loop contract 0.4 (Batch C, G26) — the cross-cutting
|
|
35055
36245
|
* `observability:` block (slo + trace/metrics/cost/alerts/incidents/otel). */
|
|
35056
36246
|
export type SpecObservabilityBlock = z.infer<typeof observabilityBlock>;
|
|
36247
|
+
/** "Watch me" — the observe-and-learn `watchme:` block, carried on
|
|
36248
|
+
* cli/channel/managed (design/watch-me.md §4.1). */
|
|
36249
|
+
export type SpecWatchmeBlock = z.infer<typeof watchmeBlock>;
|
|
35057
36250
|
export type SpecSecurityBlock = z.infer<typeof securityBlock>;
|
|
35058
36251
|
export type SpecFeedbackBlock = z.infer<typeof feedbackBlock>;
|
|
35059
36252
|
export type SpecMemoryBlock = z.infer<typeof memoryBlock>;
|