primitive-admin 1.2.0-alpha.14 → 1.2.0-alpha.16

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 (400) hide show
  1. package/README.md +181 -73
  2. package/assets/skill/skills/primitive-platform/SKILL.md +87 -23
  3. package/dist/bin/primitive.js +11 -82
  4. package/dist/bin/primitive.js.map +1 -1
  5. package/dist/src/commands/admins.js +80 -17
  6. package/dist/src/commands/admins.js.map +1 -1
  7. package/dist/src/commands/agent-sessions.js +2 -0
  8. package/dist/src/commands/agent-sessions.js.map +1 -1
  9. package/dist/src/commands/analytics.js +181 -12
  10. package/dist/src/commands/analytics.js.map +1 -1
  11. package/dist/src/commands/apps-children.js +2 -0
  12. package/dist/src/commands/apps-children.js.map +1 -1
  13. package/dist/src/commands/apps-transitions.d.ts +39 -0
  14. package/dist/src/commands/apps-transitions.js +198 -0
  15. package/dist/src/commands/apps-transitions.js.map +1 -0
  16. package/dist/src/commands/apps.d.ts +11 -0
  17. package/dist/src/commands/apps.js +65 -3
  18. package/dist/src/commands/apps.js.map +1 -1
  19. package/dist/src/commands/auth-sessions.js +2 -0
  20. package/dist/src/commands/auth-sessions.js.map +1 -1
  21. package/dist/src/commands/auth.js +16 -1
  22. package/dist/src/commands/auth.js.map +1 -1
  23. package/dist/src/commands/blob-buckets.js +2 -0
  24. package/dist/src/commands/blob-buckets.js.map +1 -1
  25. package/dist/src/commands/collections.js +2 -0
  26. package/dist/src/commands/collections.js.map +1 -1
  27. package/dist/src/commands/comparisons.js +2 -0
  28. package/dist/src/commands/comparisons.js.map +1 -1
  29. package/dist/src/commands/config.d.ts +1 -1
  30. package/dist/src/commands/config.js +42 -9
  31. package/dist/src/commands/config.js.map +1 -1
  32. package/dist/src/commands/connections.js +2 -0
  33. package/dist/src/commands/connections.js.map +1 -1
  34. package/dist/src/commands/database-type-configs.js +5 -3
  35. package/dist/src/commands/database-type-configs.js.map +1 -1
  36. package/dist/src/commands/databases.js +6 -4
  37. package/dist/src/commands/databases.js.map +1 -1
  38. package/dist/src/commands/db3-types.js +2 -0
  39. package/dist/src/commands/db3-types.js.map +1 -1
  40. package/dist/src/commands/db3.d.ts +12 -0
  41. package/dist/src/commands/db3.js +408 -31
  42. package/dist/src/commands/db3.js.map +1 -1
  43. package/dist/src/commands/documents.d.ts +52 -12
  44. package/dist/src/commands/documents.js +120 -29
  45. package/dist/src/commands/documents.js.map +1 -1
  46. package/dist/src/commands/email-templates.js +74 -0
  47. package/dist/src/commands/email-templates.js.map +1 -1
  48. package/dist/src/commands/env.js +2 -0
  49. package/dist/src/commands/env.js.map +1 -1
  50. package/dist/src/commands/functions.js +90 -11
  51. package/dist/src/commands/functions.js.map +1 -1
  52. package/dist/src/commands/groups.js +20 -3
  53. package/dist/src/commands/groups.js.map +1 -1
  54. package/dist/src/commands/guides.js +2 -0
  55. package/dist/src/commands/guides.js.map +1 -1
  56. package/dist/src/commands/hosting.d.ts +8 -0
  57. package/dist/src/commands/hosting.js +346 -0
  58. package/dist/src/commands/hosting.js.map +1 -0
  59. package/dist/src/commands/init.js +9 -1
  60. package/dist/src/commands/init.js.map +1 -1
  61. package/dist/src/commands/integrations.js +82 -47
  62. package/dist/src/commands/integrations.js.map +1 -1
  63. package/dist/src/commands/locks.js +2 -0
  64. package/dist/src/commands/locks.js.map +1 -1
  65. package/dist/src/commands/metadata-category-configs.js +2 -0
  66. package/dist/src/commands/metadata-category-configs.js.map +1 -1
  67. package/dist/src/commands/metadata.js +41 -0
  68. package/dist/src/commands/metadata.js.map +1 -1
  69. package/dist/src/commands/prompts.js +75 -47
  70. package/dist/src/commands/prompts.js.map +1 -1
  71. package/dist/src/commands/rate-counters.d.ts +19 -0
  72. package/dist/src/commands/rate-counters.js +104 -0
  73. package/dist/src/commands/rate-counters.js.map +1 -0
  74. package/dist/src/commands/rule-sets.js +2 -0
  75. package/dist/src/commands/rule-sets.js.map +1 -1
  76. package/dist/src/commands/schemas.d.ts +15 -0
  77. package/dist/src/commands/schemas.js +122 -0
  78. package/dist/src/commands/schemas.js.map +1 -0
  79. package/dist/src/commands/secrets.js +47 -3
  80. package/dist/src/commands/secrets.js.map +1 -1
  81. package/dist/src/commands/sessions.js +2 -0
  82. package/dist/src/commands/sessions.js.map +1 -1
  83. package/dist/src/commands/skill.js +2 -0
  84. package/dist/src/commands/skill.js.map +1 -1
  85. package/dist/src/commands/sync-schemas.d.ts +202 -0
  86. package/dist/src/commands/sync-schemas.js +629 -0
  87. package/dist/src/commands/sync-schemas.js.map +1 -0
  88. package/dist/src/commands/sync-user-properties.d.ts +118 -0
  89. package/dist/src/commands/sync-user-properties.js +276 -0
  90. package/dist/src/commands/sync-user-properties.js.map +1 -0
  91. package/dist/src/commands/sync.d.ts +344 -14
  92. package/dist/src/commands/sync.js +1834 -345
  93. package/dist/src/commands/sync.js.map +1 -1
  94. package/dist/src/commands/tokens.js +2 -0
  95. package/dist/src/commands/tokens.js.map +1 -1
  96. package/dist/src/commands/transitions.d.ts +54 -0
  97. package/dist/src/commands/transitions.js +418 -0
  98. package/dist/src/commands/transitions.js.map +1 -0
  99. package/dist/src/commands/usage.d.ts +18 -0
  100. package/dist/src/commands/usage.js +343 -0
  101. package/dist/src/commands/usage.js.map +1 -0
  102. package/dist/src/commands/user-properties.d.ts +14 -0
  103. package/dist/src/commands/user-properties.js +79 -0
  104. package/dist/src/commands/user-properties.js.map +1 -0
  105. package/dist/src/commands/users.js +878 -16
  106. package/dist/src/commands/users.js.map +1 -1
  107. package/dist/src/commands/vars.js +2 -0
  108. package/dist/src/commands/vars.js.map +1 -1
  109. package/dist/src/commands/waitlist.js +39 -4
  110. package/dist/src/commands/waitlist.js.map +1 -1
  111. package/dist/src/lib/analytics-query.d.ts +58 -0
  112. package/dist/src/lib/analytics-query.js +134 -0
  113. package/dist/src/lib/analytics-query.js.map +1 -0
  114. package/dist/src/lib/api-client.d.ts +1354 -97
  115. package/dist/src/lib/api-client.js +513 -164
  116. package/dist/src/lib/api-client.js.map +1 -1
  117. package/dist/src/lib/app-settings-descriptor.d.ts +1 -1
  118. package/dist/src/lib/app-settings-descriptor.js +6 -0
  119. package/dist/src/lib/app-settings-descriptor.js.map +1 -1
  120. package/dist/src/lib/auth-flow.d.ts +33 -0
  121. package/dist/src/lib/auth-flow.js +404 -13
  122. package/dist/src/lib/auth-flow.js.map +1 -1
  123. package/dist/src/lib/block-selector.d.ts +9 -15
  124. package/dist/src/lib/block-selector.js +9 -20
  125. package/dist/src/lib/block-selector.js.map +1 -1
  126. package/dist/src/lib/cli-manifest.d.ts +9 -0
  127. package/dist/src/lib/cli-manifest.js +10 -1
  128. package/dist/src/lib/cli-manifest.js.map +1 -1
  129. package/dist/src/lib/cli-version.d.ts +14 -0
  130. package/dist/src/lib/cli-version.js +38 -0
  131. package/dist/src/lib/cli-version.js.map +1 -0
  132. package/dist/src/lib/codegen-shared/prettierStable.d.ts +41 -0
  133. package/dist/src/lib/codegen-shared/prettierStable.js +146 -24
  134. package/dist/src/lib/codegen-shared/prettierStable.js.map +1 -1
  135. package/dist/src/lib/command-groups.d.ts +30 -0
  136. package/dist/src/lib/command-groups.js +109 -0
  137. package/dist/src/lib/command-groups.js.map +1 -0
  138. package/dist/src/lib/command-status.d.ts +147 -0
  139. package/dist/src/lib/command-status.js +266 -0
  140. package/dist/src/lib/command-status.js.map +1 -0
  141. package/dist/src/lib/config-object-descriptor.d.ts +6 -0
  142. package/dist/src/lib/config-object-descriptor.js +71 -1
  143. package/dist/src/lib/config-object-descriptor.js.map +1 -1
  144. package/dist/src/lib/config-toml.d.ts +11 -2
  145. package/dist/src/lib/config-toml.js +25 -2
  146. package/dist/src/lib/config-toml.js.map +1 -1
  147. package/dist/src/lib/data-input.d.ts +1 -1
  148. package/dist/src/lib/data-input.js +1 -1
  149. package/dist/src/lib/db-codegen/dbTsTypes.d.ts +1 -1
  150. package/dist/src/lib/db-codegen/dbTsTypes.js +3 -0
  151. package/dist/src/lib/db-codegen/dbTsTypes.js.map +1 -1
  152. package/dist/src/lib/db-codegen/dbTypeIR.d.ts +18 -1
  153. package/dist/src/lib/db-codegen/dbTypeIR.js +14 -5
  154. package/dist/src/lib/db-codegen/dbTypeIR.js.map +1 -1
  155. package/dist/src/lib/db-type-records.d.ts +106 -0
  156. package/dist/src/lib/db-type-records.js +224 -0
  157. package/dist/src/lib/db-type-records.js.map +1 -0
  158. package/dist/src/lib/db3-export.d.ts +51 -14
  159. package/dist/src/lib/db3-export.js +136 -28
  160. package/dist/src/lib/db3-export.js.map +1 -1
  161. package/dist/src/lib/db3-index-output.d.ts +92 -4
  162. package/dist/src/lib/db3-index-output.js +183 -11
  163. package/dist/src/lib/db3-index-output.js.map +1 -1
  164. package/dist/src/lib/db3-type-models.d.ts +49 -7
  165. package/dist/src/lib/db3-type-models.js +159 -28
  166. package/dist/src/lib/db3-type-models.js.map +1 -1
  167. package/dist/src/lib/deprecation.d.ts +2 -2
  168. package/dist/src/lib/deprecation.js +2 -2
  169. package/dist/src/lib/experimental-apis.d.ts +36 -0
  170. package/dist/src/lib/experimental-apis.js +46 -0
  171. package/dist/src/lib/experimental-apis.js.map +1 -0
  172. package/dist/src/lib/file-attachment.d.ts +24 -0
  173. package/dist/src/lib/file-attachment.js +31 -0
  174. package/dist/src/lib/file-attachment.js.map +1 -0
  175. package/dist/src/lib/function-authorize-check.d.ts +1 -1
  176. package/dist/src/lib/function-authorize-check.js +2 -1
  177. package/dist/src/lib/function-authorize-check.js.map +1 -1
  178. package/dist/src/lib/function-authorize-view.d.ts +12 -0
  179. package/dist/src/lib/function-authorize-view.js +38 -0
  180. package/dist/src/lib/function-authorize-view.js.map +1 -1
  181. package/dist/src/lib/function-bundle.d.ts +27 -5
  182. package/dist/src/lib/function-bundle.js +106 -7
  183. package/dist/src/lib/function-bundle.js.map +1 -1
  184. package/dist/src/lib/function-collect.d.ts +15 -0
  185. package/dist/src/lib/function-collect.js +73 -14
  186. package/dist/src/lib/function-collect.js.map +1 -1
  187. package/dist/src/lib/function-db-types.d.ts +63 -40
  188. package/dist/src/lib/function-db-types.js +289 -293
  189. package/dist/src/lib/function-db-types.js.map +1 -1
  190. package/dist/src/lib/function-document-types.d.ts +19 -7
  191. package/dist/src/lib/function-document-types.js +24 -12
  192. package/dist/src/lib/function-document-types.js.map +1 -1
  193. package/dist/src/lib/function-lint.d.ts +24 -1
  194. package/dist/src/lib/function-lint.js +123 -1
  195. package/dist/src/lib/function-lint.js.map +1 -1
  196. package/dist/src/lib/function-run.d.ts +1 -1
  197. package/dist/src/lib/function-run.js +1 -1
  198. package/dist/src/lib/function-run.js.map +1 -1
  199. package/dist/src/lib/function-schema-codegen.d.ts +85 -21
  200. package/dist/src/lib/function-schema-codegen.js +191 -85
  201. package/dist/src/lib/function-schema-codegen.js.map +1 -1
  202. package/dist/src/lib/function-schema-refs.d.ts +98 -0
  203. package/dist/src/lib/function-schema-refs.js +177 -0
  204. package/dist/src/lib/function-schema-refs.js.map +1 -0
  205. package/dist/src/lib/function-sync.d.ts +38 -4
  206. package/dist/src/lib/function-sync.js +91 -14
  207. package/dist/src/lib/function-sync.js.map +1 -1
  208. package/dist/src/lib/function-typecheck.d.ts +52 -0
  209. package/dist/src/lib/function-typecheck.js +171 -54
  210. package/dist/src/lib/function-typecheck.js.map +1 -1
  211. package/dist/src/lib/generated-build-flags.d.ts +13 -0
  212. package/dist/src/lib/generated-build-flags.js +14 -0
  213. package/dist/src/lib/generated-build-flags.js.map +1 -0
  214. package/dist/src/lib/generated-command-status.d.ts +6 -0
  215. package/dist/src/lib/generated-command-status.js +469 -0
  216. package/dist/src/lib/generated-command-status.js.map +1 -0
  217. package/dist/src/lib/generated-config-surfaces.d.ts +239 -14
  218. package/dist/src/lib/generated-config-surfaces.js +670 -85
  219. package/dist/src/lib/generated-config-surfaces.js.map +1 -1
  220. package/dist/src/lib/generated-sdk-types.d.ts +1 -1
  221. package/dist/src/lib/generated-sdk-types.js +1 -1
  222. package/dist/src/lib/generated-sdk-types.js.map +1 -1
  223. package/dist/src/lib/hosting-build.d.ts +97 -0
  224. package/dist/src/lib/hosting-build.js +204 -0
  225. package/dist/src/lib/hosting-build.js.map +1 -0
  226. package/dist/src/lib/hosting-client.d.ts +167 -0
  227. package/dist/src/lib/hosting-client.js +340 -0
  228. package/dist/src/lib/hosting-client.js.map +1 -0
  229. package/dist/src/lib/hosting-environments.d.ts +32 -0
  230. package/dist/src/lib/hosting-environments.js +74 -0
  231. package/dist/src/lib/hosting-environments.js.map +1 -0
  232. package/dist/src/lib/hosting-errors.d.ts +30 -0
  233. package/dist/src/lib/hosting-errors.js +43 -0
  234. package/dist/src/lib/hosting-errors.js.map +1 -0
  235. package/dist/src/lib/hosting-token.d.ts +46 -0
  236. package/dist/src/lib/hosting-token.js +60 -0
  237. package/dist/src/lib/hosting-token.js.map +1 -0
  238. package/dist/src/lib/hosting-wait.d.ts +42 -0
  239. package/dist/src/lib/hosting-wait.js +84 -0
  240. package/dist/src/lib/hosting-wait.js.map +1 -0
  241. package/dist/src/lib/hosting-wfp-upload.d.ts +86 -0
  242. package/dist/src/lib/hosting-wfp-upload.js +149 -0
  243. package/dist/src/lib/hosting-wfp-upload.js.map +1 -0
  244. package/dist/src/lib/integration-test-request.d.ts +54 -0
  245. package/dist/src/lib/integration-test-request.js +207 -0
  246. package/dist/src/lib/integration-test-request.js.map +1 -0
  247. package/dist/src/lib/invoker-shared-enums.d.ts +35 -0
  248. package/dist/src/lib/invoker-shared-enums.js +98 -0
  249. package/dist/src/lib/invoker-shared-enums.js.map +1 -0
  250. package/dist/src/lib/log-inspection.d.ts +4 -1
  251. package/dist/src/lib/log-inspection.js.map +1 -1
  252. package/dist/src/lib/metadata-report.d.ts +85 -0
  253. package/dist/src/lib/metadata-report.js +81 -0
  254. package/dist/src/lib/metadata-report.js.map +1 -0
  255. package/dist/src/lib/output.d.ts +1 -1
  256. package/dist/src/lib/output.js +1 -1
  257. package/dist/src/lib/platform-owned.js +5 -0
  258. package/dist/src/lib/platform-owned.js.map +1 -1
  259. package/dist/src/lib/primitive-declaration-names.d.ts +21 -0
  260. package/dist/src/lib/primitive-declaration-names.js +22 -0
  261. package/dist/src/lib/primitive-declaration-names.js.map +1 -0
  262. package/dist/src/lib/primitive-declaration.d.ts +174 -0
  263. package/dist/src/lib/primitive-declaration.js +792 -0
  264. package/dist/src/lib/primitive-declaration.js.map +1 -0
  265. package/dist/src/lib/prompt-schema-codegen.d.ts +36 -12
  266. package/dist/src/lib/prompt-schema-codegen.js +94 -98
  267. package/dist/src/lib/prompt-schema-codegen.js.map +1 -1
  268. package/dist/src/lib/prompt-schema-document.d.ts +35 -0
  269. package/dist/src/lib/prompt-schema-document.js +92 -0
  270. package/dist/src/lib/prompt-schema-document.js.map +1 -0
  271. package/dist/src/lib/prompt-schema-refs.d.ts +173 -0
  272. package/dist/src/lib/prompt-schema-refs.js +478 -0
  273. package/dist/src/lib/prompt-schema-refs.js.map +1 -0
  274. package/dist/src/lib/records-verbs.d.ts +12 -2
  275. package/dist/src/lib/records-verbs.js +7 -2
  276. package/dist/src/lib/records-verbs.js.map +1 -1
  277. package/dist/src/lib/register-commands.d.ts +36 -0
  278. package/dist/src/lib/register-commands.js +37 -0
  279. package/dist/src/lib/register-commands.js.map +1 -0
  280. package/dist/src/lib/retired-imports.d.ts +53 -0
  281. package/dist/src/lib/retired-imports.js +120 -0
  282. package/dist/src/lib/retired-imports.js.map +1 -0
  283. package/dist/src/lib/schema-codegen/compiledSpace.d.ts +62 -0
  284. package/dist/src/lib/schema-codegen/compiledSpace.js +103 -0
  285. package/dist/src/lib/schema-codegen/compiledSpace.js.map +1 -0
  286. package/dist/src/lib/schema-codegen/generated-db3-bridge.d.ts +86 -0
  287. package/dist/src/lib/schema-codegen/generated-db3-bridge.js +227 -0
  288. package/dist/src/lib/schema-codegen/generated-db3-bridge.js.map +1 -0
  289. package/dist/src/lib/schema-codegen/generated-db3-query-capabilities.d.ts +85 -0
  290. package/dist/src/lib/schema-codegen/generated-db3-query-capabilities.js +86 -0
  291. package/dist/src/lib/schema-codegen/generated-db3-query-capabilities.js.map +1 -0
  292. package/dist/src/lib/schema-codegen/generated-field-grammar.d.ts +218 -0
  293. package/dist/src/lib/schema-codegen/generated-field-grammar.js +397 -0
  294. package/dist/src/lib/schema-codegen/generated-field-grammar.js.map +1 -0
  295. package/dist/src/lib/schema-codegen/generated-field-table.d.ts +80 -0
  296. package/dist/src/lib/schema-codegen/generated-field-table.js +542 -0
  297. package/dist/src/lib/schema-codegen/generated-field-table.js.map +1 -0
  298. package/dist/src/lib/schema-codegen/generated-prompt-schemas.d.ts +195 -0
  299. package/dist/src/lib/schema-codegen/generated-prompt-schemas.js +503 -0
  300. package/dist/src/lib/schema-codegen/generated-prompt-schemas.js.map +1 -0
  301. package/dist/src/lib/schema-codegen/generated-schema-descriptor.d.ts +129 -0
  302. package/dist/src/lib/schema-codegen/generated-schema-descriptor.js +154 -1
  303. package/dist/src/lib/schema-codegen/generated-schema-descriptor.js.map +1 -1
  304. package/dist/src/lib/schema-codegen/generated-schema-file.d.ts +129 -0
  305. package/dist/src/lib/schema-codegen/generated-schema-file.js +475 -0
  306. package/dist/src/lib/schema-codegen/generated-schema-file.js.map +1 -0
  307. package/dist/src/lib/schema-codegen/generated-schema-provenance.d.ts +115 -0
  308. package/dist/src/lib/schema-codegen/generated-schema-provenance.js +274 -0
  309. package/dist/src/lib/schema-codegen/generated-schema-provenance.js.map +1 -0
  310. package/dist/src/lib/schema-codegen/generated-schema-refs.d.ts +366 -0
  311. package/dist/src/lib/schema-codegen/generated-schema-refs.js +1789 -0
  312. package/dist/src/lib/schema-codegen/generated-schema-refs.js.map +1 -0
  313. package/dist/src/lib/schema-codegen/generated-schema-shape.d.ts +27 -0
  314. package/dist/src/lib/schema-codegen/generated-schema-shape.js +126 -0
  315. package/dist/src/lib/schema-codegen/generated-schema-shape.js.map +1 -0
  316. package/dist/src/lib/schema-codegen/namedRefs.d.ts +56 -0
  317. package/dist/src/lib/schema-codegen/namedRefs.js +143 -0
  318. package/dist/src/lib/schema-codegen/namedRefs.js.map +1 -0
  319. package/dist/src/lib/schema-codegen/schemaChanges.d.ts +74 -0
  320. package/dist/src/lib/schema-codegen/schemaChanges.js +277 -0
  321. package/dist/src/lib/schema-codegen/schemaChanges.js.map +1 -0
  322. package/dist/src/lib/schema-codegen/schemaDocs.d.ts +69 -0
  323. package/dist/src/lib/schema-codegen/schemaDocs.js +219 -0
  324. package/dist/src/lib/schema-codegen/schemaDocs.js.map +1 -0
  325. package/dist/src/lib/schema-codegen/schemaIR.d.ts +158 -0
  326. package/dist/src/lib/schema-codegen/schemaIR.js +279 -0
  327. package/dist/src/lib/schema-codegen/schemaIR.js.map +1 -0
  328. package/dist/src/lib/schema-codegen/schemaToTs.d.ts +40 -13
  329. package/dist/src/lib/schema-codegen/schemaToTs.js +124 -160
  330. package/dist/src/lib/schema-codegen/schemaToTs.js.map +1 -1
  331. package/dist/src/lib/schema-codegen/valuesLists.d.ts +48 -0
  332. package/dist/src/lib/schema-codegen/valuesLists.js +144 -0
  333. package/dist/src/lib/schema-codegen/valuesLists.js.map +1 -0
  334. package/dist/src/lib/schema-family-index.d.ts +228 -0
  335. package/dist/src/lib/schema-family-index.js +813 -0
  336. package/dist/src/lib/schema-family-index.js.map +1 -0
  337. package/dist/src/lib/schema-pins.d.ts +82 -0
  338. package/dist/src/lib/schema-pins.js +198 -0
  339. package/dist/src/lib/schema-pins.js.map +1 -0
  340. package/dist/src/lib/schema-preview.d.ts +244 -0
  341. package/dist/src/lib/schema-preview.js +498 -0
  342. package/dist/src/lib/schema-preview.js.map +1 -0
  343. package/dist/src/lib/skill-installer.d.ts +2 -2
  344. package/dist/src/lib/skill-installer.js +2 -21
  345. package/dist/src/lib/skill-installer.js.map +1 -1
  346. package/dist/src/lib/step-run-table.d.ts +1 -2
  347. package/dist/src/lib/step-run-table.js +1 -2
  348. package/dist/src/lib/step-run-table.js.map +1 -1
  349. package/dist/src/lib/swift-codegen/agentGenerator.d.ts +2 -1
  350. package/dist/src/lib/swift-codegen/agentGenerator.js +24 -22
  351. package/dist/src/lib/swift-codegen/agentGenerator.js.map +1 -1
  352. package/dist/src/lib/swift-codegen/banners.d.ts +12 -0
  353. package/dist/src/lib/swift-codegen/banners.js +12 -0
  354. package/dist/src/lib/swift-codegen/banners.js.map +1 -1
  355. package/dist/src/lib/swift-codegen/functionGenerator.d.ts +36 -1
  356. package/dist/src/lib/swift-codegen/functionGenerator.js +168 -50
  357. package/dist/src/lib/swift-codegen/functionGenerator.js.map +1 -1
  358. package/dist/src/lib/swift-codegen/schemaToSwift.d.ts +31 -7
  359. package/dist/src/lib/swift-codegen/schemaToSwift.js +213 -177
  360. package/dist/src/lib/swift-codegen/schemaToSwift.js.map +1 -1
  361. package/dist/src/lib/swift-codegen/sharedGenerator.d.ts +45 -0
  362. package/dist/src/lib/swift-codegen/sharedGenerator.js +165 -0
  363. package/dist/src/lib/swift-codegen/sharedGenerator.js.map +1 -0
  364. package/dist/src/lib/swift-codegen/userPropertiesGenerator.d.ts +30 -0
  365. package/dist/src/lib/swift-codegen/userPropertiesGenerator.js +69 -0
  366. package/dist/src/lib/swift-codegen/userPropertiesGenerator.js.map +1 -0
  367. package/dist/src/lib/sync-resource-types.d.ts +37 -5
  368. package/dist/src/lib/sync-resource-types.js +50 -5
  369. package/dist/src/lib/sync-resource-types.js.map +1 -1
  370. package/dist/src/lib/sync-selectors.d.ts +7 -0
  371. package/dist/src/lib/sync-selectors.js +22 -2
  372. package/dist/src/lib/sync-selectors.js.map +1 -1
  373. package/dist/src/lib/test-runs.d.ts +45 -0
  374. package/dist/src/lib/test-runs.js +150 -0
  375. package/dist/src/lib/test-runs.js.map +1 -0
  376. package/dist/src/lib/toml-database-config.d.ts +2 -1
  377. package/dist/src/lib/toml-database-config.js +7 -4
  378. package/dist/src/lib/toml-database-config.js.map +1 -1
  379. package/dist/src/lib/toml-scalar-edit.js +6 -4
  380. package/dist/src/lib/toml-scalar-edit.js.map +1 -1
  381. package/dist/src/lib/transition-warnings.d.ts +21 -0
  382. package/dist/src/lib/transition-warnings.js +49 -0
  383. package/dist/src/lib/transition-warnings.js.map +1 -0
  384. package/dist/src/lib/user-index.d.ts +80 -0
  385. package/dist/src/lib/user-index.js +166 -0
  386. package/dist/src/lib/user-index.js.map +1 -0
  387. package/dist/src/lib/user-properties/generated-properties-schema.d.ts +159 -0
  388. package/dist/src/lib/user-properties/generated-properties-schema.js +471 -0
  389. package/dist/src/lib/user-properties/generated-properties-schema.js.map +1 -0
  390. package/dist/src/lib/user-properties/user-properties-codegen.d.ts +55 -0
  391. package/dist/src/lib/user-properties/user-properties-codegen.js +129 -0
  392. package/dist/src/lib/user-properties/user-properties-codegen.js.map +1 -0
  393. package/dist/src/lib/user-walk.d.ts +31 -0
  394. package/dist/src/lib/user-walk.js +102 -0
  395. package/dist/src/lib/user-walk.js.map +1 -0
  396. package/dist/src/lib/worker-perf-format.d.ts +22 -0
  397. package/dist/src/lib/worker-perf-format.js +27 -0
  398. package/dist/src/lib/worker-perf-format.js.map +1 -0
  399. package/dist/src/types/index.d.ts +13 -34
  400. package/package.json +5 -3
