@skillcdn/console 0.1.23 → 0.3.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.
Files changed (97) hide show
  1. package/README.md +6 -5
  2. package/dist/api.d.ts +1 -1
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js +1 -1
  5. package/dist/api.js.map +1 -1
  6. package/dist/cli/cli.d.ts.map +1 -1
  7. package/dist/cli/cli.js +80 -54
  8. package/dist/cli/cli.js.map +1 -1
  9. package/dist/cli/format.d.ts +4 -28
  10. package/dist/cli/format.d.ts.map +1 -1
  11. package/dist/cli/format.js +7 -260
  12. package/dist/cli/format.js.map +1 -1
  13. package/dist/cli/help.d.ts +6 -1
  14. package/dist/cli/help.d.ts.map +1 -1
  15. package/dist/cli/help.js +47 -24
  16. package/dist/cli/help.js.map +1 -1
  17. package/dist/cli/pack.d.ts +46 -0
  18. package/dist/cli/pack.d.ts.map +1 -0
  19. package/dist/cli/pack.js +250 -0
  20. package/dist/cli/pack.js.map +1 -0
  21. package/dist/compat.d.ts +1 -1
  22. package/dist/compat.js +1 -1
  23. package/dist/components/decision-list.d.ts +13 -1
  24. package/dist/components/decision-list.d.ts.map +1 -1
  25. package/dist/components/decision-list.js +74 -29
  26. package/dist/components/decision-list.js.map +1 -1
  27. package/dist/components/paged.d.ts +24 -0
  28. package/dist/components/paged.d.ts.map +1 -1
  29. package/dist/components/paged.js +40 -4
  30. package/dist/components/paged.js.map +1 -1
  31. package/dist/components/skills.d.ts.map +1 -1
  32. package/dist/components/skills.js +8 -4
  33. package/dist/components/skills.js.map +1 -1
  34. package/dist/components/ui.d.ts +2 -0
  35. package/dist/components/ui.d.ts.map +1 -1
  36. package/dist/components/ui.js +7 -2
  37. package/dist/components/ui.js.map +1 -1
  38. package/dist/components/work.d.ts +2 -0
  39. package/dist/components/work.d.ts.map +1 -1
  40. package/dist/components/work.js +3 -2
  41. package/dist/components/work.js.map +1 -1
  42. package/dist/console.css +112 -5
  43. package/dist/console.d.ts.map +1 -1
  44. package/dist/console.js +5 -3
  45. package/dist/console.js.map +1 -1
  46. package/dist/data.d.ts.map +1 -1
  47. package/dist/data.js +27 -2
  48. package/dist/data.js.map +1 -1
  49. package/dist/i18n/en.d.ts +13 -0
  50. package/dist/i18n/en.d.ts.map +1 -1
  51. package/dist/i18n/en.js +15 -0
  52. package/dist/i18n/en.js.map +1 -1
  53. package/dist/i18n/ko.d.ts.map +1 -1
  54. package/dist/i18n/ko.js +15 -0
  55. package/dist/i18n/ko.js.map +1 -1
  56. package/dist/index.d.ts +2 -2
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +2 -2
  59. package/dist/index.js.map +1 -1
  60. package/dist/router.d.ts +6 -1
  61. package/dist/router.d.ts.map +1 -1
  62. package/dist/router.js +13 -7
  63. package/dist/router.js.map +1 -1
  64. package/dist/rules.js +3 -3
  65. package/dist/rules.js.map +1 -1
  66. package/dist/schemas.d.ts +557 -162
  67. package/dist/schemas.d.ts.map +1 -1
  68. package/dist/schemas.js +72 -158
  69. package/dist/schemas.js.map +1 -1
  70. package/docs/specs/cli.md +12 -12
  71. package/docs/specs/rest.md +7 -15
  72. package/package.json +2 -1
  73. package/skills/deploying-a-console/SKILL.md +2 -2
  74. package/skills/working-the-board/SKILL.md +9 -14
  75. package/skills/working-the-board/references/setting-up.md +3 -0
  76. package/skills/working-the-board/references/terms.md +9 -0
  77. package/skills/working-the-board/references/the-sentence.md +5 -0
  78. package/src/api.ts +2 -7
  79. package/src/cli/cli.ts +113 -62
  80. package/src/cli/format.ts +10 -324
  81. package/src/cli/help.ts +53 -27
  82. package/src/cli/pack.ts +356 -0
  83. package/src/compat.ts +1 -1
  84. package/src/components/decision-list.tsx +227 -94
  85. package/src/components/paged.tsx +72 -3
  86. package/src/components/skills.tsx +51 -33
  87. package/src/components/ui.tsx +16 -3
  88. package/src/components/work.tsx +9 -5
  89. package/src/console.tsx +8 -2
  90. package/src/data.ts +32 -2
  91. package/src/i18n/en.ts +18 -0
  92. package/src/i18n/ko.ts +17 -0
  93. package/src/index.ts +9 -1
  94. package/src/router.ts +20 -9
  95. package/src/rules.ts +3 -3
  96. package/src/schemas.ts +87 -184
  97. package/src/styles/console.css +112 -5
package/dist/schemas.d.ts CHANGED
@@ -900,6 +900,7 @@ export type RestGoalPatch = z.infer<typeof restGoalPatchSchema>;
900
900
  export declare const restDecisionOptionSchema: z.ZodMiniObject<{
901
901
  id: z.ZodMiniString<string>;
902
902
  label: z.ZodMiniString<string>;
903
+ own: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
903
904
  }, z.core.$strip>;
904
905
  export type RestDecisionOption = z.infer<typeof restDecisionOptionSchema>;
