vibe64 0.1.59 → 0.1.60

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 (167) hide show
  1. package/bin/run.js +1070 -1054
  2. package/bin/server.js +392 -376
  3. package/bin/upgrade-state.js +4439 -4420
  4. package/dist/assets/{GithubBrowserTabs-D_nMB5Y1.js → GithubBrowserTabs-Vv-64NIg.js} +1 -1
  5. package/dist/assets/{LocalDatabaseServer-BgO_aeUg.js → LocalDatabaseServer-rolg-sXl.js} +1 -1
  6. package/dist/assets/SelectField-DwWoHC2p.js +1 -0
  7. package/dist/assets/{ShellOutlet-Cr8SJs7s.js → ShellOutlet-Clsh2qYP.js} +1 -1
  8. package/dist/assets/Vibe64AuthSettingsButton-BICxvZDm.js +5 -0
  9. package/dist/assets/{Vibe64AuthSettingsButton-DRTKdimW.css → Vibe64AuthSettingsButton-DbL7Ukry.css} +1 -1
  10. package/dist/assets/{Vibe64ConversationLog-DtOgxPNR.js → Vibe64ConversationLog-K6aUo3q1.js} +4 -4
  11. package/dist/assets/{Vibe64ConversationLog-NH61odld.css → Vibe64ConversationLog-ksf1U6PP.css} +1 -1
  12. package/dist/assets/{Vibe64DashboardShell-DhPE6H3P.js → Vibe64DashboardShell-C_wkAaSb.js} +1 -1
  13. package/dist/assets/{Vibe64DashboardShell-Bpnbjs4l.css → Vibe64DashboardShell-D0GNI4V8.css} +1 -1
  14. package/dist/assets/{Vibe64DatabaseWorkspace-cfn8TTxQ.css → Vibe64DatabaseWorkspace-De4sbXAN.css} +1 -1
  15. package/dist/assets/{Vibe64DatabaseWorkspace-CHV0cd3l.js → Vibe64DatabaseWorkspace-Dy88t2ZX.js} +2 -2
  16. package/dist/assets/Vibe64FileArea-BU5rPyqx.js +1 -0
  17. package/dist/assets/{Vibe64FileArea-mydNQQl8.css → Vibe64FileArea-ZEzsvLt2.css} +1 -1
  18. package/dist/assets/Vibe64OutputControls-Z2K52QCc.js +8 -0
  19. package/dist/assets/{Vibe64RepositoryWorkspace-DUSMn4pR.js → Vibe64RepositoryWorkspace-CWw4w5SA.js} +1 -1
  20. package/dist/assets/{Vibe64SessionFiles-BXt__PJL.js → Vibe64SessionFiles-DI8ZH6aF.js} +1 -1
  21. package/dist/assets/{Vibe64SessionSourceEditor-NyG6niQM.js → Vibe64SessionSourceEditor-BVfoXgmZ.js} +1 -1
  22. package/dist/assets/{Vibe64UiStoryboardView-CtlJWiCY.css → Vibe64UiStoryboardView-BYLWabXY.css} +1 -1
  23. package/dist/assets/Vibe64UiStoryboardView-C-99xlAo.js +8 -0
  24. package/dist/assets/{Vibe64UnavailableSessions-CCPWJo8e.js → Vibe64UnavailableSessions-BRB2bUR_.js} +1 -1
  25. package/dist/assets/{_pageId_-D54CqzqG.js → _pageId_-DPJ8pvUs.js} +1 -1
  26. package/dist/assets/{_sessionId_-CW044RVi.js → _sessionId_-CiU1Awul.js} +1 -1
  27. package/dist/assets/_slug_-C5yeqlpL.js +14 -0
  28. package/dist/assets/{_slug_-WWvJTLoc.css → _slug_-Vy_1jrpy.css} +1 -1
  29. package/dist/assets/access-BH1OsqPS.css +1 -0
  30. package/dist/assets/access-Cq6GEVhT.js +1 -0
  31. package/dist/assets/{app-D9FegZf0.js → app-BKwP6m9e.js} +1 -1
  32. package/dist/assets/{assistantRouting-D4SnnxJn.js → assistantRouting-BS0ZW5Ki.js} +1 -1
  33. package/dist/assets/{changes-DtfJc780.js → changes-DT8e3wYn.js} +1 -1
  34. package/dist/assets/{client-Dra4Vp3A.js → client-BHa4BumO.js} +2 -2
  35. package/dist/assets/{client-DnjkdG6K.js → client-B_iZQVU8.js} +1 -1
  36. package/dist/assets/{client-BBqNv4HL.js → client-C-Rw8t8y.js} +1 -1
  37. package/dist/assets/{client-B8u2_Svv.css → client-CM6TGZc9.css} +1 -1
  38. package/dist/assets/{client-DuDOzb5A.js → client-Cf6iimPy.js} +2 -2
  39. package/dist/assets/{client-mU-LObHG.js → client-DWPSlYBq.js} +1 -1
  40. package/dist/assets/{conversation-QpMeXw70.js → conversation-CsB1b1JZ.js} +1 -1
  41. package/dist/assets/{conversation-La-pkh5h.css → conversation-DA_fbJJD.css} +1 -1
  42. package/dist/assets/{dashboard-B26QwE6y.js → dashboard-DRwBugiR.js} +1 -1
  43. package/dist/assets/{english-definitions-I9tIXY2u.js → english-definitions-Bi3yaDu7.js} +1 -1
  44. package/dist/assets/{env-BXsvM592.js → env-ObiVMW6f.js} +1 -1
  45. package/dist/assets/errorMessageHelpers-BjIt31kK.js +1 -0
  46. package/dist/assets/{errors-DErd0NON.js → errors-D17nJYne.js} +1 -1
  47. package/dist/assets/{health-C4WtefLm.js → health-Ev-UBIsw.js} +1 -1
  48. package/dist/assets/history-BSIuLgnI.css +1 -0
  49. package/dist/assets/history-U6UcbKBZ.js +1 -0
  50. package/dist/assets/{httpClient-BRO3GqjU.js → httpClient-Bwitq9Xf.js} +1 -1
  51. package/dist/assets/i18n-BkxO7BMl.js +1 -0
  52. package/dist/assets/index-Ctygjyf8.css +1 -0
  53. package/dist/assets/index-Wcdz2Rey.js +134 -0
  54. package/dist/assets/{integrations-CQNJxkMu.js → integrations-BHURBo17.js} +3 -3
  55. package/dist/assets/{integrations-CrI893NK.css → integrations-Bo_beIy3.css} +1 -1
  56. package/dist/assets/issues-D4Asc_wa.css +1 -0
  57. package/dist/assets/issues-DEzrDqDU.js +1 -0
  58. package/dist/assets/{learning-0cINHUSN.js → learning-BrBAyLFt.js} +1 -1
  59. package/dist/assets/{pages-DbF-yXqO.js → pages-5jaEclQo.js} +1 -1
  60. package/dist/assets/{pages-CIKw99GN.js → pages-BTk_FkDr.js} +1 -1
  61. package/dist/assets/{pathname-DOqQPPVa.js → pathname-JHQIKk21.js} +1 -1
  62. package/dist/assets/{placement-BAaZQhAh.js → placement-1lT0lW3-.js} +1 -1
  63. package/dist/assets/{placement-Lk1Lpy6s.js → placement-B2V88UDJ.js} +1 -1
  64. package/dist/assets/{project-files-CklWobqZ.js → project-files-CTGwnBh7.js} +1 -1
  65. package/dist/assets/publish-BYZ7KRzq.js +3 -0
  66. package/dist/assets/{publish-DOybV3Qz.css → publish-C9O0tDPB.css} +1 -1
  67. package/dist/assets/{pull-requests-ybnixBv0.js → pull-requests-C-puL4SG.js} +1 -1
  68. package/dist/assets/{pull-requests-DnEm9m_1.css → pull-requests-DgWKsMdI.css} +1 -1
  69. package/dist/assets/{repository-wJZei_NJ.js → repository-DknGo0hr.js} +1 -1
  70. package/dist/assets/settings-BKZcbISO.css +1 -0
  71. package/dist/assets/settings-BmOQ1NnW.js +1 -0
  72. package/dist/assets/{shared-X5MxTHwl.js → shared-B6plZPQ_.js} +1 -1
  73. package/dist/assets/{studioGateApi-CHIdcQvD.js → studioGateApi-UqmdV50W.js} +1 -1
  74. package/dist/assets/{studioUrls-oIU1Eq_t.js → studioUrls-k_pQIuPs.js} +1 -1
  75. package/dist/assets/useArchivedVibe64Sessions-DI9ow2ds.js +1 -0
  76. package/dist/assets/useCommand-YOAaO5Wz.js +1 -0
  77. package/dist/assets/{useEndpointResource-61E93qP-.js → useEndpointResource-CmMwteuX.js} +1 -1
  78. package/dist/assets/{usePaths-B-QGqa_I.js → usePaths-CvUbx5-V.js} +1 -1
  79. package/dist/assets/{useUiFeedback-CycH_fvY.js → useUiFeedback-Bixow9mW.js} +1 -1
  80. package/dist/assets/useVibe64ConversationLog-BkcPA64C.js +2 -0
  81. package/dist/assets/{useVibe64Learning-DZCyrfpy.js → useVibe64Learning-RE4HXHqo.js} +1 -1
  82. package/dist/assets/{useVibe64SessionData-rBvWMqyc.js → useVibe64SessionData-Df7M5k1M.js} +1 -1
  83. package/dist/assets/{useVibe64SessionSelection-C546mBu8.js → useVibe64SessionSelection-B0USk6X6.js} +1 -1
  84. package/dist/assets/validators-HqYRjxEO.js +1 -0
  85. package/dist/assets/{vibe64FileUpload-D0Lv2mMJ.js → vibe64FileUpload-BDkcaUyk.js} +1 -1
  86. package/dist/assets/vibe64GithubProject-CJneIo5O.js +1 -0
  87. package/dist/assets/vibe64RepositoryRealtime-DKSXVg1B.js +1 -0
  88. package/dist/assets/vibe64SessionFocus-BJLy8eTE.js +1 -0
  89. package/dist/assets/vibe64SessionFocus-DdYRpG72.css +1 -0
  90. package/dist/index.html +26 -24
  91. package/docs/colleague-usage/ai-tasks.md +15 -4
  92. package/docs/colleague-usage/coding-agent-recovery.md +3 -1
  93. package/docs/colleague-usage/coding-agents.md +19 -1
  94. package/docs/colleague-usage/connected-repositories.md +16 -4
  95. package/docs/colleague-usage/files.md +2 -1
  96. package/docs/colleague-usage/github-work.md +50 -11
  97. package/docs/colleague-usage/health-checks.md +1 -1
  98. package/docs/colleague-usage/preview-browser-checks.md +3 -0
  99. package/docs/colleague-usage/preview.md +29 -0
  100. package/docs/colleague-usage/project-messages.md +3 -2
  101. package/docs/colleague-usage/project-settings.md +3 -0
  102. package/docs/colleague-usage/session-archive.md +9 -0
  103. package/docs/colleague-usage/sessions.md +5 -4
  104. package/docs/colleague-usage/temporary-chats.md +4 -3
  105. package/docs/colleague-usage/usage-map.md +3 -2
  106. package/docs/colleague-usage/workspace-preparation.md +12 -0
  107. package/node_modules/@jskit-ai/agent/CHANGELOG.md +5 -0
  108. package/node_modules/@jskit-ai/agent/package.json +1 -1
  109. package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +8 -0
  110. package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
  111. package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +4 -0
  112. package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
  113. package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
  114. package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
  115. package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
  116. package/node_modules/@jskit-ai/connectors-core/CHANGELOG.md +1 -0
  117. package/node_modules/@jskit-ai/connectors-core/README.md +4 -0
  118. package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
  119. package/node_modules/@jskit-ai/http-runtime/CHANGELOG.md +1 -0
  120. package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
  121. package/node_modules/@jskit-ai/kernel/CHANGELOG.md +7 -0
  122. package/node_modules/@jskit-ai/kernel/package.json +1 -1
  123. package/node_modules/@jskit-ai/payments-core/package.json +1 -1
  124. package/node_modules/@jskit-ai/realtime/CHANGELOG.md +1 -0
  125. package/node_modules/@jskit-ai/realtime/package.json +1 -1
  126. package/node_modules/@jskit-ai/resource-core/CHANGELOG.md +1 -0
  127. package/node_modules/@jskit-ai/resource-core/package.json +1 -1
  128. package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
  129. package/node_modules/@local/vibe64-execution/src/host/execHelper.js +428 -423
  130. package/node_modules/@local/vibe64-genesis/bin/genesis +17 -11
  131. package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +830 -816
  132. package/node_modules/@local/vibe64-genesis/src/server/index.js +533 -519
  133. package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +172 -169
  134. package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +490 -479
  135. package/node_modules/@local/vibe64-source-editor/src/server/searchIndexWorker.js +12 -11
  136. package/node_modules/@local/vibe64-system-graph/README.md +9 -5
  137. package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +262 -252
  138. package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +1060 -1018
  139. package/node_modules/json-rest-schema/README.md +3 -1
  140. package/node_modules/json-rest-schema/package.json +1 -1
  141. package/package.json +17 -17
  142. package/server.bundle.mjs +43046 -42782
  143. package/dist/assets/Vibe64AuthSettingsButton-Bx9patil.js +0 -5
  144. package/dist/assets/Vibe64FileArea-DIDyAUvD.js +0 -1
  145. package/dist/assets/Vibe64OutputControls-mNWUWLSm.js +0 -8
  146. package/dist/assets/Vibe64UiStoryboardView-BXH2MSWn.js +0 -8
  147. package/dist/assets/_slug_-CRtFhc0A.js +0 -14
  148. package/dist/assets/access-ChMLRErk.js +0 -1
  149. package/dist/assets/access-Cm2lrMF6.css +0 -1
  150. package/dist/assets/errorMessageHelpers-L2GsOwCP.js +0 -1
  151. package/dist/assets/history-BhqQz5jH.css +0 -1
  152. package/dist/assets/history-HHPFoNi3.js +0 -1
  153. package/dist/assets/index-BBfSvf2i.css +0 -1
  154. package/dist/assets/index-Bvd00puv.js +0 -134
  155. package/dist/assets/issues-BHr_nI-9.js +0 -1
  156. package/dist/assets/issues-CpBRQTQ_.css +0 -1
  157. package/dist/assets/publish-Cot797YN.js +0 -3
  158. package/dist/assets/settings-DJByC5Wb.js +0 -1
  159. package/dist/assets/settings-bEkDjn0Y.css +0 -1
  160. package/dist/assets/useArchivedVibe64Sessions-B-DtXrk-.js +0 -1
  161. package/dist/assets/useCommand-D96utlVe.js +0 -1
  162. package/dist/assets/useVibe64ConversationLog-BVANhCHq.js +0 -2
  163. package/dist/assets/validators-B3YzM6px.js +0 -1
  164. package/dist/assets/vibe64GithubProject-DNl0aDcC.js +0 -1
  165. package/dist/assets/vibe64RepositoryRealtime-BPsE5l5E.js +0 -1
  166. package/dist/assets/vibe64SessionFocus-CxX2nK6F.js +0 -1
  167. package/dist/assets/vibe64SessionFocus-DW73PN_o.css +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/connectors-catalog",
