@ikenga/contract 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts +624 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +264 -0
- package/dist/browser.js.map +1 -0
- package/dist/engine/acp.d.ts +271 -0
- package/dist/engine/acp.d.ts.map +1 -0
- package/dist/engine/acp.js +13 -0
- package/dist/engine/acp.js.map +1 -0
- package/dist/{engine.d.ts → engine/adapter.d.ts} +60 -243
- package/dist/engine/adapter.d.ts.map +1 -0
- package/dist/{engine.js → engine/adapter.js} +14 -6
- package/dist/engine/adapter.js.map +1 -0
- package/dist/engine/errors.d.ts +17 -0
- package/dist/engine/errors.d.ts.map +1 -0
- package/dist/engine/errors.js +19 -0
- package/dist/engine/errors.js.map +1 -0
- package/dist/engine/index.d.ts +12 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +12 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +147 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +32 -1
- package/dist/manifest.js.map +1 -1
- package/dist/registry.d.ts +216 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +23 -0
- package/dist/registry.js.map +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/rpc.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/browser.test.ts +350 -0
- package/src/browser.ts +364 -0
- package/src/{engine.ts → engine/acp.ts} +49 -198
- package/src/engine/adapter.ts +243 -0
- package/src/{engine.test.ts → engine/engine.test.ts} +33 -2
- package/src/engine/errors.ts +20 -0
- package/src/engine/index.ts +12 -0
- package/src/index.ts +2 -1
- package/src/manifest.ts +35 -1
- package/src/registry.ts +25 -0
- package/src/rpc.ts +1 -1
- package/dist/engine.d.ts.map +0 -1
- package/dist/engine.js.map +0 -1
package/dist/manifest.d.ts
CHANGED
|
@@ -18,11 +18,21 @@ export declare const McpServerSchema: z.ZodObject<{
|
|
|
18
18
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19
19
|
/** "per-call" (default) | "long-lived" */
|
|
20
20
|
lifecycle: z.ZodOptional<z.ZodEnum<["per-call", "long-lived"]>>;
|
|
21
|
+
/** Phase 9: glob patterns relative to pkg dir; supervisor restarts the
|
|
22
|
+
* long-lived child 250 ms after any matched file changes. Per-call entries
|
|
23
|
+
* ignore this. Empty = no watcher. */
|
|
24
|
+
restart_when_changed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
+
/** Phase 9: auto-restart on unexpected exit. Default true (existing
|
|
26
|
+
* supervisor behavior). Set false for one-shot long-lived tools. Per-call
|
|
27
|
+
* entries ignore this. */
|
|
28
|
+
auto_restart: z.ZodDefault<z.ZodBoolean>;
|
|
21
29
|
}, "strip", z.ZodTypeAny, {
|
|
22
30
|
args: string[];
|
|
23
31
|
name: string;
|
|
24
32
|
command: string;
|
|
25
33
|
env: Record<string, string>;
|
|
34
|
+
restart_when_changed: string[];
|
|
35
|
+
auto_restart: boolean;
|
|
26
36
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
27
37
|
}, {
|
|
28
38
|
name: string;
|
|
@@ -30,6 +40,8 @@ export declare const McpServerSchema: z.ZodObject<{
|
|
|
30
40
|
args?: string[] | undefined;
|
|
31
41
|
env?: Record<string, string> | undefined;
|
|
32
42
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
43
|
+
restart_when_changed?: string[] | undefined;
|
|
44
|
+
auto_restart?: boolean | undefined;
|
|
33
45
|
}>;
|
|
34
46
|
export type McpServer = z.infer<typeof McpServerSchema>;
|
|
35
47
|
export declare const SidecarSpecSchema: z.ZodObject<{
|
|
@@ -39,13 +51,23 @@ export declare const SidecarSpecSchema: z.ZodObject<{
|
|
|
39
51
|
bin: z.ZodString;
|
|
40
52
|
/** "json" (default) | "raw" */
|
|
41
53
|
stdio: z.ZodDefault<z.ZodString>;
|
|
54
|
+
/** Phase 9: glob patterns relative to pkg dir; supervisor restarts the
|
|
55
|
+
* sidecar 250 ms after any matched file changes. Empty = no watcher. */
|
|
56
|
+
restart_when_changed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
57
|
+
/** Phase 9: auto-restart on unexpected exit. Default true (existing
|
|
58
|
+
* supervisor behavior). Set false for one-shot tools. */
|
|
59
|
+
auto_restart: z.ZodDefault<z.ZodBoolean>;
|
|
42
60
|
}, "strip", z.ZodTypeAny, {
|
|
43
61
|
name: string;
|
|
62
|
+
restart_when_changed: string[];
|
|
63
|
+
auto_restart: boolean;
|
|
44
64
|
bin: string;
|
|
45
65
|
stdio: string;
|
|
46
66
|
}, {
|
|
47
67
|
name: string;
|
|
48
68
|
bin: string;
|
|
69
|
+
restart_when_changed?: string[] | undefined;
|
|
70
|
+
auto_restart?: boolean | undefined;
|
|
49
71
|
stdio?: string | undefined;
|
|
50
72
|
}>;
|
|
51
73
|
export type SidecarSpec = z.infer<typeof SidecarSpecSchema>;
|
|
@@ -401,6 +423,23 @@ export declare const QueriesBlockSchema: z.ZodObject<{
|
|
|
401
423
|
}, {
|
|
402
424
|
key_prefixes?: string[] | undefined;
|
|
403
425
|
}>;
|
|
426
|
+
/**
|
|
427
|
+
* UI preview screenshot. `path` is relative to the package's install_path
|
|
428
|
+
* for bundled pkgs; the shell resolves it to a webview-loadable URL on
|
|
429
|
+
* render. Registry pkgs surface absolute https:// URLs through the
|
|
430
|
+
* `screenshots` array on the registry entry (see `./registry.ts`).
|
|
431
|
+
*/
|
|
432
|
+
export declare const ScreenshotSchema: z.ZodObject<{
|
|
433
|
+
path: z.ZodString;
|
|
434
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
path: string;
|
|
437
|
+
caption?: string | undefined;
|
|
438
|
+
}, {
|
|
439
|
+
path: string;
|
|
440
|
+
caption?: string | undefined;
|
|
441
|
+
}>;
|
|
442
|
+
export type Screenshot = z.infer<typeof ScreenshotSchema>;
|
|
404
443
|
export declare const ManifestSchema: z.ZodObject<{
|
|
405
444
|
/** Reverse-DNS, e.g. `com.ikenga.studio`. */
|
|
406
445
|
id: z.ZodString;
|
|
@@ -432,11 +471,21 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
432
471
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
433
472
|
/** "per-call" (default) | "long-lived" */
|
|
434
473
|
lifecycle: z.ZodOptional<z.ZodEnum<["per-call", "long-lived"]>>;
|
|
474
|
+
/** Phase 9: glob patterns relative to pkg dir; supervisor restarts the
|
|
475
|
+
* long-lived child 250 ms after any matched file changes. Per-call entries
|
|
476
|
+
* ignore this. Empty = no watcher. */
|
|
477
|
+
restart_when_changed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
478
|
+
/** Phase 9: auto-restart on unexpected exit. Default true (existing
|
|
479
|
+
* supervisor behavior). Set false for one-shot long-lived tools. Per-call
|
|
480
|
+
* entries ignore this. */
|
|
481
|
+
auto_restart: z.ZodDefault<z.ZodBoolean>;
|
|
435
482
|
}, "strip", z.ZodTypeAny, {
|
|
436
483
|
args: string[];
|
|
437
484
|
name: string;
|
|
438
485
|
command: string;
|
|
439
486
|
env: Record<string, string>;
|
|
487
|
+
restart_when_changed: string[];
|
|
488
|
+
auto_restart: boolean;
|
|
440
489
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
441
490
|
}, {
|
|
442
491
|
name: string;
|
|
@@ -444,6 +493,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
444
493
|
args?: string[] | undefined;
|
|
445
494
|
env?: Record<string, string> | undefined;
|
|
446
495
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
496
|
+
restart_when_changed?: string[] | undefined;
|
|
497
|
+
auto_restart?: boolean | undefined;
|
|
447
498
|
}>, "many">>;
|
|
448
499
|
sidecars: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
449
500
|
/** Must start with `pa-<pkg-slug>-` (slug = id with `.` → `-`). */
|
|
@@ -452,13 +503,23 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
452
503
|
bin: z.ZodString;
|
|
453
504
|
/** "json" (default) | "raw" */
|
|
454
505
|
stdio: z.ZodDefault<z.ZodString>;
|
|
506
|
+
/** Phase 9: glob patterns relative to pkg dir; supervisor restarts the
|
|
507
|
+
* sidecar 250 ms after any matched file changes. Empty = no watcher. */
|
|
508
|
+
restart_when_changed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
509
|
+
/** Phase 9: auto-restart on unexpected exit. Default true (existing
|
|
510
|
+
* supervisor behavior). Set false for one-shot tools. */
|
|
511
|
+
auto_restart: z.ZodDefault<z.ZodBoolean>;
|
|
455
512
|
}, "strip", z.ZodTypeAny, {
|
|
456
513
|
name: string;
|
|
514
|
+
restart_when_changed: string[];
|
|
515
|
+
auto_restart: boolean;
|
|
457
516
|
bin: string;
|
|
458
517
|
stdio: string;
|
|
459
518
|
}, {
|
|
460
519
|
name: string;
|
|
461
520
|
bin: string;
|
|
521
|
+
restart_when_changed?: string[] | undefined;
|
|
522
|
+
auto_restart?: boolean | undefined;
|
|
462
523
|
stdio?: string | undefined;
|
|
463
524
|
}>, "many">>;
|
|
464
525
|
permissions: z.ZodDefault<z.ZodObject<{
|
|
@@ -829,12 +890,30 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
829
890
|
docsUrl?: string | undefined;
|
|
830
891
|
} | undefined;
|
|
831
892
|
}>>;
|
|
893
|
+
/**
|
|
894
|
+
* Optional UI preview screenshots surfaced by the package manager and the
|
|
895
|
+
* install sheet. `path` is relative to the package's install_path; the
|
|
896
|
+
* shell mints a webview-loadable URL for it on render. Packages without
|
|
897
|
+
* UI (engines, MCP-only servers) typically leave this empty.
|
|
898
|
+
*/
|
|
899
|
+
screenshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
900
|
+
path: z.ZodString;
|
|
901
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
902
|
+
}, "strip", z.ZodTypeAny, {
|
|
903
|
+
path: string;
|
|
904
|
+
caption?: string | undefined;
|
|
905
|
+
}, {
|
|
906
|
+
path: string;
|
|
907
|
+
caption?: string | undefined;
|
|
908
|
+
}>, "many">>;
|
|
832
909
|
}, "strip", z.ZodTypeAny, {
|
|
833
910
|
mcp: {
|
|
834
911
|
args: string[];
|
|
835
912
|
name: string;
|
|
836
913
|
command: string;
|
|
837
914
|
env: Record<string, string>;
|
|
915
|
+
restart_when_changed: string[];
|
|
916
|
+
auto_restart: boolean;
|
|
838
917
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
839
918
|
}[];
|
|
840
919
|
id: string;
|
|
@@ -852,6 +931,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
852
931
|
targets: string[];
|
|
853
932
|
sidecars: {
|
|
854
933
|
name: string;
|
|
934
|
+
restart_when_changed: string[];
|
|
935
|
+
auto_restart: boolean;
|
|
855
936
|
bin: string;
|
|
856
937
|
stdio: string;
|
|
857
938
|
}[];
|
|
@@ -888,6 +969,10 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
888
969
|
expr: string;
|
|
889
970
|
env_from_settings: string[];
|
|
890
971
|
}[];
|
|
972
|
+
screenshots: {
|
|
973
|
+
path: string;
|
|
974
|
+
caption?: string | undefined;
|
|
975
|
+
}[];
|
|
891
976
|
queries?: {
|
|
892
977
|
key_prefixes: string[];
|
|
893
978
|
} | undefined;
|
|
@@ -959,6 +1044,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
959
1044
|
args?: string[] | undefined;
|
|
960
1045
|
env?: Record<string, string> | undefined;
|
|
961
1046
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
1047
|
+
restart_when_changed?: string[] | undefined;
|
|
1048
|
+
auto_restart?: boolean | undefined;
|
|
962
1049
|
}[] | undefined;
|
|
963
1050
|
queries?: {
|
|
964
1051
|
key_prefixes?: string[] | undefined;
|
|
@@ -983,6 +1070,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
983
1070
|
sidecars?: {
|
|
984
1071
|
name: string;
|
|
985
1072
|
bin: string;
|
|
1073
|
+
restart_when_changed?: string[] | undefined;
|
|
1074
|
+
auto_restart?: boolean | undefined;
|
|
986
1075
|
stdio?: string | undefined;
|
|
987
1076
|
}[] | undefined;
|
|
988
1077
|
migrations?: string | undefined;
|
|
@@ -1067,6 +1156,10 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1067
1156
|
docsUrl?: string | undefined;
|
|
1068
1157
|
} | undefined;
|
|
1069
1158
|
} | undefined;
|
|
1159
|
+
screenshots?: {
|
|
1160
|
+
path: string;
|
|
1161
|
+
caption?: string | undefined;
|
|
1162
|
+
}[] | undefined;
|
|
1070
1163
|
}>;
|
|
1071
1164
|
export type Manifest = z.infer<typeof ManifestSchema>;
|
|
1072
1165
|
/** Alias retained for symmetry with the Rust side / external consumers. */
|
|
@@ -1101,11 +1194,21 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1101
1194
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1102
1195
|
/** "per-call" (default) | "long-lived" */
|
|
1103
1196
|
lifecycle: z.ZodOptional<z.ZodEnum<["per-call", "long-lived"]>>;
|
|
1197
|
+
/** Phase 9: glob patterns relative to pkg dir; supervisor restarts the
|
|
1198
|
+
* long-lived child 250 ms after any matched file changes. Per-call entries
|
|
1199
|
+
* ignore this. Empty = no watcher. */
|
|
1200
|
+
restart_when_changed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1201
|
+
/** Phase 9: auto-restart on unexpected exit. Default true (existing
|
|
1202
|
+
* supervisor behavior). Set false for one-shot long-lived tools. Per-call
|
|
1203
|
+
* entries ignore this. */
|
|
1204
|
+
auto_restart: z.ZodDefault<z.ZodBoolean>;
|
|
1104
1205
|
}, "strip", z.ZodTypeAny, {
|
|
1105
1206
|
args: string[];
|
|
1106
1207
|
name: string;
|
|
1107
1208
|
command: string;
|
|
1108
1209
|
env: Record<string, string>;
|
|
1210
|
+
restart_when_changed: string[];
|
|
1211
|
+
auto_restart: boolean;
|
|
1109
1212
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
1110
1213
|
}, {
|
|
1111
1214
|
name: string;
|
|
@@ -1113,6 +1216,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1113
1216
|
args?: string[] | undefined;
|
|
1114
1217
|
env?: Record<string, string> | undefined;
|
|
1115
1218
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
1219
|
+
restart_when_changed?: string[] | undefined;
|
|
1220
|
+
auto_restart?: boolean | undefined;
|
|
1116
1221
|
}>, "many">>;
|
|
1117
1222
|
sidecars: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1118
1223
|
/** Must start with `pa-<pkg-slug>-` (slug = id with `.` → `-`). */
|
|
@@ -1121,13 +1226,23 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1121
1226
|
bin: z.ZodString;
|
|
1122
1227
|
/** "json" (default) | "raw" */
|
|
1123
1228
|
stdio: z.ZodDefault<z.ZodString>;
|
|
1229
|
+
/** Phase 9: glob patterns relative to pkg dir; supervisor restarts the
|
|
1230
|
+
* sidecar 250 ms after any matched file changes. Empty = no watcher. */
|
|
1231
|
+
restart_when_changed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1232
|
+
/** Phase 9: auto-restart on unexpected exit. Default true (existing
|
|
1233
|
+
* supervisor behavior). Set false for one-shot tools. */
|
|
1234
|
+
auto_restart: z.ZodDefault<z.ZodBoolean>;
|
|
1124
1235
|
}, "strip", z.ZodTypeAny, {
|
|
1125
1236
|
name: string;
|
|
1237
|
+
restart_when_changed: string[];
|
|
1238
|
+
auto_restart: boolean;
|
|
1126
1239
|
bin: string;
|
|
1127
1240
|
stdio: string;
|
|
1128
1241
|
}, {
|
|
1129
1242
|
name: string;
|
|
1130
1243
|
bin: string;
|
|
1244
|
+
restart_when_changed?: string[] | undefined;
|
|
1245
|
+
auto_restart?: boolean | undefined;
|
|
1131
1246
|
stdio?: string | undefined;
|
|
1132
1247
|
}>, "many">>;
|
|
1133
1248
|
permissions: z.ZodDefault<z.ZodObject<{
|
|
@@ -1498,12 +1613,30 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1498
1613
|
docsUrl?: string | undefined;
|
|
1499
1614
|
} | undefined;
|
|
1500
1615
|
}>>;
|
|
1616
|
+
/**
|
|
1617
|
+
* Optional UI preview screenshots surfaced by the package manager and the
|
|
1618
|
+
* install sheet. `path` is relative to the package's install_path; the
|
|
1619
|
+
* shell mints a webview-loadable URL for it on render. Packages without
|
|
1620
|
+
* UI (engines, MCP-only servers) typically leave this empty.
|
|
1621
|
+
*/
|
|
1622
|
+
screenshots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1623
|
+
path: z.ZodString;
|
|
1624
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1625
|
+
}, "strip", z.ZodTypeAny, {
|
|
1626
|
+
path: string;
|
|
1627
|
+
caption?: string | undefined;
|
|
1628
|
+
}, {
|
|
1629
|
+
path: string;
|
|
1630
|
+
caption?: string | undefined;
|
|
1631
|
+
}>, "many">>;
|
|
1501
1632
|
}, "strip", z.ZodTypeAny, {
|
|
1502
1633
|
mcp: {
|
|
1503
1634
|
args: string[];
|
|
1504
1635
|
name: string;
|
|
1505
1636
|
command: string;
|
|
1506
1637
|
env: Record<string, string>;
|
|
1638
|
+
restart_when_changed: string[];
|
|
1639
|
+
auto_restart: boolean;
|
|
1507
1640
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
1508
1641
|
}[];
|
|
1509
1642
|
id: string;
|
|
@@ -1521,6 +1654,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1521
1654
|
targets: string[];
|
|
1522
1655
|
sidecars: {
|
|
1523
1656
|
name: string;
|
|
1657
|
+
restart_when_changed: string[];
|
|
1658
|
+
auto_restart: boolean;
|
|
1524
1659
|
bin: string;
|
|
1525
1660
|
stdio: string;
|
|
1526
1661
|
}[];
|
|
@@ -1557,6 +1692,10 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1557
1692
|
expr: string;
|
|
1558
1693
|
env_from_settings: string[];
|
|
1559
1694
|
}[];
|
|
1695
|
+
screenshots: {
|
|
1696
|
+
path: string;
|
|
1697
|
+
caption?: string | undefined;
|
|
1698
|
+
}[];
|
|
1560
1699
|
queries?: {
|
|
1561
1700
|
key_prefixes: string[];
|
|
1562
1701
|
} | undefined;
|
|
@@ -1628,6 +1767,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1628
1767
|
args?: string[] | undefined;
|
|
1629
1768
|
env?: Record<string, string> | undefined;
|
|
1630
1769
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
1770
|
+
restart_when_changed?: string[] | undefined;
|
|
1771
|
+
auto_restart?: boolean | undefined;
|
|
1631
1772
|
}[] | undefined;
|
|
1632
1773
|
queries?: {
|
|
1633
1774
|
key_prefixes?: string[] | undefined;
|
|
@@ -1652,6 +1793,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1652
1793
|
sidecars?: {
|
|
1653
1794
|
name: string;
|
|
1654
1795
|
bin: string;
|
|
1796
|
+
restart_when_changed?: string[] | undefined;
|
|
1797
|
+
auto_restart?: boolean | undefined;
|
|
1655
1798
|
stdio?: string | undefined;
|
|
1656
1799
|
}[] | undefined;
|
|
1657
1800
|
migrations?: string | undefined;
|
|
@@ -1736,6 +1879,10 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1736
1879
|
docsUrl?: string | undefined;
|
|
1737
1880
|
} | undefined;
|
|
1738
1881
|
} | undefined;
|
|
1882
|
+
screenshots?: {
|
|
1883
|
+
path: string;
|
|
1884
|
+
caption?: string | undefined;
|
|
1885
|
+
}[] | undefined;
|
|
1739
1886
|
}>;
|
|
1740
1887
|
export type PkgManifest = Manifest;
|
|
1741
1888
|
/** Convert a reverse-DNS id to a slug: `com.ikenga.studio` → `com-ikenga-studio`. */
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,EAAG,CAAU,CAAC;AAC7C,eAAO,MAAM,wBAAwB,EAAG,CAAU,CAAC;AAInD,eAAO,MAAM,YAAY;;;;;;;;;EAGvB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;IAK1B,0CAA0C
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,EAAG,CAAU,CAAC;AAC7C,eAAO,MAAM,wBAAwB,EAAG,CAAU,CAAC;AAInD,eAAO,MAAM,YAAY;;;;;;;;;EAGvB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;IAK1B,0CAA0C;;IAE1C;;0CAEsC;;IAEtC;;8BAE0B;;;;;;;;;;;;;;;;;;EAE1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,iBAAiB;IAC5B,mEAAmE;;IAEnE,iEAAiE;;IAEjE,+BAA+B;;IAE/B;4EACwE;;IAExE;6DACyD;;;;;;;;;;;;;;EAEzD,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;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F;AACrF,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED,sDAAsD;AACtD,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAIjD"}
|
package/dist/manifest.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
//
|
|
9
9
|
// On disk: `<pkg-root>/manifest.json` (JSON, not TOML).
|
|
10
10
|
import { z } from 'zod';
|
|
11
|
-
import { EngineProvidesSchema } from './engine.js';
|
|
11
|
+
import { EngineProvidesSchema } from './engine/index.js';
|
|
12
12
|
export const IKENGA_API_VERSION = 1;
|
|
13
13
|
export const IKENGA_API_MIN_SUPPORTED = 1;
|
|
14
14
|
// ---------- Sub-schemas ----------
|
|
@@ -23,6 +23,14 @@ export const McpServerSchema = z.object({
|
|
|
23
23
|
env: z.record(z.string()).default({}),
|
|
24
24
|
/** "per-call" (default) | "long-lived" */
|
|
25
25
|
lifecycle: z.enum(['per-call', 'long-lived']).optional(),
|
|
26
|
+
/** Phase 9: glob patterns relative to pkg dir; supervisor restarts the
|
|
27
|
+
* long-lived child 250 ms after any matched file changes. Per-call entries
|
|
28
|
+
* ignore this. Empty = no watcher. */
|
|
29
|
+
restart_when_changed: z.array(z.string()).default([]),
|
|
30
|
+
/** Phase 9: auto-restart on unexpected exit. Default true (existing
|
|
31
|
+
* supervisor behavior). Set false for one-shot long-lived tools. Per-call
|
|
32
|
+
* entries ignore this. */
|
|
33
|
+
auto_restart: z.boolean().default(true),
|
|
26
34
|
});
|
|
27
35
|
export const SidecarSpecSchema = z.object({
|
|
28
36
|
/** Must start with `pa-<pkg-slug>-` (slug = id with `.` → `-`). */
|
|
@@ -31,6 +39,12 @@ export const SidecarSpecSchema = z.object({
|
|
|
31
39
|
bin: z.string(),
|
|
32
40
|
/** "json" (default) | "raw" */
|
|
33
41
|
stdio: z.string().default('json'),
|
|
42
|
+
/** Phase 9: glob patterns relative to pkg dir; supervisor restarts the
|
|
43
|
+
* sidecar 250 ms after any matched file changes. Empty = no watcher. */
|
|
44
|
+
restart_when_changed: z.array(z.string()).default([]),
|
|
45
|
+
/** Phase 9: auto-restart on unexpected exit. Default true (existing
|
|
46
|
+
* supervisor behavior). Set false for one-shot tools. */
|
|
47
|
+
auto_restart: z.boolean().default(true),
|
|
34
48
|
});
|
|
35
49
|
export const PermissionsSchema = z.object({
|
|
36
50
|
'shell.execute': z.array(z.string()).default([]),
|
|
@@ -113,6 +127,16 @@ export const WindowBlockSchema = z.object({
|
|
|
113
127
|
export const QueriesBlockSchema = z.object({
|
|
114
128
|
key_prefixes: z.array(z.string()).default([]),
|
|
115
129
|
});
|
|
130
|
+
/**
|
|
131
|
+
* UI preview screenshot. `path` is relative to the package's install_path
|
|
132
|
+
* for bundled pkgs; the shell resolves it to a webview-loadable URL on
|
|
133
|
+
* render. Registry pkgs surface absolute https:// URLs through the
|
|
134
|
+
* `screenshots` array on the registry entry (see `./registry.ts`).
|
|
135
|
+
*/
|
|
136
|
+
export const ScreenshotSchema = z.object({
|
|
137
|
+
path: z.string(),
|
|
138
|
+
caption: z.string().optional(),
|
|
139
|
+
});
|
|
116
140
|
// ---------- Manifest ----------
|
|
117
141
|
export const ManifestSchema = z.object({
|
|
118
142
|
/** Reverse-DNS, e.g. `com.ikenga.studio`. */
|
|
@@ -147,6 +171,13 @@ export const ManifestSchema = z.object({
|
|
|
147
171
|
* See `@ikenga/contract/engine` for the source-of-truth schema.
|
|
148
172
|
*/
|
|
149
173
|
engine: EngineProvidesSchema.optional(),
|
|
174
|
+
/**
|
|
175
|
+
* Optional UI preview screenshots surfaced by the package manager and the
|
|
176
|
+
* install sheet. `path` is relative to the package's install_path; the
|
|
177
|
+
* shell mints a webview-loadable URL for it on render. Packages without
|
|
178
|
+
* UI (engines, MCP-only servers) typically leave this empty.
|
|
179
|
+
*/
|
|
180
|
+
screenshots: z.array(ScreenshotSchema).default([]),
|
|
150
181
|
});
|
|
151
182
|
/** Alias retained for symmetry with the Rust side / external consumers. */
|
|
152
183
|
export const PkgManifestSchema = ManifestSchema;
|
package/dist/manifest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,0DAA0D;AAC1D,EAAE;AACF,0EAA0E;AAC1E,0EAA0E;AAC1E,wEAAwE;AACxE,4DAA4D;AAC5D,EAAE;AACF,wDAAwD;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,0DAA0D;AAC1D,EAAE;AACF,0EAA0E;AAC1E,0EAA0E;AAC1E,wEAAwE;AACxE,4DAA4D;AAC5D,EAAE;AACF,wDAAwD;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAU,CAAC;AAC7C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAU,CAAC;AAEnD,oCAAoC;AAEpC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,KAAK,C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