905
906
  export declare const restDecisionSchema: z.ZodMiniObject<{
@@ -909,6 +910,7 @@ export declare const restDecisionSchema: z.ZodMiniObject<{
909
910
  options: z.ZodMiniArray<z.ZodMiniObject<{
910
911
  id: z.ZodMiniString<string>;
911
912
  label: z.ZodMiniString<string>;
913
+ own: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
912
914
  }, z.core.$strip>>;
913
915
  taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
914
916
  taskNumber: z.ZodMiniNullable<z.ZodMiniInt>;
@@ -975,6 +977,7 @@ export declare const restDecisionsSchema: z.ZodMiniObject<{
975
977
  options: z.ZodMiniArray<z.ZodMiniObject<{
976
978
  id: z.ZodMiniString<string>;
977
979
  label: z.ZodMiniString<string>;
980
+ own: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
978
981
  }, z.core.$strip>>;
979
982
  taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
980
983
  taskNumber: z.ZodMiniNullable<z.ZodMiniInt>;
@@ -1036,7 +1039,9 @@ export declare const restDecisionsSchema: z.ZodMiniObject<{
1036
1039
  export type RestDecisions = z.infer<typeof restDecisionsSchema>;
1037
1040
  /**
1038
1041
  * `GET /api/v1/work`: what is on the asker's plate across the projects they may see (ADR-0019):
1039
- * the open tasks assigned to them, and the decisions that wait for a person, each with its project.
1042
+ * the open tasks assigned to them, and the decisions that wait for a person, each with its
1043
+ * project; and, for the week on the plate, `closed`, the tasks assigned to them that are done
1044
+ * or dropped and not yet put away. Left out by a console older than it.
1040
1045
  */
1041
1046
  export declare const restWorkSchema: z.ZodMiniObject<{
1042
1047
  tasks: z.ZodMiniArray<z.ZodMiniObject<{
@@ -1154,6 +1159,121 @@ export declare const restWorkSchema: z.ZodMiniObject<{
1154
1159
  updatedAt: z.ZodMiniISODateTime;
1155
1160
  }, z.core.$strip>;
1156
1161
  }, z.core.$strip>>;
1162
+ closed: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
1163
+ project: z.ZodMiniObject<{
1164
+ key: z.ZodMiniString<string>;
1165
+ name: z.ZodMiniString<string>;
1166
+ color: z.ZodMiniNullable<z.ZodMiniEnum<{
1167
+ blue: "blue";
1168
+ gray: "gray";
1169
+ green: "green";
1170
+ orange: "orange";
1171
+ pink: "pink";
1172
+ purple: "purple";
1173
+ teal: "teal";
1174
+ yellow: "yellow";
1175
+ }>>;
1176
+ symbol: z.ZodMiniNullable<z.ZodMiniString<string>>;
1177
+ icon: z.ZodMiniNullable<z.ZodMiniObject<{
1178
+ sha256: z.ZodMiniString<string>;
1179
+ contentType: z.ZodMiniEnum<{
1180
+ "image/gif": "image/gif";
1181
+ "image/jpeg": "image/jpeg";
1182
+ "image/png": "image/png";
1183
+ "image/webp": "image/webp";
1184
+ }>;
1185
+ }, z.core.$strip>>;
1186
+ }, z.core.$strip>;
1187
+ task: z.ZodMiniObject<{
1188
+ id: z.ZodMiniUUID;
1189
+ number: z.ZodMiniInt;
1190
+ title: z.ZodMiniString<string>;
1191
+ body: z.ZodMiniString<string>;
1192
+ state: z.ZodMiniEnum<{
1193
+ done: "done";
1194
+ dropped: "dropped";
1195
+ idea: "idea";
1196
+ in_progress: "in_progress";
1197
+ in_review: "in_review";
1198
+ ready: "ready";
1199
+ }>;
1200
+ priority: z.ZodMiniEnum<{
1201
+ high: "high";
1202
+ low: "low";
1203
+ normal: "normal";
1204
+ urgent: "urgent";
1205
+ }>;
1206
+ owner: z.ZodMiniObject<{
1207
+ id: z.ZodMiniUUID;
1208
+ login: z.ZodMiniString<string>;
1209
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
1210
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
1211
+ role: z.ZodMiniEnum<{
1212
+ admin: "admin";
1213
+ member: "member";
1214
+ }>;
1215
+ status: z.ZodMiniEnum<{
1216
+ active: "active";
1217
+ deactivated: "deactivated";
1218
+ }>;
1219
+ source: z.ZodMiniEnum<{
1220
+ domain: "domain";
1221
+ listed: "listed";
1222
+ organization: "organization";
1223
+ }>;
1224
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1225
+ }, z.core.$strip>;
1226
+ assignee: z.ZodMiniNullable<z.ZodMiniObject<{
1227
+ id: z.ZodMiniUUID;
1228
+ login: z.ZodMiniString<string>;
1229
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
1230
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
1231
+ role: z.ZodMiniEnum<{
1232
+ admin: "admin";
1233
+ member: "member";
1234
+ }>;
1235
+ status: z.ZodMiniEnum<{
1236
+ active: "active";
1237
+ deactivated: "deactivated";
1238
+ }>;
1239
+ source: z.ZodMiniEnum<{
1240
+ domain: "domain";
1241
+ listed: "listed";
1242
+ organization: "organization";
1243
+ }>;
1244
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1245
+ }, z.core.$strip>>;
1246
+ parentId: z.ZodMiniNullable<z.ZodMiniUUID>;
1247
+ category: z.ZodMiniNullable<z.ZodMiniObject<{
1248
+ key: z.ZodMiniString<string>;
1249
+ name: z.ZodMiniString<string>;
1250
+ color: z.ZodMiniEnum<{
1251
+ blue: "blue";
1252
+ gray: "gray";
1253
+ green: "green";
1254
+ orange: "orange";
1255
+ pink: "pink";
1256
+ purple: "purple";
1257
+ teal: "teal";
1258
+ yellow: "yellow";
1259
+ }>;
1260
+ }, z.core.$strip>>;
1261
+ goalId: z.ZodMiniNullable<z.ZodMiniUUID>;
1262
+ startsOn: z.ZodMiniNullable<z.ZodMiniISODate>;
1263
+ dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
1264
+ startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1265
+ doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1266
+ archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1267
+ links: z.ZodMiniArray<z.ZodMiniObject<{
1268
+ url: z.ZodMiniString<string>;
1269
+ label: z.ZodMiniNullable<z.ZodMiniString<string>>;
1270
+ }, z.core.$strip>>;
1271
+ openDecisions: z.ZodMiniInt;
1272
+ openRuns: z.ZodMiniInt;
1273
+ createdAt: z.ZodMiniISODateTime;
1274
+ updatedAt: z.ZodMiniISODateTime;
1275
+ }, z.core.$strip>;
1276
+ }, z.core.$strip>>>;
1157
1277
  decisions: z.ZodMiniArray<z.ZodMiniObject<{
1158
1278
  project: z.ZodMiniObject<{
1159
1279
  key: z.ZodMiniString<string>;
@@ -1186,6 +1306,7 @@ export declare const restWorkSchema: z.ZodMiniObject<{
1186
1306
  options: z.ZodMiniArray<z.ZodMiniObject<{
1187
1307
  id: z.ZodMiniString<string>;
1188
1308
  label: z.ZodMiniString<string>;
1309
+ own: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
1189
1310
  }, z.core.$strip>>;
1190
1311
  taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
1191
1312
  taskNumber: z.ZodMiniNullable<z.ZodMiniInt>;
@@ -1246,8 +1367,9 @@ export declare const restWorkSchema: z.ZodMiniObject<{
1246
1367
  }, z.core.$strip>;
1247
1368
  export type RestWork = z.infer<typeof restWorkSchema>;
1248
1369
  /**
1249
- * What `GET /api/v1/people/<id>/work` answers: another person's open tasks, within the projects
1250
- * the asker may see, for whoever oversees them. No decisions, which wait for anyone.
1370
+ * What `GET /api/v1/people/<id>/work` answers: another person's open tasks, and their closed
1371
+ * ones for the week, within the projects the asker may see, for whoever oversees them. No
1372
+ * decisions, which wait for anyone.
1251
1373
  */
1252
1374
  export declare const restPersonWorkSchema: z.ZodMiniObject<{
1253
1375
  tasks: z.ZodMiniArray<z.ZodMiniObject<{
@@ -1365,6 +1487,121 @@ export declare const restPersonWorkSchema: z.ZodMiniObject<{
1365
1487
  updatedAt: z.ZodMiniISODateTime;
1366
1488
  }, z.core.$strip>;
1367
1489
  }, z.core.$strip>>;
1490
+ closed: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
1491
+ project: z.ZodMiniObject<{
1492
+ key: z.ZodMiniString<string>;
1493
+ name: z.ZodMiniString<string>;
1494
+ color: z.ZodMiniNullable<z.ZodMiniEnum<{
1495
+ blue: "blue";
1496
+ gray: "gray";
1497
+ green: "green";
1498
+ orange: "orange";
1499
+ pink: "pink";
1500
+ purple: "purple";
1501
+ teal: "teal";
1502
+ yellow: "yellow";
1503
+ }>>;
1504
+ symbol: z.ZodMiniNullable<z.ZodMiniString<string>>;
1505
+ icon: z.ZodMiniNullable<z.ZodMiniObject<{
1506
+ sha256: z.ZodMiniString<string>;
1507
+ contentType: z.ZodMiniEnum<{
1508
+ "image/gif": "image/gif";
1509
+ "image/jpeg": "image/jpeg";
1510
+ "image/png": "image/png";
1511
+ "image/webp": "image/webp";
1512
+ }>;
1513
+ }, z.core.$strip>>;
1514
+ }, z.core.$strip>;
1515
+ task: z.ZodMiniObject<{
1516
+ id: z.ZodMiniUUID;
1517
+ number: z.ZodMiniInt;
1518
+ title: z.ZodMiniString<string>;
1519
+ body: z.ZodMiniString<string>;
1520
+ state: z.ZodMiniEnum<{
1521
+ done: "done";
1522
+ dropped: "dropped";
1523
+ idea: "idea";
1524
+ in_progress: "in_progress";
1525
+ in_review: "in_review";
1526
+ ready: "ready";
1527
+ }>;
1528
+ priority: z.ZodMiniEnum<{
1529
+ high: "high";
1530
+ low: "low";
1531
+ normal: "normal";
1532
+ urgent: "urgent";
1533
+ }>;
1534
+ owner: z.ZodMiniObject<{
1535
+ id: z.ZodMiniUUID;
1536
+ login: z.ZodMiniString<string>;
1537
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
1538
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
1539
+ role: z.ZodMiniEnum<{
1540
+ admin: "admin";
1541
+ member: "member";
1542
+ }>;
1543
+ status: z.ZodMiniEnum<{
1544
+ active: "active";
1545
+ deactivated: "deactivated";
1546
+ }>;
1547
+ source: z.ZodMiniEnum<{
1548
+ domain: "domain";
1549
+ listed: "listed";
1550
+ organization: "organization";
1551
+ }>;
1552
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1553
+ }, z.core.$strip>;
1554
+ assignee: z.ZodMiniNullable<z.ZodMiniObject<{
1555
+ id: z.ZodMiniUUID;
1556
+ login: z.ZodMiniString<string>;
1557
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
1558
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
1559
+ role: z.ZodMiniEnum<{
1560
+ admin: "admin";
1561
+ member: "member";
1562
+ }>;
1563
+ status: z.ZodMiniEnum<{
1564
+ active: "active";
1565
+ deactivated: "deactivated";
1566
+ }>;
1567
+ source: z.ZodMiniEnum<{
1568
+ domain: "domain";
1569
+ listed: "listed";
1570
+ organization: "organization";
1571
+ }>;
1572
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1573
+ }, z.core.$strip>>;
1574
+ parentId: z.ZodMiniNullable<z.ZodMiniUUID>;
1575
+ category: z.ZodMiniNullable<z.ZodMiniObject<{
1576
+ key: z.ZodMiniString<string>;
1577
+ name: z.ZodMiniString<string>;
1578
+ color: z.ZodMiniEnum<{
1579
+ blue: "blue";
1580
+ gray: "gray";
1581
+ green: "green";
1582
+ orange: "orange";
1583
+ pink: "pink";
1584
+ purple: "purple";
1585
+ teal: "teal";
1586
+ yellow: "yellow";
1587
+ }>;
1588
+ }, z.core.$strip>>;
1589
+ goalId: z.ZodMiniNullable<z.ZodMiniUUID>;
1590
+ startsOn: z.ZodMiniNullable<z.ZodMiniISODate>;
1591
+ dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
1592
+ startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1593
+ doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1594
+ archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1595
+ links: z.ZodMiniArray<z.ZodMiniObject<{
1596
+ url: z.ZodMiniString<string>;
1597
+ label: z.ZodMiniNullable<z.ZodMiniString<string>>;
1598
+ }, z.core.$strip>>;
1599
+ openDecisions: z.ZodMiniInt;
1600
+ openRuns: z.ZodMiniInt;
1601
+ createdAt: z.ZodMiniISODateTime;
1602
+ updatedAt: z.ZodMiniISODateTime;
1603
+ }, z.core.$strip>;
1604
+ }, z.core.$strip>>>;
1368
1605
  }, z.core.$strip>;
1369
1606
  export type RestPersonWork = z.infer<typeof restPersonWorkSchema>;
1370
1607
  /** What `POST /api/v1/projects/<key>/decisions` is sent: the question, its context, and the options. */
@@ -1384,9 +1621,13 @@ export declare const restDecisionPatchSchema: z.ZodMiniObject<{
1384
1621
  outcome: z.ZodMiniOptional<z.ZodMiniString<string>>;
1385
1622
  }, z.core.$strip>;
1386
1623
  export type RestDecisionPatch = z.infer<typeof restDecisionPatchSchema>;
1387
- /** What `POST .../decisions/<id>/answer` is sent: an option, and a word about it. */
1624
+ /**
1625
+ * What `POST .../decisions/<id>/answer` is sent: one of the options by its id, or the person's
1626
+ * own answer in a line, one of the two; and a word about either.
1627
+ */
1388
1628
  export declare const restAnswerInputSchema: z.ZodMiniObject<{
1389
- option: z.ZodMiniString<string>;
1629
+ option: z.ZodMiniOptional<z.ZodMiniString<string>>;
1630
+ own: z.ZodMiniOptional<z.ZodMiniString<string>>;
1390
1631
  note: z.ZodMiniOptional<z.ZodMiniString<string>>;
1391
1632
  }, z.core.$strip>;
1392
1633
  export type RestAnswerInput = z.infer<typeof restAnswerInputSchema>;
@@ -1997,13 +2238,21 @@ export declare const restClaimSchema: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
1997
2238
  secret: z.ZodMiniString<string>;
1998
2239
  }, z.core.$strip>]>;
1999
2240
  export type RestClaim = z.infer<typeof restClaimSchema>;
2000
- /** One of the project's skills, as the SkillCDN deployment lists it at the project's address. */
2241
+ /** Why a pack did not answer a read: the code and the words the deployment, or the console reading a directory, gave, as the main repository's API spells them. */
2242
+ export declare const restPackRefusalSchema: z.ZodMiniObject<{
2243
+ code: z.ZodMiniString<string>;
2244
+ message: z.ZodMiniString<string>;
2245
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2246
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2247
+ }, z.core.$strip>;
2248
+ export type RestPackRefusal = z.infer<typeof restPackRefusalSchema>;
2249
+ /** One of the project's skills, as the pack lists it: what the repository says of it, where a person reads it, what an agent loads it by. */
2001
2250
  export declare const restSkillSchema: z.ZodMiniObject<{
2002
2251
  name: z.ZodMiniString<string>;
2003
2252
  description: z.ZodMiniString<string>;
2004
2253
  directory: z.ZodMiniString<string>;
2005
2254
  path: z.ZodMiniString<string>;
2006
- page: z.ZodMiniString<string>;
2255
+ page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2007
2256
  uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
2008
2257
  translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2009
2258
  title: z.ZodMiniNullable<z.ZodMiniString<string>>;
@@ -2011,10 +2260,10 @@ export declare const restSkillSchema: z.ZodMiniObject<{
2011
2260
  }, z.core.$strip>>;
2012
2261
  }, z.core.$strip>;
2013
2262
  export type RestSkill = z.infer<typeof restSkillSchema>;
2014
- /** `GET /api/v1/projects/<key>/skills`: the project's skills, read by address through SkillCDN. */
2263
+ /** `GET /api/v1/projects/<key>/skills`: the project's pack, read by address (ADR-0028, ADR-0031). */
2015
2264
  export declare const restSkillsSchema: z.ZodMiniObject<{
2016
2265
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2017
- source: z.ZodMiniString<string>;
2266
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2018
2267
  page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2019
2268
  status: z.ZodMiniEnum<{
2020
2269
  failed: "failed";
@@ -2025,6 +2274,12 @@ export declare const restSkillsSchema: z.ZodMiniObject<{
2025
2274
  token_invalid: "token_invalid";
2026
2275
  unavailable: "unavailable";
2027
2276
  }>;
2277
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2278
+ code: z.ZodMiniString<string>;
2279
+ message: z.ZodMiniString<string>;
2280
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2281
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2282
+ }, z.core.$strip>>;
2028
2283
  pack: z.ZodMiniOptional<z.ZodMiniObject<{
2029
2284
  name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2030
2285
  description: z.ZodMiniNullable<z.ZodMiniString<string>>;
@@ -2039,13 +2294,120 @@ export declare const restSkillsSchema: z.ZodMiniObject<{
2039
2294
  description: z.ZodMiniString<string>;
2040
2295
  directory: z.ZodMiniString<string>;
2041
2296
  path: z.ZodMiniString<string>;
2042
- page: z.ZodMiniString<string>;
2297
+ page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2043
2298
  uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
2044
2299
  translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2045
2300
  title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2046
2301
  description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2047
2302
  }, z.core.$strip>>;
2048
2303
  }, z.core.$strip>>;
2304
+ mount: z.ZodMiniNullable<z.ZodMiniObject<{
2305
+ address: z.ZodMiniString<string>;
2306
+ repository: z.ZodMiniObject<{
2307
+ host: z.ZodMiniEnum<{
2308
+ gh: "gh";
2309
+ local: "local";
2310
+ }>;
2311
+ owner: z.ZodMiniString<string>;
2312
+ name: z.ZodMiniString<string>;
2313
+ defaultBranch: z.ZodMiniString<string>;
2314
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2315
+ avatar: z.ZodMiniString<string>;
2316
+ visibility: z.ZodMiniOptional<z.ZodMiniEnum<{
2317
+ private: "private";
2318
+ public: "public";
2319
+ }>>;
2320
+ }, z.core.$strip>;
2321
+ ref: z.ZodMiniNullable<z.ZodMiniString<string>>;
2322
+ pinned: z.ZodMiniBoolean<boolean>;
2323
+ commit: z.ZodMiniString<string>;
2324
+ path: z.ZodMiniString<string>;
2325
+ verified: z.ZodMiniBoolean<boolean>;
2326
+ image: z.ZodMiniNullable<z.ZodMiniString<string>>;
2327
+ index: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2328
+ status: z.ZodMiniLiteral<"ready">;
2329
+ truncated: z.ZodMiniBoolean<boolean>;
2330
+ license: z.ZodMiniOptional<z.ZodMiniObject<{
2331
+ kind: z.ZodMiniEnum<{
2332
+ none: "none";
2333
+ permissive: "permissive";
2334
+ restrictive: "restrictive";
2335
+ }>;
2336
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2337
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2338
+ }, z.core.$strip>>;
2339
+ manifest: z.ZodMiniNullable<z.ZodMiniObject<{
2340
+ path: z.ZodMiniNullable<z.ZodMiniString<string>>;
2341
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2342
+ description: z.ZodMiniString<string>;
2343
+ language: z.ZodMiniNullable<z.ZodMiniString<string>>;
2344
+ translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2345
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2346
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2347
+ }, z.core.$strip>>;
2348
+ }, z.core.$strip>>;
2349
+ overview: z.ZodMiniOptional<z.ZodMiniObject<{
2350
+ path: z.ZodMiniString<string>;
2351
+ title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2352
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2353
+ }, z.core.$strip>>;
2354
+ skillCount: z.ZodMiniInt;
2355
+ documentCount: z.ZodMiniInt;
2356
+ skills: z.ZodMiniArray<z.ZodMiniObject<{
2357
+ path: z.ZodMiniOptional<z.ZodMiniString<string>>;
2358
+ name: z.ZodMiniString<string>;
2359
+ directory: z.ZodMiniString<string>;
2360
+ description: z.ZodMiniString<string>;
2361
+ warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
2362
+ translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2363
+ title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2364
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2365
+ }, z.core.$strip>>;
2366
+ }, z.core.$strip>>;
2367
+ documents: z.ZodMiniArray<z.ZodMiniObject<{
2368
+ path: z.ZodMiniString<string>;
2369
+ title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2370
+ summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2371
+ }, z.core.$strip>>;
2372
+ diagnostics: z.ZodMiniArray<z.ZodMiniObject<{
2373
+ path: z.ZodMiniString<string>;
2374
+ code: z.ZodMiniString<string>;
2375
+ message: z.ZodMiniString<string>;
2376
+ }, z.core.$strip>>;
2377
+ groups: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2378
+ browsePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
2379
+ overviewPath: z.ZodMiniOptional<z.ZodMiniString<string>>;
2380
+ license: z.ZodMiniOptional<z.ZodMiniObject<{
2381
+ kind: z.ZodMiniEnum<{
2382
+ none: "none";
2383
+ permissive: "permissive";
2384
+ restrictive: "restrictive";
2385
+ }>;
2386
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2387
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2388
+ }, z.core.$strip>>;
2389
+ describedOnly: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2390
+ kind: z.ZodMiniEnum<{
2391
+ directory: "directory";
2392
+ file: "file";
2393
+ skill: "skill";
2394
+ }>;
2395
+ path: z.ZodMiniString<string>;
2396
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2397
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2398
+ skillCount: z.ZodMiniInt;
2399
+ documentCount: z.ZodMiniInt;
2400
+ size: z.ZodMiniNullable<z.ZodMiniInt>;
2401
+ manifestPath: z.ZodMiniNullable<z.ZodMiniString<string>>;
2402
+ language: z.ZodMiniNullable<z.ZodMiniString<string>>;
2403
+ }, z.core.$strip>>>;
2404
+ }, z.core.$strip>, z.ZodMiniObject<{
2405
+ status: z.ZodMiniLiteral<"indexing">;
2406
+ }, z.core.$strip>, z.ZodMiniObject<{
2407
+ status: z.ZodMiniLiteral<"failed">;
2408
+ errorCode: z.ZodMiniString<string>;
2409
+ }, z.core.$strip>], "status">;
2410
+ }, z.core.$strip>>;
2049
2411
  }, z.core.$strip>;