3
- "version": "0.2.19",
3
+ "version": "0.2.27",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./shared/ai": "./src/shared/english-ai.js",
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - A connection's status reads its row without a transaction or lock, and no longer creates an empty row for every person and integration whose status is viewed. `status()` calls `withConnection(slot, work, { readOnly: true })`; the SQL store reads the row with a plain get for such work, and the file store and a custom store that ignores the option still answer correctly.
5
6
  - connector_authorization_attempts declares its foreign key, connection_key to connector_connections.connection_key (`foreignKeys`), so json-rest-api 3.1.0 can skip the visibility query a system-context read makes for a record such a key guarantees exists. `jskit test --databases` checks each against an app's test database. `knexConnectionStore.test.js` proves it matches the migration on the connector test database.
6
7
  - `@jskit-ai/database-runtime` and `@jskit-ai/resource-runtime` are optional peer dependencies, as they are of assistant-runtime, instead of dependencies: an app without a database installs, composes and starts the package without them, where installing them made boot refuse it for want of a database driver. An app that uses its knex connection store (`./server/storage`) has them through its database.
7
8
  - `createKnexConnectionStore` owns the connector tables through resource-runtime's `createStandaloneResources`, with the connection store's declared system scope, instead of building a resource runtime and host of its own.
@@ -479,6 +479,10 @@ consuming it. Consumption must
479
479
  affect only the current owner and slot. Removal also invalidates pending
