@ikenga/contract 0.7.0 → 0.9.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/README.md +56 -11
- package/dist/canvas/Canvas.d.ts +7 -0
- package/dist/canvas/Canvas.d.ts.map +1 -0
- package/dist/canvas/Canvas.js +115 -0
- package/dist/canvas/Canvas.js.map +1 -0
- package/dist/canvas/canvas.css +579 -0
- package/dist/canvas/index.d.ts +7 -0
- package/dist/canvas/index.d.ts.map +1 -0
- package/dist/canvas/index.js +4 -0
- package/dist/canvas/index.js.map +1 -0
- package/dist/canvas/types.d.ts +45 -0
- package/dist/canvas/types.d.ts.map +1 -0
- package/dist/canvas/types.js +2 -0
- package/dist/canvas/types.js.map +1 -0
- package/dist/canvas/use-drag-snap.d.ts +33 -0
- package/dist/canvas/use-drag-snap.d.ts.map +1 -0
- package/dist/canvas/use-drag-snap.js +73 -0
- package/dist/canvas/use-drag-snap.js.map +1 -0
- package/dist/canvas/use-pan-zoom.d.ts +32 -0
- package/dist/canvas/use-pan-zoom.d.ts.map +1 -0
- package/dist/canvas/use-pan-zoom.js +161 -0
- package/dist/canvas/use-pan-zoom.js.map +1 -0
- package/dist/engine.d.ts +574 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +85 -0
- package/dist/engine.js.map +1 -0
- package/dist/host-verbs.d.ts +194 -0
- package/dist/host-verbs.d.ts.map +1 -0
- package/dist/host-verbs.js +15 -0
- package/dist/host-verbs.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +376 -19
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +95 -4
- package/dist/manifest.js.map +1 -1
- package/dist/registry.d.ts +364 -36
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +9 -0
- package/dist/registry.js.map +1 -1
- package/dist/scopes.js +1 -1
- package/dist/scopes.js.map +1 -1
- package/package.json +36 -10
- package/schemas/registry/index-v1.json +11 -0
- package/src/canvas/Canvas.tsx +161 -0
- package/src/canvas/canvas.css +579 -0
- package/src/canvas/index.ts +14 -0
- package/src/canvas/types.ts +48 -0
- package/src/canvas/use-drag-snap.ts +107 -0
- package/src/canvas/use-pan-zoom.ts +211 -0
- package/src/host-verbs.ts +207 -0
- package/src/index.ts +1 -0
- package/src/manifest.test.ts +97 -0
- package/src/manifest.ts +109 -4
- package/src/registry.ts +9 -0
- package/src/scopes.ts +1 -1
package/dist/registry.d.ts
CHANGED
|
@@ -63,9 +63,6 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
63
63
|
key?: string | undefined;
|
|
64
64
|
}>>;
|
|
65
65
|
targets: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
66
|
-
skills: z.ZodOptional<z.ZodString>;
|
|
67
|
-
commands: z.ZodOptional<z.ZodString>;
|
|
68
|
-
agents: z.ZodOptional<z.ZodString>;
|
|
69
66
|
mcp: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
70
67
|
name: z.ZodString;
|
|
71
68
|
command: z.ZodString;
|
|
@@ -115,6 +112,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
115
112
|
'fs.read': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
116
113
|
'fs.write': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
117
114
|
net: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
115
|
+
'sqlite.tables': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
118
116
|
'supabase.tables': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
119
117
|
'vault.keys': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
120
118
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -122,6 +120,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
122
120
|
'fs.read': string[];
|
|
123
121
|
'fs.write': string[];
|
|
124
122
|
net: string[];
|
|
123
|
+
'sqlite.tables': string[];
|
|
125
124
|
'supabase.tables': string[];
|
|
126
125
|
'vault.keys': string[];
|
|
127
126
|
}, {
|
|
@@ -129,6 +128,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
129
128
|
'fs.read'?: string[] | undefined;
|
|
130
129
|
'fs.write'?: string[] | undefined;
|
|
131
130
|
net?: string[] | undefined;
|
|
131
|
+
'sqlite.tables'?: string[] | undefined;
|
|
132
132
|
'supabase.tables'?: string[] | undefined;
|
|
133
133
|
'vault.keys'?: string[] | undefined;
|
|
134
134
|
}>>;
|
|
@@ -359,6 +359,57 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
359
359
|
}, {
|
|
360
360
|
key_prefixes?: string[] | undefined;
|
|
361
361
|
}>>;
|
|
362
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
supabase: z.ZodOptional<z.ZodObject<{
|
|
364
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
required: boolean;
|
|
367
|
+
}, {
|
|
368
|
+
required?: boolean | undefined;
|
|
369
|
+
}>>;
|
|
370
|
+
sqlite: z.ZodOptional<z.ZodObject<{
|
|
371
|
+
db: z.ZodDefault<z.ZodString>;
|
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
|
373
|
+
db: string;
|
|
374
|
+
}, {
|
|
375
|
+
db?: string | undefined;
|
|
376
|
+
}>>;
|
|
377
|
+
webview: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
child_webviews: z.ZodDefault<z.ZodBoolean>;
|
|
379
|
+
partitions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
380
|
+
}, "strip", z.ZodTypeAny, {
|
|
381
|
+
child_webviews: boolean;
|
|
382
|
+
partitions: string[];
|
|
383
|
+
}, {
|
|
384
|
+
child_webviews?: boolean | undefined;
|
|
385
|
+
partitions?: string[] | undefined;
|
|
386
|
+
}>>;
|
|
387
|
+
agentOps: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
supabase?: {
|
|
390
|
+
required: boolean;
|
|
391
|
+
} | undefined;
|
|
392
|
+
sqlite?: {
|
|
393
|
+
db: string;
|
|
394
|
+
} | undefined;
|
|
395
|
+
webview?: {
|
|
396
|
+
child_webviews: boolean;
|
|
397
|
+
partitions: string[];
|
|
398
|
+
} | undefined;
|
|
399
|
+
agentOps?: {} | undefined;
|
|
400
|
+
}, {
|
|
401
|
+
supabase?: {
|
|
402
|
+
required?: boolean | undefined;
|
|
403
|
+
} | undefined;
|
|
404
|
+
sqlite?: {
|
|
405
|
+
db?: string | undefined;
|
|
406
|
+
} | undefined;
|
|
407
|
+
webview?: {
|
|
408
|
+
child_webviews?: boolean | undefined;
|
|
409
|
+
partitions?: string[] | undefined;
|
|
410
|
+
} | undefined;
|
|
411
|
+
agentOps?: {} | undefined;
|
|
412
|
+
}>>;
|
|
362
413
|
engine: z.ZodOptional<z.ZodObject<{
|
|
363
414
|
agentId: z.ZodString;
|
|
364
415
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -475,6 +526,22 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
475
526
|
path: string;
|
|
476
527
|
caption?: string | undefined;
|
|
477
528
|
}>, "many">>;
|
|
529
|
+
requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
530
|
+
kind: z.ZodString;
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
source: z.ZodOptional<z.ZodEnum<["git", "npx", "catalog", "local"]>>;
|
|
533
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
534
|
+
}, "strict", z.ZodTypeAny, {
|
|
535
|
+
name: string;
|
|
536
|
+
kind: string;
|
|
537
|
+
ref?: string | undefined;
|
|
538
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
539
|
+
}, {
|
|
540
|
+
name: string;
|
|
541
|
+
kind: string;
|
|
542
|
+
ref?: string | undefined;
|
|
543
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
544
|
+
}>, "many">>;
|
|
478
545
|
}, "strip", z.ZodTypeAny, {
|
|
479
546
|
mcp: {
|
|
480
547
|
args: string[];
|
|
@@ -488,11 +555,18 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
488
555
|
id: string;
|
|
489
556
|
name: string;
|
|
490
557
|
version: string;
|
|
558
|
+
requires: {
|
|
559
|
+
name: string;
|
|
560
|
+
kind: string;
|
|
561
|
+
ref?: string | undefined;
|
|
562
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
563
|
+
}[];
|
|
491
564
|
permissions: {
|
|
492
565
|
'shell.execute': string[];
|
|
493
566
|
'fs.read': string[];
|
|
494
567
|
'fs.write': string[];
|
|
495
568
|
net: string[];
|
|
569
|
+
'sqlite.tables': string[];
|
|
496
570
|
'supabase.tables': string[];
|
|
497
571
|
'vault.keys': string[];
|
|
498
572
|
};
|
|
@@ -549,10 +623,20 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
549
623
|
name: string;
|
|
550
624
|
key?: string | undefined;
|
|
551
625
|
} | undefined;
|
|
626
|
+
capabilities?: {
|
|
627
|
+
supabase?: {
|
|
628
|
+
required: boolean;
|
|
629
|
+
} | undefined;
|
|
630
|
+
sqlite?: {
|
|
631
|
+
db: string;
|
|
632
|
+
} | undefined;
|
|
633
|
+
webview?: {
|
|
634
|
+
child_webviews: boolean;
|
|
635
|
+
partitions: string[];
|
|
636
|
+
} | undefined;
|
|
637
|
+
agentOps?: {} | undefined;
|
|
638
|
+
} | undefined;
|
|
552
639
|
kind?: string | undefined;
|
|
553
|
-
skills?: string | undefined;
|
|
554
|
-
commands?: string | undefined;
|
|
555
|
-
agents?: string | undefined;
|
|
556
640
|
migrations?: string | undefined;
|
|
557
641
|
settings?: {
|
|
558
642
|
schema: {
|
|
@@ -623,19 +707,36 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
623
707
|
name: string;
|
|
624
708
|
key?: string | undefined;
|
|
625
709
|
} | undefined;
|
|
710
|
+
requires?: {
|
|
711
|
+
name: string;
|
|
712
|
+
kind: string;
|
|
713
|
+
ref?: string | undefined;
|
|
714
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
715
|
+
}[] | undefined;
|
|
716
|
+
capabilities?: {
|
|
717
|
+
supabase?: {
|
|
718
|
+
required?: boolean | undefined;
|
|
719
|
+
} | undefined;
|
|
720
|
+
sqlite?: {
|
|
721
|
+
db?: string | undefined;
|
|
722
|
+
} | undefined;
|
|
723
|
+
webview?: {
|
|
724
|
+
child_webviews?: boolean | undefined;
|
|
725
|
+
partitions?: string[] | undefined;
|
|
726
|
+
} | undefined;
|
|
727
|
+
agentOps?: {} | undefined;
|
|
728
|
+
} | undefined;
|
|
626
729
|
kind?: string | undefined;
|
|
627
730
|
permissions?: {
|
|
628
731
|
'shell.execute'?: string[] | undefined;
|
|
629
732
|
'fs.read'?: string[] | undefined;
|
|
630
733
|
'fs.write'?: string[] | undefined;
|
|
631
734
|
net?: string[] | undefined;
|
|
735
|
+
'sqlite.tables'?: string[] | undefined;
|
|
632
736
|
'supabase.tables'?: string[] | undefined;
|
|
633
737
|
'vault.keys'?: string[] | undefined;
|
|
634
738
|
} | undefined;
|
|
635
739
|
targets?: string[] | undefined;
|
|
636
|
-
skills?: string | undefined;
|
|
637
|
-
commands?: string | undefined;
|
|
638
|
-
agents?: string | undefined;
|
|
639
740
|
sidecars?: {
|
|
640
741
|
name: string;
|
|
641
742
|
bin: string;
|
|
@@ -782,11 +883,18 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
782
883
|
id: string;
|
|
783
884
|
name: string;
|
|
784
885
|
version: string;
|
|
886
|
+
requires: {
|
|
887
|
+
name: string;
|
|
888
|
+
kind: string;
|
|
889
|
+
ref?: string | undefined;
|
|
890
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
891
|
+
}[];
|
|
785
892
|
permissions: {
|
|
786
893
|
'shell.execute': string[];
|
|
787
894
|
'fs.read': string[];
|
|
788
895
|
'fs.write': string[];
|
|
789
896
|
net: string[];
|
|
897
|
+
'sqlite.tables': string[];
|
|
790
898
|
'supabase.tables': string[];
|
|
791
899
|
'vault.keys': string[];
|
|
792
900
|
};
|
|
@@ -843,10 +951,20 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
843
951
|
name: string;
|
|
844
952
|
key?: string | undefined;
|
|
845
953
|
} | undefined;
|
|
954
|
+
capabilities?: {
|
|
955
|
+
supabase?: {
|
|
956
|
+
required: boolean;
|
|
957
|
+
} | undefined;
|
|
958
|
+
sqlite?: {
|
|
959
|
+
db: string;
|
|
960
|
+
} | undefined;
|
|
961
|
+
webview?: {
|
|
962
|
+
child_webviews: boolean;
|
|
963
|
+
partitions: string[];
|
|
964
|
+
} | undefined;
|
|
965
|
+
agentOps?: {} | undefined;
|
|
966
|
+
} | undefined;
|
|
846
967
|
kind?: string | undefined;
|
|
847
|
-
skills?: string | undefined;
|
|
848
|
-
commands?: string | undefined;
|
|
849
|
-
agents?: string | undefined;
|
|
850
968
|
migrations?: string | undefined;
|
|
851
969
|
settings?: {
|
|
852
970
|
schema: {
|
|
@@ -928,19 +1046,36 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
928
1046
|
name: string;
|
|
929
1047
|
key?: string | undefined;
|
|
930
1048
|
} | undefined;
|
|
1049
|
+
requires?: {
|
|
1050
|
+
name: string;
|
|
1051
|
+
kind: string;
|
|
1052
|
+
ref?: string | undefined;
|
|
1053
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1054
|
+
}[] | undefined;
|
|
1055
|
+
capabilities?: {
|
|
1056
|
+
supabase?: {
|
|
1057
|
+
required?: boolean | undefined;
|
|
1058
|
+
} | undefined;
|
|
1059
|
+
sqlite?: {
|
|
1060
|
+
db?: string | undefined;
|
|
1061
|
+
} | undefined;
|
|
1062
|
+
webview?: {
|
|
1063
|
+
child_webviews?: boolean | undefined;
|
|
1064
|
+
partitions?: string[] | undefined;
|
|
1065
|
+
} | undefined;
|
|
1066
|
+
agentOps?: {} | undefined;
|
|
1067
|
+
} | undefined;
|
|
931
1068
|
kind?: string | undefined;
|
|
932
1069
|
permissions?: {
|
|
933
1070
|
'shell.execute'?: string[] | undefined;
|
|
934
1071
|
'fs.read'?: string[] | undefined;
|
|
935
1072
|
'fs.write'?: string[] | undefined;
|
|
936
1073
|
net?: string[] | undefined;
|
|
1074
|
+
'sqlite.tables'?: string[] | undefined;
|
|
937
1075
|
'supabase.tables'?: string[] | undefined;
|
|
938
1076
|
'vault.keys'?: string[] | undefined;
|
|
939
1077
|
} | undefined;
|
|
940
1078
|
targets?: string[] | undefined;
|
|
941
|
-
skills?: string | undefined;
|
|
942
|
-
commands?: string | undefined;
|
|
943
|
-
agents?: string | undefined;
|
|
944
1079
|
sidecars?: {
|
|
945
1080
|
name: string;
|
|
946
1081
|
bin: string;
|
|
@@ -1082,9 +1217,6 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1082
1217
|
key?: string | undefined;
|
|
1083
1218
|
}>>;
|
|
1084
1219
|
targets: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1085
|
-
skills: z.ZodOptional<z.ZodString>;
|
|
1086
|
-
commands: z.ZodOptional<z.ZodString>;
|
|
1087
|
-
agents: z.ZodOptional<z.ZodString>;
|
|
1088
1220
|
mcp: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1089
1221
|
name: z.ZodString;
|
|
1090
1222
|
command: z.ZodString;
|
|
@@ -1134,6 +1266,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1134
1266
|
'fs.read': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1135
1267
|
'fs.write': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1136
1268
|
net: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1269
|
+
'sqlite.tables': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1137
1270
|
'supabase.tables': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1138
1271
|
'vault.keys': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1139
1272
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1141,6 +1274,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1141
1274
|
'fs.read': string[];
|
|
1142
1275
|
'fs.write': string[];
|
|
1143
1276
|
net: string[];
|
|
1277
|
+
'sqlite.tables': string[];
|
|
1144
1278
|
'supabase.tables': string[];
|
|
1145
1279
|
'vault.keys': string[];
|
|
1146
1280
|
}, {
|
|
@@ -1148,6 +1282,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1148
1282
|
'fs.read'?: string[] | undefined;
|
|
1149
1283
|
'fs.write'?: string[] | undefined;
|
|
1150
1284
|
net?: string[] | undefined;
|
|
1285
|
+
'sqlite.tables'?: string[] | undefined;
|
|
1151
1286
|
'supabase.tables'?: string[] | undefined;
|
|
1152
1287
|
'vault.keys'?: string[] | undefined;
|
|
1153
1288
|
}>>;
|
|
@@ -1378,6 +1513,57 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1378
1513
|
}, {
|
|
1379
1514
|
key_prefixes?: string[] | undefined;
|
|
1380
1515
|
}>>;
|
|
1516
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
1517
|
+
supabase: z.ZodOptional<z.ZodObject<{
|
|
1518
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1519
|
+
}, "strip", z.ZodTypeAny, {
|
|
1520
|
+
required: boolean;
|
|
1521
|
+
}, {
|
|
1522
|
+
required?: boolean | undefined;
|
|
1523
|
+
}>>;
|
|
1524
|
+
sqlite: z.ZodOptional<z.ZodObject<{
|
|
1525
|
+
db: z.ZodDefault<z.ZodString>;
|
|
1526
|
+
}, "strip", z.ZodTypeAny, {
|
|
1527
|
+
db: string;
|
|
1528
|
+
}, {
|
|
1529
|
+
db?: string | undefined;
|
|
1530
|
+
}>>;
|
|
1531
|
+
webview: z.ZodOptional<z.ZodObject<{
|
|
1532
|
+
child_webviews: z.ZodDefault<z.ZodBoolean>;
|
|
1533
|
+
partitions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1534
|
+
}, "strip", z.ZodTypeAny, {
|
|
1535
|
+
child_webviews: boolean;
|
|
1536
|
+
partitions: string[];
|
|
1537
|
+
}, {
|
|
1538
|
+
child_webviews?: boolean | undefined;
|
|
1539
|
+
partitions?: string[] | undefined;
|
|
1540
|
+
}>>;
|
|
1541
|
+
agentOps: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
1542
|
+
}, "strip", z.ZodTypeAny, {
|
|
1543
|
+
supabase?: {
|
|
1544
|
+
required: boolean;
|
|
1545
|
+
} | undefined;
|
|
1546
|
+
sqlite?: {
|
|
1547
|
+
db: string;
|
|
1548
|
+
} | undefined;
|
|
1549
|
+
webview?: {
|
|
1550
|
+
child_webviews: boolean;
|
|
1551
|
+
partitions: string[];
|
|
1552
|
+
} | undefined;
|
|
1553
|
+
agentOps?: {} | undefined;
|
|
1554
|
+
}, {
|
|
1555
|
+
supabase?: {
|
|
1556
|
+
required?: boolean | undefined;
|
|
1557
|
+
} | undefined;
|
|
1558
|
+
sqlite?: {
|
|
1559
|
+
db?: string | undefined;
|
|
1560
|
+
} | undefined;
|
|
1561
|
+
webview?: {
|
|
1562
|
+
child_webviews?: boolean | undefined;
|
|
1563
|
+
partitions?: string[] | undefined;
|
|
1564
|
+
} | undefined;
|
|
1565
|
+
agentOps?: {} | undefined;
|
|
1566
|
+
}>>;
|
|
1381
1567
|
engine: z.ZodOptional<z.ZodObject<{
|
|
1382
1568
|
agentId: z.ZodString;
|
|
1383
1569
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -1494,6 +1680,22 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1494
1680
|
path: string;
|
|
1495
1681
|
caption?: string | undefined;
|
|
1496
1682
|
}>, "many">>;
|
|
1683
|
+
requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1684
|
+
kind: z.ZodString;
|
|
1685
|
+
name: z.ZodString;
|
|
1686
|
+
source: z.ZodOptional<z.ZodEnum<["git", "npx", "catalog", "local"]>>;
|
|
1687
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
}, "strict", z.ZodTypeAny, {
|
|
1689
|
+
name: string;
|
|
1690
|
+
kind: string;
|
|
1691
|
+
ref?: string | undefined;
|
|
1692
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1693
|
+
}, {
|
|
1694
|
+
name: string;
|
|
1695
|
+
kind: string;
|
|
1696
|
+
ref?: string | undefined;
|
|
1697
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1698
|
+
}>, "many">>;
|
|
1497
1699
|
}, "strip", z.ZodTypeAny, {
|
|
1498
1700
|
mcp: {
|
|
1499
1701
|
args: string[];
|
|
@@ -1507,11 +1709,18 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1507
1709
|
id: string;
|
|
1508
1710
|
name: string;
|
|
1509
1711
|
version: string;
|
|
1712
|
+
requires: {
|
|
1713
|
+
name: string;
|
|
1714
|
+
kind: string;
|
|
1715
|
+
ref?: string | undefined;
|
|
1716
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1717
|
+
}[];
|
|
1510
1718
|
permissions: {
|
|
1511
1719
|
'shell.execute': string[];
|
|
1512
1720
|
'fs.read': string[];
|
|
1513
1721
|
'fs.write': string[];
|
|
1514
1722
|
net: string[];
|
|
1723
|
+
'sqlite.tables': string[];
|
|
1515
1724
|
'supabase.tables': string[];
|
|
1516
1725
|
'vault.keys': string[];
|
|
1517
1726
|
};
|
|
@@ -1568,10 +1777,20 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1568
1777
|
name: string;
|
|
1569
1778
|
key?: string | undefined;
|
|
1570
1779
|
} | undefined;
|
|
1780
|
+
capabilities?: {
|
|
1781
|
+
supabase?: {
|
|
1782
|
+
required: boolean;
|
|
1783
|
+
} | undefined;
|
|
1784
|
+
sqlite?: {
|
|
1785
|
+
db: string;
|
|
1786
|
+
} | undefined;
|
|
1787
|
+
webview?: {
|
|
1788
|
+
child_webviews: boolean;
|
|
1789
|
+
partitions: string[];
|
|
1790
|
+
} | undefined;
|
|
1791
|
+
agentOps?: {} | undefined;
|
|
1792
|
+
} | undefined;
|
|
1571
1793
|
kind?: string | undefined;
|
|
1572
|
-
skills?: string | undefined;
|
|
1573
|
-
commands?: string | undefined;
|
|
1574
|
-
agents?: string | undefined;
|
|
1575
1794
|
migrations?: string | undefined;
|
|
1576
1795
|
settings?: {
|
|
1577
1796
|
schema: {
|
|
@@ -1642,19 +1861,36 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1642
1861
|
name: string;
|
|
1643
1862
|
key?: string | undefined;
|
|
1644
1863
|
} | undefined;
|
|
1864
|
+
requires?: {
|
|
1865
|
+
name: string;
|
|
1866
|
+
kind: string;
|
|
1867
|
+
ref?: string | undefined;
|
|
1868
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1869
|
+
}[] | undefined;
|
|
1870
|
+
capabilities?: {
|
|
1871
|
+
supabase?: {
|
|
1872
|
+
required?: boolean | undefined;
|
|
1873
|
+
} | undefined;
|
|
1874
|
+
sqlite?: {
|
|
1875
|
+
db?: string | undefined;
|
|
1876
|
+
} | undefined;
|
|
1877
|
+
webview?: {
|
|
1878
|
+
child_webviews?: boolean | undefined;
|
|
1879
|
+
partitions?: string[] | undefined;
|
|
1880
|
+
} | undefined;
|
|
1881
|
+
agentOps?: {} | undefined;
|
|
1882
|
+
} | undefined;
|
|
1645
1883
|
kind?: string | undefined;
|
|
1646
1884
|
permissions?: {
|
|
1647
1885
|
'shell.execute'?: string[] | undefined;
|
|
1648
1886
|
'fs.read'?: string[] | undefined;
|
|
1649
1887
|
'fs.write'?: string[] | undefined;
|
|
1650
1888
|
net?: string[] | undefined;
|
|
1889
|
+
'sqlite.tables'?: string[] | undefined;
|
|
1651
1890
|
'supabase.tables'?: string[] | undefined;
|
|
1652
1891
|
'vault.keys'?: string[] | undefined;
|
|
1653
1892
|
} | undefined;
|
|
1654
1893
|
targets?: string[] | undefined;
|
|
1655
|
-
skills?: string | undefined;
|
|
1656
|
-
commands?: string | undefined;
|
|
1657
|
-
agents?: string | undefined;
|
|
1658
1894
|
sidecars?: {
|
|
1659
1895
|
name: string;
|
|
1660
1896
|
bin: string;
|
|
@@ -1801,11 +2037,18 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1801
2037
|
id: string;
|
|
1802
2038
|
name: string;
|
|
1803
2039
|
version: string;
|
|
2040
|
+
requires: {
|
|
2041
|
+
name: string;
|
|
2042
|
+
kind: string;
|
|
2043
|
+
ref?: string | undefined;
|
|
2044
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
2045
|
+
}[];
|
|
1804
2046
|
permissions: {
|
|
1805
2047
|
'shell.execute': string[];
|
|
1806
2048
|
'fs.read': string[];
|
|
1807
2049
|
'fs.write': string[];
|
|
1808
2050
|
net: string[];
|
|
2051
|
+
'sqlite.tables': string[];
|
|
1809
2052
|
'supabase.tables': string[];
|
|
1810
2053
|
'vault.keys': string[];
|
|
1811
2054
|
};
|
|
@@ -1862,10 +2105,20 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1862
2105
|
name: string;
|
|
1863
2106
|
key?: string | undefined;
|
|
1864
2107
|
} | undefined;
|
|
2108
|
+
capabilities?: {
|
|
2109
|
+
supabase?: {
|
|
2110
|
+
required: boolean;
|
|
2111
|
+
} | undefined;
|
|
2112
|
+
sqlite?: {
|
|
2113
|
+
db: string;
|
|
2114
|
+
} | undefined;
|
|
2115
|
+
webview?: {
|
|
2116
|
+
child_webviews: boolean;
|
|
2117
|
+
partitions: string[];
|
|
2118
|
+
} | undefined;
|
|
2119
|
+
agentOps?: {} | undefined;
|
|
2120
|
+
} | undefined;
|
|
1865
2121
|
kind?: string | undefined;
|
|
1866
|
-
skills?: string | undefined;
|
|
1867
|
-
commands?: string | undefined;
|
|
1868
|
-
agents?: string | undefined;
|
|
1869
2122
|
migrations?: string | undefined;
|
|
1870
2123
|
settings?: {
|
|
1871
2124
|
schema: {
|
|
@@ -1947,19 +2200,36 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1947
2200
|
name: string;
|
|
1948
2201
|
key?: string | undefined;
|
|
1949
2202
|
} | undefined;
|
|
2203
|
+
requires?: {
|
|
2204
|
+
name: string;
|
|
2205
|
+
kind: string;
|
|
2206
|
+
ref?: string | undefined;
|
|
2207
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
2208
|
+
}[] | undefined;
|
|
2209
|
+
capabilities?: {
|
|
2210
|
+
supabase?: {
|
|
2211
|
+
required?: boolean | undefined;
|
|
2212
|
+
} | undefined;
|
|
2213
|
+
sqlite?: {
|
|
2214
|
+
db?: string | undefined;
|
|
2215
|
+
} | undefined;
|
|
2216
|
+
webview?: {
|
|
2217
|
+
child_webviews?: boolean | undefined;
|
|
2218
|
+
partitions?: string[] | undefined;
|
|
2219
|
+
} | undefined;
|
|
2220
|
+
agentOps?: {} | undefined;
|
|
2221
|
+
} | undefined;
|
|
1950
2222
|
kind?: string | undefined;
|
|
1951
2223
|
permissions?: {
|
|
1952
2224
|
'shell.execute'?: string[] | undefined;
|
|
1953
2225
|
'fs.read'?: string[] | undefined;
|
|
1954
2226
|
'fs.write'?: string[] | undefined;
|
|
1955
2227
|
net?: string[] | undefined;
|
|
2228
|
+
'sqlite.tables'?: string[] | undefined;
|
|
1956
2229
|
'supabase.tables'?: string[] | undefined;
|
|
1957
2230
|
'vault.keys'?: string[] | undefined;
|
|
1958
2231
|
} | undefined;
|
|
1959
2232
|
targets?: string[] | undefined;
|
|
1960
|
-
skills?: string | undefined;
|
|
1961
|
-
commands?: string | undefined;
|
|
1962
|
-
agents?: string | undefined;
|
|
1963
2233
|
sidecars?: {
|
|
1964
2234
|
name: string;
|
|
1965
2235
|
bin: string;
|
|
@@ -2090,11 +2360,18 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2090
2360
|
id: string;
|
|
2091
2361
|
name: string;
|
|
2092
2362
|
version: string;
|
|
2363
|
+
requires: {
|
|
2364
|
+
name: string;
|
|
2365
|
+
kind: string;
|
|
2366
|
+
ref?: string | undefined;
|
|
2367
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
2368
|
+
}[];
|
|
2093
2369
|
permissions: {
|
|
2094
2370
|
'shell.execute': string[];
|
|
2095
2371
|
'fs.read': string[];
|
|
2096
2372
|
'fs.write': string[];
|
|
2097
2373
|
net: string[];
|
|
2374
|
+
'sqlite.tables': string[];
|
|
2098
2375
|
'supabase.tables': string[];
|
|
2099
2376
|
'vault.keys': string[];
|
|
2100
2377
|
};
|
|
@@ -2151,10 +2428,20 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2151
2428
|
name: string;
|
|
2152
2429
|
key?: string | undefined;
|
|
2153
2430
|
} | undefined;
|
|
2431
|
+
capabilities?: {
|
|
2432
|
+
supabase?: {
|
|
2433
|
+
required: boolean;
|
|
2434
|
+
} | undefined;
|
|
2435
|
+
sqlite?: {
|
|
2436
|
+
db: string;
|
|
2437
|
+
} | undefined;
|
|
2438
|
+
webview?: {
|
|
2439
|
+
child_webviews: boolean;
|
|
2440
|
+
partitions: string[];
|
|
2441
|
+
} | undefined;
|
|
2442
|
+
agentOps?: {} | undefined;
|
|
2443
|
+
} | undefined;
|
|
2154
2444
|
kind?: string | undefined;
|
|
2155
|
-
skills?: string | undefined;
|
|
2156
|
-
commands?: string | undefined;
|
|
2157
|
-
agents?: string | undefined;
|
|
2158
2445
|
migrations?: string | undefined;
|
|
2159
2446
|
settings?: {
|
|
2160
2447
|
schema: {
|
|
@@ -2241,19 +2528,36 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2241
2528
|
name: string;
|
|
2242
2529
|
key?: string | undefined;
|
|
2243
2530
|
} | undefined;
|
|
2531
|
+
requires?: {
|
|
2532
|
+
name: string;
|
|
2533
|
+
kind: string;
|
|
2534
|
+
ref?: string | undefined;
|
|
2535
|
+
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
2536
|
+
}[] | undefined;
|
|
2537
|
+
capabilities?: {
|
|
2538
|
+
supabase?: {
|
|
2539
|
+
required?: boolean | undefined;
|
|
2540
|
+
} | undefined;
|
|
2541
|
+
sqlite?: {
|
|
2542
|
+
db?: string | undefined;
|
|
2543
|
+
} | undefined;
|
|
2544
|
+
webview?: {
|
|
2545
|
+
child_webviews?: boolean | undefined;
|
|
2546
|
+
partitions?: string[] | undefined;
|
|
2547
|
+
} | undefined;
|
|
2548
|
+
agentOps?: {} | undefined;
|
|
2549
|
+
} | undefined;
|
|
2244
2550
|
kind?: string | undefined;
|
|
2245
2551
|
permissions?: {
|
|
2246
2552
|
'shell.execute'?: string[] | undefined;
|
|
2247
2553
|
'fs.read'?: string[] | undefined;
|
|
2248
2554
|
'fs.write'?: string[] | undefined;
|
|
2249
2555
|
net?: string[] | undefined;
|
|
2556
|
+
'sqlite.tables'?: string[] | undefined;
|
|
2250
2557
|
'supabase.tables'?: string[] | undefined;
|
|
2251
2558
|
'vault.keys'?: string[] | undefined;
|
|
2252
2559
|
} | undefined;
|
|
2253
2560
|
targets?: string[] | undefined;
|
|
2254
|
-
skills?: string | undefined;
|
|
2255
|
-
commands?: string | undefined;
|
|
2256
|
-
agents?: string | undefined;
|
|
2257
2561
|
sidecars?: {
|
|
2258
2562
|
name: string;
|
|
2259
2563
|
bin: string;
|
|
@@ -2382,6 +2686,15 @@ export declare const RegistryEntrySchema: z.ZodObject<{
|
|
|
2382
2686
|
* Lets the shell render a thumb without fetching the per-pkg detail file.
|
|
2383
2687
|
*/
|
|
2384
2688
|
screenshot: z.ZodOptional<z.ZodString>;
|
|
2689
|
+
/**
|
|
2690
|
+
* Catalog visibility. `"hidden"` keeps the pkg installable by exact name
|
|
2691
|
+
* (CLI `add`/`update`, registry install, update detection) but omits it
|
|
2692
|
+
* from the default browse/catalog surfaces — used for dev/test fixtures
|
|
2693
|
+
* and scaffolds (e.g. `pkg-hello`, `pkg-engine-noop`, the cursor-agent
|
|
2694
|
+
* scaffold). Absent ⇒ treated as `"public"`. Set by the publish pipeline's
|
|
2695
|
+
* curation step (`ikenga-pkgs/scripts/update-registry-index.mjs`).
|
|
2696
|
+
*/
|
|
2697
|
+
visibility: z.ZodOptional<z.ZodEnum<["public", "hidden"]>>;
|
|
2385
2698
|
}, "strip", z.ZodTypeAny, {
|
|
2386
2699
|
name: string;
|
|
2387
2700
|
latest: string;
|
|
@@ -2389,6 +2702,7 @@ export declare const RegistryEntrySchema: z.ZodObject<{
|
|
|
2389
2702
|
description?: string | undefined;
|
|
2390
2703
|
kind?: string | undefined;
|
|
2391
2704
|
screenshot?: string | undefined;
|
|
2705
|
+
visibility?: "hidden" | "public" | undefined;
|
|
2392
2706
|
}, {
|
|
2393
2707
|
name: string;
|
|
2394
2708
|
latest: string;
|
|
@@ -2396,6 +2710,7 @@ export declare const RegistryEntrySchema: z.ZodObject<{
|
|
|
2396
2710
|
description?: string | undefined;
|
|
2397
2711
|
kind?: string | undefined;
|
|
2398
2712
|
screenshot?: string | undefined;
|
|
2713
|
+
visibility?: "hidden" | "public" | undefined;
|
|
2399
2714
|
}>;
|
|
2400
2715
|
export type RegistryEntry = z.infer<typeof RegistryEntrySchema>;
|
|
2401
2716
|
export declare const RegistryIndexSchema: z.ZodObject<{
|
|
@@ -2424,6 +2739,15 @@ export declare const RegistryIndexSchema: z.ZodObject<{
|
|
|
2424
2739
|
* Lets the shell render a thumb without fetching the per-pkg detail file.
|
|
2425
2740
|
*/
|
|
2426
2741
|
screenshot: z.ZodOptional<z.ZodString>;
|
|
2742
|
+
/**
|
|
2743
|
+
* Catalog visibility. `"hidden"` keeps the pkg installable by exact name
|
|
2744
|
+
* (CLI `add`/`update`, registry install, update detection) but omits it
|
|
2745
|
+
* from the default browse/catalog surfaces — used for dev/test fixtures
|
|
2746
|
+
* and scaffolds (e.g. `pkg-hello`, `pkg-engine-noop`, the cursor-agent
|
|
2747
|
+
* scaffold). Absent ⇒ treated as `"public"`. Set by the publish pipeline's
|
|
2748
|
+
* curation step (`ikenga-pkgs/scripts/update-registry-index.mjs`).
|
|
2749
|
+
*/
|
|
2750
|
+
visibility: z.ZodOptional<z.ZodEnum<["public", "hidden"]>>;
|
|
2427
2751
|
}, "strip", z.ZodTypeAny, {
|
|
2428
2752
|
name: string;
|
|
2429
2753
|
latest: string;
|
|
@@ -2431,6 +2755,7 @@ export declare const RegistryIndexSchema: z.ZodObject<{
|
|
|
2431
2755
|
description?: string | undefined;
|
|
2432
2756
|
kind?: string | undefined;
|
|
2433
2757
|
screenshot?: string | undefined;
|
|
2758
|
+
visibility?: "hidden" | "public" | undefined;
|
|
2434
2759
|
}, {
|
|
2435
2760
|
name: string;
|
|
2436
2761
|
latest: string;
|
|
@@ -2438,6 +2763,7 @@ export declare const RegistryIndexSchema: z.ZodObject<{
|
|
|
2438
2763
|
description?: string | undefined;
|
|
2439
2764
|
kind?: string | undefined;
|
|
2440
2765
|
screenshot?: string | undefined;
|
|
2766
|
+
visibility?: "hidden" | "public" | undefined;
|
|
2441
2767
|
}>, "many">;
|
|
2442
2768
|
}, "strip", z.ZodTypeAny, {
|
|
2443
2769
|
$schemaVersion: 1;
|
|
@@ -2449,6 +2775,7 @@ export declare const RegistryIndexSchema: z.ZodObject<{
|
|
|
2449
2775
|
description?: string | undefined;
|
|
2450
2776
|
kind?: string | undefined;
|
|
2451
2777
|
screenshot?: string | undefined;
|
|
2778
|
+
visibility?: "hidden" | "public" | undefined;
|
|
2452
2779
|
}[];
|
|
2453
2780
|
}, {
|
|
2454
2781
|
$schemaVersion: 1;
|
|
@@ -2460,6 +2787,7 @@ export declare const RegistryIndexSchema: z.ZodObject<{
|
|
|
2460
2787
|
description?: string | undefined;
|
|
2461
2788
|
kind?: string | undefined;
|
|
2462
2789
|
screenshot?: string | undefined;
|
|
2790
|
+
visibility?: "hidden" | "public" | undefined;
|
|
2463
2791
|
}[];
|
|
2464
2792
|
}>;
|
|
2465
2793
|
export type RegistryIndex = z.infer<typeof RegistryIndexSchema>;
|