2050
2412
  export type RestSkills = z.infer<typeof restSkillsSchema>;
2051
2413
  /** `PUT .../pack-token`: the token a person made at the deployment for the project's pack (ADR-0028); from a field or standard input, never an argument. */
@@ -2053,53 +2415,10 @@ export declare const restPackTokenInputSchema: z.ZodMiniObject<{
2053
2415
  token: z.ZodMiniString<string>;
2054
2416
  }, z.core.$strip>;
2055
2417
  export type RestPackTokenInput = z.infer<typeof restPackTokenInputSchema>;
2056
- /** A rule, the body or an included file of a skill: its path from the repository's root and its text, cut where a page ends. */
2057
- export declare const restSkillTextSchema: z.ZodMiniObject<{
2058
- path: z.ZodMiniString<string>;
2059
- body: z.ZodMiniString<string>;
2060
- truncated: z.ZodMiniBoolean<boolean>;
2061
- }, z.core.$strip>;
2062
- /** A skill as the deployment serves it, on one page of its context: what `load_skill` gives a model, in the console's shape. */
2063
- export declare const restSkillPageSchema: z.ZodMiniObject<{
2064
- path: z.ZodMiniString<string>;
2065
- directory: z.ZodMiniString<string>;
2066
- name: z.ZodMiniString<string>;
2067
- description: z.ZodMiniString<string>;
2068
- rules: z.ZodMiniArray<z.ZodMiniObject<{
2069
- path: z.ZodMiniString<string>;
2070
- body: z.ZodMiniString<string>;
2071
- truncated: z.ZodMiniBoolean<boolean>;
2072
- }, z.core.$strip>>;
2073
- body: z.ZodMiniString<string>;
2074
- included: z.ZodMiniArray<z.ZodMiniObject<{
2075
- path: z.ZodMiniString<string>;
2076
- body: z.ZodMiniString<string>;
2077
- truncated: z.ZodMiniBoolean<boolean>;
2078
- }, z.core.$strip>>;
2079
- files: z.ZodMiniArray<z.ZodMiniString<string>>;
2080
- references: z.ZodMiniArray<z.ZodMiniObject<{
2081
- path: z.ZodMiniString<string>;
2082
- status: z.ZodMiniEnum<{
2083
- available: "available";
2084
- blocked: "blocked";
2085
- missing: "missing";
2086
- outside_mount: "outside_mount";
2087
- }>;
2088
- }, z.core.$strip>>;
2089
- complete: z.ZodMiniBoolean<boolean>;
2090
- nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
2091
- serving: z.ZodMiniObject<{
2092
- full: z.ZodMiniBoolean<boolean>;
2093
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2094
- sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2095
- }, z.core.$strip>;
2096
- warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
2097
- }, z.core.$strip>;
2098
- export type RestSkillPage = z.infer<typeof restSkillPageSchema>;
2099
- /** `GET .../skills/one?path=&cursor=`: one skill of the pack, a page of it; `skill` is `null` unless `ready`. */
2418
+ /** `GET .../skills/one?path=&cursor=`: a page of a skill's context, as the pack answers `load_skill` (`RestSkill` of `@skillcdn/core`); `read` is `null` unless `ready`. */
2100
2419
  export declare const restSkillLoadSchema: z.ZodMiniObject<{
2101
2420
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2102
- source: z.ZodMiniString<string>;
2421
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2103
2422
  page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2104
2423
  status: z.ZodMiniEnum<{
2105
2424
  failed: "failed";
@@ -2110,47 +2429,93 @@ export declare const restSkillLoadSchema: z.ZodMiniObject<{
2110
2429
  token_invalid: "token_invalid";
2111
2430
  unavailable: "unavailable";
2112
2431
  }>;
2113
- skill: z.ZodMiniNullable<z.ZodMiniObject<{
2114
- path: z.ZodMiniString<string>;
2115
- directory: z.ZodMiniString<string>;
2116
- name: z.ZodMiniString<string>;
2117
- description: z.ZodMiniString<string>;
2118
- rules: z.ZodMiniArray<z.ZodMiniObject<{
2119
- path: z.ZodMiniString<string>;
2120
- body: z.ZodMiniString<string>;
2121
- truncated: z.ZodMiniBoolean<boolean>;
2122
- }, z.core.$strip>>;
2123
- body: z.ZodMiniString<string>;
2124
- included: z.ZodMiniArray<z.ZodMiniObject<{
2125
- path: z.ZodMiniString<string>;
2126
- body: z.ZodMiniString<string>;
2127
- truncated: z.ZodMiniBoolean<boolean>;
2128
- }, z.core.$strip>>;
2129
- files: z.ZodMiniArray<z.ZodMiniString<string>>;
2130
- references: z.ZodMiniArray<z.ZodMiniObject<{
2131
- path: z.ZodMiniString<string>;
2132
- status: z.ZodMiniEnum<{
2133
- available: "available";
2134
- blocked: "blocked";
2135
- missing: "missing";
2136
- outside_mount: "outside_mount";
2137
- }>;
2138
- }, z.core.$strip>>;
2139
- complete: z.ZodMiniBoolean<boolean>;
2140
- nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
2141
- serving: z.ZodMiniObject<{
2142
- full: z.ZodMiniBoolean<boolean>;
2432
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2433
+ code: z.ZodMiniString<string>;
2434
+ message: z.ZodMiniString<string>;
2435
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2436
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2437
+ }, z.core.$strip>>;
2438
+ read: z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2439
+ status: z.ZodMiniLiteral<"ready">;
2440
+ commit: z.ZodMiniOptional<z.ZodMiniString<string>>;
2441
+ skill: z.ZodMiniObject<{
2442
+ path: z.ZodMiniOptional<z.ZodMiniString<string>>;
2443
+ ruleChain: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2444
+ path: z.ZodMiniString<string>;
2445
+ body: z.ZodMiniString<string>;
2446
+ truncated: z.ZodMiniBoolean<boolean>;
2447
+ }, z.core.$strip>>>;
2448
+ references: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2449
+ source: z.ZodMiniOptional<z.ZodMiniString<string>>;
2450
+ href: z.ZodMiniString<string>;
2451
+ path: z.ZodMiniString<string>;
2452
+ status: z.ZodMiniEnum<{
2453
+ available: "available";
2454
+ blocked: "blocked";
2455
+ missing: "missing";
2456
+ outside_mount: "outside_mount";
2457
+ }>;
2458
+ }, z.core.$strip>>>;
2459
+ complete: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2460
+ nextCursor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
2461
+ includedContents: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2462
+ path: z.ZodMiniString<string>;
2463
+ content: z.ZodMiniNullable<z.ZodMiniString<string>>;
2464
+ truncated: z.ZodMiniBoolean<boolean>;
2465
+ }, z.core.$strip>>>;
2466
+ name: z.ZodMiniString<string>;
2467
+ directory: z.ZodMiniString<string>;
2468
+ description: z.ZodMiniString<string>;
2143
2469
  license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2144
- sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2470
+ compatibility: z.ZodMiniNullable<z.ZodMiniString<string>>;
2471
+ allowedTools: z.ZodMiniNullable<z.ZodMiniString<string>>;
2472
+ metadata: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
2473
+ body: z.ZodMiniString<string>;
2474
+ files: z.ZodMiniArray<z.ZodMiniString<string>>;
2475
+ filesTruncated: z.ZodMiniBoolean<boolean>;
2476
+ oversized: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2477
+ path: z.ZodMiniString<string>;
2478
+ size: z.ZodMiniInt;
2479
+ sourceUrl: z.ZodMiniString<string>;
2480
+ }, z.core.$strip>>>;
2481
+ included: z.ZodMiniArray<z.ZodMiniString<string>>;
2482
+ warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
2483
+ translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2484
+ title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2485
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2486
+ }, z.core.$strip>>;
2487
+ serving: z.ZodMiniOptional<z.ZodMiniObject<{
2488
+ license: z.ZodMiniObject<{
2489
+ kind: z.ZodMiniEnum<{
2490
+ none: "none";
2491
+ permissive: "permissive";
2492
+ restrictive: "restrictive";
2493
+ }>;
2494
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2495
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2496
+ }, z.core.$strip>;
2497
+ full: z.ZodMiniBoolean<boolean>;
2498
+ sourceUrl: z.ZodMiniString<string>;
2499
+ }, z.core.$strip>>;
2500
+ rules: z.ZodMiniNullable<z.ZodMiniObject<{
2501
+ path: z.ZodMiniNullable<z.ZodMiniString<string>>;
2502
+ body: z.ZodMiniString<string>;
2503
+ truncated: z.ZodMiniBoolean<boolean>;
2504
+ }, z.core.$strip>>;
2145
2505
  }, z.core.$strip>;