@@ -14,6 +14,7 @@
14
14
  * `cli/tests/unit/config-surface-drift-guard.test.ts`) fails if this committed
15
15
  * copy does not match the source.
16
16
  */
17
+ import { type GeminiKeywordVerdict } from "./schema-codegen/generated-schema-descriptor.js";
17
18
  /**
18
19
  * The one definition per configuration object (issue #2644).
19
20
  *
@@ -1178,10 +1179,29 @@ export interface RetiredTomlSpelling {
1178
1179
  */
1179
1180
  export declare const RETIRED_TOML_SPELLINGS: Record<string, Record<string, RetiredTomlSpelling>>;
1180
1181
  /**
1181
- * The TOML guidance for `key` under `prefix`: a fully retired key's, else a
1182
- * retired spelling's, else null when the key is simply unknown.
1182
+ * A key one surface refuses while another surface of the same TOML prefix
1183
+ * takes it: the prefix alone cannot pick the sentence.
1183
1184
  */
1184
- export declare function retiredTomlKey(prefix: string, key: string): RetiredTomlSpelling | null;
1185
+ export interface RetiredSurfaceTomlKey extends RetiredTomlSpelling {
1186
+ /**
1187
+ * An empty string is accepted and ignored rather than refused: the
1188
+ * placeholder every earlier `config pull` wrote, which a refusal would turn
1189
+ * into a failed first push of every existing tree.
1190
+ */
1191
+ emptyAccepted?: boolean;
1192
+ }
1193
+ /**
1194
+ * Guidance keyed by surface label, then TOML prefix, then key — consulted
1195
+ * before `RETIRED_CONFIG_KEYS` and `RETIRED_TOML_SPELLINGS` when the caller
1196
+ * knows the surface.
1197
+ */
1198
+ export declare const RETIRED_SURFACE_TOML_KEYS: Record<string, Record<string, Record<string, RetiredSurfaceTomlKey>>>;
1199
+ /**
1200
+ * The TOML guidance for `key` under `prefix`: the surface's own when
1201
+ * `surfaceLabel` names one, else a fully retired key's, else a retired
1202
+ * spelling's, else null when the key is simply unknown.
1203
+ */
1204
+ export declare function retiredTomlKey(prefix: string, key: string, surfaceLabel?: string): RetiredSurfaceTomlKey | null;
1185
1205
  /**
1186
1206
  * The capability grammar for server functions — #3182 phase 1, rewritten by
1187
1207
  * #3279 (project `server-functions` phase 3).
@@ -1580,6 +1600,12 @@ export interface ManifestAuthorizeCallers {
1580
1600
  * existed carries no key, and absent reads as closed.
1581
1601
  */