480
480
  attempts. Failures returned by the runtime are thrown after commit so failed
481
481
  API requests do not roll back rotated refresh tokens or restore consumed codes.
482
+ A status read calls `withConnection(slot, work, { readOnly: true })`: its work
483
+ only reads `connection`, so a store may skip the lock and must not create the
484
+ connection; the SQL store reads the row without a transaction, and a store that
485
+ ignores the option still answers correctly.
482
486
 
483
487
  ## Current limits and proof
484
488
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/connectors-core",
3
- "version": "0.2.19",
3
+ "version": "0.2.27",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./shared/configuration": "./src/shared/configuration.js",
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - The JSON:API route transport's error document takes the transaction outcome the kernel's error handler passes it (`transactionOutcome`, the wrapper's when the handler answers a refusal a json-rest-api write wrapped), and otherwise the error's own, so a CRUD route's refusal keeps `meta.transactionOutcome`.
5
6
  - `simplifyJsonApiResult(result, { lookupFieldMap })` and `simplifyJsonApiDocument(document, { lookupFieldMap })` take the field key of a to-one relationship whose key is not its name plus `Id` (`{ owner: "ownerUserId" }`), so a decorated CRUD service reads the record it wrote from its own answer, with its real field keys, instead of reading it again.
6
7
  - `createTransientRetryHttpClient` marks a `GET`/`HEAD` transient failure whose retries it spent (kernel `markTransientRetriesSpent`), so the app QueryClient's `shouldRetryTransientQueryFailure` does not retry the whole retried call again: one unreachable read is 3 requests and 3 s to the recovery banner instead of 9 requests and 11 s. Which requests it retries, how often and when are unchanged.
7
8
  - `withStandardErrorResponses` and `withJsonApiErrorResponses` give every route the same error response schemas, frozen all the way down, instead of building new ones for each route, so the kernel strips, copies and keys each of them once per server. `JSON_API_ERROR_DOCUMENT_SCHEMA` is frozen all the way down.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/http-runtime",
3
- "version": "0.2.15",
3
+ "version": "0.2.19",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./client": "./src/client/index.js",
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - An action definition may give `checkInput(input)`, a check of its input that its schema cannot make until the application runs, such as one that needs what boot resolved. The action pipeline runs it on the input as the schema validated it, before the policy and the action, and answers a refusal (an error with field errors, as `createValidationError` throws) exactly as it answers the schema's: 400 `ACTION_VALIDATION_FAILED`, "Validation failed.", with `details.fieldErrors` and their `fieldErrorCodes`, so an HTTP client and an assistant tool read both alike and the action never runs. Any other error it throws fails the action as it is. A `checkInput` that is not a function is refused at registration.
6
+ - `createCachedResponseSerializerFactory` compiles each union branch of a response schema that names nothing outside itself on its own, once for all the serializers it builds, instead of with the whole schema the branch sits in. fast-json-stringify chooses an `anyOf`, `oneOf` or `if`/`then` branch by validating the value with Ajv, and Ajv compiles the whole schema a branch sits in before the branch, so the first response of a big list compiled its entire response schema while every other request on the server waited: a JSON:API collection whose json-rest-schema attributes hold hundreds of nullable numbers, boolean-like enums, dates and nullable relationships, each a union (74,000 characters, 341 unions), took 2.1 s for its first 50 rows. It now takes 0.11 s, and each later response half as long (16 to 7.5 ms). The serializer is fast-json-stringify's own code, restored with the new validator, so what it writes, what it refuses and its error messages do not change; a branch that names another schema is validated as before, and an application that sets a fast-json-stringify `mode` keeps it.
7
+ - A response its serializer refuses, such as one that breaks its response schema, answers 500 and can no longer crash the process. A route handler that sent its reply returned nothing, so while an `onError` hook took a moment for the refused response, Fastify sent the reply again itself, which it refuses inside `onError` with `FST_ERR_SEND_INSIDE_ONERR`, and that rejection took the whole process down. A route that has started sending now returns its reply, so Fastify waits for the send, and middleware that started one ends the route as a finished one does. The HTTP error handler logs such a response as "Response serialization failed" with its `route` (`GET /path`).
8
+ - A refusal thrown inside a write's transaction reaches the client as itself. json-rest-api wraps what a write's hook (or a CRUD `afterCommit` hook) throws in its `RestApiWriteError`, which keeps the refusal as its `cause` and copies only its message, code, status and details, so the HTTP error handler answered the wrapper: the right status, code and message, but no `details` (a refused step's next step, say), no `params`, `messageCode` or `messageParams`, and none of the refusal's headers. The handler now answers an error whose cause chain holds an `AppError` (or an `ActionRuntimeError`) as that error, exactly as if the route had thrown it (an `ACTION_PERMISSION_DENIED` still shows no details, and a 5xx one is logged with the whole chain as "AppError 5xx"), with the wrapper's `transactionOutcome`. A route transport's error serializer receives that outcome as `transactionOutcome` beside `messageCode`. An error with no refusal in its chain is answered as before, and a database error before one still by its stand-in.
9
+ - `packageCapabilityDrift(packageEntry)` (`@jskit-ai/kernel/server/platform`) loads a package's declared server providers and says where its manifest (`jskit.capabilities`) and they disagree, by the rules start-up applies, without starting the app: what the providers provide that the manifest does not (`unlistedProvides`) and the reverse (`extraProvides`), what they require that it does not list (`unlistedRequires`) and what it requires that no provider does (`extraRequires`), each sorted; null for a package with no server providers. Plain `jskit check` reports it. Start-up's own check (`assertManifestMatchesProviders`) now reads the same comparison and refuses and logs as before.
10
+ - A feature that owns resources hands its dependencies (its `requires` and the optional capabilities present, by local name, as setup receives them) to the resource runtime's `own(featureId, owns, { requires })`, so each `owns` entry's `rowPolicy` receives them as `requires`. The `ResourceRuntime` type's `own` takes that third argument.
11
+ - A package manifest (`jskit.capabilities`) names a capability id in any case, as a provider does: the start-up check of a package's manifest against its server providers, and the check that every installed package's requirement has a provider, compare manifest ids trimmed and lower-cased with `capabilityKey`, as the capability runtime resolves provider ids. They only trimmed them, so a manifest listing a mixed-case id such as `assistant.personContext` stopped start-up with "manifest provides [assistant.personContext] but its providers provide [assistant.personcontext]", and a manifest requiring an id in another case than the manifest providing it was refused as having no provider.
5
12
  - `request.callOptions({ input })` gives a route that runs no action (a provider's callback, a streamed download) the call options `{ context }` the same request's action would get: the action catalogue's new `contextFor({ input, context })` runs the same context contributors and normalizes the result as the action pipeline does, with the route's channel, surface, visibility and request, and `input` defaulting to the route's params, so the workspace is resolved from `workspaceSlug` as an action's is. Contributors are told no action, and no action permission is checked: the route's own `auth` and `permission` are its gate.
6
13
  - **Security.** `defineFeature` refuses `runtime.resources` in `requires` or `optional` in any spelling the runtime resolves, such as `"Runtime.Resources"` or `" runtime.resources "`: capability ids are trimmed and lower-cased when they resolve, but the refusal compared the raw text, so another spelling handed a feature the whole resource runtime, whose `declareSystemScope` mints a system context.
7
14
  - The action catalogue builds its registry once, when discovery or execution first reads it, instead of again at every registration: an app registering n contributors rebuilt its index n times at every composition. A contributor that repeats a registered action's id and version is still refused at its own registration, with the same message. An action input whose schema is frozen throughout, as a CRUD feature's are, is checked for `oneOf` once rather than at every registration of it; a schema that can still change is checked every time, as before.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/kernel",
3
- "version": "0.2.15",
3
+ "version": "0.2.19",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./_testable": "./_testable/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/payments-core",
3
- "version": "0.2.7",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./shared": "./src/shared/configuration.js",
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - A publish to a user or workspace room no longer reads the memberships of every online actor. It asks each audience contributor about the actors of the sockets outside its target rooms only for those rooms' scopes, `resolveActorsScopes(actorIds, { scopes })`, and keeps only those rooms of the answer, while the actors already inside are looked up in full for their checks. A contributor that ignores `scopes` still answers correctly. Before, every write action read the memberships of every signed-in socket's actor, so the cost grew with everyone online, also for an event to one user.
5
6
  - Since 0.2.20, an event a background job publishes (an action run with no request, so no request workspace) no longer reads its audience's `audienceUsers` in the `workspaceId` its payload names: with no workspace or user in its scope it reads with no context, so an audience over an owned table reaches nobody. Run the job's action with the workspace in its context (`context.workspace`, or a visibility scope naming it) so its audience reads there.
6
7
  - Since 0.2.20, `all_workspace_users` on an event written on a customer's or a public surface reaches the users of the workspace the request resolved; before, such an event reached no workspace's users. An audience meant for the writer alone names the user instead.
7
8
  - **Security.** An event written on a customer's or a public surface (scoped globally) reads its audience's `audienceUsers` in the workspace the request resolved, which the kernel adds to its global scope as `workspaceId` (`forWorkspace` of `realtime.audience-scope`), and `all_workspace_users` reaches that workspace. The payload never chooses the scope: an app's payload may copy an input id, and reading in a workspace the payload named let one event read in, and reach, another workspace. Before, such an event read with no context, so an audience over an owned table reached no customer. A scope that names a workspace or a user keeps it, and an event with neither reads with no context.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/realtime",
3
- "version": "0.2.22",
3
+ "version": "0.2.28",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./server/RealtimeProvider": "./src/server/RealtimeProvider.js",
@@ -2,4 +2,5 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - **Breaking.** `defineTableResource` checks a `type: "blob"` field: it needs `maxBytes`, the most bytes a value holds, as a whole number from 1, and takes no `search`, `indexed`, `unique`, `sortable`, `defaultTo` or `belongsTo`; `maxBytes` on any other field is refused, pointing a string to `maxLength`. A blob was a field json-rest-schema passed through unchecked, of any size, read by every list. Upgrading: give each blob field `maxBytes`, no more than its column holds (MySQL's and MariaDB's `BLOB` holds 65,535 bytes, `MEDIUMBLOB` 16 MiB), and drop its `search`, `indexed`, `unique`, `sortable`, `defaultTo` or `belongsTo`; another field's `maxBytes` becomes a string's `maxLength`, or goes.
5
6
  - `defineTableResource` checks `foreignKeys`, the table's real database foreign keys in json-rest-api's shape (`{ columns, referencedTableName, referencedColumns?, name?, deleteRule?, updateRule? }`): `columns` name schema fields, `referencedColumns` the other table's columns (required for a key over several columns, `id` otherwise), and any other key is refused. json-rest-api receives it as before; from 3.1.0 it relies on it to skip a visibility query per linked type in a system context, so `jskit test --databases` checks each declaration against the database.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/resource-core",
3
- "version": "0.1.206",
3
+ "version": "0.1.210",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./shared/apiContract": "./src/shared/apiContract.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/uploads-runtime",
3
- "version": "0.2.15",
3
+ "version": "0.2.19",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./client": "./src/client/index.js",