2146
- warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
2147
- }, z.core.$strip>>;
2506
+ }, z.core.$strip>, z.ZodMiniObject<{
2507
+ status: z.ZodMiniLiteral<"indexing">;
2508
+ }, z.core.$strip>, z.ZodMiniObject<{
2509
+ status: z.ZodMiniLiteral<"failed">;
2510
+ errorCode: z.ZodMiniString<string>;
2511
+ }, z.core.$strip>], "status">>;
2148
2512
  }, z.core.$strip>;
2149
2513
  export type RestSkillLoad = z.infer<typeof restSkillLoadSchema>;
2150
- /** `GET .../skills/file?path=&offset=&limit=`: a page of a file of the pack, or what a folder holds; both `null` unless `ready`. */
2514
+ /** `GET .../skills/file?path=&offset=&limit=`: a page of a file, or what a folder holds, as the pack answers `read_repo_file` (`RestFile` of `@skillcdn/core`); `read` is `null` unless `ready`. */
2151
2515
  export declare const restSkillFileSchema: z.ZodMiniObject<{
2152
2516
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2153
- source: z.ZodMiniString<string>;
2517
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2518
+ page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2154
2519
  status: z.ZodMiniEnum<{
2155
2520
  failed: "failed";
2156
2521
  indexing: "indexing";
@@ -2160,14 +2525,34 @@ export declare const restSkillFileSchema: z.ZodMiniObject<{
2160
2525
  token_invalid: "token_invalid";
2161
2526
  unavailable: "unavailable";
2162
2527
  }>;
2163
- file: z.ZodMiniNullable<z.ZodMiniObject<{
2528
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2529
+ code: z.ZodMiniString<string>;
2530
+ message: z.ZodMiniString<string>;
2531
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2532
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2533
+ }, z.core.$strip>>;
2534
+ read: z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2535
+ kind: z.ZodMiniLiteral<"file">;
2536
+ commit: z.ZodMiniOptional<z.ZodMiniString<string>>;
2537
+ references: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2538
+ source: z.ZodMiniOptional<z.ZodMiniString<string>>;
2539
+ href: z.ZodMiniString<string>;
2540
+ path: z.ZodMiniString<string>;
2541
+ status: z.ZodMiniEnum<{
2542
+ available: "available";
2543
+ blocked: "blocked";
2544
+ missing: "missing";
2545
+ outside_mount: "outside_mount";
2546
+ }>;
2547
+ }, z.core.$strip>>>;
2164
2548
  path: z.ZodMiniString<string>;
2165
2549
  content: z.ZodMiniString<string>;
2166
2550
  offset: z.ZodMiniInt;
2167
2551
  nextOffset: z.ZodMiniNullable<z.ZodMiniInt>;
2168
2552
  totalLength: z.ZodMiniInt;
2169
- }, z.core.$strip>>;
2170
- folder: z.ZodMiniNullable<z.ZodMiniObject<{
2553
+ }, z.core.$strip>, z.ZodMiniObject<{
2554
+ kind: z.ZodMiniLiteral<"directory">;
2555
+ commit: z.ZodMiniOptional<z.ZodMiniString<string>>;
2171
2556
  path: z.ZodMiniString<string>;
2172
2557
  entries: z.ZodMiniArray<z.ZodMiniObject<{
2173
2558
  path: z.ZodMiniString<string>;
@@ -2178,31 +2563,13 @@ export declare const restSkillFileSchema: z.ZodMiniObject<{
2178
2563
  size: z.ZodMiniNullable<z.ZodMiniInt>;
2179
2564
  }, z.core.$strip>>;
2180
2565
  truncated: z.ZodMiniBoolean<boolean>;
2181
- }, z.core.$strip>>;
2566
+ }, z.core.$strip>], "kind">>;
2182
2567
  }, z.core.$strip>;
