@ikenga/contract 0.12.0 → 0.13.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/action-frontmatter.d.ts +389 -0
- package/dist/action-frontmatter.d.ts.map +1 -0
- package/dist/action-frontmatter.js +215 -0
- package/dist/action-frontmatter.js.map +1 -0
- package/dist/artifact.d.ts +110 -110
- package/dist/browser.d.ts +2 -2
- package/dist/engine/adapter.d.ts +6 -6
- 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 +175 -150
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +5 -0
- package/dist/manifest.js.map +1 -1
- package/dist/registry.d.ts +301 -285
- package/dist/registry.d.ts.map +1 -1
- package/dist/window.d.ts +8 -8
- package/package.json +7 -2
- package/src/action-frontmatter.test.ts +219 -0
- package/src/action-frontmatter.ts +250 -0
- package/src/index.ts +1 -0
- package/src/manifest.ts +5 -0
package/dist/manifest.d.ts
CHANGED
|
@@ -84,7 +84,13 @@ export declare const PermissionsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
84
84
|
* without errors during the transition window. */
|
|
85
85
|
'supabase.tables': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
86
86
|
'vault.keys': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
87
|
+
/** Engine scopes exercisable from the pkg iframe. `"invoke"` gates the
|
|
88
|
+
* FE-side host.sendToActiveSession / host.startChatSession verbs
|
|
89
|
+
* (pkgDeclaresScope). Mirrors `Permissions.engine` in the shell's
|
|
90
|
+
* manifest.rs — keep in lockstep. */
|
|
91
|
+
engine: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
87
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
engine: string[];
|
|
88
94
|
'shell.execute': string[];
|
|
89
95
|
'fs.read': string[];
|
|
90
96
|
'fs.write': string[];
|
|
@@ -93,6 +99,7 @@ export declare const PermissionsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
93
99
|
'supabase.tables': string[];
|
|
94
100
|
'vault.keys': string[];
|
|
95
101
|
}, {
|
|
102
|
+
engine?: string[] | undefined;
|
|
96
103
|
'shell.execute'?: string[] | undefined;
|
|
97
104
|
'fs.read'?: string[] | undefined;
|
|
98
105
|
'fs.write'?: string[] | undefined;
|
|
@@ -568,14 +575,14 @@ export declare const WindowBlockSchema: z.ZodObject<{
|
|
|
568
575
|
decorations: z.ZodOptional<z.ZodBoolean>;
|
|
569
576
|
menu: z.ZodOptional<z.ZodString>;
|
|
570
577
|
}, "strip", z.ZodTypeAny, {
|
|
571
|
-
url: string;
|
|
572
578
|
label: string;
|
|
579
|
+
url: string;
|
|
573
580
|
size?: [number, number] | undefined;
|
|
574
581
|
decorations?: boolean | undefined;
|
|
575
582
|
menu?: string | undefined;
|
|
576
583
|
}, {
|
|
577
|
-
url: string;
|
|
578
584
|
label: string;
|
|
585
|
+
url: string;
|
|
579
586
|
size?: [number, number] | undefined;
|
|
580
587
|
decorations?: boolean | undefined;
|
|
581
588
|
menu?: string | undefined;
|
|
@@ -632,13 +639,13 @@ export declare const RequiresEntrySchema: z.ZodObject<{
|
|
|
632
639
|
* explicit semver range later without another schema break. */
|
|
633
640
|
ref: z.ZodOptional<z.ZodString>;
|
|
634
641
|
}, "strict", z.ZodTypeAny, {
|
|
635
|
-
name: string;
|
|
636
642
|
kind: string;
|
|
643
|
+
name: string;
|
|
637
644
|
ref?: string | undefined;
|
|
638
645
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
639
646
|
}, {
|
|
640
|
-
name: string;
|
|
641
647
|
kind: string;
|
|
648
|
+
name: string;
|
|
642
649
|
ref?: string | undefined;
|
|
643
650
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
644
651
|
}>;
|
|
@@ -735,7 +742,13 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
735
742
|
* without errors during the transition window. */
|
|
736
743
|
'supabase.tables': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
737
744
|
'vault.keys': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
745
|
+
/** Engine scopes exercisable from the pkg iframe. `"invoke"` gates the
|
|
746
|
+
* FE-side host.sendToActiveSession / host.startChatSession verbs
|
|
747
|
+
* (pkgDeclaresScope). Mirrors `Permissions.engine` in the shell's
|
|
748
|
+
* manifest.rs — keep in lockstep. */
|
|
749
|
+
engine: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
738
750
|
}, "strip", z.ZodTypeAny, {
|
|
751
|
+
engine: string[];
|
|
739
752
|
'shell.execute': string[];
|
|
740
753
|
'fs.read': string[];
|
|
741
754
|
'fs.write': string[];
|
|
@@ -744,6 +757,7 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
744
757
|
'supabase.tables': string[];
|
|
745
758
|
'vault.keys': string[];
|
|
746
759
|
}, {
|
|
760
|
+
engine?: string[] | undefined;
|
|
747
761
|
'shell.execute'?: string[] | undefined;
|
|
748
762
|
'fs.read'?: string[] | undefined;
|
|
749
763
|
'fs.write'?: string[] | undefined;
|
|
@@ -967,14 +981,14 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
967
981
|
decorations: z.ZodOptional<z.ZodBoolean>;
|
|
968
982
|
menu: z.ZodOptional<z.ZodString>;
|
|
969
983
|
}, "strip", z.ZodTypeAny, {
|
|
970
|
-
url: string;
|
|
971
984
|
label: string;
|
|
985
|
+
url: string;
|
|
972
986
|
size?: [number, number] | undefined;
|
|
973
987
|
decorations?: boolean | undefined;
|
|
974
988
|
menu?: string | undefined;
|
|
975
989
|
}, {
|
|
976
|
-
url: string;
|
|
977
990
|
label: string;
|
|
991
|
+
url: string;
|
|
978
992
|
size?: [number, number] | undefined;
|
|
979
993
|
decorations?: boolean | undefined;
|
|
980
994
|
menu?: string | undefined;
|
|
@@ -1088,12 +1102,20 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1088
1102
|
commands?: string[] | undefined;
|
|
1089
1103
|
}>>;
|
|
1090
1104
|
}, "strip", z.ZodTypeAny, {
|
|
1091
|
-
supabase?: {
|
|
1092
|
-
required: boolean;
|
|
1093
|
-
} | undefined;
|
|
1094
1105
|
sqlite?: {
|
|
1095
1106
|
db: string;
|
|
1096
1107
|
} | undefined;
|
|
1108
|
+
secrets?: {
|
|
1109
|
+
declarations: {
|
|
1110
|
+
name: string;
|
|
1111
|
+
required: boolean;
|
|
1112
|
+
vault_key: string;
|
|
1113
|
+
format?: string | undefined;
|
|
1114
|
+
}[];
|
|
1115
|
+
} | undefined;
|
|
1116
|
+
supabase?: {
|
|
1117
|
+
required: boolean;
|
|
1118
|
+
} | undefined;
|
|
1097
1119
|
webview?: {
|
|
1098
1120
|
child_webviews: boolean;
|
|
1099
1121
|
partitions: string[];
|
|
@@ -1104,24 +1126,24 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1104
1126
|
auth_header: string;
|
|
1105
1127
|
auth_secret?: string | undefined;
|
|
1106
1128
|
} | undefined;
|
|
1129
|
+
invoke?: {
|
|
1130
|
+
commands: string[];
|
|
1131
|
+
} | undefined;
|
|
1132
|
+
}, {
|
|
1133
|
+
sqlite?: {
|
|
1134
|
+
db?: string | undefined;
|
|
1135
|
+
} | undefined;
|
|
1107
1136
|
secrets?: {
|
|
1108
|
-
declarations
|
|
1137
|
+
declarations?: {
|
|
1109
1138
|
name: string;
|
|
1110
|
-
required: boolean;
|
|
1111
1139
|
vault_key: string;
|
|
1112
1140
|
format?: string | undefined;
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
invoke?: {
|
|
1116
|
-
commands: string[];
|
|
1141
|
+
required?: boolean | undefined;
|
|
1142
|
+
}[] | undefined;
|
|
1117
1143
|
} | undefined;
|
|
1118
|
-
}, {
|
|
1119
1144
|
supabase?: {
|
|
1120
1145
|
required?: boolean | undefined;
|
|
1121
1146
|
} | undefined;
|
|
1122
|
-
sqlite?: {
|
|
1123
|
-
db?: string | undefined;
|
|
1124
|
-
} | undefined;
|
|
1125
1147
|
webview?: {
|
|
1126
1148
|
child_webviews?: boolean | undefined;
|
|
1127
1149
|
partitions?: string[] | undefined;
|
|
@@ -1132,14 +1154,6 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1132
1154
|
auth_secret?: string | undefined;
|
|
1133
1155
|
auth_header?: string | undefined;
|
|
1134
1156
|
} | undefined;
|
|
1135
|
-
secrets?: {
|
|
1136
|
-
declarations?: {
|
|
1137
|
-
name: string;
|
|
1138
|
-
vault_key: string;
|
|
1139
|
-
format?: string | undefined;
|
|
1140
|
-
required?: boolean | undefined;
|
|
1141
|
-
}[] | undefined;
|
|
1142
|
-
} | undefined;
|
|
1143
1157
|
invoke?: {
|
|
1144
1158
|
commands?: string[] | undefined;
|
|
1145
1159
|
} | undefined;
|
|
@@ -1167,8 +1181,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1167
1181
|
mcp: z.ZodBoolean;
|
|
1168
1182
|
sessionResume: z.ZodBoolean;
|
|
1169
1183
|
}, "strip", z.ZodTypeAny, {
|
|
1170
|
-
mcp: boolean;
|
|
1171
1184
|
streaming: boolean;
|
|
1185
|
+
mcp: boolean;
|
|
1172
1186
|
toolUse: boolean;
|
|
1173
1187
|
thinking: boolean;
|
|
1174
1188
|
artifacts: boolean;
|
|
@@ -1180,8 +1194,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1180
1194
|
agenticTools: boolean;
|
|
1181
1195
|
sessionResume: boolean;
|
|
1182
1196
|
}, {
|
|
1183
|
-
mcp: boolean;
|
|
1184
1197
|
streaming: boolean;
|
|
1198
|
+
mcp: boolean;
|
|
1185
1199
|
toolUse: boolean;
|
|
1186
1200
|
thinking: boolean;
|
|
1187
1201
|
artifacts: boolean;
|
|
@@ -1211,8 +1225,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1211
1225
|
}>>;
|
|
1212
1226
|
}, "strip", z.ZodTypeAny, {
|
|
1213
1227
|
capabilities: {
|
|
1214
|
-
mcp: boolean;
|
|
1215
1228
|
streaming: boolean;
|
|
1229
|
+
mcp: boolean;
|
|
1216
1230
|
toolUse: boolean;
|
|
1217
1231
|
thinking: boolean;
|
|
1218
1232
|
artifacts: boolean;
|
|
@@ -1234,8 +1248,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1234
1248
|
display?: string | undefined;
|
|
1235
1249
|
}, {
|
|
1236
1250
|
capabilities: {
|
|
1237
|
-
mcp: boolean;
|
|
1238
1251
|
streaming: boolean;
|
|
1252
|
+
mcp: boolean;
|
|
1239
1253
|
toolUse: boolean;
|
|
1240
1254
|
thinking: boolean;
|
|
1241
1255
|
artifacts: boolean;
|
|
@@ -1292,13 +1306,13 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1292
1306
|
* explicit semver range later without another schema break. */
|
|
1293
1307
|
ref: z.ZodOptional<z.ZodString>;
|
|
1294
1308
|
}, "strict", z.ZodTypeAny, {
|
|
1295
|
-
name: string;
|
|
1296
1309
|
kind: string;
|
|
1310
|
+
name: string;
|
|
1297
1311
|
ref?: string | undefined;
|
|
1298
1312
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1299
1313
|
}, {
|
|
1300
|
-
name: string;
|
|
1301
1314
|
kind: string;
|
|
1315
|
+
name: string;
|
|
1302
1316
|
ref?: string | undefined;
|
|
1303
1317
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1304
1318
|
}>, "many">>;
|
|
@@ -1309,6 +1323,12 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1309
1323
|
* caps). Mirrors `signature: Option<String>` on the Rust `Manifest`. */
|
|
1310
1324
|
signature: z.ZodOptional<z.ZodString>;
|
|
1311
1325
|
}, "strip", z.ZodTypeAny, {
|
|
1326
|
+
cron: {
|
|
1327
|
+
id: string;
|
|
1328
|
+
handler: string;
|
|
1329
|
+
expr: string;
|
|
1330
|
+
env_from_settings: string[];
|
|
1331
|
+
}[];
|
|
1312
1332
|
mcp: {
|
|
1313
1333
|
args: string[];
|
|
1314
1334
|
name: string;
|
|
@@ -1318,16 +1338,17 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1318
1338
|
auto_restart: boolean;
|
|
1319
1339
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
1320
1340
|
}[];
|
|
1321
|
-
id: string;
|
|
1322
1341
|
name: string;
|
|
1342
|
+
id: string;
|
|
1323
1343
|
version: string;
|
|
1324
1344
|
requires: {
|
|
1325
|
-
name: string;
|
|
1326
1345
|
kind: string;
|
|
1346
|
+
name: string;
|
|
1327
1347
|
ref?: string | undefined;
|
|
1328
1348
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1329
1349
|
}[];
|
|
1330
1350
|
permissions: {
|
|
1351
|
+
engine: string[];
|
|
1331
1352
|
'shell.execute': string[];
|
|
1332
1353
|
'fs.read': string[];
|
|
1333
1354
|
'fs.write': string[];
|
|
@@ -1372,16 +1393,11 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1372
1393
|
csp?: Record<string, string[]> | undefined;
|
|
1373
1394
|
permissions?: Record<string, string[]> | undefined;
|
|
1374
1395
|
};
|
|
1375
|
-
cron: {
|
|
1376
|
-
id: string;
|
|
1377
|
-
handler: string;
|
|
1378
|
-
expr: string;
|
|
1379
|
-
env_from_settings: string[];
|
|
1380
|
-
}[];
|
|
1381
1396
|
screenshots: {
|
|
1382
1397
|
path: string;
|
|
1383
1398
|
caption?: string | undefined;
|
|
1384
1399
|
}[];
|
|
1400
|
+
kind?: string | undefined;
|
|
1385
1401
|
queries?: {
|
|
1386
1402
|
key_prefixes: string[];
|
|
1387
1403
|
} | undefined;
|
|
@@ -1390,12 +1406,20 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1390
1406
|
key?: string | undefined;
|
|
1391
1407
|
} | undefined;
|
|
1392
1408
|
capabilities?: {
|
|
1393
|
-
supabase?: {
|
|
1394
|
-
required: boolean;
|
|
1395
|
-
} | undefined;
|
|
1396
1409
|
sqlite?: {
|
|
1397
1410
|
db: string;
|
|
1398
1411
|
} | undefined;
|
|
1412
|
+
secrets?: {
|
|
1413
|
+
declarations: {
|
|
1414
|
+
name: string;
|
|
1415
|
+
required: boolean;
|
|
1416
|
+
vault_key: string;
|
|
1417
|
+
format?: string | undefined;
|
|
1418
|
+
}[];
|
|
1419
|
+
} | undefined;
|
|
1420
|
+
supabase?: {
|
|
1421
|
+
required: boolean;
|
|
1422
|
+
} | undefined;
|
|
1399
1423
|
webview?: {
|
|
1400
1424
|
child_webviews: boolean;
|
|
1401
1425
|
partitions: string[];
|
|
@@ -1406,22 +1430,14 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1406
1430
|
auth_header: string;
|
|
1407
1431
|
auth_secret?: string | undefined;
|
|
1408
1432
|
} | undefined;
|
|
1409
|
-
secrets?: {
|
|
1410
|
-
declarations: {
|
|
1411
|
-
name: string;
|
|
1412
|
-
required: boolean;
|
|
1413
|
-
vault_key: string;
|
|
1414
|
-
format?: string | undefined;
|
|
1415
|
-
}[];
|
|
1416
|
-
} | undefined;
|
|
1417
1433
|
invoke?: {
|
|
1418
1434
|
commands: string[];
|
|
1419
1435
|
} | undefined;
|
|
1420
1436
|
} | undefined;
|
|
1421
1437
|
engine?: {
|
|
1422
1438
|
capabilities: {
|
|
1423
|
-
mcp: boolean;
|
|
1424
1439
|
streaming: boolean;
|
|
1440
|
+
mcp: boolean;
|
|
1425
1441
|
toolUse: boolean;
|
|
1426
1442
|
thinking: boolean;
|
|
1427
1443
|
artifacts: boolean;
|
|
@@ -1442,7 +1458,6 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1442
1458
|
};
|
|
1443
1459
|
display?: string | undefined;
|
|
1444
1460
|
} | undefined;
|
|
1445
|
-
kind?: string | undefined;
|
|
1446
1461
|
migrations?: string | undefined;
|
|
1447
1462
|
settings?: {
|
|
1448
1463
|
schema: {
|
|
@@ -1462,18 +1477,25 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1462
1477
|
events: string[];
|
|
1463
1478
|
} | undefined;
|
|
1464
1479
|
window?: {
|
|
1465
|
-
url: string;
|
|
1466
1480
|
label: string;
|
|
1481
|
+
url: string;
|
|
1467
1482
|
size?: [number, number] | undefined;
|
|
1468
1483
|
decorations?: boolean | undefined;
|
|
1469
1484
|
menu?: string | undefined;
|
|
1470
1485
|
} | undefined;
|
|
1471
1486
|
signature?: string | undefined;
|
|
1472
1487
|
}, {
|
|
1473
|
-
id: string;
|
|
1474
1488
|
name: string;
|
|
1489
|
+
id: string;
|
|
1475
1490
|
version: string;
|
|
1476
1491
|
ikenga_api: string;
|
|
1492
|
+
kind?: string | undefined;
|
|
1493
|
+
cron?: {
|
|
1494
|
+
id: string;
|
|
1495
|
+
handler: string;
|
|
1496
|
+
expr: string;
|
|
1497
|
+
env_from_settings?: string[] | undefined;
|
|
1498
|
+
}[] | undefined;
|
|
1477
1499
|
mcp?: {
|
|
1478
1500
|
name: string;
|
|
1479
1501
|
command: string;
|
|
@@ -1491,18 +1513,26 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1491
1513
|
key?: string | undefined;
|
|
1492
1514
|
} | undefined;
|
|
1493
1515
|
requires?: {
|
|
1494
|
-
name: string;
|
|
1495
1516
|
kind: string;
|
|
1517
|
+
name: string;
|
|
1496
1518
|
ref?: string | undefined;
|
|
1497
1519
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
1498
1520
|
}[] | undefined;
|
|
1499
1521
|
capabilities?: {
|
|
1500
|
-
supabase?: {
|
|
1501
|
-
required?: boolean | undefined;
|
|
1502
|
-
} | undefined;
|
|
1503
1522
|
sqlite?: {
|
|
1504
1523
|
db?: string | undefined;
|
|
1505
1524
|
} | undefined;
|
|
1525
|
+
secrets?: {
|
|
1526
|
+
declarations?: {
|
|
1527
|
+
name: string;
|
|
1528
|
+
vault_key: string;
|
|
1529
|
+
format?: string | undefined;
|
|
1530
|
+
required?: boolean | undefined;
|
|
1531
|
+
}[] | undefined;
|
|
1532
|
+
} | undefined;
|
|
1533
|
+
supabase?: {
|
|
1534
|
+
required?: boolean | undefined;
|
|
1535
|
+
} | undefined;
|
|
1506
1536
|
webview?: {
|
|
1507
1537
|
child_webviews?: boolean | undefined;
|
|
1508
1538
|
partitions?: string[] | undefined;
|
|
@@ -1513,22 +1543,14 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1513
1543
|
auth_secret?: string | undefined;
|
|
1514
1544
|
auth_header?: string | undefined;
|
|
1515
1545
|
} | undefined;
|
|
1516
|
-
secrets?: {
|
|
1517
|
-
declarations?: {
|
|
1518
|
-
name: string;
|
|
1519
|
-
vault_key: string;
|
|
1520
|
-
format?: string | undefined;
|
|
1521
|
-
required?: boolean | undefined;
|
|
1522
|
-
}[] | undefined;
|
|
1523
|
-
} | undefined;
|
|
1524
1546
|
invoke?: {
|
|
1525
1547
|
commands?: string[] | undefined;
|
|
1526
1548
|
} | undefined;
|
|
1527
1549
|
} | undefined;
|
|
1528
1550
|
engine?: {
|
|
1529
1551
|
capabilities: {
|
|
1530
|
-
mcp: boolean;
|
|
1531
1552
|
streaming: boolean;
|
|
1553
|
+
mcp: boolean;
|
|
1532
1554
|
toolUse: boolean;
|
|
1533
1555
|
thinking: boolean;
|
|
1534
1556
|
artifacts: boolean;
|
|
@@ -1549,8 +1571,8 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1549
1571
|
docsUrl?: string | undefined;
|
|
1550
1572
|
} | undefined;
|
|
1551
1573
|
} | undefined;
|
|
1552
|
-
kind?: string | undefined;
|
|
1553
1574
|
permissions?: {
|
|
1575
|
+
engine?: string[] | undefined;
|
|
1554
1576
|
'shell.execute'?: string[] | undefined;
|
|
1555
1577
|
'fs.read'?: string[] | undefined;
|
|
1556
1578
|
'fs.write'?: string[] | undefined;
|
|
@@ -1612,15 +1634,9 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1612
1634
|
}[] | undefined;
|
|
1613
1635
|
events?: string[] | undefined;
|
|
1614
1636
|
} | undefined;
|
|
1615
|
-
cron?: {
|
|
1616
|
-
id: string;
|
|
1617
|
-
handler: string;
|
|
1618
|
-
expr: string;
|
|
1619
|
-
env_from_settings?: string[] | undefined;
|
|
1620
|
-
}[] | undefined;
|
|
1621
1637
|
window?: {
|
|
1622
|
-
url: string;
|
|
1623
1638
|
label: string;
|
|
1639
|
+
url: string;
|
|
1624
1640
|
size?: [number, number] | undefined;
|
|
1625
1641
|
decorations?: boolean | undefined;
|
|
1626
1642
|
menu?: string | undefined;
|
|
@@ -1725,7 +1741,13 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1725
1741
|
* without errors during the transition window. */
|
|
1726
1742
|
'supabase.tables': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1727
1743
|
'vault.keys': z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1744
|
+
/** Engine scopes exercisable from the pkg iframe. `"invoke"` gates the
|
|
1745
|
+
* FE-side host.sendToActiveSession / host.startChatSession verbs
|
|
1746
|
+
* (pkgDeclaresScope). Mirrors `Permissions.engine` in the shell's
|
|
1747
|
+
* manifest.rs — keep in lockstep. */
|
|
1748
|
+
engine: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1728
1749
|
}, "strip", z.ZodTypeAny, {
|
|
1750
|
+
engine: string[];
|
|
1729
1751
|
'shell.execute': string[];
|
|
1730
1752
|
'fs.read': string[];
|
|
1731
1753
|
'fs.write': string[];
|
|
@@ -1734,6 +1756,7 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1734
1756
|
'supabase.tables': string[];
|
|
1735
1757
|
'vault.keys': string[];
|
|
1736
1758
|
}, {
|
|
1759
|
+
engine?: string[] | undefined;
|
|
1737
1760
|
'shell.execute'?: string[] | undefined;
|
|
1738
1761
|
'fs.read'?: string[] | undefined;
|
|
1739
1762
|
'fs.write'?: string[] | undefined;
|
|
@@ -1957,14 +1980,14 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1957
1980
|
decorations: z.ZodOptional<z.ZodBoolean>;
|
|
1958
1981
|
menu: z.ZodOptional<z.ZodString>;
|
|
1959
1982
|
}, "strip", z.ZodTypeAny, {
|
|
1960
|
-
url: string;
|
|
1961
1983
|
label: string;
|
|
1984
|
+
url: string;
|
|
1962
1985
|
size?: [number, number] | undefined;
|
|
1963
1986
|
decorations?: boolean | undefined;
|
|
1964
1987
|
menu?: string | undefined;
|
|
1965
1988
|
}, {
|
|
1966
|
-
url: string;
|
|
1967
1989
|
label: string;
|
|
1990
|
+
url: string;
|
|
1968
1991
|
size?: [number, number] | undefined;
|
|
1969
1992
|
decorations?: boolean | undefined;
|
|
1970
1993
|
menu?: string | undefined;
|
|
@@ -2078,12 +2101,20 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2078
2101
|
commands?: string[] | undefined;
|
|
2079
2102
|
}>>;
|
|
2080
2103
|
}, "strip", z.ZodTypeAny, {
|
|
2081
|
-
supabase?: {
|
|
2082
|
-
required: boolean;
|
|
2083
|
-
} | undefined;
|
|
2084
2104
|
sqlite?: {
|
|
2085
2105
|
db: string;
|
|
2086
2106
|
} | undefined;
|
|
2107
|
+
secrets?: {
|
|
2108
|
+
declarations: {
|
|
2109
|
+
name: string;
|
|
2110
|
+
required: boolean;
|
|
2111
|
+
vault_key: string;
|
|
2112
|
+
format?: string | undefined;
|
|
2113
|
+
}[];
|
|
2114
|
+
} | undefined;
|
|
2115
|
+
supabase?: {
|
|
2116
|
+
required: boolean;
|
|
2117
|
+
} | undefined;
|
|
2087
2118
|
webview?: {
|
|
2088
2119
|
child_webviews: boolean;
|
|
2089
2120
|
partitions: string[];
|
|
@@ -2094,24 +2125,24 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2094
2125
|
auth_header: string;
|
|
2095
2126
|
auth_secret?: string | undefined;
|
|
2096
2127
|
} | undefined;
|
|
2128
|
+
invoke?: {
|
|
2129
|
+
commands: string[];
|
|
2130
|
+
} | undefined;
|
|
2131
|
+
}, {
|
|
2132
|
+
sqlite?: {
|
|
2133
|
+
db?: string | undefined;
|
|
2134
|
+
} | undefined;
|
|
2097
2135
|
secrets?: {
|
|
2098
|
-
declarations
|
|
2136
|
+
declarations?: {
|
|
2099
2137
|
name: string;
|
|
2100
|
-
required: boolean;
|
|
2101
2138
|
vault_key: string;
|
|
2102
2139
|
format?: string | undefined;
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
invoke?: {
|
|
2106
|
-
commands: string[];
|
|
2140
|
+
required?: boolean | undefined;
|
|
2141
|
+
}[] | undefined;
|
|
2107
2142
|
} | undefined;
|
|
2108
|
-
}, {
|
|
2109
2143
|
supabase?: {
|
|
2110
2144
|
required?: boolean | undefined;
|
|
2111
2145
|
} | undefined;
|
|
2112
|
-
sqlite?: {
|
|
2113
|
-
db?: string | undefined;
|
|
2114
|
-
} | undefined;
|
|
2115
2146
|
webview?: {
|
|
2116
2147
|
child_webviews?: boolean | undefined;
|
|
2117
2148
|
partitions?: string[] | undefined;
|
|
@@ -2122,14 +2153,6 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2122
2153
|
auth_secret?: string | undefined;
|
|
2123
2154
|
auth_header?: string | undefined;
|
|
2124
2155
|
} | undefined;
|
|
2125
|
-
secrets?: {
|
|
2126
|
-
declarations?: {
|
|
2127
|
-
name: string;
|
|
2128
|
-
vault_key: string;
|
|
2129
|
-
format?: string | undefined;
|
|
2130
|
-
required?: boolean | undefined;
|
|
2131
|
-
}[] | undefined;
|
|
2132
|
-
} | undefined;
|
|
2133
2156
|
invoke?: {
|
|
2134
2157
|
commands?: string[] | undefined;
|
|
2135
2158
|
} | undefined;
|
|
@@ -2157,8 +2180,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2157
2180
|
mcp: z.ZodBoolean;
|
|
2158
2181
|
sessionResume: z.ZodBoolean;
|
|
2159
2182
|
}, "strip", z.ZodTypeAny, {
|
|
2160
|
-
mcp: boolean;
|
|
2161
2183
|
streaming: boolean;
|
|
2184
|
+
mcp: boolean;
|
|
2162
2185
|
toolUse: boolean;
|
|
2163
2186
|
thinking: boolean;
|
|
2164
2187
|
artifacts: boolean;
|
|
@@ -2170,8 +2193,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2170
2193
|
agenticTools: boolean;
|
|
2171
2194
|
sessionResume: boolean;
|
|
2172
2195
|
}, {
|
|
2173
|
-
mcp: boolean;
|
|
2174
2196
|
streaming: boolean;
|
|
2197
|
+
mcp: boolean;
|
|
2175
2198
|
toolUse: boolean;
|
|
2176
2199
|
thinking: boolean;
|
|
2177
2200
|
artifacts: boolean;
|
|
@@ -2201,8 +2224,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2201
2224
|
}>>;
|
|
2202
2225
|
}, "strip", z.ZodTypeAny, {
|
|
2203
2226
|
capabilities: {
|
|
2204
|
-
mcp: boolean;
|
|
2205
2227
|
streaming: boolean;
|
|
2228
|
+
mcp: boolean;
|
|
2206
2229
|
toolUse: boolean;
|
|
2207
2230
|
thinking: boolean;
|
|
2208
2231
|
artifacts: boolean;
|
|
@@ -2224,8 +2247,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2224
2247
|
display?: string | undefined;
|
|
2225
2248
|
}, {
|
|
2226
2249
|
capabilities: {
|
|
2227
|
-
mcp: boolean;
|
|
2228
2250
|
streaming: boolean;
|
|
2251
|
+
mcp: boolean;
|
|
2229
2252
|
toolUse: boolean;
|
|
2230
2253
|
thinking: boolean;
|
|
2231
2254
|
artifacts: boolean;
|
|
@@ -2282,13 +2305,13 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2282
2305
|
* explicit semver range later without another schema break. */
|
|
2283
2306
|
ref: z.ZodOptional<z.ZodString>;
|
|
2284
2307
|
}, "strict", z.ZodTypeAny, {
|
|
2285
|
-
name: string;
|
|
2286
2308
|
kind: string;
|
|
2309
|
+
name: string;
|
|
2287
2310
|
ref?: string | undefined;
|
|
2288
2311
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
2289
2312
|
}, {
|
|
2290
|
-
name: string;
|
|
2291
2313
|
kind: string;
|
|
2314
|
+
name: string;
|
|
2292
2315
|
ref?: string | undefined;
|
|
2293
2316
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
2294
2317
|
}>, "many">>;
|
|
@@ -2299,6 +2322,12 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2299
2322
|
* caps). Mirrors `signature: Option<String>` on the Rust `Manifest`. */
|
|
2300
2323
|
signature: z.ZodOptional<z.ZodString>;
|
|
2301
2324
|
}, "strip", z.ZodTypeAny, {
|
|
2325
|
+
cron: {
|
|
2326
|
+
id: string;
|
|
2327
|
+
handler: string;
|
|
2328
|
+
expr: string;
|
|
2329
|
+
env_from_settings: string[];
|
|
2330
|
+
}[];
|
|
2302
2331
|
mcp: {
|
|
2303
2332
|
args: string[];
|
|
2304
2333
|
name: string;
|
|
@@ -2308,16 +2337,17 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2308
2337
|
auto_restart: boolean;
|
|
2309
2338
|
lifecycle?: "per-call" | "long-lived" | undefined;
|
|
2310
2339
|
}[];
|
|
2311
|
-
id: string;
|
|
2312
2340
|
name: string;
|
|
2341
|
+
id: string;
|
|
2313
2342
|
version: string;
|
|
2314
2343
|
requires: {
|
|
2315
|
-
name: string;
|
|
2316
2344
|
kind: string;
|
|
2345
|
+
name: string;
|
|
2317
2346
|
ref?: string | undefined;
|
|
2318
2347
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
2319
2348
|
}[];
|
|
2320
2349
|
permissions: {
|
|
2350
|
+
engine: string[];
|
|
2321
2351
|
'shell.execute': string[];
|
|
2322
2352
|
'fs.read': string[];
|
|
2323
2353
|
'fs.write': string[];
|
|
@@ -2362,16 +2392,11 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2362
2392
|
csp?: Record<string, string[]> | undefined;
|
|
2363
2393
|
permissions?: Record<string, string[]> | undefined;
|
|
2364
2394
|
};
|
|
2365
|
-
cron: {
|
|
2366
|
-
id: string;
|
|
2367
|
-
handler: string;
|
|
2368
|
-
expr: string;
|
|
2369
|
-
env_from_settings: string[];
|
|
2370
|
-
}[];
|
|
2371
2395
|
screenshots: {
|
|
2372
2396
|
path: string;
|
|
2373
2397
|
caption?: string | undefined;
|
|
2374
2398
|
}[];
|
|
2399
|
+
kind?: string | undefined;
|
|
2375
2400
|
queries?: {
|
|
2376
2401
|
key_prefixes: string[];
|
|
2377
2402
|
} | undefined;
|
|
@@ -2380,12 +2405,20 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2380
2405
|
key?: string | undefined;
|
|
2381
2406
|
} | undefined;
|
|
2382
2407
|
capabilities?: {
|
|
2383
|
-
supabase?: {
|
|
2384
|
-
required: boolean;
|
|
2385
|
-
} | undefined;
|
|
2386
2408
|
sqlite?: {
|
|
2387
2409
|
db: string;
|
|
2388
2410
|
} | undefined;
|
|
2411
|
+
secrets?: {
|
|
2412
|
+
declarations: {
|
|
2413
|
+
name: string;
|
|
2414
|
+
required: boolean;
|
|
2415
|
+
vault_key: string;
|
|
2416
|
+
format?: string | undefined;
|
|
2417
|
+
}[];
|
|
2418
|
+
} | undefined;
|
|
2419
|
+
supabase?: {
|
|
2420
|
+
required: boolean;
|
|
2421
|
+
} | undefined;
|
|
2389
2422
|
webview?: {
|
|
2390
2423
|
child_webviews: boolean;
|
|
2391
2424
|
partitions: string[];
|
|
@@ -2396,22 +2429,14 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2396
2429
|
auth_header: string;
|
|
2397
2430
|
auth_secret?: string | undefined;
|
|
2398
2431
|
} | undefined;
|
|
2399
|
-
secrets?: {
|
|
2400
|
-
declarations: {
|
|
2401
|
-
name: string;
|
|
2402
|
-
required: boolean;
|
|
2403
|
-
vault_key: string;
|
|
2404
|
-
format?: string | undefined;
|
|
2405
|
-
}[];
|
|
2406
|
-
} | undefined;
|
|
2407
2432
|
invoke?: {
|
|
2408
2433
|
commands: string[];
|
|
2409
2434
|
} | undefined;
|
|
2410
2435
|
} | undefined;
|
|
2411
2436
|
engine?: {
|
|
2412
2437
|
capabilities: {
|
|
2413
|
-
mcp: boolean;
|
|
2414
2438
|
streaming: boolean;
|
|
2439
|
+
mcp: boolean;
|
|
2415
2440
|
toolUse: boolean;
|
|
2416
2441
|
thinking: boolean;
|
|
2417
2442
|
artifacts: boolean;
|
|
@@ -2432,7 +2457,6 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2432
2457
|
};
|
|
2433
2458
|
display?: string | undefined;
|
|
2434
2459
|
} | undefined;
|
|
2435
|
-
kind?: string | undefined;
|
|
2436
2460
|
migrations?: string | undefined;
|
|
2437
2461
|
settings?: {
|
|
2438
2462
|
schema: {
|
|
@@ -2452,18 +2476,25 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2452
2476
|
events: string[];
|
|
2453
2477
|
} | undefined;
|
|
2454
2478
|
window?: {
|
|
2455
|
-
url: string;
|
|
2456
2479
|
label: string;
|
|
2480
|
+
url: string;
|
|
2457
2481
|
size?: [number, number] | undefined;
|
|
2458
2482
|
decorations?: boolean | undefined;
|
|
2459
2483
|
menu?: string | undefined;
|
|
2460
2484
|
} | undefined;
|
|
2461
2485
|
signature?: string | undefined;
|
|
2462
2486
|
}, {
|
|
2463
|
-
id: string;
|
|
2464
2487
|
name: string;
|
|
2488
|
+
id: string;
|
|
2465
2489
|
version: string;
|
|
2466
2490
|
ikenga_api: string;
|
|
2491
|
+
kind?: string | undefined;
|
|
2492
|
+
cron?: {
|
|
2493
|
+
id: string;
|
|
2494
|
+
handler: string;
|
|
2495
|
+
expr: string;
|
|
2496
|
+
env_from_settings?: string[] | undefined;
|
|
2497
|
+
}[] | undefined;
|
|
2467
2498
|
mcp?: {
|
|
2468
2499
|
name: string;
|
|
2469
2500
|
command: string;
|
|
@@ -2481,18 +2512,26 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2481
2512
|
key?: string | undefined;
|
|
2482
2513
|
} | undefined;
|
|
2483
2514
|
requires?: {
|
|
2484
|
-
name: string;
|
|
2485
2515
|
kind: string;
|
|
2516
|
+
name: string;
|
|
2486
2517
|
ref?: string | undefined;
|
|
2487
2518
|
source?: "git" | "npx" | "catalog" | "local" | undefined;
|
|
2488
2519
|
}[] | undefined;
|
|
2489
2520
|
capabilities?: {
|
|
2490
|
-
supabase?: {
|
|
2491
|
-
required?: boolean | undefined;
|
|
2492
|
-
} | undefined;
|
|
2493
2521
|
sqlite?: {
|
|
2494
2522
|
db?: string | undefined;
|
|
2495
2523
|
} | undefined;
|
|
2524
|
+
secrets?: {
|
|
2525
|
+
declarations?: {
|
|
2526
|
+
name: string;
|
|
2527
|
+
vault_key: string;
|
|
2528
|
+
format?: string | undefined;
|
|
2529
|
+
required?: boolean | undefined;
|
|
2530
|
+
}[] | undefined;
|
|
2531
|
+
} | undefined;
|
|
2532
|
+
supabase?: {
|
|
2533
|
+
required?: boolean | undefined;
|
|
2534
|
+
} | undefined;
|
|
2496
2535
|
webview?: {
|
|
2497
2536
|
child_webviews?: boolean | undefined;
|
|
2498
2537
|
partitions?: string[] | undefined;
|
|
@@ -2503,22 +2542,14 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2503
2542
|
auth_secret?: string | undefined;
|
|
2504
2543
|
auth_header?: string | undefined;
|
|
2505
2544
|
} | undefined;
|
|
2506
|
-
secrets?: {
|
|
2507
|
-
declarations?: {
|
|
2508
|
-
name: string;
|
|
2509
|
-
vault_key: string;
|
|
2510
|
-
format?: string | undefined;
|
|
2511
|
-
required?: boolean | undefined;
|
|
2512
|
-
}[] | undefined;
|
|
2513
|
-
} | undefined;
|
|
2514
2545
|
invoke?: {
|
|
2515
2546
|
commands?: string[] | undefined;
|
|
2516
2547
|
} | undefined;
|
|
2517
2548
|
} | undefined;
|
|
2518
2549
|
engine?: {
|
|
2519
2550
|
capabilities: {
|
|
2520
|
-
mcp: boolean;
|
|
2521
2551
|
streaming: boolean;
|
|
2552
|
+
mcp: boolean;
|
|
2522
2553
|
toolUse: boolean;
|
|
2523
2554
|
thinking: boolean;
|
|
2524
2555
|
artifacts: boolean;
|
|
@@ -2539,8 +2570,8 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2539
2570
|
docsUrl?: string | undefined;
|
|
2540
2571
|
} | undefined;
|
|
2541
2572
|
} | undefined;
|
|
2542
|
-
kind?: string | undefined;
|
|
2543
2573
|
permissions?: {
|
|
2574
|
+
engine?: string[] | undefined;
|
|
2544
2575
|
'shell.execute'?: string[] | undefined;
|
|
2545
2576
|
'fs.read'?: string[] | undefined;
|
|
2546
2577
|
'fs.write'?: string[] | undefined;
|
|
@@ -2602,15 +2633,9 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2602
2633
|
}[] | undefined;
|
|
2603
2634
|
events?: string[] | undefined;
|
|
2604
2635
|
} | undefined;
|
|
2605
|
-
cron?: {
|
|
2606
|
-
id: string;
|
|
2607
|
-
handler: string;
|
|
2608
|
-
expr: string;
|
|
2609
|
-
env_from_settings?: string[] | undefined;
|
|
2610
|
-
}[] | undefined;
|
|
2611
2636
|
window?: {
|
|
2612
|
-
url: string;
|
|
2613
2637
|
label: string;
|
|
2638
|
+
url: string;
|
|
2614
2639
|
size?: [number, number] | undefined;
|
|
2615
2640
|
decorations?: boolean | undefined;
|
|
2616
2641
|
menu?: string | undefined;
|