@critical-path/svelte 0.16.0 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist/index.js +268 -253
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @critical-path/svelte
|
|
2
2
|
|
|
3
|
+
## 0.16.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6dd5529]
|
|
8
|
+
- @critical-path/core@0.23.0
|
|
9
|
+
- @critical-path/mcp@0.8.0
|
|
10
|
+
- @critical-path/client@0.14.8
|
|
11
|
+
|
|
12
|
+
## 0.16.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- b243a37: Fix correctness and safety issues found in a code audit.
|
|
17
|
+
|
|
18
|
+
**@critical-path/core**
|
|
19
|
+
- `SQLiteStore` now loads `node:sqlite` via `process.getBuiltinModule`, fixing `require is not defined` when constructed from a filename in plain Node ESM.
|
|
20
|
+
- Removed the unused `better-sqlite3` runtime dependency.
|
|
21
|
+
- `engine.addDependency` now detects indirect cycles (e.g. A → B → C → D → A), not just cycles between direct neighbours.
|
|
22
|
+
- Fixed `generateKeyBetween` returning out-of-range, duplicate keys after repeated inserts after the same item. It now throws a `RangeError` when `a >= b`.
|
|
23
|
+
- Added `engine.deleteProject(id)`, which deletes a project's tasks through `deleteTask` and publishes a new `project.deleted` event and webhook.
|
|
24
|
+
- Added exported `ValidationError` and `NotFoundError` classes. `logTime` now rejects non-numeric hours.
|
|
25
|
+
|
|
26
|
+
**@critical-path/server**
|
|
27
|
+
- `DELETE /projects/:id`, `POST /tasks/:id/dependencies` and `POST /time-entries` now go through the engine, so cycle checks, hour validation, roll-ups, events and webhooks apply.
|
|
28
|
+
- Added `PATCH /projects/:id`.
|
|
29
|
+
- `DELETE` on a resource that does not exist now returns `404` instead of `200 { success: false }`.
|
|
30
|
+
- Malformed JSON returns `400`, validation errors `400`, `NotFoundError` `404`, and dependency cycles `409`. Unexpected errors return a generic `500` message outside development.
|
|
31
|
+
- `OPTIONS` preflight requests return `204` with CORS headers.
|
|
32
|
+
- New router/adapter options: `onError(error, request)` to report unexpected errors or return a custom response, and `exposeErrors` to include real messages in 500 responses (defaults to on only when `NODE_ENV === 'development'`).
|
|
33
|
+
- `createNextHandler` returns a callable handler that also exposes per-method properties, so `export { handler as GET }` works as documented.
|
|
34
|
+
|
|
35
|
+
**@critical-path/mcp**
|
|
36
|
+
- Tools excluded via the `tools` option can no longer be called by name.
|
|
37
|
+
- Tool arguments are validated with each tool's zod schema; undeclared fields are stripped.
|
|
38
|
+
- Tool listings include `title` and MCP `readOnlyHint` / `destructiveHint` annotations.
|
|
39
|
+
|
|
40
|
+
**@critical-path/svelte**
|
|
41
|
+
- Rebuilt with the bundled `@critical-path/mcp` WebMCP argument validation.
|
|
42
|
+
|
|
43
|
+
**@critical-path/client**
|
|
44
|
+
- Delete methods resolve to `false` when the server returns `404`, keeping their boolean contract with the new server behaviour.
|
|
45
|
+
- Updated dependencies [b243a37]
|
|
46
|
+
- @critical-path/core@0.22.0
|
|
47
|
+
- @critical-path/mcp@0.7.0
|
|
48
|
+
- @critical-path/client@0.14.7
|
|
49
|
+
|
|
3
50
|
## 0.16.0
|
|
4
51
|
|
|
5
52
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -1331,9 +1331,9 @@ var w = class {
|
|
|
1331
1331
|
return this._refinement((n, r) => e(n) ? !0 : (r.addIssue(typeof t == "function" ? t(n, r) : t), !1));
|
|
1332
1332
|
}
|
|
1333
1333
|
_refinement(e) {
|
|
1334
|
-
return new
|
|
1334
|
+
return new U({
|
|
1335
1335
|
schema: this,
|
|
1336
|
-
typeName:
|
|
1336
|
+
typeName: Y.ZodEffects,
|
|
1337
1337
|
effect: {
|
|
1338
1338
|
type: "refinement",
|
|
1339
1339
|
refinement: e
|
|
@@ -1351,31 +1351,31 @@ var w = class {
|
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
1353
|
optional() {
|
|
1354
|
-
return
|
|
1354
|
+
return W.create(this, this._def);
|
|
1355
1355
|
}
|
|
1356
1356
|
nullable() {
|
|
1357
|
-
return
|
|
1357
|
+
return G.create(this, this._def);
|
|
1358
1358
|
}
|
|
1359
1359
|
nullish() {
|
|
1360
1360
|
return this.nullable().optional();
|
|
1361
1361
|
}
|
|
1362
1362
|
array() {
|
|
1363
|
-
return
|
|
1363
|
+
return j.create(this);
|
|
1364
1364
|
}
|
|
1365
1365
|
promise() {
|
|
1366
|
-
return
|
|
1366
|
+
return H.create(this, this._def);
|
|
1367
1367
|
}
|
|
1368
1368
|
or(e) {
|
|
1369
|
-
return
|
|
1369
|
+
return P.create([this, e], this._def);
|
|
1370
1370
|
}
|
|
1371
1371
|
and(e) {
|
|
1372
|
-
return
|
|
1372
|
+
return I.create(this, e, this._def);
|
|
1373
1373
|
}
|
|
1374
1374
|
transform(e) {
|
|
1375
|
-
return new
|
|
1375
|
+
return new U({
|
|
1376
1376
|
...C(this._def),
|
|
1377
1377
|
schema: this,
|
|
1378
|
-
typeName:
|
|
1378
|
+
typeName: Y.ZodEffects,
|
|
1379
1379
|
effect: {
|
|
1380
1380
|
type: "transform",
|
|
1381
1381
|
transform: e
|
|
@@ -1384,27 +1384,27 @@ var w = class {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
default(e) {
|
|
1386
1386
|
let t = typeof e == "function" ? e : () => e;
|
|
1387
|
-
return new
|
|
1387
|
+
return new K({
|
|
1388
1388
|
...C(this._def),
|
|
1389
1389
|
innerType: this,
|
|
1390
1390
|
defaultValue: t,
|
|
1391
|
-
typeName:
|
|
1391
|
+
typeName: Y.ZodDefault
|
|
1392
1392
|
});
|
|
1393
1393
|
}
|
|
1394
1394
|
brand() {
|
|
1395
|
-
return new
|
|
1396
|
-
typeName:
|
|
1395
|
+
return new ct({
|
|
1396
|
+
typeName: Y.ZodBranded,
|
|
1397
1397
|
type: this,
|
|
1398
1398
|
...C(this._def)
|
|
1399
1399
|
});
|
|
1400
1400
|
}
|
|
1401
1401
|
catch(e) {
|
|
1402
1402
|
let t = typeof e == "function" ? e : () => e;
|
|
1403
|
-
return new
|
|
1403
|
+
return new q({
|
|
1404
1404
|
...C(this._def),
|
|
1405
1405
|
innerType: this,
|
|
1406
1406
|
catchValue: t,
|
|
1407
|
-
typeName:
|
|
1407
|
+
typeName: Y.ZodCatch
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
1410
|
describe(e) {
|
|
@@ -1415,10 +1415,10 @@ var w = class {
|
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
1417
|
pipe(e) {
|
|
1418
|
-
return
|
|
1418
|
+
return lt.create(this, e);
|
|
1419
1419
|
}
|
|
1420
1420
|
readonly() {
|
|
1421
|
-
return
|
|
1421
|
+
return J.create(this);
|
|
1422
1422
|
}
|
|
1423
1423
|
isOptional() {
|
|
1424
1424
|
return this.safeParse(void 0).success;
|
|
@@ -1867,7 +1867,7 @@ var T = class e extends w {
|
|
|
1867
1867
|
};
|
|
1868
1868
|
T.create = (e) => new T({
|
|
1869
1869
|
checks: [],
|
|
1870
|
-
typeName:
|
|
1870
|
+
typeName: Y.ZodString,
|
|
1871
1871
|
coerce: e?.coerce ?? !1,
|
|
1872
1872
|
...C(e)
|
|
1873
1873
|
});
|
|
@@ -2036,7 +2036,7 @@ var Je = class e extends w {
|
|
|
2036
2036
|
};
|
|
2037
2037
|
Je.create = (e) => new Je({
|
|
2038
2038
|
checks: [],
|
|
2039
|
-
typeName:
|
|
2039
|
+
typeName: Y.ZodNumber,
|
|
2040
2040
|
coerce: e?.coerce || !1,
|
|
2041
2041
|
...C(e)
|
|
2042
2042
|
});
|
|
@@ -2163,11 +2163,11 @@ var Ye = class e extends w {
|
|
|
2163
2163
|
};
|
|
2164
2164
|
Ye.create = (e) => new Ye({
|
|
2165
2165
|
checks: [],
|
|
2166
|
-
typeName:
|
|
2166
|
+
typeName: Y.ZodBigInt,
|
|
2167
2167
|
coerce: e?.coerce ?? !1,
|
|
2168
2168
|
...C(e)
|
|
2169
2169
|
});
|
|
2170
|
-
var
|
|
2170
|
+
var E = class extends w {
|
|
2171
2171
|
_parse(e) {
|
|
2172
2172
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== u.boolean) {
|
|
2173
2173
|
let t = this._getOrReturnCtx(e);
|
|
@@ -2180,12 +2180,12 @@ var Xe = class extends w {
|
|
|
2180
2180
|
return v(e.data);
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
|
-
|
|
2184
|
-
typeName:
|
|
2183
|
+
E.create = (e) => new E({
|
|
2184
|
+
typeName: Y.ZodBoolean,
|
|
2185
2185
|
coerce: e?.coerce || !1,
|
|
2186
2186
|
...C(e)
|
|
2187
2187
|
});
|
|
2188
|
-
var
|
|
2188
|
+
var Xe = class e extends w {
|
|
2189
2189
|
_parse(e) {
|
|
2190
2190
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== u.date) {
|
|
2191
2191
|
let t = this._getOrReturnCtx(e);
|
|
@@ -2248,13 +2248,13 @@ var Ze = class e extends w {
|
|
|
2248
2248
|
return e == null ? null : new Date(e);
|
|
2249
2249
|
}
|
|
2250
2250
|
};
|
|
2251
|
-
|
|
2251
|
+
Xe.create = (e) => new Xe({
|
|
2252
2252
|
checks: [],
|
|
2253
2253
|
coerce: e?.coerce || !1,
|
|
2254
|
-
typeName:
|
|
2254
|
+
typeName: Y.ZodDate,
|
|
2255
2255
|
...C(e)
|
|
2256
2256
|
});
|
|
2257
|
-
var
|
|
2257
|
+
var Ze = class extends w {
|
|
2258
2258
|
_parse(e) {
|
|
2259
2259
|
if (this._getType(e) !== u.symbol) {
|
|
2260
2260
|
let t = this._getOrReturnCtx(e);
|
|
@@ -2267,11 +2267,11 @@ var Qe = class extends w {
|
|
|
2267
2267
|
return v(e.data);
|
|
2268
2268
|
}
|
|
2269
2269
|
};
|
|
2270
|
-
|
|
2271
|
-
typeName:
|
|
2270
|
+
Ze.create = (e) => new Ze({
|
|
2271
|
+
typeName: Y.ZodSymbol,
|
|
2272
2272
|
...C(e)
|
|
2273
2273
|
});
|
|
2274
|
-
var
|
|
2274
|
+
var D = class extends w {
|
|
2275
2275
|
_parse(e) {
|
|
2276
2276
|
if (this._getType(e) !== u.undefined) {
|
|
2277
2277
|
let t = this._getOrReturnCtx(e);
|
|
@@ -2284,11 +2284,11 @@ var E = class extends w {
|
|
|
2284
2284
|
return v(e.data);
|
|
2285
2285
|
}
|
|
2286
2286
|
};
|
|
2287
|
-
|
|
2288
|
-
typeName:
|
|
2287
|
+
D.create = (e) => new D({
|
|
2288
|
+
typeName: Y.ZodUndefined,
|
|
2289
2289
|
...C(e)
|
|
2290
2290
|
});
|
|
2291
|
-
var
|
|
2291
|
+
var O = class extends w {
|
|
2292
2292
|
_parse(e) {
|
|
2293
2293
|
if (this._getType(e) !== u.null) {
|
|
2294
2294
|
let t = this._getOrReturnCtx(e);
|
|
@@ -2301,11 +2301,11 @@ var D = class extends w {
|
|
|
2301
2301
|
return v(e.data);
|
|
2302
2302
|
}
|
|
2303
2303
|
};
|
|
2304
|
-
|
|
2305
|
-
typeName:
|
|
2304
|
+
O.create = (e) => new O({
|
|
2305
|
+
typeName: Y.ZodNull,
|
|
2306
2306
|
...C(e)
|
|
2307
2307
|
});
|
|
2308
|
-
var
|
|
2308
|
+
var Qe = class extends w {
|
|
2309
2309
|
constructor() {
|
|
2310
2310
|
super(...arguments), this._any = !0;
|
|
2311
2311
|
}
|
|
@@ -2313,11 +2313,11 @@ var $e = class extends w {
|
|
|
2313
2313
|
return v(e.data);
|
|
2314
2314
|
}
|
|
2315
2315
|
};
|
|
2316
|
-
|
|
2317
|
-
typeName:
|
|
2316
|
+
Qe.create = (e) => new Qe({
|
|
2317
|
+
typeName: Y.ZodAny,
|
|
2318
2318
|
...C(e)
|
|
2319
2319
|
});
|
|
2320
|
-
var
|
|
2320
|
+
var k = class extends w {
|
|
2321
2321
|
constructor() {
|
|
2322
2322
|
super(...arguments), this._unknown = !0;
|
|
2323
2323
|
}
|
|
@@ -2325,11 +2325,11 @@ var O = class extends w {
|
|
|
2325
2325
|
return v(e.data);
|
|
2326
2326
|
}
|
|
2327
2327
|
};
|
|
2328
|
-
|
|
2329
|
-
typeName:
|
|
2328
|
+
k.create = (e) => new k({
|
|
2329
|
+
typeName: Y.ZodUnknown,
|
|
2330
2330
|
...C(e)
|
|
2331
2331
|
});
|
|
2332
|
-
var
|
|
2332
|
+
var A = class extends w {
|
|
2333
2333
|
_parse(e) {
|
|
2334
2334
|
let t = this._getOrReturnCtx(e);
|
|
2335
2335
|
return h(t, {
|
|
@@ -2339,11 +2339,11 @@ var k = class extends w {
|
|
|
2339
2339
|
}), _;
|
|
2340
2340
|
}
|
|
2341
2341
|
};
|
|
2342
|
-
|
|
2343
|
-
typeName:
|
|
2342
|
+
A.create = (e) => new A({
|
|
2343
|
+
typeName: Y.ZodNever,
|
|
2344
2344
|
...C(e)
|
|
2345
2345
|
});
|
|
2346
|
-
var
|
|
2346
|
+
var $e = class extends w {
|
|
2347
2347
|
_parse(e) {
|
|
2348
2348
|
if (this._getType(e) !== u.undefined) {
|
|
2349
2349
|
let t = this._getOrReturnCtx(e);
|
|
@@ -2356,11 +2356,11 @@ var et = class extends w {
|
|
|
2356
2356
|
return v(e.data);
|
|
2357
2357
|
}
|
|
2358
2358
|
};
|
|
2359
|
-
|
|
2360
|
-
typeName:
|
|
2359
|
+
$e.create = (e) => new $e({
|
|
2360
|
+
typeName: Y.ZodVoid,
|
|
2361
2361
|
...C(e)
|
|
2362
2362
|
});
|
|
2363
|
-
var
|
|
2363
|
+
var j = class e extends w {
|
|
2364
2364
|
_parse(e) {
|
|
2365
2365
|
let { ctx: t, status: n } = this._processInputParams(e), r = this._def;
|
|
2366
2366
|
if (t.parsedType !== u.array) return h(t, {
|
|
@@ -2432,32 +2432,32 @@ var A = class e extends w {
|
|
|
2432
2432
|
return this.min(1, e);
|
|
2433
2433
|
}
|
|
2434
2434
|
};
|
|
2435
|
-
|
|
2435
|
+
j.create = (e, t) => new j({
|
|
2436
2436
|
type: e,
|
|
2437
2437
|
minLength: null,
|
|
2438
2438
|
maxLength: null,
|
|
2439
2439
|
exactLength: null,
|
|
2440
|
-
typeName:
|
|
2440
|
+
typeName: Y.ZodArray,
|
|
2441
2441
|
...C(t)
|
|
2442
2442
|
});
|
|
2443
|
-
function
|
|
2444
|
-
if (e instanceof
|
|
2443
|
+
function M(e) {
|
|
2444
|
+
if (e instanceof N) {
|
|
2445
2445
|
let t = {};
|
|
2446
2446
|
for (let n in e.shape) {
|
|
2447
2447
|
let r = e.shape[n];
|
|
2448
|
-
t[n] =
|
|
2448
|
+
t[n] = W.create(M(r));
|
|
2449
2449
|
}
|
|
2450
|
-
return new
|
|
2450
|
+
return new N({
|
|
2451
2451
|
...e._def,
|
|
2452
2452
|
shape: () => t
|
|
2453
2453
|
});
|
|
2454
2454
|
}
|
|
2455
|
-
return e instanceof
|
|
2455
|
+
return e instanceof j ? new j({
|
|
2456
2456
|
...e._def,
|
|
2457
|
-
type:
|
|
2458
|
-
}) : e instanceof
|
|
2457
|
+
type: M(e.element)
|
|
2458
|
+
}) : e instanceof W ? W.create(M(e.unwrap())) : e instanceof G ? G.create(M(e.unwrap())) : e instanceof L ? L.create(e.items.map((e) => M(e))) : e;
|
|
2459
2459
|
}
|
|
2460
|
-
var
|
|
2460
|
+
var N = class e extends w {
|
|
2461
2461
|
constructor() {
|
|
2462
2462
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
2463
2463
|
}
|
|
@@ -2479,7 +2479,7 @@ var M = class e extends w {
|
|
|
2479
2479
|
}), _;
|
|
2480
2480
|
}
|
|
2481
2481
|
let { status: t, ctx: n } = this._processInputParams(e), { shape: r, keys: i } = this._getCached(), a = [];
|
|
2482
|
-
if (!(this._def.catchall instanceof
|
|
2482
|
+
if (!(this._def.catchall instanceof A && this._def.unknownKeys === "strip")) for (let e in n.data) i.includes(e) || a.push(e);
|
|
2483
2483
|
let o = [];
|
|
2484
2484
|
for (let e of i) {
|
|
2485
2485
|
let t = r[e], i = n.data[e];
|
|
@@ -2492,7 +2492,7 @@ var M = class e extends w {
|
|
|
2492
2492
|
alwaysSet: e in n.data
|
|
2493
2493
|
});
|
|
2494
2494
|
}
|
|
2495
|
-
if (this._def.catchall instanceof
|
|
2495
|
+
if (this._def.catchall instanceof A) {
|
|
2496
2496
|
let e = this._def.unknownKeys;
|
|
2497
2497
|
if (e === "passthrough") for (let e of a) o.push({
|
|
2498
2498
|
key: {
|
|
@@ -2578,7 +2578,7 @@ var M = class e extends w {
|
|
|
2578
2578
|
...this._def.shape(),
|
|
2579
2579
|
...t._def.shape()
|
|
2580
2580
|
}),
|
|
2581
|
-
typeName:
|
|
2581
|
+
typeName: Y.ZodObject
|
|
2582
2582
|
});
|
|
2583
2583
|
}
|
|
2584
2584
|
setKey(e, t) {
|
|
@@ -2607,7 +2607,7 @@ var M = class e extends w {
|
|
|
2607
2607
|
});
|
|
2608
2608
|
}
|
|
2609
2609
|
deepPartial() {
|
|
2610
|
-
return
|
|
2610
|
+
return M(this);
|
|
2611
2611
|
}
|
|
2612
2612
|
partial(t) {
|
|
2613
2613
|
let n = {};
|
|
@@ -2625,7 +2625,7 @@ var M = class e extends w {
|
|
|
2625
2625
|
for (let e of l.objectKeys(this.shape)) if (t && !t[e]) n[e] = this.shape[e];
|
|
2626
2626
|
else {
|
|
2627
2627
|
let t = this.shape[e];
|
|
2628
|
-
for (; t instanceof
|
|
2628
|
+
for (; t instanceof W;) t = t._def.innerType;
|
|
2629
2629
|
n[e] = t;
|
|
2630
2630
|
}
|
|
2631
2631
|
return new e({
|
|
@@ -2634,29 +2634,29 @@ var M = class e extends w {
|
|
|
2634
2634
|
});
|
|
2635
2635
|
}
|
|
2636
2636
|
keyof() {
|
|
2637
|
-
return
|
|
2637
|
+
return ot(l.objectKeys(this.shape));
|
|
2638
2638
|
}
|
|
2639
2639
|
};
|
|
2640
|
-
|
|
2640
|
+
N.create = (e, t) => new N({
|
|
2641
2641
|
shape: () => e,
|
|
2642
2642
|
unknownKeys: "strip",
|
|
2643
|
-
catchall:
|
|
2644
|
-
typeName:
|
|
2643
|
+
catchall: A.create(),
|
|
2644
|
+
typeName: Y.ZodObject,
|
|
2645
2645
|
...C(t)
|
|
2646
|
-
}),
|
|
2646
|
+
}), N.strictCreate = (e, t) => new N({
|
|
2647
2647
|
shape: () => e,
|
|
2648
2648
|
unknownKeys: "strict",
|
|
2649
|
-
catchall:
|
|
2650
|
-
typeName:
|
|
2649
|
+
catchall: A.create(),
|
|
2650
|
+
typeName: Y.ZodObject,
|
|
2651
2651
|
...C(t)
|
|
2652
|
-
}),
|
|
2652
|
+
}), N.lazycreate = (e, t) => new N({
|
|
2653
2653
|
shape: e,
|
|
2654
2654
|
unknownKeys: "strip",
|
|
2655
|
-
catchall:
|
|
2656
|
-
typeName:
|
|
2655
|
+
catchall: A.create(),
|
|
2656
|
+
typeName: Y.ZodObject,
|
|
2657
2657
|
...C(t)
|
|
2658
2658
|
});
|
|
2659
|
-
var
|
|
2659
|
+
var P = class extends w {
|
|
2660
2660
|
_parse(e) {
|
|
2661
2661
|
let { ctx: t } = this._processInputParams(e), n = this._def.options;
|
|
2662
2662
|
function r(e) {
|
|
@@ -2719,12 +2719,12 @@ var N = class extends w {
|
|
|
2719
2719
|
return this._def.options;
|
|
2720
2720
|
}
|
|
2721
2721
|
};
|
|
2722
|
-
|
|
2722
|
+
P.create = (e, t) => new P({
|
|
2723
2723
|
options: e,
|
|
2724
|
-
typeName:
|
|
2724
|
+
typeName: Y.ZodUnion,
|
|
2725
2725
|
...C(t)
|
|
2726
2726
|
});
|
|
2727
|
-
var
|
|
2727
|
+
var F = (e) => e instanceof R ? F(e.schema) : e instanceof U ? F(e.innerType()) : e instanceof z ? [e.value] : e instanceof B ? e.options : e instanceof V ? l.objectValues(e.enum) : e instanceof K ? F(e._def.innerType) : e instanceof D ? [void 0] : e instanceof O ? [null] : e instanceof W ? [void 0, ...F(e.unwrap())] : e instanceof G ? [null, ...F(e.unwrap())] : e instanceof ct || e instanceof J ? F(e.unwrap()) : e instanceof q ? F(e._def.innerType) : [], et = class e extends w {
|
|
2728
2728
|
_parse(e) {
|
|
2729
2729
|
let { ctx: t } = this._processInputParams(e);
|
|
2730
2730
|
if (t.parsedType !== u.object) return h(t, {
|
|
@@ -2759,7 +2759,7 @@ var P = (e) => e instanceof L ? P(e.schema) : e instanceof H ? P(e.innerType())
|
|
|
2759
2759
|
static create(t, n, r) {
|
|
2760
2760
|
let i = /* @__PURE__ */ new Map();
|
|
2761
2761
|
for (let e of n) {
|
|
2762
|
-
let n =
|
|
2762
|
+
let n = F(e.shape[t]);
|
|
2763
2763
|
if (!n.length) throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);
|
|
2764
2764
|
for (let r of n) {
|
|
2765
2765
|
if (i.has(r)) throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);
|
|
@@ -2767,7 +2767,7 @@ var P = (e) => e instanceof L ? P(e.schema) : e instanceof H ? P(e.innerType())
|
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
2769
|
return new e({
|
|
2770
|
-
typeName:
|
|
2770
|
+
typeName: Y.ZodDiscriminatedUnion,
|
|
2771
2771
|
discriminator: t,
|
|
2772
2772
|
options: n,
|
|
2773
2773
|
optionsMap: i,
|
|
@@ -2775,7 +2775,7 @@ var P = (e) => e instanceof L ? P(e.schema) : e instanceof H ? P(e.innerType())
|
|
|
2775
2775
|
});
|
|
2776
2776
|
}
|
|
2777
2777
|
};
|
|
2778
|
-
function
|
|
2778
|
+
function tt(e, t) {
|
|
2779
2779
|
let n = d(e), r = d(t);
|
|
2780
2780
|
if (e === t) return {
|
|
2781
2781
|
valid: !0,
|
|
@@ -2787,7 +2787,7 @@ function nt(e, t) {
|
|
|
2787
2787
|
...t
|
|
2788
2788
|
};
|
|
2789
2789
|
for (let n of r) {
|
|
2790
|
-
let r =
|
|
2790
|
+
let r = tt(e[n], t[n]);
|
|
2791
2791
|
if (!r.valid) return { valid: !1 };
|
|
2792
2792
|
i[n] = r.data;
|
|
2793
2793
|
}
|
|
@@ -2800,7 +2800,7 @@ function nt(e, t) {
|
|
|
2800
2800
|
if (e.length !== t.length) return { valid: !1 };
|
|
2801
2801
|
let n = [];
|
|
2802
2802
|
for (let r = 0; r < e.length; r++) {
|
|
2803
|
-
let i = e[r], a = t[r], o =
|
|
2803
|
+
let i = e[r], a = t[r], o = tt(i, a);
|
|
2804
2804
|
if (!o.valid) return { valid: !1 };
|
|
2805
2805
|
n.push(o.data);
|
|
2806
2806
|
}
|
|
@@ -2814,11 +2814,11 @@ function nt(e, t) {
|
|
|
2814
2814
|
data: e
|
|
2815
2815
|
} : { valid: !1 };
|
|
2816
2816
|
}
|
|
2817
|
-
var
|
|
2817
|
+
var I = class extends w {
|
|
2818
2818
|
_parse(e) {
|
|
2819
2819
|
let { status: t, ctx: n } = this._processInputParams(e), r = (e, r) => {
|
|
2820
2820
|
if (be(e) || be(r)) return _;
|
|
2821
|
-
let i =
|
|
2821
|
+
let i = tt(e.value, r.value);
|
|
2822
2822
|
return i.valid ? ((xe(e) || xe(r)) && t.dirty(), {
|
|
2823
2823
|
status: t.value,
|
|
2824
2824
|
value: i.data
|
|
@@ -2843,13 +2843,13 @@ var F = class extends w {
|
|
|
2843
2843
|
}));
|
|
2844
2844
|
}
|
|
2845
2845
|
};
|
|
2846
|
-
|
|
2846
|
+
I.create = (e, t, n) => new I({
|
|
2847
2847
|
left: e,
|
|
2848
2848
|
right: t,
|
|
2849
|
-
typeName:
|
|
2849
|
+
typeName: Y.ZodIntersection,
|
|
2850
2850
|
...C(n)
|
|
2851
2851
|
});
|
|
2852
|
-
var
|
|
2852
|
+
var L = class e extends w {
|
|
2853
2853
|
_parse(e) {
|
|
2854
2854
|
let { status: t, ctx: n } = this._processInputParams(e);
|
|
2855
2855
|
if (n.parsedType !== u.array) return h(n, {
|
|
@@ -2887,16 +2887,16 @@ var I = class e extends w {
|
|
|
2887
2887
|
});
|
|
2888
2888
|
}
|
|
2889
2889
|
};
|
|
2890
|
-
|
|
2890
|
+
L.create = (e, t) => {
|
|
2891
2891
|
if (!Array.isArray(e)) throw Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
2892
|
-
return new
|
|
2892
|
+
return new L({
|
|
2893
2893
|
items: e,
|
|
2894
|
-
typeName:
|
|
2894
|
+
typeName: Y.ZodTuple,
|
|
2895
2895
|
rest: null,
|
|
2896
2896
|
...C(t)
|
|
2897
2897
|
});
|
|
2898
2898
|
};
|
|
2899
|
-
var
|
|
2899
|
+
var nt = class e extends w {
|
|
2900
2900
|
get keySchema() {
|
|
2901
2901
|
return this._def.keyType;
|
|
2902
2902
|
}
|
|
@@ -2925,16 +2925,16 @@ var rt = class e extends w {
|
|
|
2925
2925
|
return n instanceof w ? new e({
|
|
2926
2926
|
keyType: t,
|
|
2927
2927
|
valueType: n,
|
|
2928
|
-
typeName:
|
|
2928
|
+
typeName: Y.ZodRecord,
|
|
2929
2929
|
...C(r)
|
|
2930
2930
|
}) : new e({
|
|
2931
2931
|
keyType: T.create(),
|
|
2932
2932
|
valueType: t,
|
|
2933
|
-
typeName:
|
|
2933
|
+
typeName: Y.ZodRecord,
|
|
2934
2934
|
...C(n)
|
|
2935
2935
|
});
|
|
2936
2936
|
}
|
|
2937
|
-
},
|
|
2937
|
+
}, rt = class extends w {
|
|
2938
2938
|
get keySchema() {
|
|
2939
2939
|
return this._def.keyType;
|
|
2940
2940
|
}
|
|
@@ -2980,13 +2980,13 @@ var rt = class e extends w {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
}
|
|
2982
2982
|
};
|
|
2983
|
-
|
|
2983
|
+
rt.create = (e, t, n) => new rt({
|
|
2984
2984
|
valueType: t,
|
|
2985
2985
|
keyType: e,
|
|
2986
|
-
typeName:
|
|
2986
|
+
typeName: Y.ZodMap,
|
|
2987
2987
|
...C(n)
|
|
2988
2988
|
});
|
|
2989
|
-
var
|
|
2989
|
+
var it = class e extends w {
|
|
2990
2990
|
_parse(e) {
|
|
2991
2991
|
let { status: t, ctx: n } = this._processInputParams(e);
|
|
2992
2992
|
if (n.parsedType !== u.set) return h(n, {
|
|
@@ -3050,14 +3050,14 @@ var at = class e extends w {
|
|
|
3050
3050
|
return this.min(1, e);
|
|
3051
3051
|
}
|
|
3052
3052
|
};
|
|
3053
|
-
|
|
3053
|
+
it.create = (e, t) => new it({
|
|
3054
3054
|
valueType: e,
|
|
3055
3055
|
minSize: null,
|
|
3056
3056
|
maxSize: null,
|
|
3057
|
-
typeName:
|
|
3057
|
+
typeName: Y.ZodSet,
|
|
3058
3058
|
...C(t)
|
|
3059
3059
|
});
|
|
3060
|
-
var
|
|
3060
|
+
var at = class e extends w {
|
|
3061
3061
|
constructor() {
|
|
3062
3062
|
super(...arguments), this.validate = this.implement;
|
|
3063
3063
|
}
|
|
@@ -3101,7 +3101,7 @@ var ot = class e extends w {
|
|
|
3101
3101
|
});
|
|
3102
3102
|
}
|
|
3103
3103
|
let i = { errorMap: t.common.contextualErrorMap }, a = t.data;
|
|
3104
|
-
if (this._def.returns instanceof
|
|
3104
|
+
if (this._def.returns instanceof H) {
|
|
3105
3105
|
let e = this;
|
|
3106
3106
|
return v(async function(...t) {
|
|
3107
3107
|
let o = new p([]), s = await e._def.args.parseAsync(t, i).catch((e) => {
|
|
@@ -3132,7 +3132,7 @@ var ot = class e extends w {
|
|
|
3132
3132
|
args(...t) {
|
|
3133
3133
|
return new e({
|
|
3134
3134
|
...this._def,
|
|
3135
|
-
args:
|
|
3135
|
+
args: L.create(t).rest(k.create())
|
|
3136
3136
|
});
|
|
3137
3137
|
}
|
|
3138
3138
|
returns(t) {
|
|
@@ -3149,13 +3149,13 @@ var ot = class e extends w {
|
|
|
3149
3149
|
}
|
|
3150
3150
|
static create(t, n, r) {
|
|
3151
3151
|
return new e({
|
|
3152
|
-
args: t ||
|
|
3153
|
-
returns: n ||
|
|
3154
|
-
typeName:
|
|
3152
|
+
args: t || L.create([]).rest(k.create()),
|
|
3153
|
+
returns: n || k.create(),
|
|
3154
|
+
typeName: Y.ZodFunction,
|
|
3155
3155
|
...C(r)
|
|
3156
3156
|
});
|
|
3157
3157
|
}
|
|
3158
|
-
},
|
|
3158
|
+
}, R = class extends w {
|
|
3159
3159
|
get schema() {
|
|
3160
3160
|
return this._def.getter();
|
|
3161
3161
|
}
|
|
@@ -3168,12 +3168,12 @@ var ot = class e extends w {
|
|
|
3168
3168
|
});
|
|
3169
3169
|
}
|
|
3170
3170
|
};
|
|
3171
|
-
|
|
3171
|
+
R.create = (e, t) => new R({
|
|
3172
3172
|
getter: e,
|
|
3173
|
-
typeName:
|
|
3173
|
+
typeName: Y.ZodLazy,
|
|
3174
3174
|
...C(t)
|
|
3175
3175
|
});
|
|
3176
|
-
var
|
|
3176
|
+
var z = class extends w {
|
|
3177
3177
|
_parse(e) {
|
|
3178
3178
|
if (e.data !== this._def.value) {
|
|
3179
3179
|
let t = this._getOrReturnCtx(e);
|
|
@@ -3192,19 +3192,19 @@ var R = class extends w {
|
|
|
3192
3192
|
return this._def.value;
|
|
3193
3193
|
}
|
|
3194
3194
|
};
|
|
3195
|
-
|
|
3195
|
+
z.create = (e, t) => new z({
|
|
3196
3196
|
value: e,
|
|
3197
|
-
typeName:
|
|
3197
|
+
typeName: Y.ZodLiteral,
|
|
3198
3198
|
...C(t)
|
|
3199
3199
|
});
|
|
3200
|
-
function
|
|
3201
|
-
return new
|
|
3200
|
+
function ot(e, t) {
|
|
3201
|
+
return new B({
|
|
3202
3202
|
values: e,
|
|
3203
|
-
typeName:
|
|
3203
|
+
typeName: Y.ZodEnum,
|
|
3204
3204
|
...C(t)
|
|
3205
3205
|
});
|
|
3206
3206
|
}
|
|
3207
|
-
var
|
|
3207
|
+
var B = class e extends w {
|
|
3208
3208
|
_parse(e) {
|
|
3209
3209
|
if (typeof e.data != "string") {
|
|
3210
3210
|
let t = this._getOrReturnCtx(e), n = this._def.values;
|
|
@@ -3255,8 +3255,8 @@ var z = class e extends w {
|
|
|
3255
3255
|
});
|
|
3256
3256
|
}
|
|
3257
3257
|
};
|
|
3258
|
-
|
|
3259
|
-
var
|
|
3258
|
+
B.create = ot;
|
|
3259
|
+
var V = class extends w {
|
|
3260
3260
|
_parse(e) {
|
|
3261
3261
|
let t = l.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
3262
3262
|
if (n.parsedType !== u.string && n.parsedType !== u.number) {
|
|
@@ -3281,12 +3281,12 @@ var B = class extends w {
|
|
|
3281
3281
|
return this._def.values;
|
|
3282
3282
|
}
|
|
3283
3283
|
};
|
|
3284
|
-
|
|
3284
|
+
V.create = (e, t) => new V({
|
|
3285
3285
|
values: e,
|
|
3286
|
-
typeName:
|
|
3286
|
+
typeName: Y.ZodNativeEnum,
|
|
3287
3287
|
...C(t)
|
|
3288
3288
|
});
|
|
3289
|
-
var
|
|
3289
|
+
var H = class extends w {
|
|
3290
3290
|
unwrap() {
|
|
3291
3291
|
return this._def.type;
|
|
3292
3292
|
}
|
|
@@ -3302,17 +3302,17 @@ var V = class extends w {
|
|
|
3302
3302
|
})));
|
|
3303
3303
|
}
|
|
3304
3304
|
};
|
|
3305
|
-
|
|
3305
|
+
H.create = (e, t) => new H({
|
|
3306
3306
|
type: e,
|
|
3307
|
-
typeName:
|
|
3307
|
+
typeName: Y.ZodPromise,
|
|
3308
3308
|
...C(t)
|
|
3309
3309
|
});
|
|
3310
|
-
var
|
|
3310
|
+
var U = class extends w {
|
|
3311
3311
|
innerType() {
|
|
3312
3312
|
return this._def.schema;
|
|
3313
3313
|
}
|
|
3314
3314
|
sourceType() {
|
|
3315
|
-
return this._def.schema._def.typeName ===
|
|
3315
|
+
return this._def.schema._def.typeName === Y.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
3316
3316
|
}
|
|
3317
3317
|
_parse(e) {
|
|
3318
3318
|
let { status: t, ctx: n } = this._processInputParams(e), r = this._def.effect || null, i = {
|
|
@@ -3398,21 +3398,21 @@ var H = class extends w {
|
|
|
3398
3398
|
l.assertNever(r);
|
|
3399
3399
|
}
|
|
3400
3400
|
};
|
|
3401
|
-
|
|
3401
|
+
U.create = (e, t, n) => new U({
|
|
3402
3402
|
schema: e,
|
|
3403
|
-
typeName:
|
|
3403
|
+
typeName: Y.ZodEffects,
|
|
3404
3404
|
effect: t,
|
|
3405
3405
|
...C(n)
|
|
3406
|
-
}),
|
|
3406
|
+
}), U.createWithPreprocess = (e, t, n) => new U({
|
|
3407
3407
|
schema: t,
|
|
3408
3408
|
effect: {
|
|
3409
3409
|
type: "preprocess",
|
|
3410
3410
|
transform: e
|
|
3411
3411
|
},
|
|
3412
|
-
typeName:
|
|
3412
|
+
typeName: Y.ZodEffects,
|
|
3413
3413
|
...C(n)
|
|
3414
3414
|
});
|
|
3415
|
-
var
|
|
3415
|
+
var W = class extends w {
|
|
3416
3416
|
_parse(e) {
|
|
3417
3417
|
return this._getType(e) === u.undefined ? v(void 0) : this._def.innerType._parse(e);
|
|
3418
3418
|
}
|
|
@@ -3420,12 +3420,12 @@ var U = class extends w {
|
|
|
3420
3420
|
return this._def.innerType;
|
|
3421
3421
|
}
|
|
3422
3422
|
};
|
|
3423
|
-
|
|
3423
|
+
W.create = (e, t) => new W({
|
|
3424
3424
|
innerType: e,
|
|
3425
|
-
typeName:
|
|
3425
|
+
typeName: Y.ZodOptional,
|
|
3426
3426
|
...C(t)
|
|
3427
3427
|
});
|
|
3428
|
-
var
|
|
3428
|
+
var G = class extends w {
|
|
3429
3429
|
_parse(e) {
|
|
3430
3430
|
return this._getType(e) === u.null ? v(null) : this._def.innerType._parse(e);
|
|
3431
3431
|
}
|
|
@@ -3433,12 +3433,12 @@ var W = class extends w {
|
|
|
3433
3433
|
return this._def.innerType;
|
|
3434
3434
|
}
|
|
3435
3435
|
};
|
|
3436
|
-
|
|
3436
|
+
G.create = (e, t) => new G({
|
|
3437
3437
|
innerType: e,
|
|
3438
|
-
typeName:
|
|
3438
|
+
typeName: Y.ZodNullable,
|
|
3439
3439
|
...C(t)
|
|
3440
3440
|
});
|
|
3441
|
-
var
|
|
3441
|
+
var K = class extends w {
|
|
3442
3442
|
_parse(e) {
|
|
3443
3443
|
let { ctx: t } = this._processInputParams(e), n = t.data;
|
|
3444
3444
|
return t.parsedType === u.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
|
|
@@ -3451,13 +3451,13 @@ var G = class extends w {
|
|
|
3451
3451
|
return this._def.innerType;
|
|
3452
3452
|
}
|
|
3453
3453
|
};
|
|
3454
|
-
|
|
3454
|
+
K.create = (e, t) => new K({
|
|
3455
3455
|
innerType: e,
|
|
3456
|
-
typeName:
|
|
3456
|
+
typeName: Y.ZodDefault,
|
|
3457
3457
|
defaultValue: typeof t.default == "function" ? t.default : () => t.default,
|
|
3458
3458
|
...C(t)
|
|
3459
3459
|
});
|
|
3460
|
-
var
|
|
3460
|
+
var q = class extends w {
|
|
3461
3461
|
_parse(e) {
|
|
3462
3462
|
let { ctx: t } = this._processInputParams(e), n = {
|
|
3463
3463
|
...t,
|
|
@@ -3492,13 +3492,13 @@ var K = class extends w {
|
|
|
3492
3492
|
return this._def.innerType;
|
|
3493
3493
|
}
|
|
3494
3494
|
};
|
|
3495
|
-
|
|
3495
|
+
q.create = (e, t) => new q({
|
|
3496
3496
|
innerType: e,
|
|
3497
|
-
typeName:
|
|
3497
|
+
typeName: Y.ZodCatch,
|
|
3498
3498
|
catchValue: typeof t.catch == "function" ? t.catch : () => t.catch,
|
|
3499
3499
|
...C(t)
|
|
3500
3500
|
});
|
|
3501
|
-
var
|
|
3501
|
+
var st = class extends w {
|
|
3502
3502
|
_parse(e) {
|
|
3503
3503
|
if (this._getType(e) !== u.nan) {
|
|
3504
3504
|
let t = this._getOrReturnCtx(e);
|
|
@@ -3514,11 +3514,11 @@ var ct = class extends w {
|
|
|
3514
3514
|
};
|
|
3515
3515
|
}
|
|
3516
3516
|
};
|
|
3517
|
-
|
|
3518
|
-
typeName:
|
|
3517
|
+
st.create = (e) => new st({
|
|
3518
|
+
typeName: Y.ZodNaN,
|
|
3519
3519
|
...C(e)
|
|
3520
3520
|
});
|
|
3521
|
-
var
|
|
3521
|
+
var ct = class extends w {
|
|
3522
3522
|
_parse(e) {
|
|
3523
3523
|
let { ctx: t } = this._processInputParams(e), n = t.data;
|
|
3524
3524
|
return this._def.type._parse({
|
|
@@ -3530,7 +3530,7 @@ var lt = class extends w {
|
|
|
3530
3530
|
unwrap() {
|
|
3531
3531
|
return this._def.type;
|
|
3532
3532
|
}
|
|
3533
|
-
},
|
|
3533
|
+
}, lt = class e extends w {
|
|
3534
3534
|
_parse(e) {
|
|
3535
3535
|
let { status: t, ctx: n } = this._processInputParams(e);
|
|
3536
3536
|
if (n.common.async) return (async () => {
|
|
@@ -3565,10 +3565,10 @@ var lt = class extends w {
|
|
|
3565
3565
|
return new e({
|
|
3566
3566
|
in: t,
|
|
3567
3567
|
out: n,
|
|
3568
|
-
typeName:
|
|
3568
|
+
typeName: Y.ZodPipeline
|
|
3569
3569
|
});
|
|
3570
3570
|
}
|
|
3571
|
-
},
|
|
3571
|
+
}, J = class extends w {
|
|
3572
3572
|
_parse(e) {
|
|
3573
3573
|
let t = this._def.innerType._parse(e), n = (e) => (y(e) && (e.value = Object.freeze(e.value)), e);
|
|
3574
3574
|
return b(t) ? t.then((e) => n(e)) : n(t);
|
|
@@ -3577,29 +3577,44 @@ var lt = class extends w {
|
|
|
3577
3577
|
return this._def.innerType;
|
|
3578
3578
|
}
|
|
3579
3579
|
};
|
|
3580
|
-
|
|
3580
|
+
J.create = (e, t) => new J({
|
|
3581
3581
|
innerType: e,
|
|
3582
|
-
typeName:
|
|
3582
|
+
typeName: Y.ZodReadonly,
|
|
3583
3583
|
...C(t)
|
|
3584
|
-
}),
|
|
3585
|
-
var
|
|
3584
|
+
}), N.lazycreate;
|
|
3585
|
+
var Y;
|
|
3586
3586
|
(function(e) {
|
|
3587
3587
|
e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
|
|
3588
|
-
})(
|
|
3589
|
-
var
|
|
3590
|
-
|
|
3591
|
-
var
|
|
3592
|
-
|
|
3593
|
-
var
|
|
3594
|
-
|
|
3595
|
-
var
|
|
3596
|
-
|
|
3597
|
-
|
|
3588
|
+
})(Y ||= {});
|
|
3589
|
+
var X = T.create, Z = Je.create;
|
|
3590
|
+
st.create, Ye.create;
|
|
3591
|
+
var ut = E.create;
|
|
3592
|
+
Xe.create, Ze.create, D.create, O.create, Qe.create, k.create, A.create, $e.create;
|
|
3593
|
+
var dt = j.create, Q = N.create;
|
|
3594
|
+
N.strictCreate, P.create, et.create, I.create, L.create, nt.create, rt.create, it.create, at.create, R.create, z.create;
|
|
3595
|
+
var $ = B.create;
|
|
3596
|
+
V.create, H.create, U.create, W.create, G.create, U.createWithPreprocess, lt.create;
|
|
3597
|
+
//#endregion
|
|
3598
|
+
//#region ../mcp/dist/tools/definitions.js
|
|
3599
|
+
var ft = class extends Error {
|
|
3600
|
+
constructor(e, t) {
|
|
3601
|
+
super(`Invalid arguments for tool "${e}": ${t}`), this.name = "ToolArgumentError";
|
|
3602
|
+
}
|
|
3603
|
+
};
|
|
3604
|
+
function pt(e, t) {
|
|
3605
|
+
let n = e.zodSchema.safeParse(t ?? {});
|
|
3606
|
+
if (!n.success) {
|
|
3607
|
+
let t = n.error.issues.map((e) => `${e.path.join(".") || "(root)"}: ${e.message}`).join("; ");
|
|
3608
|
+
throw new ft(e.name, t);
|
|
3609
|
+
}
|
|
3610
|
+
return n.data;
|
|
3611
|
+
}
|
|
3612
|
+
var mt = [
|
|
3598
3613
|
{
|
|
3599
3614
|
name: "list_projects",
|
|
3600
3615
|
title: "List Projects",
|
|
3601
3616
|
description: "Retrieve all projects in the workspace.",
|
|
3602
|
-
zodSchema:
|
|
3617
|
+
zodSchema: Q({}),
|
|
3603
3618
|
inputSchema: {
|
|
3604
3619
|
type: "object",
|
|
3605
3620
|
properties: {},
|
|
@@ -3612,7 +3627,7 @@ var $ = [
|
|
|
3612
3627
|
name: "get_project",
|
|
3613
3628
|
title: "Get Project",
|
|
3614
3629
|
description: "Get details of a specific project by its ID.",
|
|
3615
|
-
zodSchema:
|
|
3630
|
+
zodSchema: Q({ id: X().describe("The project ID") }),
|
|
3616
3631
|
inputSchema: {
|
|
3617
3632
|
type: "object",
|
|
3618
3633
|
properties: { id: {
|
|
@@ -3629,10 +3644,10 @@ var $ = [
|
|
|
3629
3644
|
name: "create_project",
|
|
3630
3645
|
title: "Create Project",
|
|
3631
3646
|
description: "Create a new project workspace.",
|
|
3632
|
-
zodSchema:
|
|
3633
|
-
name:
|
|
3634
|
-
description:
|
|
3635
|
-
key:
|
|
3647
|
+
zodSchema: Q({
|
|
3648
|
+
name: X().describe("Name of the project"),
|
|
3649
|
+
description: X().optional().describe("Description of the project"),
|
|
3650
|
+
key: X().optional().describe("Short project key/prefix (e.g. \"PROJ\")")
|
|
3636
3651
|
}),
|
|
3637
3652
|
inputSchema: {
|
|
3638
3653
|
type: "object",
|
|
@@ -3659,17 +3674,17 @@ var $ = [
|
|
|
3659
3674
|
name: "list_tasks",
|
|
3660
3675
|
title: "List Tasks",
|
|
3661
3676
|
description: "List tasks, optionally filtered by project, status, priority, or assignee.",
|
|
3662
|
-
zodSchema:
|
|
3663
|
-
projectId:
|
|
3664
|
-
status:
|
|
3665
|
-
priority:
|
|
3677
|
+
zodSchema: Q({
|
|
3678
|
+
projectId: X().optional().describe("Filter by project ID"),
|
|
3679
|
+
status: X().optional().describe("Filter by task status key"),
|
|
3680
|
+
priority: $([
|
|
3666
3681
|
"urgent",
|
|
3667
3682
|
"high",
|
|
3668
3683
|
"medium",
|
|
3669
3684
|
"low",
|
|
3670
3685
|
"none"
|
|
3671
3686
|
]).optional().describe("Filter by priority"),
|
|
3672
|
-
assigneeId:
|
|
3687
|
+
assigneeId: X().optional().describe("Filter by assignee ID")
|
|
3673
3688
|
}),
|
|
3674
3689
|
inputSchema: {
|
|
3675
3690
|
type: "object",
|
|
@@ -3710,7 +3725,7 @@ var $ = [
|
|
|
3710
3725
|
name: "get_task",
|
|
3711
3726
|
title: "Get Task",
|
|
3712
3727
|
description: "Get task details by ID.",
|
|
3713
|
-
zodSchema:
|
|
3728
|
+
zodSchema: Q({ id: X().describe("The task ID") }),
|
|
3714
3729
|
inputSchema: {
|
|
3715
3730
|
type: "object",
|
|
3716
3731
|
properties: { id: {
|
|
@@ -3727,24 +3742,24 @@ var $ = [
|
|
|
3727
3742
|
name: "create_task",
|
|
3728
3743
|
title: "Create Task",
|
|
3729
3744
|
description: "Create a new task within a project.",
|
|
3730
|
-
zodSchema:
|
|
3731
|
-
projectId:
|
|
3732
|
-
title:
|
|
3733
|
-
description:
|
|
3734
|
-
status:
|
|
3735
|
-
priority:
|
|
3745
|
+
zodSchema: Q({
|
|
3746
|
+
projectId: X().optional().describe("Project ID (inferred from active view in browser if omitted)"),
|
|
3747
|
+
title: X().describe("Title of the task"),
|
|
3748
|
+
description: X().optional().describe("Detailed description / markdown"),
|
|
3749
|
+
status: X().optional().describe("Status (defaults to \"todo\" or first workflow status)"),
|
|
3750
|
+
priority: $([
|
|
3736
3751
|
"urgent",
|
|
3737
3752
|
"high",
|
|
3738
3753
|
"medium",
|
|
3739
3754
|
"low",
|
|
3740
3755
|
"none"
|
|
3741
3756
|
]).optional().default("none").describe("Task priority"),
|
|
3742
|
-
assigneeId:
|
|
3743
|
-
dueDate:
|
|
3744
|
-
tags:
|
|
3745
|
-
estimatedHours:
|
|
3746
|
-
isBlocked:
|
|
3747
|
-
blockedReason:
|
|
3757
|
+
assigneeId: X().optional().describe("User ID to assign task to"),
|
|
3758
|
+
dueDate: X().optional().describe("Due date (ISO string)"),
|
|
3759
|
+
tags: dt(X()).optional().describe("Tags for categorization"),
|
|
3760
|
+
estimatedHours: Z().optional().describe("Estimated hours to complete"),
|
|
3761
|
+
isBlocked: ut().optional().describe("Whether the task is blocked"),
|
|
3762
|
+
blockedReason: X().optional().describe("Reason why the task is blocked")
|
|
3748
3763
|
}),
|
|
3749
3764
|
inputSchema: {
|
|
3750
3765
|
type: "object",
|
|
@@ -3823,25 +3838,25 @@ var $ = [
|
|
|
3823
3838
|
name: "update_task",
|
|
3824
3839
|
title: "Update Task",
|
|
3825
3840
|
description: "Update fields of an existing task (e.g. title, status, priority, assignee).",
|
|
3826
|
-
zodSchema:
|
|
3827
|
-
id:
|
|
3828
|
-
title:
|
|
3829
|
-
description:
|
|
3830
|
-
status:
|
|
3831
|
-
priority:
|
|
3841
|
+
zodSchema: Q({
|
|
3842
|
+
id: X().describe("The task ID"),
|
|
3843
|
+
title: X().optional(),
|
|
3844
|
+
description: X().optional(),
|
|
3845
|
+
status: X().optional(),
|
|
3846
|
+
priority: $([
|
|
3832
3847
|
"urgent",
|
|
3833
3848
|
"high",
|
|
3834
3849
|
"medium",
|
|
3835
3850
|
"low",
|
|
3836
3851
|
"none"
|
|
3837
3852
|
]).optional(),
|
|
3838
|
-
assigneeId:
|
|
3839
|
-
dueDate:
|
|
3840
|
-
tags:
|
|
3841
|
-
estimatedHours:
|
|
3842
|
-
loggedHours:
|
|
3843
|
-
isBlocked:
|
|
3844
|
-
blockedReason:
|
|
3853
|
+
assigneeId: X().optional(),
|
|
3854
|
+
dueDate: X().optional(),
|
|
3855
|
+
tags: dt(X()).optional(),
|
|
3856
|
+
estimatedHours: Z().optional(),
|
|
3857
|
+
loggedHours: Z().optional(),
|
|
3858
|
+
isBlocked: ut().optional(),
|
|
3859
|
+
blockedReason: X().optional()
|
|
3845
3860
|
}),
|
|
3846
3861
|
inputSchema: {
|
|
3847
3862
|
type: "object",
|
|
@@ -3892,7 +3907,7 @@ var $ = [
|
|
|
3892
3907
|
name: "delete_task",
|
|
3893
3908
|
title: "Delete Task",
|
|
3894
3909
|
description: "Delete a task by ID.",
|
|
3895
|
-
zodSchema:
|
|
3910
|
+
zodSchema: Q({ id: X().describe("The task ID to delete") }),
|
|
3896
3911
|
inputSchema: {
|
|
3897
3912
|
type: "object",
|
|
3898
3913
|
properties: { id: {
|
|
@@ -3909,7 +3924,7 @@ var $ = [
|
|
|
3909
3924
|
name: "list_deliverables",
|
|
3910
3925
|
title: "List Deliverables",
|
|
3911
3926
|
description: "List deliverables/milestones for a project.",
|
|
3912
|
-
zodSchema:
|
|
3927
|
+
zodSchema: Q({ projectId: X().optional().describe("Project ID") }),
|
|
3913
3928
|
inputSchema: {
|
|
3914
3929
|
type: "object",
|
|
3915
3930
|
properties: { projectId: {
|
|
@@ -3929,12 +3944,12 @@ var $ = [
|
|
|
3929
3944
|
name: "create_deliverable",
|
|
3930
3945
|
title: "Create Deliverable",
|
|
3931
3946
|
description: "Create a milestone deliverable within a project.",
|
|
3932
|
-
zodSchema:
|
|
3933
|
-
projectId:
|
|
3934
|
-
title:
|
|
3935
|
-
description:
|
|
3936
|
-
dueDate:
|
|
3937
|
-
taskIds:
|
|
3947
|
+
zodSchema: Q({
|
|
3948
|
+
projectId: X().optional(),
|
|
3949
|
+
title: X(),
|
|
3950
|
+
description: X().optional(),
|
|
3951
|
+
dueDate: X().optional(),
|
|
3952
|
+
taskIds: dt(X()).optional()
|
|
3938
3953
|
}),
|
|
3939
3954
|
inputSchema: {
|
|
3940
3955
|
type: "object",
|
|
@@ -3965,7 +3980,7 @@ var $ = [
|
|
|
3965
3980
|
name: "list_comments",
|
|
3966
3981
|
title: "List Comments",
|
|
3967
3982
|
description: "List comments associated with a task.",
|
|
3968
|
-
zodSchema:
|
|
3983
|
+
zodSchema: Q({ taskId: X().describe("The task ID") }),
|
|
3969
3984
|
inputSchema: {
|
|
3970
3985
|
type: "object",
|
|
3971
3986
|
properties: { taskId: {
|
|
@@ -3982,10 +3997,10 @@ var $ = [
|
|
|
3982
3997
|
name: "add_comment",
|
|
3983
3998
|
title: "Add Comment",
|
|
3984
3999
|
description: "Add a comment to a task.",
|
|
3985
|
-
zodSchema:
|
|
3986
|
-
taskId:
|
|
3987
|
-
content:
|
|
3988
|
-
authorId:
|
|
4000
|
+
zodSchema: Q({
|
|
4001
|
+
taskId: X().describe("The task ID"),
|
|
4002
|
+
content: X().describe("Comment body/markdown"),
|
|
4003
|
+
authorId: X().describe("Author user ID")
|
|
3989
4004
|
}),
|
|
3990
4005
|
inputSchema: {
|
|
3991
4006
|
type: "object",
|
|
@@ -4020,7 +4035,7 @@ var $ = [
|
|
|
4020
4035
|
name: "calculate_critical_path",
|
|
4021
4036
|
title: "Calculate Critical Path",
|
|
4022
4037
|
description: "Calculate Critical Path Method (CPM) schedule, early/late start and finish, total slack, and critical bottlenecks for a project.",
|
|
4023
|
-
zodSchema:
|
|
4038
|
+
zodSchema: Q({ projectId: X().optional().describe("Project ID (falls back to ambient context if omitted)") }),
|
|
4024
4039
|
inputSchema: {
|
|
4025
4040
|
type: "object",
|
|
4026
4041
|
properties: { projectId: {
|
|
@@ -4040,16 +4055,16 @@ var $ = [
|
|
|
4040
4055
|
name: "get_timeline_ladder",
|
|
4041
4056
|
title: "Get Timeline Ladder of Abstraction",
|
|
4042
4057
|
description: "Retrieve Ladder of Abstraction for a project timeline across macro phase envelopes, standard Gantt tasks & CPM, and concrete deliverables/time/attachments.",
|
|
4043
|
-
zodSchema:
|
|
4044
|
-
projectId:
|
|
4045
|
-
level:
|
|
4058
|
+
zodSchema: Q({
|
|
4059
|
+
projectId: X().optional().describe("Project ID (falls back to ambient context if omitted)"),
|
|
4060
|
+
level: $([
|
|
4046
4061
|
"macro",
|
|
4047
4062
|
"standard",
|
|
4048
4063
|
"concrete",
|
|
4049
4064
|
"all"
|
|
4050
4065
|
]).optional().describe("Abstraction level (macro, standard, concrete, or all)"),
|
|
4051
|
-
containerId:
|
|
4052
|
-
iterationId:
|
|
4066
|
+
containerId: X().optional().describe("Optional container ID filter"),
|
|
4067
|
+
iterationId: X().optional().describe("Optional iteration/sprint ID filter")
|
|
4053
4068
|
}),
|
|
4054
4069
|
inputSchema: {
|
|
4055
4070
|
type: "object",
|
|
@@ -4094,7 +4109,7 @@ var $ = [
|
|
|
4094
4109
|
name: "get_task_ladder",
|
|
4095
4110
|
title: "Get Task Ladder View",
|
|
4096
4111
|
description: "Retrieve multi-scale ladder view for a single task, connecting its macro phase, standard CPM timeline position, and concrete work evidence.",
|
|
4097
|
-
zodSchema:
|
|
4112
|
+
zodSchema: Q({ taskId: X().describe("The task ID") }),
|
|
4098
4113
|
inputSchema: {
|
|
4099
4114
|
type: "object",
|
|
4100
4115
|
properties: { taskId: {
|
|
@@ -4111,7 +4126,7 @@ var $ = [
|
|
|
4111
4126
|
name: "get_task_metrics",
|
|
4112
4127
|
title: "Get Task Metrics",
|
|
4113
4128
|
description: "Retrieve multi-dimensional task metrics including inferred actuals, active working duration, effort/duration/schedule variances, progress inference, and Earned Value Management (EVM) metrics.",
|
|
4114
|
-
zodSchema:
|
|
4129
|
+
zodSchema: Q({ taskId: X().describe("The task ID") }),
|
|
4115
4130
|
inputSchema: {
|
|
4116
4131
|
type: "object",
|
|
4117
4132
|
properties: { taskId: {
|
|
@@ -4128,7 +4143,7 @@ var $ = [
|
|
|
4128
4143
|
name: "get_task_progress_history",
|
|
4129
4144
|
title: "Get Task Progress History",
|
|
4130
4145
|
description: "Retrieve time-series progress data points and curve shape classification (linear, s_curve, early_surge, late_rush, stalled) for a task.",
|
|
4131
|
-
zodSchema:
|
|
4146
|
+
zodSchema: Q({ taskId: X().describe("The task ID") }),
|
|
4132
4147
|
inputSchema: {
|
|
4133
4148
|
type: "object",
|
|
4134
4149
|
properties: { taskId: {
|
|
@@ -4145,29 +4160,29 @@ var $ = [
|
|
|
4145
4160
|
name: "get_workload_distribution",
|
|
4146
4161
|
title: "Get Workload Distribution",
|
|
4147
4162
|
description: "Retrieve time-series workload and capacity distribution suitable for streamgraphs, stacked charts, and team capacity planning.",
|
|
4148
|
-
zodSchema:
|
|
4149
|
-
projectId:
|
|
4150
|
-
startDate:
|
|
4151
|
-
endDate:
|
|
4152
|
-
interval:
|
|
4163
|
+
zodSchema: Q({
|
|
4164
|
+
projectId: X().optional().describe("Project ID (optional, defaults to workspace-wide or ambient project)"),
|
|
4165
|
+
startDate: X().optional().describe("Start date ISO (YYYY-MM-DD)"),
|
|
4166
|
+
endDate: X().optional().describe("End date ISO (YYYY-MM-DD)"),
|
|
4167
|
+
interval: $([
|
|
4153
4168
|
"day",
|
|
4154
4169
|
"week",
|
|
4155
4170
|
"month"
|
|
4156
4171
|
]).optional().describe("Bucket interval (day, week, month)"),
|
|
4157
|
-
groupBy:
|
|
4172
|
+
groupBy: $([
|
|
4158
4173
|
"assignee",
|
|
4159
4174
|
"team",
|
|
4160
4175
|
"taskType",
|
|
4161
4176
|
"priority",
|
|
4162
4177
|
"status"
|
|
4163
4178
|
]).optional().describe("Dimension to segment by"),
|
|
4164
|
-
metric:
|
|
4179
|
+
metric: $([
|
|
4165
4180
|
"scheduled",
|
|
4166
4181
|
"logged",
|
|
4167
4182
|
"remaining",
|
|
4168
4183
|
"blended"
|
|
4169
4184
|
]).optional().describe("Effort metric mode"),
|
|
4170
|
-
defaultWeeklyCapacityHours:
|
|
4185
|
+
defaultWeeklyCapacityHours: Z().optional().describe("Default weekly capacity hours per person (default 40)")
|
|
4171
4186
|
}),
|
|
4172
4187
|
inputSchema: {
|
|
4173
4188
|
type: "object",
|
|
@@ -4235,10 +4250,10 @@ var $ = [
|
|
|
4235
4250
|
}
|
|
4236
4251
|
}
|
|
4237
4252
|
];
|
|
4238
|
-
new Map(
|
|
4253
|
+
new Map(mt.map((e) => [e.name, e]));
|
|
4239
4254
|
//#endregion
|
|
4240
4255
|
//#region ../mcp/dist/web/index.js
|
|
4241
|
-
function
|
|
4256
|
+
function ht(e = typeof document < "u" ? document : null) {
|
|
4242
4257
|
if (!e) return null;
|
|
4243
4258
|
if (!e.modelContext) {
|
|
4244
4259
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -4263,10 +4278,10 @@ function pt(e = typeof document < "u" ? document : null) {
|
|
|
4263
4278
|
}
|
|
4264
4279
|
return e.modelContext;
|
|
4265
4280
|
}
|
|
4266
|
-
function
|
|
4281
|
+
function gt(e) {
|
|
4267
4282
|
let t = e.document ?? (typeof document < "u" ? document : null), n = e.navigator ?? (typeof navigator < "u" ? navigator : null), r = e.window ?? (typeof window < "u" ? window : null), i;
|
|
4268
|
-
t?.modelContext ? i = t.modelContext : n?.modelContext ? i = n.modelContext : t && (i =
|
|
4269
|
-
let a = e.tools ?
|
|
4283
|
+
t?.modelContext ? i = t.modelContext : n?.modelContext ? i = n.modelContext : t && (i = ht(t) ?? void 0);
|
|
4284
|
+
let a = e.tools ? mt.filter((t) => e.tools.includes(t.name)) : mt, o = [], s = new AbortController();
|
|
4270
4285
|
e.signal && e.signal.addEventListener("abort", () => s.abort(), { once: !0 });
|
|
4271
4286
|
for (let t of a) {
|
|
4272
4287
|
let n = {
|
|
@@ -4276,7 +4291,7 @@ function mt(e) {
|
|
|
4276
4291
|
inputSchema: t.inputSchema,
|
|
4277
4292
|
annotations: t.annotations,
|
|
4278
4293
|
execute: async (n) => {
|
|
4279
|
-
let r = e.projectId ? { projectId: e.projectId } : void 0, i = await t.execute(n, e.client, r);
|
|
4294
|
+
let r = e.projectId ? { projectId: e.projectId } : void 0, i = await t.execute(pt(t, n), e.client, r);
|
|
4280
4295
|
return e.onToolExecuted?.(t.name, n, i), i;
|
|
4281
4296
|
}
|
|
4282
4297
|
};
|
|
@@ -4304,7 +4319,7 @@ function mt(e) {
|
|
|
4304
4319
|
}
|
|
4305
4320
|
//#endregion
|
|
4306
4321
|
//#region src/webmcp-state.svelte.ts
|
|
4307
|
-
var
|
|
4322
|
+
var _t = class {
|
|
4308
4323
|
client;
|
|
4309
4324
|
options;
|
|
4310
4325
|
#e = t.state(!1);
|
|
@@ -4344,7 +4359,7 @@ var ht = class {
|
|
|
4344
4359
|
if (!this.registered) {
|
|
4345
4360
|
this.error = null;
|
|
4346
4361
|
try {
|
|
4347
|
-
this.abortController = new AbortController(), this.handle =
|
|
4362
|
+
this.abortController = new AbortController(), this.handle = gt({
|
|
4348
4363
|
client: this.client,
|
|
4349
4364
|
projectId: this.activeProjectId,
|
|
4350
4365
|
tools: this.options.tools,
|
|
@@ -4368,12 +4383,12 @@ var ht = class {
|
|
|
4368
4383
|
this.activeProjectId !== e && (this.activeProjectId = e, this.registered && (this.unregister(), this.register()));
|
|
4369
4384
|
}
|
|
4370
4385
|
};
|
|
4371
|
-
function
|
|
4372
|
-
return new
|
|
4386
|
+
function vt(e, t) {
|
|
4387
|
+
return new _t(e, t);
|
|
4373
4388
|
}
|
|
4374
4389
|
//#endregion
|
|
4375
4390
|
//#region src/critical-path-state.svelte.ts
|
|
4376
|
-
var
|
|
4391
|
+
var yt = class {
|
|
4377
4392
|
client;
|
|
4378
4393
|
projectId;
|
|
4379
4394
|
#e = t.state(null);
|
|
@@ -4411,12 +4426,12 @@ var _t = class {
|
|
|
4411
4426
|
}
|
|
4412
4427
|
}
|
|
4413
4428
|
};
|
|
4414
|
-
function
|
|
4415
|
-
return new
|
|
4429
|
+
function bt(e, t) {
|
|
4430
|
+
return new yt(e, t);
|
|
4416
4431
|
}
|
|
4417
4432
|
//#endregion
|
|
4418
4433
|
//#region src/timeline-ladder-state.svelte.ts
|
|
4419
|
-
var
|
|
4434
|
+
var xt = class {
|
|
4420
4435
|
client;
|
|
4421
4436
|
projectId;
|
|
4422
4437
|
#e = t.state(null);
|
|
@@ -4488,12 +4503,12 @@ var yt = class {
|
|
|
4488
4503
|
}
|
|
4489
4504
|
}
|
|
4490
4505
|
};
|
|
4491
|
-
function
|
|
4492
|
-
return new
|
|
4506
|
+
function St(e, t, n) {
|
|
4507
|
+
return new xt(e, t, n);
|
|
4493
4508
|
}
|
|
4494
4509
|
//#endregion
|
|
4495
4510
|
//#region src/task-metrics-state.svelte.ts
|
|
4496
|
-
var
|
|
4511
|
+
var Ct = class {
|
|
4497
4512
|
client;
|
|
4498
4513
|
taskId;
|
|
4499
4514
|
#e = t.state(null);
|
|
@@ -4600,12 +4615,12 @@ var xt = class {
|
|
|
4600
4615
|
}
|
|
4601
4616
|
}
|
|
4602
4617
|
};
|
|
4603
|
-
function
|
|
4604
|
-
return new
|
|
4618
|
+
function wt(e, t) {
|
|
4619
|
+
return new Ct(e, t);
|
|
4605
4620
|
}
|
|
4606
4621
|
//#endregion
|
|
4607
4622
|
//#region src/workload-state.svelte.ts
|
|
4608
|
-
var
|
|
4623
|
+
var Tt = class {
|
|
4609
4624
|
client;
|
|
4610
4625
|
projectId;
|
|
4611
4626
|
initialOptions;
|
|
@@ -4722,13 +4737,13 @@ var Ct = class {
|
|
|
4722
4737
|
}
|
|
4723
4738
|
}
|
|
4724
4739
|
};
|
|
4725
|
-
function
|
|
4726
|
-
return new
|
|
4740
|
+
function Et(e, t, n) {
|
|
4741
|
+
return new Tt(e, t, n);
|
|
4727
4742
|
}
|
|
4728
4743
|
//#endregion
|
|
4729
4744
|
//#region src/index.ts
|
|
4730
|
-
function
|
|
4745
|
+
function Dt(t) {
|
|
4731
4746
|
return new e(t);
|
|
4732
4747
|
}
|
|
4733
4748
|
//#endregion
|
|
4734
|
-
export { re as AttachmentState, te as CommentState,
|
|
4749
|
+
export { re as AttachmentState, te as CommentState, yt as CriticalPathState, se as DeliverableState, le as DeliverableSummaryState, de as KanbanState, i as ProjectState, ae as TaskActivityState, Ct as TaskMetricsState, o as TaskState, pe as TaskTransitionsState, xt as TimelineLadderState, _t as WebMcpState, c as WorkflowState, Tt as WorkloadState, ie as createAttachmentState, ne as createCommentState, Dt as createCriticalPathClient, bt as createCriticalPathState, ce as createDeliverableState, ue as createDeliverableSummaryState, fe as createKanbanState, a as createProjectState, oe as createTaskActivityState, wt as createTaskMetricsState, s as createTaskState, me as createTaskTransitionsState, St as createTimelineLadderState, vt as createWebMcpState, ee as createWorkflowState, Et as createWorkloadState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@critical-path/svelte",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "Svelte 5 Runes state and reactive integrations for Critical Path headless project management framework",
|
|
5
5
|
"author": "Jack James",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@critical-path/client": "0.14.
|
|
22
|
-
"@critical-path/core": "0.
|
|
23
|
-
"@critical-path/mcp": "0.
|
|
21
|
+
"@critical-path/client": "0.14.8",
|
|
22
|
+
"@critical-path/core": "0.23.0",
|
|
23
|
+
"@critical-path/mcp": "0.8.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"svelte": "^5.0.0"
|