2183
2568
  export type RestSkillFile = z.infer<typeof restSkillFileSchema>;
2184
- /** An entry of a folder of the pack, as the deployment browses it: a skill, a folder with what it holds, or a file. */
2185
- export declare const restSkillBrowseEntrySchema: z.ZodMiniObject<{
2186
- kind: z.ZodMiniEnum<{
2187
- directory: "directory";
2188
- file: "file";
2189
- skill: "skill";
2190
- }>;
2191
- path: z.ZodMiniString<string>;
2192
- name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2193
- description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2194
- skillCount: z.ZodMiniInt;
2195
- documentCount: z.ZodMiniInt;
2196
- size: z.ZodMiniNullable<z.ZodMiniInt>;
2197
- overviewPath: z.ZodMiniNullable<z.ZodMiniString<string>>;
2198
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2199
- describedOnly: z.ZodMiniBoolean<boolean>;
2200
- }, z.core.$strip>;
2201
- export type RestSkillBrowseEntry = z.infer<typeof restSkillBrowseEntrySchema>;
2202
- /** `GET .../skills/browse?path=&cursor=&limit=`: what a folder of the pack holds, a page of it (`browse_repo`); `folder` is `null` unless `ready`. */
2569
+ /** `GET .../skills/browse?path=&cursor=&limit=`: what a folder holds, a page of it, as the pack answers `browse_repo` (`RestBrowse` of `@skillcdn/core`); `read` is `null` unless `ready`. */
2203
2570
  export declare const restSkillBrowseSchema: z.ZodMiniObject<{
2204
2571
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2205
- source: z.ZodMiniString<string>;
2572
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2206
2573
  page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2207
2574
  status: z.ZodMiniEnum<{
2208
2575
  failed: "failed";
@@ -2213,14 +2580,34 @@ export declare const restSkillBrowseSchema: z.ZodMiniObject<{
2213
2580
  token_invalid: "token_invalid";
2214
2581
  unavailable: "unavailable";
2215
2582
  }>;
2216
- folder: z.ZodMiniNullable<z.ZodMiniObject<{
2583
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2584
+ code: z.ZodMiniString<string>;
2585
+ message: z.ZodMiniString<string>;
2586
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2587
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2588
+ }, z.core.$strip>>;
2589
+ read: z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2590
+ status: z.ZodMiniLiteral<"ready">;
2591
+ commit: z.ZodMiniString<string>;
2217
2592
  path: z.ZodMiniString<string>;
2218
- overview: z.ZodMiniNullable<z.ZodMiniObject<{
2593
+ overview: z.ZodMiniOptional<z.ZodMiniObject<{
2219
2594
  path: z.ZodMiniString<string>;
2220
2595
  title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2221
2596
  description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2222
2597
  }, z.core.$strip>>;
2223
2598
  entries: z.ZodMiniArray<z.ZodMiniObject<{
2599
+ browsePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
2600
+ overviewPath: z.ZodMiniOptional<z.ZodMiniString<string>>;
2601
+ license: z.ZodMiniOptional<z.ZodMiniObject<{
2602
+ kind: z.ZodMiniEnum<{
2603
+ none: "none";
2604
+ permissive: "permissive";
2605
+ restrictive: "restrictive";
2606
+ }>;
2607
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2608
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2609
+ }, z.core.$strip>>;
2610
+ describedOnly: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2224
2611
  kind: z.ZodMiniEnum<{
2225
2612
  directory: "directory";
2226
2613
  file: "file";
@@ -2232,47 +2619,27 @@ export declare const restSkillBrowseSchema: z.ZodMiniObject<{
2232
2619
  skillCount: z.ZodMiniInt;
2233
2620
  documentCount: z.ZodMiniInt;
2234
2621
  size: z.ZodMiniNullable<z.ZodMiniInt>;
2235
- overviewPath: z.ZodMiniNullable<z.ZodMiniString<string>>;
2236
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2237
- describedOnly: z.ZodMiniBoolean<boolean>;
2622
+ manifestPath: z.ZodMiniNullable<z.ZodMiniString<string>>;
2623
+ language: z.ZodMiniNullable<z.ZodMiniString<string>>;
2238
2624
  }, z.core.$strip>>;
2625
+ diagnostics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2626
+ path: z.ZodMiniString<string>;
2627
+ code: z.ZodMiniString<string>;
2628
+ message: z.ZodMiniString<string>;
2629
+ }, z.core.$strip>>>;
2239
2630
  nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
2240
- }, z.core.$strip>>;
2631
+ }, z.core.$strip>, z.ZodMiniObject<{
2632
+ status: z.ZodMiniLiteral<"indexing">;
2633
+ }, z.core.$strip>, z.ZodMiniObject<{
2634
+ status: z.ZodMiniLiteral<"failed">;
2635
+ errorCode: z.ZodMiniString<string>;
2636
+ }, z.core.$strip>], "status">>;
2241
2637
  }, z.core.$strip>;
