vibe64 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/run.js +823 -820
- package/bin/server.js +200 -197
- package/bin/upgrade-state.js +4181 -4054
- package/dist/assets/{GithubBrowserTabs-D21Nl3QI.js → GithubBrowserTabs-Bf5z_PiF.js} +1 -1
- package/dist/assets/{LocalDatabaseServer-POxY1K1U.js → LocalDatabaseServer-CcfGbn7H.js} +1 -1
- package/dist/assets/{SelectField-Dezd0B3y.js → SelectField-Df50ZFLj.js} +1 -1
- package/dist/assets/{ShellOutlet-DfF9vsWA.js → ShellOutlet-DPyl05um.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-I3ufyScN.js → Vibe64AuthSettingsButton-CxJoeOhz.js} +1 -1
- package/dist/assets/{Vibe64ConversationLog-C04oOQ2g.js → Vibe64ConversationLog-jDb_ZvIF.js} +1 -1
- package/dist/assets/{Vibe64DashboardShell-BbrOUmRD.js → Vibe64DashboardShell-Ce1PNB37.js} +1 -1
- package/dist/assets/{Vibe64DatabaseWorkspace-VPEM2o1v.js → Vibe64DatabaseWorkspace-DiZDKEpx.js} +1 -1
- package/dist/assets/{Vibe64FileArea-C_nC2bPk.js → Vibe64FileArea-uRnIJ0Vp.js} +1 -1
- package/dist/assets/{Vibe64OutputControls-DTO3Fw3x.js → Vibe64OutputControls-BF5kh2_h.js} +1 -1
- package/dist/assets/{Vibe64RepositoryWorkspace-B8xcCOvL.js → Vibe64RepositoryWorkspace-D6uJCype.js} +1 -1
- package/dist/assets/{Vibe64SessionFiles-Cb9Mxsyq.js → Vibe64SessionFiles-CxgPB8RR.js} +1 -1
- package/dist/assets/{Vibe64SessionSourceEditor-CVQ3NRjh.js → Vibe64SessionSourceEditor-yaVu279S.js} +1 -1
- package/dist/assets/{Vibe64UiStoryboardView-BV4JFgcZ.js → Vibe64UiStoryboardView-DhbHkz8K.js} +1 -1
- package/dist/assets/{Vibe64UnavailableSessions-DGQAxYE-.js → Vibe64UnavailableSessions-MmPF-Db1.js} +1 -1
- package/dist/assets/{_pageId_-CkG15vv4.js → _pageId_-Zif-veil.js} +1 -1
- package/dist/assets/{_sessionId_-Bka3RUmK.js → _sessionId_-DOge-7SB.js} +1 -1
- package/dist/assets/_slug_-C71iAiR0.js +14 -0
- package/dist/assets/_slug_-CF1TPDUv.css +1 -0
- package/dist/assets/{access-Xo3unxGO.js → access-DQcblrWN.js} +1 -1
- package/dist/assets/{app-B0spNegd.js → app-CzApKPmq.js} +1 -1
- package/dist/assets/assistantRouting-CqIiQy21.js +3 -0
- package/dist/assets/{changes-DFv4tuoO.js → changes-cmlEyHug.js} +1 -1
- package/dist/assets/{client-CVuXqm4b.js → client-13v_yX07.js} +1 -1
- package/dist/assets/{client-BjMjS6lX.js → client-5JUUGxRd.js} +2 -2
- package/dist/assets/{client-4uCr4dYG.js → client-BJBzomgt.js} +1 -1
- package/dist/assets/{client-DR0w56e8.js → client-C8ZjqGdQ.js} +2 -2
- package/dist/assets/{client-Dlg1kjjO.js → client-Dl6I6IVb.js} +1 -1
- package/dist/assets/{client-CevjVK2b.js → client-Dv4scw6i.js} +1 -1
- package/dist/assets/{conversation-OkWbkHjm.js → conversation-CFJRkeTj.js} +3 -3
- package/dist/assets/{conversation-DReMq0MF.css → conversation-COcuIkcD.css} +1 -1
- package/dist/assets/conversation-CexAK3Qk.js +1 -0
- package/dist/assets/{dashboard-CAca9MQn.js → dashboard-Dm_xwwqU.js} +1 -1
- package/dist/assets/{english-definitions-BtX8KA5g.js → english-definitions-DwTf_alg.js} +1 -1
- package/dist/assets/{env-DrNyBVkB.js → env-B7wB5nBn.js} +1 -1
- package/dist/assets/{error-BQ7r64JO.js → error-CtOws2EC.js} +1 -1
- package/dist/assets/{error-BqMxhgpB.js → error-HfzrYwkQ.js} +1 -1
- package/dist/assets/{errorMessageHelpers-B49LyMJi.js → errorMessageHelpers-G32Hjqfm.js} +1 -1
- package/dist/assets/{health-B5yTW5Tt.js → health-DIkOkzPe.js} +1 -1
- package/dist/assets/{history-S3anp6xg.js → history-Ch597NiY.js} +1 -1
- package/dist/assets/{httpClient-Bwitq9Xf.js → httpClient-C71X5grL.js} +1 -1
- package/dist/assets/{i18n-BuXRXGaO.js → i18n-5EHeMSvt.js} +1 -1
- package/dist/assets/{i18n-DQPYjuW7.js → i18n-BSfPKqM3.js} +1 -1
- package/dist/assets/{i18n-Dm74yE_M.js → i18n-DcNQE3tT.js} +1 -1
- package/dist/assets/index-C-6c5Af1.css +1 -0
- package/dist/assets/{index-JBqyg0mr.js → index-DcKFCaBZ.js} +4 -4
- package/dist/assets/{integrations-C7dj7el_.js → integrations-CoNhnGvq.js} +1 -1
- package/dist/assets/{issues-OkV4v4GX.js → issues-Cem4Yt47.js} +1 -1
- package/dist/assets/{learning-lW9nBGjT.js → learning-CU2QyHrj.js} +1 -1
- package/dist/assets/{pages-shOT9IVe.js → pages-BzA58NoR.js} +1 -1
- package/dist/assets/{project-files-D_K1N0JF.js → project-files-BBKjl3wZ.js} +1 -1
- package/dist/assets/{publish-Bxe4ZCqe.js → publish-UFjblZA3.js} +1 -1
- package/dist/assets/{pull-requests-CQvk0TeH.js → pull-requests-DibGk1GB.js} +1 -1
- package/dist/assets/{repository-CI2CqDwF.js → repository-0EKOcyTL.js} +1 -1
- package/dist/assets/{settings-DIVrFrs4.js → settings-BjOnPYwD.js} +1 -1
- package/dist/assets/{studioGateApi-UqmdV50W.js → studioGateApi-B9EUTtMx.js} +1 -1
- package/dist/assets/{studioUrls-k_pQIuPs.js → studioUrls-BR4ZL-TN.js} +1 -1
- package/dist/assets/{useArchivedVibe64Sessions-BkWrTOzg.js → useArchivedVibe64Sessions-CXKRFR2f.js} +1 -1
- package/dist/assets/useAssistantAttachments-C9kAnWqw.js +2 -0
- package/dist/assets/useCommand-yOr3U8KF.js +1 -0
- package/dist/assets/{useEndpointResource-DZTjr9gg.js → useEndpointResource-BwGXpV2u.js} +1 -1
- package/dist/assets/{useUiFeedback-BU4NyMq8.js → useUiFeedback--0dLsslR.js} +1 -1
- package/dist/assets/{useVibe64ConversationLog-BADhWyNY.js → useVibe64ConversationLog-BB5tVtkt.js} +2 -2
- package/dist/assets/{useVibe64Learning-CbsI-XHB.js → useVibe64Learning-iAAH83uG.js} +1 -1
- package/dist/assets/{useVibe64SessionData-DvFvAJC-.js → useVibe64SessionData-BSYF_TgH.js} +1 -1
- package/dist/assets/{useVibe64SessionSelection-BukDTAxb.js → useVibe64SessionSelection-CxZ3uEAf.js} +1 -1
- package/dist/assets/{vibe64FileUpload-BDkcaUyk.js → vibe64FileUpload-D_rOa1R8.js} +1 -1
- package/dist/assets/{vibe64RepositoryRealtime-DX2DEqIz.js → vibe64RepositoryRealtime-CVGNqwxz.js} +1 -1
- package/dist/assets/{vibe64SessionFocus-CzuP3qPT.js → vibe64SessionFocus-DGSVXipO.js} +1 -1
- package/dist/index.html +23 -23
- package/docs/colleague-usage/ai-tasks.md +2 -1
- package/docs/colleague-usage/auto-workflow.md +6 -3
- package/docs/colleague-usage/coding-agent-goal-pause.md +34 -12
- package/docs/colleague-usage/coding-agent-goals.md +33 -16
- package/docs/colleague-usage/coding-agent-questions.md +7 -0
- package/docs/colleague-usage/connected-repositories.md +4 -1
- package/docs/colleague-usage/github-work.md +36 -3
- package/docs/colleague-usage/passes.md +86 -0
- package/docs/colleague-usage/ui-pass.md +4 -0
- package/docs/colleague-usage/workspace-preparation.md +51 -0
- package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +8 -0
- package/node_modules/@jskit-ai/assistant-core/locales/en.json +2 -0
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +2 -0
- package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
- package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
- package/node_modules/@jskit-ai/http-runtime/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/kernel/CHANGELOG.md +5 -0
- package/node_modules/@jskit-ai/kernel/package.json +1 -1
- package/node_modules/@jskit-ai/payments-core/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/package.json +1 -1
- package/node_modules/@jskit-ai/resource-core/package.json +1 -1
- package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
- package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +914 -773
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +69 -63
- package/node_modules/@local/vibe64-genesis/src/server/index.js +450 -440
- package/node_modules/@local/vibe64-genesis/src/server/packaging.js +27 -28
- package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +63 -55
- package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +1044 -901
- package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +560 -420
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +453 -450
- package/package.json +15 -15
- package/server.bundle.mjs +42018 -41710
- package/dist/assets/_slug_-7Oo7pGKn.js +0 -14
- package/dist/assets/_slug_-BaxjtsgP.css +0 -1
- package/dist/assets/assistantRouting-B9cub38g.js +0 -3
- package/dist/assets/conversation-D7T_us2O.js +0 -1
- package/dist/assets/index-DSyb-mRJ.css +0 -1
- package/dist/assets/useAssistantAttachments-DqlNFiha.js +0 -2
- package/dist/assets/useCommand-D-MIMmhp.js +0 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- `request(url, { response: "file" })` answers a download as `{ blob, fileName, contentType }`: the body as a Blob, the name its `Content-Disposition` gives (the RFC 5987 `filename*` before the plain `filename`, as RFC 6266 asks; null when it names none) and its content type. A refusal is read and thrown as for any request, so a step-up or validation refusal reaches the caller's usual handling. Any other `response` value, and `response: "file"` on `requestStream()`, is refused. Before, the client read a body that was not JSON as `{}`, so a page could not download a file through it and keep its credentials, CSRF token and refusal handling.
|
|
5
6
|
- 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`.
|
|
6
7
|
- `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.
|
|
7
8
|
- `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.
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- `resolveApiErrorStatus(error)` from `@jskit-ai/kernel/server/runtime/errors` gives the HTTP status an error answers a client with: json-rest-api's refusals, which carry no status, by their code (`REST_API_VALIDATION` a 422, a `REST_API_RESOURCE` by its subtype: 404, 403, 409 or 400), any other error by its own status when that is 400 to 599, else 500. It is the HTTP error handler's own mapping, moved there so that anything else telling a client of a refusal, such as the assistant's tool results, answers with the same status; the HTTP error handler's answers are unchanged.
|
|
6
|
+
- `withoutExecutionLog(context)` from `@jskit-ai/kernel/server/actions` returns the same execution context marked so the action pipeline writes no `action.execution` log line for it, for a caller that keeps every trace of a call out of what it saves (an assistant's unsaved tool). `isExecutionLogged(context)` reads the mark, so an action or action policy can keep its own logs quiet too. The mark is a private symbol: it passes through `normalizeExecutionContext` and never reaches a serialized context.
|
|
7
|
+
- A feature or provider may declare **late requirements**, `late: { evidence: "evidence.files" }`, local names to capability ids as `requires` and `optional` are, for a ring that only a read at call time closes, such as a row policy that narrows through an owner which itself requires the policy's feature. A late requirement takes no part in the order providers start in nor in the cycle check, so the ring starts instead of failing with `Provider capability cycle detected`; `createCapabilityRuntime().start()` resolves it once, after every provider's `boot()`. Until then its local name is a getter that throws `Provider "audit" read its late requirement "evidence" (capability "evidence.files") before every provider booted: a late requirement can only be read at call time after boot, such as inside a row policy or a request handler, never in setup or boot, and never destructured in setup.`; after, it answers the capability. A capability nothing provides fails start() at the end of boot with `Provider "audit" late-requires missing capability "evidence.files": no provider or runtime input provides it.` (and the provider's hint for it, if any), and start() stops what started as for any startup failure. The value reaches everything a feature's dependencies reach: setup's dependencies, actions(), boot() and shutdown(), and each owned table's row policy as `requires`; defineFeature now copies dependencies by property descriptors, so a copy keeps the getter instead of reading it. Late local names must differ from the provider's requires, optional and provides names; a provider cannot late-require a capability it provides, or one it already requires or takes as optional; and defineFeature refuses the reserved local names and `runtime.resources` under `late` as under `requires`. A package's manifest drift counts late requirements as requirements, so its manifest lists them under `requires`.
|
|
8
|
+
- **Behaviour change: a route handler's returned value is now sent as the response; previously it was dropped and the answer was an empty 200.** This applies to every route registered through the kernel's router whose handler returns something other than `undefined` without replying. That includes every `actionRoute` of `createActionRouteScope` registered without an application's own `wrapHandler`: it returns its action's result, so until now it answered 200 with an empty body. The router sends the returned value unless the handler started a send itself, which only the router can tell, since a send can still be finishing after it returns (see the `FST_ERR_SEND_INSIDE_ONERR` entry below). A handler that sends its reply (`reply.send(...)`, `return reply.send(...)`, `return reply`, or a hijacked reply) keeps that reply, whatever it returns, and one that returns nothing without replying still answers an empty 200. **What an application should check:** every route handler that returns a value without replying, since that value now reaches the browser. Make sure each one returns only what the browser should see, never an internal object such as a service's result, a database row or a record with internal fields, and that a handler writing to `reply.raw` (a stream or server-sent events) hijacks the reply or returns nothing. A route with a response schema serializes the value through it, which writes only the properties the schema declares unless it allows others; a route without one sends the whole value as JSON. An application whose `wrapHandler` already sent the result keeps working unchanged, and can drop that send.
|
|
9
|
+
- A route may ask for a second factor: `secondFactor: true` for one done at any time in the request's session, or `secondFactor: { maxAgeSeconds }` for one done within that many seconds, for a dangerous action. The router checks it when the route is defined (anything else, or a route whose `auth` is not "required" or "own", stops startup with a `RouteDefinitionError` naming the route) and passes it to the route's policy config, where `@jskit-ai/auth-core`'s auth policy enforces it.
|
|
5
10
|
- A route with a body schema answers 400 `validation_failed` when the body is missing or is not a JSON object, instead of 500. A missing body is validated as an empty one: a body validated in `create` or `replace` mode names each required field (`Field is required`, code `kernel.validation.field.required`), and one in the default `patch` mode, or with no required fields, reaches the handler as `{}`; a body of `null`, an array, a string or a number answers `request: "must be object"` (code `kernel.validation.type`). The kernel's own body check replaces Fastify's, and json-rest-schema throws on anything but an object, so a DELETE sent without its body ended in a 500.
|
|
6
11
|
- **Side effects.** An application reads `SIDE_EFFECTS`: exactly `live` acts for real; anything else, including unset, simulates (a test copy). `@jskit-ai/kernel/shared/support/sideEffects` gives `resolveSideEffectsMode(env)`, `sideEffectsAreLive(env)` and the page's own `pageSideEffectsMode()`; `@jskit-ai/kernel/server/runtime/sideEffects` gives `logSimulatedSideEffect(logger, { kind, summary, details })`, which logs "Test copy: … was simulated, not sent". `createInstalledRuntime` names the setting in every HTML page the server sends (the `jskit-side-effects` meta tag, with the page's length corrected) and logs once at startup whether the server acts for real, as a warning when a production server simulates. The Vite plugin names the development server's setting in its pages; a built page carries none until its server sends it.
|
|
7
12
|
- 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.
|