@critical-path/svelte 0.17.4 → 0.17.5
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 +26 -0
- package/dist/index.js +170 -156
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @critical-path/svelte
|
|
2
2
|
|
|
3
|
+
## 0.17.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cdb300a: Task filtering and pagination.
|
|
8
|
+
|
|
9
|
+
**@critical-path/core**
|
|
10
|
+
- New `engine.queryTasks(query)` and `engine.queryActivities(query)` return `Page<T>` (`{ items, nextCursor }`).
|
|
11
|
+
- Tasks are ordered oldest first, activities newest first, using keyset cursors on `createdAt` then `id`.
|
|
12
|
+
- Task filters: `status[]`, `priority[]`, `assigneeId` (also matches `assignees`), `iterationId`, `deliverableId`, `containerId`, `parentId` (`null` means top-level), `projectIds`.
|
|
13
|
+
- Results are limited to projects the actor can read.
|
|
14
|
+
- **BREAKING (storage adapters):** `queryTasks` and `queryActivities` are required. `SQLiteStore` filters and pages in SQL and adds indexes for tasks, activities, comments and dependencies. Helpers (`paginate`, `matchesTaskQuery`, cursors, `DEFAULT_PAGE_SIZE` / `MAX_PAGE_SIZE`) are exported for custom adapters.
|
|
15
|
+
|
|
16
|
+
**@critical-path/server**
|
|
17
|
+
- **BREAKING:** `GET /tasks` and `GET /activities` are paginated (default 100, max 500) and return `nextCursor`. `GET /tasks` accepts the filters above as query parameters. Unknown parameters return `400`.
|
|
18
|
+
|
|
19
|
+
**@critical-path/client**
|
|
20
|
+
- `getTasks` and `getActivities` follow pagination and still return everything. New `queryTasks` and `queryActivities` return single pages.
|
|
21
|
+
|
|
22
|
+
**@critical-path/mcp**
|
|
23
|
+
- **BREAKING:** `list_tasks` returns `{ tasks, nextCursor }` and accepts `iterationId`, `limit` and `cursor`. It now filters in the store instead of loading every task.
|
|
24
|
+
- Updated dependencies [cdb300a]
|
|
25
|
+
- @critical-path/core@0.30.0
|
|
26
|
+
- @critical-path/client@0.18.0
|
|
27
|
+
- @critical-path/mcp@0.11.0
|
|
28
|
+
|
|
3
29
|
## 0.17.4
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1323,7 +1323,7 @@ var C = class {
|
|
|
1323
1323
|
_refinement(e) {
|
|
1324
1324
|
return new R({
|
|
1325
1325
|
schema: this,
|
|
1326
|
-
typeName:
|
|
1326
|
+
typeName: H.ZodEffects,
|
|
1327
1327
|
effect: {
|
|
1328
1328
|
type: "refinement",
|
|
1329
1329
|
refinement: e
|
|
@@ -1365,7 +1365,7 @@ var C = class {
|
|
|
1365
1365
|
return new R({
|
|
1366
1366
|
...S(this._def),
|
|
1367
1367
|
schema: this,
|
|
1368
|
-
typeName:
|
|
1368
|
+
typeName: H.ZodEffects,
|
|
1369
1369
|
effect: {
|
|
1370
1370
|
type: "transform",
|
|
1371
1371
|
transform: e
|
|
@@ -1378,23 +1378,23 @@ var C = class {
|
|
|
1378
1378
|
...S(this._def),
|
|
1379
1379
|
innerType: this,
|
|
1380
1380
|
defaultValue: t,
|
|
1381
|
-
typeName:
|
|
1381
|
+
typeName: H.ZodDefault
|
|
1382
1382
|
});
|
|
1383
1383
|
}
|
|
1384
1384
|
brand() {
|
|
1385
|
-
return new
|
|
1386
|
-
typeName:
|
|
1385
|
+
return new mt({
|
|
1386
|
+
typeName: H.ZodBranded,
|
|
1387
1387
|
type: this,
|
|
1388
1388
|
...S(this._def)
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
1391
1391
|
catch(e) {
|
|
1392
1392
|
let t = typeof e == "function" ? e : () => e;
|
|
1393
|
-
return new
|
|
1393
|
+
return new ft({
|
|
1394
1394
|
...S(this._def),
|
|
1395
1395
|
innerType: this,
|
|
1396
1396
|
catchValue: t,
|
|
1397
|
-
typeName:
|
|
1397
|
+
typeName: H.ZodCatch
|
|
1398
1398
|
});
|
|
1399
1399
|
}
|
|
1400
1400
|
describe(e) {
|
|
@@ -1405,10 +1405,10 @@ var C = class {
|
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
1407
|
pipe(e) {
|
|
1408
|
-
return
|
|
1408
|
+
return ht.create(this, e);
|
|
1409
1409
|
}
|
|
1410
1410
|
readonly() {
|
|
1411
|
-
return
|
|
1411
|
+
return gt.create(this);
|
|
1412
1412
|
}
|
|
1413
1413
|
isOptional() {
|
|
1414
1414
|
return this.safeParse(void 0).success;
|
|
@@ -1857,7 +1857,7 @@ var Je = class e extends C {
|
|
|
1857
1857
|
};
|
|
1858
1858
|
Je.create = (e) => new Je({
|
|
1859
1859
|
checks: [],
|
|
1860
|
-
typeName:
|
|
1860
|
+
typeName: H.ZodString,
|
|
1861
1861
|
coerce: e?.coerce ?? !1,
|
|
1862
1862
|
...S(e)
|
|
1863
1863
|
});
|
|
@@ -2026,7 +2026,7 @@ var Xe = class e extends C {
|
|
|
2026
2026
|
};
|
|
2027
2027
|
Xe.create = (e) => new Xe({
|
|
2028
2028
|
checks: [],
|
|
2029
|
-
typeName:
|
|
2029
|
+
typeName: H.ZodNumber,
|
|
2030
2030
|
coerce: e?.coerce || !1,
|
|
2031
2031
|
...S(e)
|
|
2032
2032
|
});
|
|
@@ -2153,7 +2153,7 @@ var Ze = class e extends C {
|
|
|
2153
2153
|
};
|
|
2154
2154
|
Ze.create = (e) => new Ze({
|
|
2155
2155
|
checks: [],
|
|
2156
|
-
typeName:
|
|
2156
|
+
typeName: H.ZodBigInt,
|
|
2157
2157
|
coerce: e?.coerce ?? !1,
|
|
2158
2158
|
...S(e)
|
|
2159
2159
|
});
|
|
@@ -2171,7 +2171,7 @@ var Qe = class extends C {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
};
|
|
2173
2173
|
Qe.create = (e) => new Qe({
|
|
2174
|
-
typeName:
|
|
2174
|
+
typeName: H.ZodBoolean,
|
|
2175
2175
|
coerce: e?.coerce || !1,
|
|
2176
2176
|
...S(e)
|
|
2177
2177
|
});
|
|
@@ -2241,7 +2241,7 @@ var $e = class e extends C {
|
|
|
2241
2241
|
$e.create = (e) => new $e({
|
|
2242
2242
|
checks: [],
|
|
2243
2243
|
coerce: e?.coerce || !1,
|
|
2244
|
-
typeName:
|
|
2244
|
+
typeName: H.ZodDate,
|
|
2245
2245
|
...S(e)
|
|
2246
2246
|
});
|
|
2247
2247
|
var et = class extends C {
|
|
@@ -2258,7 +2258,7 @@ var et = class extends C {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
};
|
|
2260
2260
|
et.create = (e) => new et({
|
|
2261
|
-
typeName:
|
|
2261
|
+
typeName: H.ZodSymbol,
|
|
2262
2262
|
...S(e)
|
|
2263
2263
|
});
|
|
2264
2264
|
var w = class extends C {
|
|
@@ -2275,7 +2275,7 @@ var w = class extends C {
|
|
|
2275
2275
|
}
|
|
2276
2276
|
};
|
|
2277
2277
|
w.create = (e) => new w({
|
|
2278
|
-
typeName:
|
|
2278
|
+
typeName: H.ZodUndefined,
|
|
2279
2279
|
...S(e)
|
|
2280
2280
|
});
|
|
2281
2281
|
var tt = class extends C {
|
|
@@ -2292,7 +2292,7 @@ var tt = class extends C {
|
|
|
2292
2292
|
}
|
|
2293
2293
|
};
|
|
2294
2294
|
tt.create = (e) => new tt({
|
|
2295
|
-
typeName:
|
|
2295
|
+
typeName: H.ZodNull,
|
|
2296
2296
|
...S(e)
|
|
2297
2297
|
});
|
|
2298
2298
|
var nt = class extends C {
|
|
@@ -2304,7 +2304,7 @@ var nt = class extends C {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
};
|
|
2306
2306
|
nt.create = (e) => new nt({
|
|
2307
|
-
typeName:
|
|
2307
|
+
typeName: H.ZodAny,
|
|
2308
2308
|
...S(e)
|
|
2309
2309
|
});
|
|
2310
2310
|
var T = class extends C {
|
|
@@ -2316,7 +2316,7 @@ var T = class extends C {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
};
|
|
2318
2318
|
T.create = (e) => new T({
|
|
2319
|
-
typeName:
|
|
2319
|
+
typeName: H.ZodUnknown,
|
|
2320
2320
|
...S(e)
|
|
2321
2321
|
});
|
|
2322
2322
|
var E = class extends C {
|
|
@@ -2330,7 +2330,7 @@ var E = class extends C {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
};
|
|
2332
2332
|
E.create = (e) => new E({
|
|
2333
|
-
typeName:
|
|
2333
|
+
typeName: H.ZodNever,
|
|
2334
2334
|
...S(e)
|
|
2335
2335
|
});
|
|
2336
2336
|
var rt = class extends C {
|
|
@@ -2347,7 +2347,7 @@ var rt = class extends C {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
};
|
|
2349
2349
|
rt.create = (e) => new rt({
|
|
2350
|
-
typeName:
|
|
2350
|
+
typeName: H.ZodVoid,
|
|
2351
2351
|
...S(e)
|
|
2352
2352
|
});
|
|
2353
2353
|
var D = class e extends C {
|
|
@@ -2427,7 +2427,7 @@ D.create = (e, t) => new D({
|
|
|
2427
2427
|
minLength: null,
|
|
2428
2428
|
maxLength: null,
|
|
2429
2429
|
exactLength: null,
|
|
2430
|
-
typeName:
|
|
2430
|
+
typeName: H.ZodArray,
|
|
2431
2431
|
...S(t)
|
|
2432
2432
|
});
|
|
2433
2433
|
function O(e) {
|
|
@@ -2568,7 +2568,7 @@ var k = class e extends C {
|
|
|
2568
2568
|
...this._def.shape(),
|
|
2569
2569
|
...t._def.shape()
|
|
2570
2570
|
}),
|
|
2571
|
-
typeName:
|
|
2571
|
+
typeName: H.ZodObject
|
|
2572
2572
|
});
|
|
2573
2573
|
}
|
|
2574
2574
|
setKey(e, t) {
|
|
@@ -2631,19 +2631,19 @@ k.create = (e, t) => new k({
|
|
|
2631
2631
|
shape: () => e,
|
|
2632
2632
|
unknownKeys: "strip",
|
|
2633
2633
|
catchall: E.create(),
|
|
2634
|
-
typeName:
|
|
2634
|
+
typeName: H.ZodObject,
|
|
2635
2635
|
...S(t)
|
|
2636
2636
|
}), k.strictCreate = (e, t) => new k({
|
|
2637
2637
|
shape: () => e,
|
|
2638
2638
|
unknownKeys: "strict",
|
|
2639
2639
|
catchall: E.create(),
|
|
2640
|
-
typeName:
|
|
2640
|
+
typeName: H.ZodObject,
|
|
2641
2641
|
...S(t)
|
|
2642
2642
|
}), k.lazycreate = (e, t) => new k({
|
|
2643
2643
|
shape: e,
|
|
2644
2644
|
unknownKeys: "strip",
|
|
2645
2645
|
catchall: E.create(),
|
|
2646
|
-
typeName:
|
|
2646
|
+
typeName: H.ZodObject,
|
|
2647
2647
|
...S(t)
|
|
2648
2648
|
});
|
|
2649
2649
|
var A = class extends C {
|
|
@@ -2711,10 +2711,10 @@ var A = class extends C {
|
|
|
2711
2711
|
};
|
|
2712
2712
|
A.create = (e, t) => new A({
|
|
2713
2713
|
options: e,
|
|
2714
|
-
typeName:
|
|
2714
|
+
typeName: H.ZodUnion,
|
|
2715
2715
|
...S(t)
|
|
2716
2716
|
});
|
|
2717
|
-
var j = (e) => e instanceof N ? j(e.schema) : e instanceof R ? j(e.innerType()) : e instanceof P ? [e.value] : e instanceof F ? e.options : e instanceof I ? l.objectValues(e.enum) : e instanceof V ? j(e._def.innerType) : e instanceof w ? [void 0] : e instanceof tt ? [null] : e instanceof z ? [void 0, ...j(e.unwrap())] : e instanceof B ? [null, ...j(e.unwrap())] : e instanceof
|
|
2717
|
+
var j = (e) => e instanceof N ? j(e.schema) : e instanceof R ? j(e.innerType()) : e instanceof P ? [e.value] : e instanceof F ? e.options : e instanceof I ? l.objectValues(e.enum) : e instanceof V ? j(e._def.innerType) : e instanceof w ? [void 0] : e instanceof tt ? [null] : e instanceof z ? [void 0, ...j(e.unwrap())] : e instanceof B ? [null, ...j(e.unwrap())] : e instanceof mt || e instanceof gt ? j(e.unwrap()) : e instanceof ft ? j(e._def.innerType) : [], it = class e extends C {
|
|
2718
2718
|
_parse(e) {
|
|
2719
2719
|
let { ctx: t } = this._processInputParams(e);
|
|
2720
2720
|
if (t.parsedType !== u.object) return h(t, {
|
|
@@ -2757,7 +2757,7 @@ var j = (e) => e instanceof N ? j(e.schema) : e instanceof R ? j(e.innerType())
|
|
|
2757
2757
|
}
|
|
2758
2758
|
}
|
|
2759
2759
|
return new e({
|
|
2760
|
-
typeName:
|
|
2760
|
+
typeName: H.ZodDiscriminatedUnion,
|
|
2761
2761
|
discriminator: t,
|
|
2762
2762
|
options: n,
|
|
2763
2763
|
optionsMap: i,
|
|
@@ -2836,7 +2836,7 @@ var ot = class extends C {
|
|
|
2836
2836
|
ot.create = (e, t, n) => new ot({
|
|
2837
2837
|
left: e,
|
|
2838
2838
|
right: t,
|
|
2839
|
-
typeName:
|
|
2839
|
+
typeName: H.ZodIntersection,
|
|
2840
2840
|
...S(n)
|
|
2841
2841
|
});
|
|
2842
2842
|
var M = class e extends C {
|
|
@@ -2881,7 +2881,7 @@ M.create = (e, t) => {
|
|
|
2881
2881
|
if (!Array.isArray(e)) throw Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
2882
2882
|
return new M({
|
|
2883
2883
|
items: e,
|
|
2884
|
-
typeName:
|
|
2884
|
+
typeName: H.ZodTuple,
|
|
2885
2885
|
rest: null,
|
|
2886
2886
|
...S(t)
|
|
2887
2887
|
});
|
|
@@ -2915,12 +2915,12 @@ var st = class e extends C {
|
|
|
2915
2915
|
return n instanceof C ? new e({
|
|
2916
2916
|
keyType: t,
|
|
2917
2917
|
valueType: n,
|
|
2918
|
-
typeName:
|
|
2918
|
+
typeName: H.ZodRecord,
|
|
2919
2919
|
...S(r)
|
|
2920
2920
|
}) : new e({
|
|
2921
2921
|
keyType: Je.create(),
|
|
2922
2922
|
valueType: t,
|
|
2923
|
-
typeName:
|
|
2923
|
+
typeName: H.ZodRecord,
|
|
2924
2924
|
...S(n)
|
|
2925
2925
|
});
|
|
2926
2926
|
}
|
|
@@ -2973,7 +2973,7 @@ var st = class e extends C {
|
|
|
2973
2973
|
ct.create = (e, t, n) => new ct({
|
|
2974
2974
|
valueType: t,
|
|
2975
2975
|
keyType: e,
|
|
2976
|
-
typeName:
|
|
2976
|
+
typeName: H.ZodMap,
|
|
2977
2977
|
...S(n)
|
|
2978
2978
|
});
|
|
2979
2979
|
var lt = class e extends C {
|
|
@@ -3044,7 +3044,7 @@ lt.create = (e, t) => new lt({
|
|
|
3044
3044
|
valueType: e,
|
|
3045
3045
|
minSize: null,
|
|
3046
3046
|
maxSize: null,
|
|
3047
|
-
typeName:
|
|
3047
|
+
typeName: H.ZodSet,
|
|
3048
3048
|
...S(t)
|
|
3049
3049
|
});
|
|
3050
3050
|
var ut = class e extends C {
|
|
@@ -3141,7 +3141,7 @@ var ut = class e extends C {
|
|
|
3141
3141
|
return new e({
|
|
3142
3142
|
args: t || M.create([]).rest(T.create()),
|
|
3143
3143
|
returns: n || T.create(),
|
|
3144
|
-
typeName:
|
|
3144
|
+
typeName: H.ZodFunction,
|
|
3145
3145
|
...S(r)
|
|
3146
3146
|
});
|
|
3147
3147
|
}
|
|
@@ -3160,7 +3160,7 @@ var ut = class e extends C {
|
|
|
3160
3160
|
};
|
|
3161
3161
|
N.create = (e, t) => new N({
|
|
3162
3162
|
getter: e,
|
|
3163
|
-
typeName:
|
|
3163
|
+
typeName: H.ZodLazy,
|
|
3164
3164
|
...S(t)
|
|
3165
3165
|
});
|
|
3166
3166
|
var P = class extends C {
|
|
@@ -3184,13 +3184,13 @@ var P = class extends C {
|
|
|
3184
3184
|
};
|
|
3185
3185
|
P.create = (e, t) => new P({
|
|
3186
3186
|
value: e,
|
|
3187
|
-
typeName:
|
|
3187
|
+
typeName: H.ZodLiteral,
|
|
3188
3188
|
...S(t)
|
|
3189
3189
|
});
|
|
3190
3190
|
function dt(e, t) {
|
|
3191
3191
|
return new F({
|
|
3192
3192
|
values: e,
|
|
3193
|
-
typeName:
|
|
3193
|
+
typeName: H.ZodEnum,
|
|
3194
3194
|
...S(t)
|
|
3195
3195
|
});
|
|
3196
3196
|
}
|
|
@@ -3273,7 +3273,7 @@ var I = class extends C {
|
|
|
3273
3273
|
};
|
|
3274
3274
|
I.create = (e, t) => new I({
|
|
3275
3275
|
values: e,
|
|
3276
|
-
typeName:
|
|
3276
|
+
typeName: H.ZodNativeEnum,
|
|
3277
3277
|
...S(t)
|
|
3278
3278
|
});
|
|
3279
3279
|
var L = class extends C {
|
|
@@ -3294,7 +3294,7 @@ var L = class extends C {
|
|
|
3294
3294
|
};
|
|
3295
3295
|
L.create = (e, t) => new L({
|
|
3296
3296
|
type: e,
|
|
3297
|
-
typeName:
|
|
3297
|
+
typeName: H.ZodPromise,
|
|
3298
3298
|
...S(t)
|
|
3299
3299
|
});
|
|
3300
3300
|
var R = class extends C {
|
|
@@ -3302,7 +3302,7 @@ var R = class extends C {
|
|
|
3302
3302
|
return this._def.schema;
|
|
3303
3303
|
}
|
|
3304
3304
|
sourceType() {
|
|
3305
|
-
return this._def.schema._def.typeName ===
|
|
3305
|
+
return this._def.schema._def.typeName === H.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
3306
3306
|
}
|
|
3307
3307
|
_parse(e) {
|
|
3308
3308
|
let { status: t, ctx: n } = this._processInputParams(e), r = this._def.effect || null, i = {
|
|
@@ -3390,7 +3390,7 @@ var R = class extends C {
|
|
|
3390
3390
|
};
|
|
3391
3391
|
R.create = (e, t, n) => new R({
|
|
3392
3392
|
schema: e,
|
|
3393
|
-
typeName:
|
|
3393
|
+
typeName: H.ZodEffects,
|
|
3394
3394
|
effect: t,
|
|
3395
3395
|
...S(n)
|
|
3396
3396
|
}), R.createWithPreprocess = (e, t, n) => new R({
|
|
@@ -3399,7 +3399,7 @@ R.create = (e, t, n) => new R({
|
|
|
3399
3399
|
type: "preprocess",
|
|
3400
3400
|
transform: e
|
|
3401
3401
|
},
|
|
3402
|
-
typeName:
|
|
3402
|
+
typeName: H.ZodEffects,
|
|
3403
3403
|
...S(n)
|
|
3404
3404
|
});
|
|
3405
3405
|
var z = class extends C {
|
|
@@ -3412,7 +3412,7 @@ var z = class extends C {
|
|
|
3412
3412
|
};
|
|
3413
3413
|
z.create = (e, t) => new z({
|
|
3414
3414
|
innerType: e,
|
|
3415
|
-
typeName:
|
|
3415
|
+
typeName: H.ZodOptional,
|
|
3416
3416
|
...S(t)
|
|
3417
3417
|
});
|
|
3418
3418
|
var B = class extends C {
|
|
@@ -3425,7 +3425,7 @@ var B = class extends C {
|
|
|
3425
3425
|
};
|
|
3426
3426
|
B.create = (e, t) => new B({
|
|
3427
3427
|
innerType: e,
|
|
3428
|
-
typeName:
|
|
3428
|
+
typeName: H.ZodNullable,
|
|
3429
3429
|
...S(t)
|
|
3430
3430
|
});
|
|
3431
3431
|
var V = class extends C {
|
|
@@ -3443,11 +3443,11 @@ var V = class extends C {
|
|
|
3443
3443
|
};
|
|
3444
3444
|
V.create = (e, t) => new V({
|
|
3445
3445
|
innerType: e,
|
|
3446
|
-
typeName:
|
|
3446
|
+
typeName: H.ZodDefault,
|
|
3447
3447
|
defaultValue: typeof t.default == "function" ? t.default : () => t.default,
|
|
3448
3448
|
...S(t)
|
|
3449
3449
|
});
|
|
3450
|
-
var
|
|
3450
|
+
var ft = class extends C {
|
|
3451
3451
|
_parse(e) {
|
|
3452
3452
|
let { ctx: t } = this._processInputParams(e), n = {
|
|
3453
3453
|
...t,
|
|
@@ -3482,13 +3482,13 @@ var H = class extends C {
|
|
|
3482
3482
|
return this._def.innerType;
|
|
3483
3483
|
}
|
|
3484
3484
|
};
|
|
3485
|
-
|
|
3485
|
+
ft.create = (e, t) => new ft({
|
|
3486
3486
|
innerType: e,
|
|
3487
|
-
typeName:
|
|
3487
|
+
typeName: H.ZodCatch,
|
|
3488
3488
|
catchValue: typeof t.catch == "function" ? t.catch : () => t.catch,
|
|
3489
3489
|
...S(t)
|
|
3490
3490
|
});
|
|
3491
|
-
var
|
|
3491
|
+
var pt = class extends C {
|
|
3492
3492
|
_parse(e) {
|
|
3493
3493
|
if (this._getType(e) !== u.nan) {
|
|
3494
3494
|
let t = this._getOrReturnCtx(e);
|
|
@@ -3504,11 +3504,11 @@ var ft = class extends C {
|
|
|
3504
3504
|
};
|
|
3505
3505
|
}
|
|
3506
3506
|
};
|
|
3507
|
-
|
|
3508
|
-
typeName:
|
|
3507
|
+
pt.create = (e) => new pt({
|
|
3508
|
+
typeName: H.ZodNaN,
|
|
3509
3509
|
...S(e)
|
|
3510
3510
|
});
|
|
3511
|
-
var
|
|
3511
|
+
var mt = class extends C {
|
|
3512
3512
|
_parse(e) {
|
|
3513
3513
|
let { ctx: t } = this._processInputParams(e), n = t.data;
|
|
3514
3514
|
return this._def.type._parse({
|
|
@@ -3520,7 +3520,7 @@ var pt = class extends C {
|
|
|
3520
3520
|
unwrap() {
|
|
3521
3521
|
return this._def.type;
|
|
3522
3522
|
}
|
|
3523
|
-
},
|
|
3523
|
+
}, ht = class e extends C {
|
|
3524
3524
|
_parse(e) {
|
|
3525
3525
|
let { status: t, ctx: n } = this._processInputParams(e);
|
|
3526
3526
|
if (n.common.async) return (async () => {
|
|
@@ -3555,10 +3555,10 @@ var pt = class extends C {
|
|
|
3555
3555
|
return new e({
|
|
3556
3556
|
in: t,
|
|
3557
3557
|
out: n,
|
|
3558
|
-
typeName:
|
|
3558
|
+
typeName: H.ZodPipeline
|
|
3559
3559
|
});
|
|
3560
3560
|
}
|
|
3561
|
-
},
|
|
3561
|
+
}, gt = class extends C {
|
|
3562
3562
|
_parse(e) {
|
|
3563
3563
|
let t = this._def.innerType._parse(e), n = (e) => (y(e) && (e.value = Object.freeze(e.value)), e);
|
|
3564
3564
|
return Se(t) ? t.then((e) => n(e)) : n(t);
|
|
@@ -3567,23 +3567,23 @@ var pt = class extends C {
|
|
|
3567
3567
|
return this._def.innerType;
|
|
3568
3568
|
}
|
|
3569
3569
|
};
|
|
3570
|
-
|
|
3570
|
+
gt.create = (e, t) => new gt({
|
|
3571
3571
|
innerType: e,
|
|
3572
|
-
typeName:
|
|
3572
|
+
typeName: H.ZodReadonly,
|
|
3573
3573
|
...S(t)
|
|
3574
3574
|
}), k.lazycreate;
|
|
3575
|
-
var
|
|
3575
|
+
var H;
|
|
3576
3576
|
(function(e) {
|
|
3577
3577
|
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";
|
|
3578
|
-
})(
|
|
3579
|
-
var
|
|
3580
|
-
|
|
3578
|
+
})(H ||= {});
|
|
3579
|
+
var U = Je.create, W = Xe.create;
|
|
3580
|
+
pt.create, Ze.create;
|
|
3581
3581
|
var _t = Qe.create;
|
|
3582
3582
|
$e.create, et.create, w.create, tt.create, nt.create, T.create, E.create, rt.create;
|
|
3583
3583
|
var vt = D.create, G = k.create;
|
|
3584
3584
|
k.strictCreate, A.create, it.create, ot.create, M.create, st.create, ct.create, lt.create, ut.create, N.create, P.create;
|
|
3585
3585
|
var K = F.create;
|
|
3586
|
-
I.create, L.create, R.create, z.create, B.create, R.createWithPreprocess,
|
|
3586
|
+
I.create, L.create, R.create, z.create, B.create, R.createWithPreprocess, ht.create;
|
|
3587
3587
|
//#endregion
|
|
3588
3588
|
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
3589
3589
|
var yt = Symbol("Let zodToJsonSchema decide on which parser to use"), bt = {
|
|
@@ -3670,7 +3670,7 @@ function J(e) {
|
|
|
3670
3670
|
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
3671
3671
|
function Tt(e, t) {
|
|
3672
3672
|
let n = { type: "array" };
|
|
3673
|
-
return e.type?._def && e.type?._def?.typeName !==
|
|
3673
|
+
return e.type?._def && e.type?._def?.typeName !== H.ZodAny && (n.items = Q(e.type._def, {
|
|
3674
3674
|
...t,
|
|
3675
3675
|
currentPath: [...t.currentPath, "items"]
|
|
3676
3676
|
})), e.minLength && q(n, "minItems", e.minLength.value, e.minLength.message, t), e.maxLength && q(n, "maxItems", e.maxLength.value, e.maxLength.message, t), e.exactLength && (q(n, "minItems", e.exactLength.value, e.exactLength.message, t), q(n, "maxItems", e.exactLength.value, e.exactLength.message, t)), n;
|
|
@@ -3992,7 +3992,7 @@ function Ut(e, t) {
|
|
|
3992
3992
|
//#endregion
|
|
3993
3993
|
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
3994
3994
|
function Wt(e, t) {
|
|
3995
|
-
if (t.target === "openAi" && console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."), t.target === "openApi3" && e.keyType?._def.typeName ===
|
|
3995
|
+
if (t.target === "openAi" && console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."), t.target === "openApi3" && e.keyType?._def.typeName === H.ZodEnum) return {
|
|
3996
3996
|
type: "object",
|
|
3997
3997
|
required: e.keyType._def.values,
|
|
3998
3998
|
properties: e.keyType._def.values.reduce((n, r) => ({
|
|
@@ -4016,18 +4016,18 @@ function Wt(e, t) {
|
|
|
4016
4016
|
}) ?? t.allowedAdditionalProperties
|
|
4017
4017
|
};
|
|
4018
4018
|
if (t.target === "openApi3") return n;
|
|
4019
|
-
if (e.keyType?._def.typeName ===
|
|
4019
|
+
if (e.keyType?._def.typeName === H.ZodString && e.keyType._def.checks?.length) {
|
|
4020
4020
|
let { type: r, ...i } = zt(e.keyType._def, t);
|
|
4021
4021
|
return {
|
|
4022
4022
|
...n,
|
|
4023
4023
|
propertyNames: i
|
|
4024
4024
|
};
|
|
4025
4025
|
}
|
|
4026
|
-
if (e.keyType?._def.typeName ===
|
|
4026
|
+
if (e.keyType?._def.typeName === H.ZodEnum) return {
|
|
4027
4027
|
...n,
|
|
4028
4028
|
propertyNames: { enum: e.keyType._def.values }
|
|
4029
4029
|
};
|
|
4030
|
-
if (e.keyType?._def.typeName ===
|
|
4030
|
+
if (e.keyType?._def.typeName === H.ZodBranded && e.keyType._def.type._def.typeName === H.ZodString && e.keyType._def.type._def.checks?.length) {
|
|
4031
4031
|
let { type: r, ...i } = Ot(e.keyType._def, t);
|
|
4032
4032
|
return {
|
|
4033
4033
|
...n,
|
|
@@ -4347,42 +4347,42 @@ function un(e) {
|
|
|
4347
4347
|
//#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
4348
4348
|
var dn = (e, t) => Q(e.innerType._def, t), fn = (e, t, n) => {
|
|
4349
4349
|
switch (t) {
|
|
4350
|
-
case
|
|
4351
|
-
case
|
|
4352
|
-
case
|
|
4353
|
-
case
|
|
4354
|
-
case
|
|
4355
|
-
case
|
|
4356
|
-
case
|
|
4357
|
-
case
|
|
4358
|
-
case
|
|
4359
|
-
case
|
|
4360
|
-
case
|
|
4361
|
-
case
|
|
4362
|
-
case
|
|
4363
|
-
case
|
|
4364
|
-
case
|
|
4365
|
-
case
|
|
4366
|
-
case
|
|
4367
|
-
case
|
|
4368
|
-
case
|
|
4369
|
-
case
|
|
4370
|
-
case
|
|
4371
|
-
case
|
|
4372
|
-
case
|
|
4373
|
-
case
|
|
4374
|
-
case
|
|
4375
|
-
case
|
|
4376
|
-
case
|
|
4377
|
-
case
|
|
4378
|
-
case
|
|
4379
|
-
case
|
|
4380
|
-
case
|
|
4381
|
-
case
|
|
4382
|
-
case
|
|
4383
|
-
case
|
|
4384
|
-
case
|
|
4385
|
-
case
|
|
4350
|
+
case H.ZodString: return zt(e, n);
|
|
4351
|
+
case H.ZodNumber: return $t(e, n);
|
|
4352
|
+
case H.ZodObject: return en(e, n);
|
|
4353
|
+
case H.ZodBigInt: return Et(e, n);
|
|
4354
|
+
case H.ZodBoolean: return Dt();
|
|
4355
|
+
case H.ZodDate: return At(e, n);
|
|
4356
|
+
case H.ZodUndefined: return ln(n);
|
|
4357
|
+
case H.ZodNull: return Jt(n);
|
|
4358
|
+
case H.ZodArray: return Tt(e, n);
|
|
4359
|
+
case H.ZodUnion:
|
|
4360
|
+
case H.ZodDiscriminatedUnion: return Xt(e, n);
|
|
4361
|
+
case H.ZodIntersection: return It(e, n);
|
|
4362
|
+
case H.ZodTuple: return cn(e, n);
|
|
4363
|
+
case H.ZodRecord: return Wt(e, n);
|
|
4364
|
+
case H.ZodLiteral: return Lt(e, n);
|
|
4365
|
+
case H.ZodEnum: return Pt(e);
|
|
4366
|
+
case H.ZodNativeEnum: return Kt(e);
|
|
4367
|
+
case H.ZodNullable: return Qt(e, n);
|
|
4368
|
+
case H.ZodOptional: return rn(e, n);
|
|
4369
|
+
case H.ZodMap: return Gt(e, n);
|
|
4370
|
+
case H.ZodSet: return sn(e, n);
|
|
4371
|
+
case H.ZodLazy: return () => e.getter()._def;
|
|
4372
|
+
case H.ZodPromise: return on(e, n);
|
|
4373
|
+
case H.ZodNaN:
|
|
4374
|
+
case H.ZodNever: return qt(n);
|
|
4375
|
+
case H.ZodEffects: return Nt(e, n);
|
|
4376
|
+
case H.ZodAny: return J(n);
|
|
4377
|
+
case H.ZodUnknown: return un(n);
|
|
4378
|
+
case H.ZodDefault: return Mt(e, n);
|
|
4379
|
+
case H.ZodBranded: return Ot(e, n);
|
|
4380
|
+
case H.ZodReadonly: return dn(e, n);
|
|
4381
|
+
case H.ZodCatch: return kt(e, n);
|
|
4382
|
+
case H.ZodPipeline: return an(e, n);
|
|
4383
|
+
case H.ZodFunction:
|
|
4384
|
+
case H.ZodVoid:
|
|
4385
|
+
case H.ZodSymbol: return;
|
|
4386
4386
|
default: return ((e) => void 0)(t);
|
|
4387
4387
|
}
|
|
4388
4388
|
};
|
|
@@ -4503,7 +4503,7 @@ var vn = [
|
|
|
4503
4503
|
name: "get_project",
|
|
4504
4504
|
title: "Get Project",
|
|
4505
4505
|
description: "Get details of a specific project by its ID.",
|
|
4506
|
-
zodSchema: G({ id:
|
|
4506
|
+
zodSchema: G({ id: U().describe("The project ID") }),
|
|
4507
4507
|
annotations: { readOnlyHint: !0 },
|
|
4508
4508
|
execute: async (e, t) => t.getProject(e.id)
|
|
4509
4509
|
}),
|
|
@@ -4512,19 +4512,19 @@ var vn = [
|
|
|
4512
4512
|
title: "Create Project",
|
|
4513
4513
|
description: "Create a new project workspace.",
|
|
4514
4514
|
zodSchema: G({
|
|
4515
|
-
name:
|
|
4516
|
-
description:
|
|
4517
|
-
key:
|
|
4515
|
+
name: U().describe("Name of the project"),
|
|
4516
|
+
description: U().optional().describe("Description of the project"),
|
|
4517
|
+
key: U().optional().describe("Short project key/prefix (e.g. \"PROJ\")")
|
|
4518
4518
|
}),
|
|
4519
4519
|
execute: async (e, t) => t.createProject(e)
|
|
4520
4520
|
}),
|
|
4521
4521
|
$({
|
|
4522
4522
|
name: "list_tasks",
|
|
4523
4523
|
title: "List Tasks",
|
|
4524
|
-
description: "List tasks, optionally filtered by project, status, priority, or
|
|
4524
|
+
description: "List tasks (oldest first), optionally filtered by project, status, priority, assignee or iteration. Returns { tasks, nextCursor }; pass nextCursor back as cursor to get the next page.",
|
|
4525
4525
|
zodSchema: G({
|
|
4526
|
-
projectId:
|
|
4527
|
-
status:
|
|
4526
|
+
projectId: U().optional().describe("Filter by project ID"),
|
|
4527
|
+
status: U().optional().describe("Filter by task status key"),
|
|
4528
4528
|
priority: K([
|
|
4529
4529
|
"urgent",
|
|
4530
4530
|
"high",
|
|
@@ -4532,19 +4532,33 @@ var vn = [
|
|
|
4532
4532
|
"low",
|
|
4533
4533
|
"none"
|
|
4534
4534
|
]).optional().describe("Filter by priority"),
|
|
4535
|
-
assigneeId:
|
|
4535
|
+
assigneeId: U().optional().describe("Filter by assignee ID"),
|
|
4536
|
+
iterationId: U().optional().describe("Filter by iteration (sprint) ID"),
|
|
4537
|
+
limit: W().int().min(1).max(500).optional().describe("Page size (default 100)"),
|
|
4538
|
+
cursor: U().optional().describe("nextCursor from a previous call")
|
|
4536
4539
|
}),
|
|
4537
4540
|
annotations: { readOnlyHint: !0 },
|
|
4538
4541
|
execute: async (e, t, n) => {
|
|
4539
|
-
let r =
|
|
4540
|
-
|
|
4542
|
+
let r = await t.queryTasks({
|
|
4543
|
+
projectId: e.projectId || n?.projectId,
|
|
4544
|
+
status: e.status ? [e.status] : void 0,
|
|
4545
|
+
priority: e.priority ? [e.priority] : void 0,
|
|
4546
|
+
assigneeId: e.assigneeId,
|
|
4547
|
+
iterationId: e.iterationId,
|
|
4548
|
+
limit: e.limit,
|
|
4549
|
+
cursor: e.cursor
|
|
4550
|
+
});
|
|
4551
|
+
return {
|
|
4552
|
+
tasks: r.items,
|
|
4553
|
+
nextCursor: r.nextCursor
|
|
4554
|
+
};
|
|
4541
4555
|
}
|
|
4542
4556
|
}),
|
|
4543
4557
|
$({
|
|
4544
4558
|
name: "get_task",
|
|
4545
4559
|
title: "Get Task",
|
|
4546
4560
|
description: "Get task details by ID.",
|
|
4547
|
-
zodSchema: G({ id:
|
|
4561
|
+
zodSchema: G({ id: U().describe("The task ID") }),
|
|
4548
4562
|
annotations: { readOnlyHint: !0 },
|
|
4549
4563
|
execute: async (e, t) => t.getTask(e.id)
|
|
4550
4564
|
}),
|
|
@@ -4553,10 +4567,10 @@ var vn = [
|
|
|
4553
4567
|
title: "Create Task",
|
|
4554
4568
|
description: "Create a new task within a project.",
|
|
4555
4569
|
zodSchema: G({
|
|
4556
|
-
projectId:
|
|
4557
|
-
title:
|
|
4558
|
-
description:
|
|
4559
|
-
status:
|
|
4570
|
+
projectId: U().optional().describe("Project ID (inferred from active view in browser if omitted)"),
|
|
4571
|
+
title: U().describe("Title of the task"),
|
|
4572
|
+
description: U().optional().describe("Detailed description / markdown"),
|
|
4573
|
+
status: U().optional().describe("Status (defaults to \"todo\" or first workflow status)"),
|
|
4560
4574
|
priority: K([
|
|
4561
4575
|
"urgent",
|
|
4562
4576
|
"high",
|
|
@@ -4564,12 +4578,12 @@ var vn = [
|
|
|
4564
4578
|
"low",
|
|
4565
4579
|
"none"
|
|
4566
4580
|
]).optional().default("none").describe("Task priority"),
|
|
4567
|
-
assigneeId:
|
|
4568
|
-
dueDate:
|
|
4569
|
-
tags: vt(
|
|
4570
|
-
estimatedHours:
|
|
4581
|
+
assigneeId: U().optional().describe("User ID to assign task to"),
|
|
4582
|
+
dueDate: U().optional().describe("Due date (ISO string)"),
|
|
4583
|
+
tags: vt(U()).optional().describe("Tags for categorization"),
|
|
4584
|
+
estimatedHours: W().optional().describe("Estimated hours to complete"),
|
|
4571
4585
|
isBlocked: _t().optional().describe("Whether the task is blocked"),
|
|
4572
|
-
blockedReason:
|
|
4586
|
+
blockedReason: U().optional().describe("Reason why the task is blocked")
|
|
4573
4587
|
}),
|
|
4574
4588
|
execute: async (e, t, n) => {
|
|
4575
4589
|
let r = e.projectId || n?.projectId;
|
|
@@ -4595,10 +4609,10 @@ var vn = [
|
|
|
4595
4609
|
title: "Update Task",
|
|
4596
4610
|
description: "Update fields of an existing task (e.g. title, status, priority, assignee).",
|
|
4597
4611
|
zodSchema: G({
|
|
4598
|
-
id:
|
|
4599
|
-
title:
|
|
4600
|
-
description:
|
|
4601
|
-
status:
|
|
4612
|
+
id: U().describe("The task ID"),
|
|
4613
|
+
title: U().optional(),
|
|
4614
|
+
description: U().optional(),
|
|
4615
|
+
status: U().optional(),
|
|
4602
4616
|
priority: K([
|
|
4603
4617
|
"urgent",
|
|
4604
4618
|
"high",
|
|
@@ -4606,13 +4620,13 @@ var vn = [
|
|
|
4606
4620
|
"low",
|
|
4607
4621
|
"none"
|
|
4608
4622
|
]).optional(),
|
|
4609
|
-
assigneeId:
|
|
4610
|
-
dueDate:
|
|
4611
|
-
tags: vt(
|
|
4612
|
-
estimatedHours:
|
|
4613
|
-
loggedHours:
|
|
4623
|
+
assigneeId: U().optional(),
|
|
4624
|
+
dueDate: U().optional(),
|
|
4625
|
+
tags: vt(U()).optional(),
|
|
4626
|
+
estimatedHours: W().optional(),
|
|
4627
|
+
loggedHours: W().optional(),
|
|
4614
4628
|
isBlocked: _t().optional().describe("Whether the task is blocked"),
|
|
4615
|
-
blockedReason:
|
|
4629
|
+
blockedReason: U().optional().describe("Reason why the task is blocked")
|
|
4616
4630
|
}),
|
|
4617
4631
|
execute: async (e, t) => {
|
|
4618
4632
|
let { id: n, ...r } = e;
|
|
@@ -4623,7 +4637,7 @@ var vn = [
|
|
|
4623
4637
|
name: "delete_task",
|
|
4624
4638
|
title: "Delete Task",
|
|
4625
4639
|
description: "Delete a task by ID.",
|
|
4626
|
-
zodSchema: G({ id:
|
|
4640
|
+
zodSchema: G({ id: U().describe("The task ID to delete") }),
|
|
4627
4641
|
annotations: { requiresConfirmation: !0 },
|
|
4628
4642
|
execute: async (e, t) => ({ success: await t.deleteTask(e.id) })
|
|
4629
4643
|
}),
|
|
@@ -4631,7 +4645,7 @@ var vn = [
|
|
|
4631
4645
|
name: "list_deliverables",
|
|
4632
4646
|
title: "List Deliverables",
|
|
4633
4647
|
description: "List deliverables/milestones for a project.",
|
|
4634
|
-
zodSchema: G({ projectId:
|
|
4648
|
+
zodSchema: G({ projectId: U().optional().describe("Project ID") }),
|
|
4635
4649
|
annotations: { readOnlyHint: !0 },
|
|
4636
4650
|
execute: async (e, t, n) => {
|
|
4637
4651
|
let r = e.projectId || n?.projectId;
|
|
@@ -4644,11 +4658,11 @@ var vn = [
|
|
|
4644
4658
|
title: "Create Deliverable",
|
|
4645
4659
|
description: "Create a milestone deliverable within a project.",
|
|
4646
4660
|
zodSchema: G({
|
|
4647
|
-
projectId:
|
|
4648
|
-
title:
|
|
4649
|
-
description:
|
|
4650
|
-
dueDate:
|
|
4651
|
-
taskIds: vt(
|
|
4661
|
+
projectId: U().optional(),
|
|
4662
|
+
title: U(),
|
|
4663
|
+
description: U().optional(),
|
|
4664
|
+
dueDate: U().optional(),
|
|
4665
|
+
taskIds: vt(U()).optional()
|
|
4652
4666
|
}),
|
|
4653
4667
|
execute: async (e, t, n) => {
|
|
4654
4668
|
let r = e.projectId || n?.projectId;
|
|
@@ -4664,7 +4678,7 @@ var vn = [
|
|
|
4664
4678
|
name: "list_comments",
|
|
4665
4679
|
title: "List Comments",
|
|
4666
4680
|
description: "List comments associated with a task.",
|
|
4667
|
-
zodSchema: G({ taskId:
|
|
4681
|
+
zodSchema: G({ taskId: U().describe("The task ID") }),
|
|
4668
4682
|
annotations: { readOnlyHint: !0 },
|
|
4669
4683
|
execute: async (e, t) => "getComments" in t && typeof t.getComments == "function" ? t.getComments(e.taskId) : []
|
|
4670
4684
|
}),
|
|
@@ -4673,8 +4687,8 @@ var vn = [
|
|
|
4673
4687
|
title: "Add Comment",
|
|
4674
4688
|
description: "Add a comment to a task. The comment is attributed to the identity this MCP server runs as.",
|
|
4675
4689
|
zodSchema: G({
|
|
4676
|
-
taskId:
|
|
4677
|
-
content:
|
|
4690
|
+
taskId: U().describe("The task ID"),
|
|
4691
|
+
content: U().describe("Comment body/markdown")
|
|
4678
4692
|
}),
|
|
4679
4693
|
execute: async (e, t) => t.addComment({
|
|
4680
4694
|
taskId: e.taskId,
|
|
@@ -4685,7 +4699,7 @@ var vn = [
|
|
|
4685
4699
|
name: "calculate_critical_path",
|
|
4686
4700
|
title: "Calculate Critical Path",
|
|
4687
4701
|
description: "Calculate Critical Path Method (CPM) schedule, early/late start and finish, total slack, and critical bottlenecks for a project.",
|
|
4688
|
-
zodSchema: G({ projectId:
|
|
4702
|
+
zodSchema: G({ projectId: U().optional().describe("Project ID (falls back to ambient context if omitted)") }),
|
|
4689
4703
|
annotations: { readOnlyHint: !0 },
|
|
4690
4704
|
execute: async (e, t, n) => {
|
|
4691
4705
|
let r = e.projectId || n?.projectId;
|
|
@@ -4698,15 +4712,15 @@ var vn = [
|
|
|
4698
4712
|
title: "Get Timeline Ladder of Abstraction",
|
|
4699
4713
|
description: "Retrieve Ladder of Abstraction for a project timeline across macro phase envelopes, standard Gantt tasks & CPM, and concrete deliverables/time/attachments.",
|
|
4700
4714
|
zodSchema: G({
|
|
4701
|
-
projectId:
|
|
4715
|
+
projectId: U().optional().describe("Project ID (falls back to ambient context if omitted)"),
|
|
4702
4716
|
level: K([
|
|
4703
4717
|
"macro",
|
|
4704
4718
|
"standard",
|
|
4705
4719
|
"concrete",
|
|
4706
4720
|
"all"
|
|
4707
4721
|
]).optional().describe("Abstraction level (macro, standard, concrete, or all)"),
|
|
4708
|
-
containerId:
|
|
4709
|
-
iterationId:
|
|
4722
|
+
containerId: U().optional().describe("Optional container ID filter"),
|
|
4723
|
+
iterationId: U().optional().describe("Optional iteration/sprint ID filter")
|
|
4710
4724
|
}),
|
|
4711
4725
|
annotations: { readOnlyHint: !0 },
|
|
4712
4726
|
execute: async (e, t, n) => {
|
|
@@ -4723,7 +4737,7 @@ var vn = [
|
|
|
4723
4737
|
name: "get_task_ladder",
|
|
4724
4738
|
title: "Get Task Ladder View",
|
|
4725
4739
|
description: "Retrieve multi-scale ladder view for a single task, connecting its macro phase, standard CPM timeline position, and concrete work evidence.",
|
|
4726
|
-
zodSchema: G({ taskId:
|
|
4740
|
+
zodSchema: G({ taskId: U().describe("The task ID") }),
|
|
4727
4741
|
annotations: { readOnlyHint: !0 },
|
|
4728
4742
|
execute: async (e, t) => t.getTaskLadder(e.taskId)
|
|
4729
4743
|
}),
|
|
@@ -4731,7 +4745,7 @@ var vn = [
|
|
|
4731
4745
|
name: "get_task_metrics",
|
|
4732
4746
|
title: "Get Task Metrics",
|
|
4733
4747
|
description: "Retrieve multi-dimensional task metrics including inferred actuals, active working duration, effort/duration/schedule variances, progress inference, and Earned Value Management (EVM) metrics.",
|
|
4734
|
-
zodSchema: G({ taskId:
|
|
4748
|
+
zodSchema: G({ taskId: U().describe("The task ID") }),
|
|
4735
4749
|
annotations: { readOnlyHint: !0 },
|
|
4736
4750
|
execute: async (e, t) => t.getTaskMetrics(e.taskId)
|
|
4737
4751
|
}),
|
|
@@ -4739,7 +4753,7 @@ var vn = [
|
|
|
4739
4753
|
name: "get_task_progress_history",
|
|
4740
4754
|
title: "Get Task Progress History",
|
|
4741
4755
|
description: "Retrieve time-series progress data points and curve shape classification (linear, s_curve, early_surge, late_rush, stalled) for a task.",
|
|
4742
|
-
zodSchema: G({ taskId:
|
|
4756
|
+
zodSchema: G({ taskId: U().describe("The task ID") }),
|
|
4743
4757
|
annotations: { readOnlyHint: !0 },
|
|
4744
4758
|
execute: async (e, t) => t.getTaskProgressHistory(e.taskId)
|
|
4745
4759
|
}),
|
|
@@ -4748,9 +4762,9 @@ var vn = [
|
|
|
4748
4762
|
title: "Get Workload Distribution",
|
|
4749
4763
|
description: "Retrieve time-series workload and capacity distribution suitable for streamgraphs, stacked charts, and team capacity planning.",
|
|
4750
4764
|
zodSchema: G({
|
|
4751
|
-
projectId:
|
|
4752
|
-
startDate:
|
|
4753
|
-
endDate:
|
|
4765
|
+
projectId: U().optional().describe("Project ID (optional, defaults to workspace-wide or ambient project)"),
|
|
4766
|
+
startDate: U().optional().describe("Start date ISO (YYYY-MM-DD)"),
|
|
4767
|
+
endDate: U().optional().describe("End date ISO (YYYY-MM-DD)"),
|
|
4754
4768
|
interval: K([
|
|
4755
4769
|
"day",
|
|
4756
4770
|
"week",
|
|
@@ -4769,7 +4783,7 @@ var vn = [
|
|
|
4769
4783
|
"remaining",
|
|
4770
4784
|
"blended"
|
|
4771
4785
|
]).optional().describe("Effort metric mode"),
|
|
4772
|
-
defaultWeeklyCapacityHours:
|
|
4786
|
+
defaultWeeklyCapacityHours: W().optional().describe("Default weekly capacity hours per person (default 40)")
|
|
4773
4787
|
}),
|
|
4774
4788
|
annotations: { readOnlyHint: !0 },
|
|
4775
4789
|
execute: async (e, t, n) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@critical-path/svelte",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.5",
|
|
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/
|
|
22
|
-
"@critical-path/
|
|
23
|
-
"@critical-path/core": "0.
|
|
21
|
+
"@critical-path/client": "0.18.0",
|
|
22
|
+
"@critical-path/mcp": "0.11.0",
|
|
23
|
+
"@critical-path/core": "0.30.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"svelte": "^5.0.0"
|