1582
1602
  db3?: boolean;
1603
+ /**
1604
+ * #5393 — a users walk's batch door: `true` for every walk, or the keys of
1605
+ * the functions whose walks are admitted. Optional like `db3`: absent reads
1606
+ * as closed.
1607
+ */
1608
+ usersBatch?: boolean | string[];
1583
1609
  }
1584
1610
  /** What a version's `authorize` admits, as collected (#4730). */
1585
1611
  export interface ManifestAuthorize {
@@ -3001,11 +3027,9 @@ export declare function normalizeAgentDeclaration(declaration: AgentDeclaration
3001
3027
  *
3002
3028
  * A tool or event schema reaches a provider only through a translation that
3003
3029
  * preserves its meaning; anything else is refused at push, naming the path, the
3004
- * keyword and the provider. The lossy `sanitizeSchemaForGemini` clean-up
3005
- * (`src/services/block-executor.ts`) is NOT reused here: it drops unions and
3006
- * references and rewrites a free-form object as a string, all of which change
3007
- * what the model may produce. It stays where it is, for chat output schemas
3008
- * (the project's non-goal: chat is unchanged).
3030
+ * keyword and the provider. A chat prompt's output schema goes to Gemini
3031
+ * through this translator too (#5538), in place of the lossy clean-up that
3032
+ * dropped unions and references and rewrote a free-form object as a string.
3009
3033
  *
3010
3034
  * ## What "lossless" means (spec §3)
3011
3035
  *
@@ -3046,9 +3070,14 @@ export declare function normalizeAgentDeclaration(declaration: AgentDeclaration
3046
3070
  * `items`. Lowercase type names are accepted (the existing `responseSchema`
3047
3071
  * path already sends them).
3048
3072
  *
3049
- * Pure and dependency-free, like every module under `src/config-surface/`, and
3050
- * vendored into the CLI artifact after `agent-declaration.ts` so the push
3051
- * preflight and the admin routes refuse exactly the same schemas.
3073
+ * Which keywords pass, drop, take a rule or are refused is the keyword table's
3074
+ * `gemini` column (`SCHEMA_KEYWORDS` in `src/function-runs/schema-descriptor.ts`,
3075
+ * #5529), so the translator, the validator and the push refusal list read one
3076
+ * classification. That module is dependency-free and vendored to the CLI whole,
3077
+ * so this one stays pure: the CLI artifact generator rewrites its import to the
3078
+ * vendored copy. This module is vendored into the CLI artifact after
3079
+ * `agent-declaration.ts` so the push preflight and the admin routes refuse
3080
+ * exactly the same schemas.
3052
3081
  */
3053
3082
  /** The providers a prompt config may name. */
3054
3083
  export type SchemaProvider = "openrouter" | "gemini";
@@ -3071,6 +3100,27 @@ export type SchemaTranslation = {
3071
3100
  ok: false;
3072
3101
  refusals: SchemaTranslationRefusal[];
3073
3102
  };
3103
+ /**
3104
+ * What Gemini's function `Schema` does with one keyword, from the keyword
3105
+ * table: `pass` (spelled the same way, with the same meaning — `required`
3106
+ * among them, and Gemini's own `nullable`, `propertyOrdering` and `example`),
3107
+ * `drop` (an annotation with no value meaning, dropped in silence, spec §3),
3108
+ * `rule` (handled by its own rule below) or `refuse`. A key the table does not
3109
+ * name is refused: a keyword nobody classified could mean anything.
3110
+ */
3111
+ export declare function geminiKeywordVerdict(keyword: string): GeminiKeywordVerdict;
3112
+ /**
3113
+ * Keywords handled by their own rule below: exactly the table's `rule` rows,
3114
+ * which the keyword-table conformance test holds it to.
3115
+ */
3116
+ export declare const GEMINI_STRUCTURAL_KEYWORDS: readonly ["type", "enum", "const", "format", "properties", "items", "anyOf", "oneOf", "additionalProperties"];
3117
+ /**
3118
+ * Why Gemini's function `Schema` cannot carry a refused keyword, for the ones
3119
+ * with a reason of their own. Each is refused rather than dropped: dropping any
3120
+ * of them widens what the model may produce. A refused keyword with no entry
3121
+ * here gets the generic reason.
3122
+ */
3123
+ export declare const GEMINI_REFUSAL_REASONS: Readonly<Record<string, string>>;
3074
3124
  /** What a message calls the root. */
3075
3125
  export declare function schemaPathLabel(path: string): string;
3076
3126
  /**
@@ -3150,6 +3200,143 @@ export type AgentSchemaDeficit = {
3150
3200
  export declare function agentSchemaTranslationDeficits(input: AgentSchemaTranslationInput): AgentSchemaDeficit[];
3151
3201
  /** The `AGENT_SCHEMA_NOT_TRANSLATABLE` refusal one deficit renders as. */
3152
3202
  export declare function agentSchemaDeficitRefusal(deficit: AgentSchemaDeficit): AgentRefusal;
3203
+ /**
3204
+ * What a prompt push refuses — #5536 (project `unified-schemas` phase 5)
3205
+ * reported it, #5538 (phase 6, intent criterion 8) refuses it.
3206
+ *
3207
+ * Two checks judge a prompt's schemas: the lossless Gemini translator
3208
+ * (`translateSchemaForProvider`) on the output schemas a Gemini config sends,
3209
+ * and the engine (the function push's rules) on every schema. A write
3210
+ * carrying a keyword either would refuse is refused, each keyword named with
3211
+ * its fix and a code: `PROMPT_SCHEMA_NOT_TRANSLATABLE` for the translator,
3212
+ * `PROMPT_SCHEMA_UNSUPPORTED_KEYWORD` for the engine. The admin prompt routes,
3213
+ * the CLI preflight (through the vendored copy), the Gemini call path and the
3214
+ * audit (`scripts/lib/schema-audit-core.ts`) all read this module, so they
3215
+ * cannot disagree about which schemas are refused.
3216
+ *
3217
+ * An agent's translator refusals are not here: they are already the push
3218
+ * error `AGENT_SCHEMA_NOT_TRANSLATABLE` (DSO-5536-002).
3219
+ */
3220
+ /**
3221
+ * The code a prompt write is refused with for a keyword the lossless Gemini
3222
+ * translator cannot carry, and the code a run of a stored prompt whose output
3223
+ * schema it cannot carry fails with.
3224
+ */
3225
+ export declare const PROMPT_SCHEMA_NOT_TRANSLATABLE = "PROMPT_SCHEMA_NOT_TRANSLATABLE";
3226
+ /** The code a prompt write is refused with for a keyword or a shape the schema check would not enforce. */
3227
+ export declare const PROMPT_SCHEMA_UNSUPPORTED_KEYWORD = "PROMPT_SCHEMA_UNSUPPORTED_KEYWORD";
3228
+ /** One keyword the engine would not enforce: where, which, and why (with its fix). */
3229
+ export interface EngineSchemaRefusal {
3230
+ /** The dotted path from the schema root; `""` is the root. */
3231
+ path: string;
3232
+ keyword: string;
3233
+ reason: string;
3234
+ }
3235
+ /**
3236
+ * The fix for each keyword the engine refuses: one entry per refused row of
3237
+ * the keyword table, and no other key.
3238
+ */
3239
+ export declare const ENGINE_REFUSAL_FIXES: Readonly<Record<string, string>>;
3240
+ /**
3241
+ * The fix for a translator refusal whose reason states only what would be
3242
+ * lost, appended to the refusal line (DSO-5536-008: the translator's own
3243
+ * texts are refusal texts elsewhere and stay as they are). `"*"` is the fix
3244
+ * for a keyword the translator has no reason of its own for.
3245
+ */
3246
+ export declare const TRANSLATOR_REFUSAL_FIXES: Readonly<Record<string, string>>;
3247
+ /**
3248
+ * Every keyword of `schema` the function push's rules refuse, over the nodes
3249
+ * they check (the root, `properties`, `items`, `anyOf`, `oneOf`; never
3250
+ * `$defs`): the keyword table's refused class, each reason ending with its
3251
+ * fix, and the shape rules. An enforced constraint (`uniqueItems`,
3252
+ * `multipleOf`, …) is never one: only the translator refuses those.
3253
+ *
3254
+ * The walk keeps its own work stack rather than recursing: the compiler
3255
+ * accepts a schema nested deeper than the call stack, and every refusal must
3256
+ * still be named for it.
3257
+ */
3258
+ export declare function engineSchemaRefusals(schema: unknown, path?: string): EngineSchemaRefusal[];
3259
+ /**
3260
+ * The schemas an agent's model reads from its declaration (a table or one
3261
+ * JSON string): each client tool's `inputSchema` and `outputSchema`, each
3262
+ * event's `schema` and the turn context's. Never a server tool's: those are
3263
+ * its function's, judged at the function push.
3264
+ */
3265
+ export declare function agentDeclarationSchemas(agent: unknown): Array<{
3266
+ subject: string;
3267
+ schema: unknown;
3268
+ }>;
3269
+ /** What `promptSchemaDeficits` judges: the schema fields a write carries, and the prompt's configs. */
3270
+ export interface PromptSchemaDeficitInput {
3271
+ inputSchema?: unknown;
3272
+ outputSchema?: unknown;
3273
+ /** `[prompt.agent]`: a table or one JSON string. */
3274
+ agent?: unknown;
3275
+ /** The configs that decide whether `outputSchema` targets Gemini; each config's own `outputSchema` is judged too. */
3276
+ configs?: ReadonlyArray<{
3277
+ name: string;
3278
+ provider: string;
3279
+ status?: string | null;
3280
+ outputSchema?: unknown;
3281
+ }>;
3282
+ }
3283
+ /** One keyword the translator or the engine would refuse, in one schema of a prompt. */
3284
+ export interface PromptSchemaDeficit {
3285
+ /** `inputSchema`, `outputSchema`, `config "fast" outputSchema`, `agent tool "pick" inputSchema`, … */
3286
+ subject: string;
3287
+ field: "inputSchema" | "outputSchema" | "agent";
3288
+ /** The config whose own `outputSchema` this is. */
3289
+ config?: string;
3290
+ check: "translator" | "engine";
3291
+ provider?: "gemini";
3292
+ /** The dotted path from the schema root; `""` is the root. */
3293
+ path: string;
3294
+ keyword: string;
3295
+ reason: string;
3296
+ }
3297
+ /**
3298
+ * `translateSchemaForProvider(schema, "gemini")`, failing closed. The
3299
+ * translator recurses, so a schema nested deeper than the call stack cannot be
3300
+ * translated: it is one refusal about the whole document (`(schema)`, the
3301
+ * engine's spelling), so a schema Gemini would never be sent is refused at
3302
+ * push and at call time rather than accepted unread. Any other error is a
3303
+ * fault and propagates.
3304
+ */
3305
+ export declare function translateSchemaForGemini(schema: unknown): SchemaTranslation;
3306
+ /** The translator's refusals for one schema: `translateSchemaForGemini`'s, or none. */
3307
+ export declare function translatorRefusals(schema: unknown): SchemaTranslationRefusal[];
3308
+ /**
3309
+ * Every keyword of a prompt's schemas the translator or the engine would
3310
+ * refuse. The translator judges `outputSchema` when a non-archived config
3311
+ * names Gemini (case-insensitive), and each Gemini config's own
3312
+ * `outputSchema` unless that config is archived; `inputSchema` is never
3313
+ * translated, and an agent's schemas are judged by the engine only. Order:
3314
+ * `inputSchema`, `outputSchema`, the agent's schemas, then each config; per
3315
+ * schema the translator first. A top-level value that is no schema object
3316
+ * is reported once, by the engine.
3317
+ */
3318
+ export declare function promptSchemaDeficits(input: PromptSchemaDeficitInput): PromptSchemaDeficit[];
3319
+ /**
3320
+ * The refusal line for one deficit: the subject, the path, the keyword, why,
3321
+ * and the fix. A translator reason with no fix of its own names what Gemini
3322
+ * needs instead (`properties`, `type`, the overflow's "flatten the schema").
3323
+ */
3324
+ export declare function promptSchemaRefusalLine(deficit: PromptSchemaDeficit): string;
3325
+ /** The code a write is refused with for one deficit. */
3326
+ export declare function promptSchemaDeficitCode(deficit: PromptSchemaDeficit): typeof PROMPT_SCHEMA_NOT_TRANSLATABLE | typeof PROMPT_SCHEMA_UNSUPPORTED_KEYWORD;
3327
+ /** One entry of a refused write's `details.refusals`. */
3328
+ export interface PromptSchemaRefusalEntry {
3329
+ code: typeof PROMPT_SCHEMA_NOT_TRANSLATABLE | typeof PROMPT_SCHEMA_UNSUPPORTED_KEYWORD;
3330
+ /** `promptSchemaRefusalLine` of the deficit. */
3331
+ message: string;
3332
+ subject: string;
3333
+ field: PromptSchemaDeficit["field"];
3334
+ config?: string;
3335
+ path: string;
3336
+ keyword: string;
3337
+ }
3338
+ /** A refused write's `details.refusals`: one entry per deficit, in `promptSchemaDeficits` order. */
3339
+ export declare function promptSchemaRefusals(deficits: readonly PromptSchemaDeficit[]): PromptSchemaRefusalEntry[];
3153
3340
  /**
3154
3341
  * A change to a server function that an agent uses — issue #4441.
3155
3342
  *
@@ -3392,6 +3579,12 @@ export declare const SERVER_FUNCTION_SURFACE: ConfigObjectSurface;
3392
3579
  * `file` prefixes the sentence the way the CLI reports a file it refuses.
3393
3580
  */
3394
3581
  export declare function authorizeRequiredMessage(functionKey: string, file?: string): string;
3582
+ /**
3583
+ * The refusal of a version that declares `public = true` and has no
3584
+ * `authorize` — #5840. `public = true` opens the function to signed-out
3585
+ * callers, and the version's own `authorize` is what decides about them.
3586
+ */
3587
+ export declare function publicRequiresAuthorizeMessage(functionKey: string, file?: string): string;
3395
3588
  /**
3396
3589
  * The refusal of a new version that defines `authorize` while its TOML still
3397
3590
  * carries `access`.
@@ -3401,6 +3594,37 @@ export declare function accessAmbiguousMessage(functionKey: string): string;
3401
3594
  export declare const FUNCTION_ACCESS_FROZEN_REQUEST: string;
3402
3595
  export declare const TEST_CASE_SURFACE: ConfigObjectSurface;
3403
3596
  export declare const APP_SETTINGS_SURFACE: ConfigObjectSurface;
3597
+ /**
3598
+ * The `user-properties` configuration object's definition (#5385, project
3599
+ * `user-index-properties` phase 2).
3600
+ *
3601
+ * `user-properties.toml` is a root singleton beside `app.toml`, so — like
3602
+ * `app-settings` and `test-case` — it is named explicitly rather than reached
3603
+ * through `SYNC_RESOURCE_TYPES`. Its keys are the app's own: each
3604
+ * `[fields.<name>]` table declares a property in the db3 field grammar plus
3605
+ * `client`, and each `[[unique_constraints]]` entry names two or more of them.
3606
+ * There is no fixed key/value table to define, so the surface declares
3607
+ * `noFieldTable`; the file is parsed, normalized and judged by one module,
3608
+ * `src/user-index/properties-schema.ts`, which the CLI vendors byte for byte
3609
+ * (`cli/src/lib/user-properties/generated-properties-schema.ts`) and which
3610
+ * `config push`'s preflight runs before anything is applied. The pushed
3611
+ * schema is stored on the app's `UserPropertiesConfig` row.
3612
+ */
3613
+ export declare const USER_PROPERTIES_SURFACE: ConfigObjectSurface;
3614
+ /**
3615
+ * The `schema` configuration object's definition (#5532, project
3616
+ * `unified-schemas` phase 3).
3617
+ *
3618
+ * `schemas/<file>.toml` holds shared shapes: each `[defs.<Name>]` table is
3619
+ * one JSON Schema document, named by the file's stem and the def's name
3620
+ * (`schemas:<file>#/$defs/<Name>`). There is no fixed key/value table to
3621
+ * define, so the surface declares `noFieldTable`; the file is checked and
3622
+ * compiled by one module, `src/function-runs/schema-file.ts`, which the CLI
3623
+ * vendors (`cli/src/lib/schema-codegen/generated-schema-file.ts`), runs in
3624
+ * `config push`'s preflight and sends compiled with the source, and which the
3625
+ * push route runs again.
3626
+ */
3627
+ export declare const SCHEMA_FILE_SURFACE: ConfigObjectSurface;
3404
3628
  /**
3405
3629
  * The configuration-object registry (issue #2644).
3406
3630
  *
@@ -3417,9 +3641,10 @@ export declare const APP_SETTINGS_SURFACE: ConfigObjectSurface;
3417
3641
  /**
3418
3642
  * Every configuration object whose field surface is defined here.
3419
3643
  *
3420
- * One entry per `SYNC_RESOURCE_TYPES` label, plus the two surfaces that
3421
- * round-trip without being a per-entity file: `app-settings` (`app.toml`) and
3422
- * `test-case` (`<key>.tests/`). Nothing that syncs sits outside the registry —
3644
+ * One entry per `SYNC_RESOURCE_TYPES` label, plus the three surfaces that
3645
+ * round-trip without being a per-entity file: `app-settings` (`app.toml`),
3646
+ * `user-properties` (`user-properties.toml`, #5385) and `test-case`
3647
+ * (`<key>.tests/`). Nothing that syncs sits outside the registry —
3423
3648
  * `PENDING_MIGRATION`, the migration's temporary exemption list, is gone as of
3424
3649
  * phase 3, so a new synced type has nowhere to be parked and fails the registry
3425
3650
  * guard until it is defined (#2644 criterion 3).