2242
2638
  export type RestSkillBrowse = z.infer<typeof restSkillBrowseSchema>;
2243
- /** What a search of the pack found: a skill, as the listing has it, with the files of it that matched; or a document on its own. */
2244
- export declare const restSkillFindItemSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2245
- kind: z.ZodMiniLiteral<"skill">;
2246
- name: z.ZodMiniString<string>;
2247
- description: z.ZodMiniString<string>;
2248
- directory: z.ZodMiniString<string>;
2249
- path: z.ZodMiniString<string>;
2250
- page: z.ZodMiniString<string>;
2251
- uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
2252
- translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2253
- title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2254
- description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2255
- }, z.core.$strip>>;
2256
- files: z.ZodMiniArray<z.ZodMiniObject<{
2257
- path: z.ZodMiniString<string>;
2258
- title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2259
- summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2260
- }, z.core.$strip>>;
2261
- moreFiles: z.ZodMiniInt;
2262
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2263
- describedOnly: z.ZodMiniBoolean<boolean>;
2264
- }, z.core.$strip>, z.ZodMiniObject<{
2265
- kind: z.ZodMiniLiteral<"document">;
2266
- path: z.ZodMiniString<string>;
2267
- title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2268
- summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2269
- skillDirectory: z.ZodMiniNullable<z.ZodMiniString<string>>;
2270
- }, z.core.$strip>], "kind">;
2271
- export type RestSkillFindItem = z.infer<typeof restSkillFindItemSchema>;
2272
- /** `GET .../skills/find?query=&path=&cursor=&limit=`: what words find in the pack, a page of it in relevance order (`search_repo`); `found` is `null` unless `ready`. */
2639
+ /** `GET .../skills/find?query=&path=&cursor=&limit=`: what words find, a page of it in relevance order, as the pack answers `search_repo` (`RestFind` of `@skillcdn/core`); `read` is `null` unless `ready`. */
2273
2640
  export declare const restSkillFindSchema: z.ZodMiniObject<{
2274
2641
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2275
- source: z.ZodMiniString<string>;
2642
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2276
2643
  page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2277
2644
  status: z.ZodMiniEnum<{
2278
2645
  failed: "failed";
@@ -2283,17 +2650,24 @@ export declare const restSkillFindSchema: z.ZodMiniObject<{
2283
2650
  token_invalid: "token_invalid";
2284
2651
  unavailable: "unavailable";
2285
2652
  }>;
2286
- found: z.ZodMiniNullable<z.ZodMiniObject<{
2287
- query: z.ZodMiniString<string>;
2288
- path: z.ZodMiniNullable<z.ZodMiniString<string>>;
2653
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2654
+ code: z.ZodMiniString<string>;
2655
+ message: z.ZodMiniString<string>;
2656
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2657
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2658
+ }, z.core.$strip>>;
2659
+ read: z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2660
+ status: z.ZodMiniLiteral<"ready">;
2661
+ query: z.ZodMiniNullable<z.ZodMiniString<string>>;
2662
+ commit: z.ZodMiniOptional<z.ZodMiniString<string>>;
2663
+ path: z.ZodMiniOptional<z.ZodMiniString<string>>;
2664
+ nextCursor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
2289
2665
  items: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2290
2666
  kind: z.ZodMiniLiteral<"skill">;
2667
+ path: z.ZodMiniOptional<z.ZodMiniString<string>>;
2291
2668
  name: z.ZodMiniString<string>;
2292
- description: z.ZodMiniString<string>;
2293
2669
  directory: z.ZodMiniString<string>;
2294
- path: z.ZodMiniString<string>;
2295
- page: z.ZodMiniString<string>;
2296
- uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
2670
+ description: z.ZodMiniString<string>;
2297
2671
  translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2298
2672
  title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2299
2673
  description: z.ZodMiniNullable<z.ZodMiniString<string>>;
@@ -2304,8 +2678,16 @@ export declare const restSkillFindSchema: z.ZodMiniObject<{
2304
2678
  summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2305
2679
  }, z.core.$strip>>;
2306
2680
  moreFiles: z.ZodMiniInt;
2307
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2308
- describedOnly: z.ZodMiniBoolean<boolean>;
2681
+ license: z.ZodMiniOptional<z.ZodMiniObject<{
2682
+ kind: z.ZodMiniEnum<{
2683
+ none: "none";
2684
+ permissive: "permissive";
2685
+ restrictive: "restrictive";
2686
+ }>;
2687
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2688
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2689
+ }, z.core.$strip>>;
2690
+ describedOnly: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2309
2691
  }, z.core.$strip>, z.ZodMiniObject<{
2310
2692
  kind: z.ZodMiniLiteral<"document">;
2311
2693
  path: z.ZodMiniString<string>;
@@ -2313,8 +2695,21 @@ export declare const restSkillFindSchema: z.ZodMiniObject<{
2313
2695
  summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2314
2696
  skillDirectory: z.ZodMiniNullable<z.ZodMiniString<string>>;
2315
2697
  }, z.core.$strip>], "kind">>;
2316
- nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
2317
- }, z.core.$strip>>;
2698
+ diagnostics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2699
+ path: z.ZodMiniString<string>;
2700
+ code: z.ZodMiniString<string>;
2701
+ message: z.ZodMiniString<string>;
2702
+ }, z.core.$strip>>>;
2703
+ totals: z.ZodMiniNullable<z.ZodMiniObject<{
2704
+ skills: z.ZodMiniInt;
2705
+ documents: z.ZodMiniInt;
2706
+ }, z.core.$strip>>;
2707
+ }, z.core.$strip>, z.ZodMiniObject<{
2708
+ status: z.ZodMiniLiteral<"indexing">;
2709
+ }, z.core.$strip>, z.ZodMiniObject<{
2710
+ status: z.ZodMiniLiteral<"failed">;
2711
+ errorCode: z.ZodMiniString<string>;
2712
+ }, z.core.$strip>], "status">>;
2318
2713
  }, z.core.$strip>;
2319
2714
  export type RestSkillFind = z.infer<typeof restSkillFindSchema>;
2320
2715
  /** A document as a folder or a search lists it: everything but the body. */