vibe64 0.1.78 → 0.1.79
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 +195 -193
- package/bin/server.js +11 -9
- package/bin/upgrade-state.js +2568 -2588
- package/dist/assets/{GithubBrowserTabs-B2r19V0U.js → GithubBrowserTabs-CXjft59b.js} +1 -1
- package/dist/assets/GithubBrowserTabs-CXjft59b.js.br +0 -0
- package/dist/assets/GithubBrowserTabs-CXjft59b.js.gz +0 -0
- package/dist/assets/{LocalDatabaseServer-Ck9nZrGW.js → LocalDatabaseServer-BFzbm_N5.js} +1 -1
- package/dist/assets/LocalDatabaseServer-BFzbm_N5.js.br +0 -0
- package/dist/assets/LocalDatabaseServer-BFzbm_N5.js.gz +0 -0
- package/dist/assets/{Vibe64DashboardPageHeader-C4iTKeE0.js → Vibe64DashboardPageHeader-PKaMTKQo.js} +1 -1
- package/dist/assets/Vibe64DashboardPageHeader-PKaMTKQo.js.br +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-PKaMTKQo.js.gz +0 -0
- package/dist/assets/{Vibe64DatabaseWorkspace-ChA-2QPU.js → Vibe64DatabaseWorkspace-6d4O_5R5.js} +1 -1
- package/dist/assets/Vibe64DatabaseWorkspace-6d4O_5R5.js.br +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-6d4O_5R5.js.gz +0 -0
- package/dist/assets/{Vibe64FileArea-DBEJsJSq.js → Vibe64FileArea-C18bdRqO.js} +1 -1
- package/dist/assets/Vibe64FileArea-C18bdRqO.js.br +0 -0
- package/dist/assets/Vibe64FileArea-C18bdRqO.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js +8 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js.br +0 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js.gz +0 -0
- package/dist/assets/{Vibe64OutputControls-aQCEvUL2.css → Vibe64OutputControls-gSUdkqME.css} +1 -1
- package/dist/assets/Vibe64OutputControls-gSUdkqME.css.br +0 -0
- package/dist/assets/Vibe64OutputControls-gSUdkqME.css.gz +0 -0
- package/dist/assets/{Vibe64RepositoryWorkspace-sT07hHPs.js → Vibe64RepositoryWorkspace-Cpb9aDYs.js} +1 -1
- package/dist/assets/Vibe64RepositoryWorkspace-Cpb9aDYs.js.br +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-Cpb9aDYs.js.gz +0 -0
- package/dist/assets/{Vibe64SessionFiles-Djef01EV.js → Vibe64SessionFiles-DJadIknz.js} +1 -1
- package/dist/assets/Vibe64SessionFiles-DJadIknz.js.br +0 -0
- package/dist/assets/Vibe64SessionFiles-DJadIknz.js.gz +0 -0
- package/dist/assets/{Vibe64SessionSourceEditor-CIGBLYYN.js → Vibe64SessionSourceEditor-C8XuUkUH.js} +1 -1
- package/dist/assets/Vibe64SessionSourceEditor-C8XuUkUH.js.br +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-C8XuUkUH.js.gz +0 -0
- package/dist/assets/{Vibe64UiStoryboardView-CjkWoB8b.js → Vibe64UiStoryboardView-KzCGAvty.js} +1 -1
- package/dist/assets/Vibe64UiStoryboardView-KzCGAvty.js.br +0 -0
- package/dist/assets/Vibe64UiStoryboardView-KzCGAvty.js.gz +0 -0
- package/dist/assets/{_pageId_-BTjeqgTN.js → _pageId_-Dz7wuvcV.js} +1 -1
- package/dist/assets/{_sessionId_-C7Jh2bL4.js → _sessionId_-UOSJikRr.js} +1 -1
- package/dist/assets/_sessionId_-UOSJikRr.js.br +0 -0
- package/dist/assets/_sessionId_-UOSJikRr.js.gz +0 -0
- package/dist/assets/{_sessionTool_-DITdXCS4.js → _sessionTool_-SN6SNAQM.js} +1 -1
- package/dist/assets/{access-DIaPNdxr.js → access-Ba7aprTh.js} +1 -1
- package/dist/assets/access-Ba7aprTh.js.br +0 -0
- package/dist/assets/access-Ba7aprTh.js.gz +0 -0
- package/dist/assets/{app-mELSmS67.js → app-nvpa3ah6.js} +1 -1
- package/dist/assets/app-nvpa3ah6.js.br +0 -0
- package/dist/assets/app-nvpa3ah6.js.gz +0 -0
- package/dist/assets/{changes-DlxKdjdP.js → changes-WQZLBU3x.js} +1 -1
- package/dist/assets/{client-CLpGzGwX.js → client-B5r45NvF.js} +2 -2
- package/dist/assets/client-B5r45NvF.js.br +0 -0
- package/dist/assets/client-B5r45NvF.js.gz +0 -0
- package/dist/assets/{client-CL02nP02.js → client-EaJLXb4V.js} +2 -2
- package/dist/assets/client-EaJLXb4V.js.br +0 -0
- package/dist/assets/client-EaJLXb4V.js.gz +0 -0
- package/dist/assets/{dashboard-km-kuDid.js → dashboard-S0qg7Ai6.js} +1 -1
- package/dist/assets/{english-definitions-CMICWgdF.js → english-definitions-B9nc8s8Y.js} +1 -1
- package/dist/assets/english-definitions-B9nc8s8Y.js.br +0 -0
- package/dist/assets/english-definitions-B9nc8s8Y.js.gz +0 -0
- package/dist/assets/{env-DjkxkxdX.js → env-Dqyw_NCv.js} +1 -1
- package/dist/assets/env-Dqyw_NCv.js.br +0 -0
- package/dist/assets/env-Dqyw_NCv.js.gz +0 -0
- package/dist/assets/{error-C7q1-2bC.js → error-DkUVRs7I.js} +1 -1
- package/dist/assets/error-DkUVRs7I.js.br +0 -0
- package/dist/assets/error-DkUVRs7I.js.gz +0 -0
- package/dist/assets/{fileTypes-Dbn0qwKS.js → fileTypes-Dp5WZ-_A.js} +1 -1
- package/dist/assets/fileTypes-Dp5WZ-_A.js.br +0 -0
- package/dist/assets/fileTypes-Dp5WZ-_A.js.gz +0 -0
- package/dist/assets/{health-BwJ6Z251.js → health-BkO5CcRR.js} +1 -1
- package/dist/assets/health-BkO5CcRR.js.br +0 -0
- package/dist/assets/health-BkO5CcRR.js.gz +0 -0
- package/dist/assets/{history-D2TywQVv.js → history-DanS1uI3.js} +1 -1
- package/dist/assets/history-DanS1uI3.js.br +0 -0
- package/dist/assets/history-DanS1uI3.js.gz +0 -0
- package/dist/assets/{index-D14nUmm7.js → index-CeCIadYg.js} +4 -4
- package/dist/assets/index-CeCIadYg.js.br +0 -0
- package/dist/assets/index-CeCIadYg.js.gz +0 -0
- package/dist/assets/{integrations-BZFXW2Cp.js → integrations-Dh4ViP8t.js} +96 -10
- package/dist/assets/integrations-Dh4ViP8t.js.br +0 -0
- package/dist/assets/integrations-Dh4ViP8t.js.gz +0 -0
- package/dist/assets/{issues-CLvbBTek.js → issues-D3ZjHBeZ.js} +1 -1
- package/dist/assets/issues-D3ZjHBeZ.js.br +0 -0
- package/dist/assets/issues-D3ZjHBeZ.js.gz +0 -0
- package/dist/assets/{learning-DwytxEXC.js → learning-C_3lMmYJ.js} +1 -1
- package/dist/assets/{packages-BeiF8W7l.js → packages-CPSq4jBh.js} +1 -1
- package/dist/assets/packages-CPSq4jBh.js.br +0 -0
- package/dist/assets/packages-CPSq4jBh.js.gz +0 -0
- package/dist/assets/{pages-BIRQk4b8.js → pages-C-c5itHs.js} +1 -1
- package/dist/assets/{pages-BnAyUdL4.js → pages-D91yb6IJ.js} +1 -1
- package/dist/assets/pages-D91yb6IJ.js.br +0 -0
- package/dist/assets/pages-D91yb6IJ.js.gz +0 -0
- package/dist/assets/{project-GnljGud1.js → project-DTIrUrUg.js} +11 -11
- package/dist/assets/project-DTIrUrUg.js.br +0 -0
- package/dist/assets/project-DTIrUrUg.js.gz +0 -0
- package/dist/assets/{project-files-e4-Q65vT.js → project-files-Djr-58SN.js} +1 -1
- package/dist/assets/project-files-Djr-58SN.js.br +0 -0
- package/dist/assets/project-files-Djr-58SN.js.gz +0 -0
- package/dist/assets/{project-W_VltXAt.css → project-fwVeri07.css} +1 -1
- package/dist/assets/project-fwVeri07.css.br +0 -0
- package/dist/assets/project-fwVeri07.css.gz +0 -0
- package/dist/assets/{project-shared-ShellOutlet-DKYDipmC.js → project-shared-ShellOutlet-Pj_fRyAX.js} +1 -1
- package/dist/assets/project-shared-ShellOutlet-Pj_fRyAX.js.br +0 -0
- package/dist/assets/project-shared-ShellOutlet-Pj_fRyAX.js.gz +0 -0
- package/dist/assets/{project-shared-VBottomSheet-BSE28ENQ.js → project-shared-VBottomSheet-BSLhkh3o.js} +1 -1
- package/dist/assets/project-shared-VBottomSheet-BSLhkh3o.js.br +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSLhkh3o.js.gz +0 -0
- package/dist/assets/{project-shared-VToolbar-CrezJP9z.js → project-shared-VToolbar-BYx2aRBU.js} +1 -1
- package/dist/assets/project-shared-VToolbar-BYx2aRBU.js.br +0 -0
- package/dist/assets/project-shared-VToolbar-BYx2aRBU.js.gz +0 -0
- package/dist/assets/{project-shared-pageNames-6Jz0BfbS.js → project-shared-pageNames-D7IBGzQh.js} +1 -1
- package/dist/assets/project-shared-pageNames-D7IBGzQh.js.br +0 -0
- package/dist/assets/project-shared-pageNames-D7IBGzQh.js.gz +0 -0
- package/dist/assets/{pull-requests-DH9gWw10.js → pull-requests-DWmXOwB8.js} +1 -1
- package/dist/assets/pull-requests-DWmXOwB8.js.br +0 -0
- package/dist/assets/pull-requests-DWmXOwB8.js.gz +0 -0
- package/dist/assets/{repository-BNltUuvb.js → repository-CNSRmrFd.js} +1 -1
- package/dist/assets/{session-Ck9aH4Yl.js → session-BITnnyzW.js} +1 -1
- package/dist/assets/session-BITnnyzW.js.br +0 -0
- package/dist/assets/session-BITnnyzW.js.gz +0 -0
- package/dist/assets/{settings-D8Ofbk56.js → settings-CkoP7vBl.js} +1 -1
- package/dist/assets/settings-CkoP7vBl.js.br +0 -0
- package/dist/assets/settings-CkoP7vBl.js.gz +0 -0
- package/dist/assets/{useArchivedVibe64Sessions-LIZjeLbd.js → useArchivedVibe64Sessions-CDKBzS4q.js} +1 -1
- package/dist/assets/useArchivedVibe64Sessions-CDKBzS4q.js.br +0 -0
- package/dist/assets/useArchivedVibe64Sessions-CDKBzS4q.js.gz +0 -0
- package/dist/assets/{vibe64AttachmentDownload-1_XfvfYp.js → vibe64AttachmentDownload-BPNgZodV.js} +1 -1
- package/dist/assets/{vibe64SavedEnvValues-Bs7r4xWE.js → vibe64SavedEnvValues-BDBfgAh7.js} +1 -1
- package/dist/assets/{vue-flow-core-iwGljzru.js → vue-flow-core-S4cIQeQZ.js} +1 -1
- package/dist/assets/vue-flow-core-S4cIQeQZ.js.br +0 -0
- package/dist/assets/vue-flow-core-S4cIQeQZ.js.gz +0 -0
- package/dist/index.html +2 -2
- package/docs/colleague-usage/auto-workflow.md +3 -2
- package/docs/colleague-usage/development-env.md +2 -2
- package/docs/colleague-usage/plans.md +35 -13
- package/docs/colleague-usage/preview-starting-application.md +6 -0
- package/docs/colleague-usage/preview-stop-and-restart.md +51 -0
- package/docs/colleague-usage/preview.md +10 -37
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- 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/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +5 -0
- package/node_modules/@jskit-ai/payments-core/README.md +72 -8
- package/node_modules/@jskit-ai/payments-core/contracts/configuration.schema.json +56 -1
- package/node_modules/@jskit-ai/payments-core/contracts/conformance.json +484 -0
- package/node_modules/@jskit-ai/payments-core/locales/en.json +17 -5
- package/node_modules/@jskit-ai/payments-core/package.json +2 -1
- package/node_modules/@local/vibe64-genesis/README.md +12 -0
- package/node_modules/@local/vibe64-genesis/package.json +2 -1
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +54 -54
- package/node_modules/@local/vibe64-genesis/src/server/index.js +313 -311
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +18 -16
- package/package.json +6 -6
- package/server.bundle.mjs +33421 -33441
- package/dist/assets/GithubBrowserTabs-B2r19V0U.js.br +0 -0
- package/dist/assets/GithubBrowserTabs-B2r19V0U.js.gz +0 -0
- package/dist/assets/LocalDatabaseServer-Ck9nZrGW.js.br +0 -0
- package/dist/assets/LocalDatabaseServer-Ck9nZrGW.js.gz +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-C4iTKeE0.js.br +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-C4iTKeE0.js.gz +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-ChA-2QPU.js.br +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-ChA-2QPU.js.gz +0 -0
- package/dist/assets/Vibe64FileArea-DBEJsJSq.js.br +0 -0
- package/dist/assets/Vibe64FileArea-DBEJsJSq.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js +0 -8
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js.br +0 -0
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.br +0 -0
- package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.gz +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-sT07hHPs.js.br +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-sT07hHPs.js.gz +0 -0
- package/dist/assets/Vibe64SessionFiles-Djef01EV.js.br +0 -0
- package/dist/assets/Vibe64SessionFiles-Djef01EV.js.gz +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-CIGBLYYN.js.br +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-CIGBLYYN.js.gz +0 -0
- package/dist/assets/Vibe64UiStoryboardView-CjkWoB8b.js.br +0 -0
- package/dist/assets/Vibe64UiStoryboardView-CjkWoB8b.js.gz +0 -0
- package/dist/assets/_sessionId_-C7Jh2bL4.js.br +0 -0
- package/dist/assets/_sessionId_-C7Jh2bL4.js.gz +0 -0
- package/dist/assets/access-DIaPNdxr.js.br +0 -0
- package/dist/assets/access-DIaPNdxr.js.gz +0 -0
- package/dist/assets/app-mELSmS67.js.br +0 -0
- package/dist/assets/app-mELSmS67.js.gz +0 -0
- package/dist/assets/client-CL02nP02.js.br +0 -0
- package/dist/assets/client-CL02nP02.js.gz +0 -0
- package/dist/assets/client-CLpGzGwX.js.br +0 -0
- package/dist/assets/client-CLpGzGwX.js.gz +0 -0
- package/dist/assets/english-definitions-CMICWgdF.js.br +0 -0
- package/dist/assets/english-definitions-CMICWgdF.js.gz +0 -0
- package/dist/assets/env-DjkxkxdX.js.br +0 -0
- package/dist/assets/env-DjkxkxdX.js.gz +0 -0
- package/dist/assets/error-C7q1-2bC.js.br +0 -0
- package/dist/assets/error-C7q1-2bC.js.gz +0 -0
- package/dist/assets/fileTypes-Dbn0qwKS.js.br +0 -0
- package/dist/assets/fileTypes-Dbn0qwKS.js.gz +0 -0
- package/dist/assets/health-BwJ6Z251.js.br +0 -0
- package/dist/assets/health-BwJ6Z251.js.gz +0 -0
- package/dist/assets/history-D2TywQVv.js.br +0 -0
- package/dist/assets/history-D2TywQVv.js.gz +0 -0
- package/dist/assets/index-D14nUmm7.js.br +0 -0
- package/dist/assets/index-D14nUmm7.js.gz +0 -0
- package/dist/assets/integrations-BZFXW2Cp.js.br +0 -0
- package/dist/assets/integrations-BZFXW2Cp.js.gz +0 -0
- package/dist/assets/issues-CLvbBTek.js.br +0 -0
- package/dist/assets/issues-CLvbBTek.js.gz +0 -0
- package/dist/assets/packages-BeiF8W7l.js.br +0 -0
- package/dist/assets/packages-BeiF8W7l.js.gz +0 -0
- package/dist/assets/pages-BnAyUdL4.js.br +0 -3
- package/dist/assets/pages-BnAyUdL4.js.gz +0 -0
- package/dist/assets/project-GnljGud1.js.br +0 -0
- package/dist/assets/project-GnljGud1.js.gz +0 -0
- package/dist/assets/project-W_VltXAt.css.br +0 -0
- package/dist/assets/project-W_VltXAt.css.gz +0 -0
- package/dist/assets/project-files-e4-Q65vT.js.br +0 -0
- package/dist/assets/project-files-e4-Q65vT.js.gz +0 -0
- package/dist/assets/project-shared-ShellOutlet-DKYDipmC.js.br +0 -0
- package/dist/assets/project-shared-ShellOutlet-DKYDipmC.js.gz +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSE28ENQ.js.br +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSE28ENQ.js.gz +0 -0
- package/dist/assets/project-shared-VToolbar-CrezJP9z.js.br +0 -0
- package/dist/assets/project-shared-VToolbar-CrezJP9z.js.gz +0 -0
- package/dist/assets/project-shared-pageNames-6Jz0BfbS.js.br +0 -0
- package/dist/assets/project-shared-pageNames-6Jz0BfbS.js.gz +0 -0
- package/dist/assets/pull-requests-DH9gWw10.js.br +0 -0
- package/dist/assets/pull-requests-DH9gWw10.js.gz +0 -0
- package/dist/assets/session-Ck9aH4Yl.js.br +0 -0
- package/dist/assets/session-Ck9aH4Yl.js.gz +0 -0
- package/dist/assets/settings-D8Ofbk56.js.br +0 -0
- package/dist/assets/settings-D8Ofbk56.js.gz +0 -0
- package/dist/assets/useArchivedVibe64Sessions-LIZjeLbd.js.br +0 -0
- package/dist/assets/useArchivedVibe64Sessions-LIZjeLbd.js.gz +0 -0
- package/dist/assets/vue-flow-core-iwGljzru.js.br +0 -0
- package/dist/assets/vue-flow-core-iwGljzru.js.gz +0 -0
|
@@ -81,6 +81,13 @@ together. Later checks reread changes to those declarations. Invalid resource
|
|
|
81
81
|
estimates retain their diagnostic and generic fallback; they do not by themselves
|
|
82
82
|
make an otherwise valid output unavailable.
|
|
83
83
|
|
|
84
|
+
A resource the app needs and doesn't have yet, such as its database or Redis,
|
|
85
|
+
keeps Preview from starting: Preview names the values to set in **Dash → Env**
|
|
86
|
+
under **Development**, or says Vibe64 is still setting the resource up, then you
|
|
87
|
+
press **Check again** (see [Choose a starting application](preview-starting-application.md)).
|
|
88
|
+
A files bucket is never one of them: without its settings the app uses its own
|
|
89
|
+
default storage, and Preview starts.
|
|
90
|
+
|
|
84
91
|
If the previewed application shows its own login screen, enter that application's
|
|
85
92
|
credentials. Its login and realtime connection run through the Preview address.
|
|
86
93
|
HTTPS previews retain the HTTPS scheme for applications that use it to set
|
|
@@ -196,43 +203,9 @@ see why.
|
|
|
196
203
|
application again. If startup fails, inspect the message and **Show run output**
|
|
197
204
|
before retrying. Hiding run output closes only the terminal view; it does not
|
|
198
205
|
stop the application.
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
On managed hosts, service cleanup runs before remaining processes are terminated.
|
|
203
|
-
Wait for Stop to finish; a cleanup failure is not a successful stop.
|
|
204
|
-
Stopping Preview closes its browser process but keeps the coding assistant's
|
|
205
|
-
managed-browser registration. The same assistant can run another managed browser
|
|
206
|
-
check or test suite afterward without reopening its conversation.
|
|
207
|
-
It stays stopped after navigation, reload or reopening the session. Use the
|
|
208
|
-
toolbar's **Start preview** or **Restart preview** deliberately to run it again.
|
|
209
|
-
|
|
210
|
-
A Preview also stops when the platform restarts, for example during an update.
|
|
211
|
-
The pane then removes the old page instead of leaving it looking alive. It shows
|
|
212
|
-
**Preview state was lost after a server restart** with **Restart preview**, or,
|
|
213
|
-
once that has been seen, **Preview is not running** with a **Start preview**
|
|
214
|
-
button in the middle of the pane. Starting it runs the session's current code.
|
|
215
|
-
A Preview tab opened before the platform restart needs opening again from the
|
|
216
|
-
editor; its old access no longer works.
|
|
217
|
-
If Stop reports incomplete cleanup, retry Stop before starting. Browser tests
|
|
218
|
-
may temporarily run an isolated target, then restore the prior stopped choice.
|
|
219
|
-
Managed suites without `--target` also restore the previous running or stopped
|
|
220
|
-
Preview state, including after an assertion failure or cancellation. An explicitly
|
|
221
|
-
supplied external `PLAYWRIGHT_BASE_URL` does not start or stop managed Preview.
|
|
222
|
-
The selected target and its parameter values remain saved while stopped, including
|
|
223
|
-
after browser tests or an editor restart, for the next explicit Start.
|
|
224
|
-
If Preview reports an invalid saved stop state, use the explicit Stop action
|
|
225
|
-
before retrying Start; automatic recovery does not overwrite that state.
|
|
226
|
-
Colleague can offer the existing authorized stop/start actions, but a how-to
|
|
227
|
-
question alone does not authorize either action.
|
|
228
|
-
Retrying the same output reuses its running application when its settings and
|
|
229
|
-
environment still match. It does not start another process merely because a
|
|
230
|
-
new Preview address could be allocated. Use **Restart preview** when you intend
|
|
231
|
-
to replace that run.
|
|
232
|
-
Stopping or restarting a Preview includes processes in its child groups,
|
|
233
|
-
that are owned by that output. Wait for cleanup to finish before starting
|
|
234
|
-
another run. If cleanup fails, open **Resources** for the reported operation
|
|
235
|
-
and retry only after its running work has been stopped.
|
|
206
|
+
To stop Preview, and for what Preview shows after a stop or a platform restart
|
|
207
|
+
and what a start does while another run is starting or running, read
|
|
208
|
+
[Stopping and restarting Preview](preview-stop-and-restart.md).
|
|
236
209
|
|
|
237
210
|
Colleague can inspect the selected output and its logs, explain required fields,
|
|
238
211
|
and start or stop it through existing authorized actions. It must inspect current
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- Prepaid top-ups. `extensions.payments.topUps` (`name`, `currency`, `minimumAmount`, `maximumAmount`, amounts in the currency's smallest unit, Stripe's floor of 50) sells one-off Stripe Checkout payments of an amount the person chooses; `plans` may be empty only beside it. A Paddle connection with top-ups fails validation at its `integrationId` (`payments.configuration.paddleTopUps`), and an inverted range at `topUps/maximumAmount` (`payments.configuration.topUpRange`). `createPaymentCheckoutService` takes `topUps: { offer, credit }` and gains `topUp({actor, subjectId, amount, requestId, email?, description?})` and `confirmTopUp({actor, subjectId, topUpId})`, both authorized as action `topUp`; its `webhook` settles the four `checkout.session.*` top-up events. The verified webhook and the return page's confirmation (which reads the session from Stripe with the server's key) settle through one path: under the top-up's row lock, only the move to paid calls the application's `credit({reference, subjectId, amount, currency}, options)` inside the same transaction, so a top-up is credited once whichever door reports it first. The subject comes from the top-up written down at checkout, never from the event. New table `payment_top_ups` (migration `payments_core_top_ups.cjs`, in the payment tables' collation on MySQL and MariaDB); the store gains `createTopUp`, `inspectTopUp` and `withTopUp`. `TOP_UP_RETURN_PARAMETER` (`"paymentTopUp"`) is exported from `@jskit-ai/payments-core/shared/topUps`.
|
|
6
|
+
- **Breaking:** `createStripePaymentAdapter` requires `appEnv` (`appEnvironment(env)`) and refuses a live key (`sk_live_`, `rk_live_`) unless it is `production`, with `payment_live_key_refused` (409); test keys work everywhere. It takes `apiBaseUrl`, a stand-in for Stripe's API, in development and tests only (`payment_stand_in_refused`, 409, elsewhere).
|
|
7
|
+
- `PaymentError` takes `cause` in its options; a provider failure while starting or confirming a top-up is `payment_provider_unavailable` (502) with the provider's error as its cause.
|
|
8
|
+
- New messages: `jskit.errors.payment_live_key_refused`, `payment_stand_in_refused`, `payment_top_ups_unavailable`, `payment_top_up_amount_invalid`, `payment_top_up_missing`, `payment_provider_unavailable`; `jskit.payments.input.topUpDescription`, `jskit.payments.reference.otherAmount`, `jskit.payments.provider.topUpSession`, `jskit.payments.provider.topUpAmount`, `jskit.payments.configuration.paddleTopUps`, `jskit.payments.configuration.topUpRange`.
|
|
9
|
+
|
|
5
10
|
- The `webhook` and `deployment` readiness checks' text names the release in use ("Verify the release in use runs with this configuration and environment."), where it said the deployed webhook and the intended release; the check ids are unchanged.
|
|
6
11
|
- **Breaking:** `createPaymentCheckoutService` takes `appEnv` (the application's `APP_ENV`, `appEnvironment(env)`) in place of `sideEffects`, and requires it. Only production takes real payments: checkout and the billing portal in the live payment environment are refused elsewhere with `payment_sandbox_only` (409, "Only production takes real payments: use the sandbox payment environment."), which replaces `payment_test_copy`, before any provider write. The sandbox environment works everywhere.
|
|
7
12
|
- A test copy takes no real money: `createPaymentCheckoutService` takes `sideEffects` (default `simulate`), and unless it is `live`, checkout and the billing portal in the live payment environment are refused with `payment_test_copy` (409) before any provider write. The sandbox environment works either way.
|
|
@@ -6,9 +6,11 @@ is required to run them. PHP applications implement the same documented
|
|
|
6
6
|
contract using their own framework; they do not install this runtime.
|
|
7
7
|
|
|
8
8
|
Current implementation: a strict payment declaration, transactional Knex
|
|
9
|
-
storage, subscription feature checks, usage credits,
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
storage, subscription feature checks, usage credits, prepaid top-ups (one-off
|
|
10
|
+
Stripe Checkout payments credited once to the application's own balance),
|
|
11
|
+
official-SDK Stripe and Paddle webhook verification, subscription
|
|
12
|
+
reconciliation, checkout and customer portal adapters, and an explicitly
|
|
13
|
+
authorized checkout composition service.
|
|
12
14
|
Reviewed catalogue publication preserves environment-bound product/price IDs and
|
|
13
15
|
records ambiguous provider writes for recovery. Editor execution wiring and
|
|
14
16
|
automatic merchant onboarding remain separate unfinished work.
|
|
@@ -24,6 +26,9 @@ they are not an editor configuration database.
|
|
|
24
26
|
Public API imports:
|
|
25
27
|
|
|
26
28
|
- `@jskit-ai/payments-core/shared`: `validatePaymentConfiguration(document)`.
|
|
29
|
+
- `@jskit-ai/payments-core/shared/topUps`: `TOP_UP_RETURN_PARAMETER`
|
|
30
|
+
(`"paymentTopUp"`), the return URL's query parameter naming the top-up a
|
|
31
|
+
person comes back from.
|
|
27
32
|
- `@jskit-ai/payments-core/server/storage`: `PaymentStoreFeature`, the payment
|
|
28
33
|
tables' one owner: registered in the server providers, it owns them through
|
|
29
34
|
`runtime.resources` and provides the payment store as `payments.store`. A
|
|
@@ -38,8 +43,8 @@ The app authorizes billing identities and mounts its own routes. A billable
|
|
|
38
43
|
subject may be a user or an organization. Never derive that subject from an
|
|
39
44
|
untrusted customer ID or webhook metadata. The checkout service requires an
|
|
40
45
|
`authorize(actor, { subjectId, action })` function that returns exactly `true`.
|
|
41
|
-
The app must distinguish `account`, `history`, `checkout`, `portal`
|
|
42
|
-
administrator-only `reconcile`. `history` reads customer-scoped subscriptions
|
|
46
|
+
The app must distinguish `account`, `history`, `checkout`, `portal`, `topUp`
|
|
47
|
+
and administrator-only `reconcile`. `history` reads customer-scoped subscriptions
|
|
43
48
|
and invoice/transaction pages with no provider writes; its contract and CLI
|
|
44
49
|
composition are in [standalone setup](docs/standalone.md#provider-billing-history-from-an-app-or-cli).
|
|
45
50
|
Core grant/debit/reconciliation methods are trusted server APIs, not public
|
|
@@ -67,8 +72,15 @@ For concrete file loading, Env resolution and provider composition, see
|
|
|
67
72
|
Create one Stripe or Paddle adapter using `apiKey`, `webhookSecret`,
|
|
68
73
|
`environment`, `providerAccountId` (Stripe), `taxCategory` (Paddle), and `priceBindings`. Account
|
|
69
74
|
identity in this configuration is not a claim of provider verification.
|
|
75
|
+
The Stripe adapter also takes `appEnv` (`appEnvironment(env)`), and refuses
|
|
76
|
+
a live key (`sk_live_`, `rk_live_`) unless it is `production`
|
|
77
|
+
(`payment_live_key_refused`); test keys work everywhere. Development and
|
|
78
|
+
tests may point it at a stand-in for Stripe's API with `apiBaseUrl` (an
|
|
79
|
+
origin such as `http://127.0.0.1:12111`), which other environments refuse.
|
|
70
80
|
5. Create the checkout service with `adapter`, `store`, `payments`,
|
|
71
|
-
`merchantScope`, `returnUrl`, and the app's `authorize` function
|
|
81
|
+
`merchantScope`, `returnUrl`, `appEnv` and the app's `authorize` function,
|
|
82
|
+
plus `topUps: { offer: configuration.topUps, credit }` when it sells top-ups
|
|
83
|
+
([Prepaid top-ups](#prepaid-top-ups)).
|
|
72
84
|
6. Authenticated app routes call `checkout({actor, subjectId, email, planId,
|
|
73
85
|
requestId})` or `portal({actor, subjectId})`. Keep the returned checkout
|
|
74
86
|
request ID stable on transport retries; begin a new request for an expired
|
|
@@ -91,6 +103,51 @@ Checkout and a return page. Both providers' customer portals remain provider
|
|
|
91
103
|
hosted. Provider account registration and Paddle domain approval are separate
|
|
92
104
|
setup tasks; a successful API request does not prove approval.
|
|
93
105
|
|
|
106
|
+
## Prepaid top-ups
|
|
107
|
+
|
|
108
|
+
A configuration with `topUps` (see [the contract](docs/contract.md#prepaid-top-ups))
|
|
109
|
+
sells one-off Stripe Checkout payments of an amount the person chooses within
|
|
110
|
+
its limits, credited once to the application's own balance:
|
|
111
|
+
|
|
112
|
+
```js
|
|
113
|
+
const checkout = createPaymentCheckoutService({
|
|
114
|
+
adapter, store, payments, merchantScope, returnUrl, authorize, appEnv: appEnvironment(env),
|
|
115
|
+
topUps: {
|
|
116
|
+
offer: configuration.topUps,
|
|
117
|
+
// Inside the transaction that marks the top-up paid; write with `options` so both commit or neither does.
|
|
118
|
+
credit: ({ reference, subjectId, amount, currency }, options) => balances.add({ reference, subjectId, amount, currency }, options)
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
The checkout service then has:
|
|
124
|
+
|
|
125
|
+
- `topUp({actor, subjectId, amount, requestId, email?, description?})`:
|
|
126
|
+
authorizes action `topUp`, checks the amount (an integer in the currency's
|
|
127
|
+
smallest unit, within `minimumAmount`..`maximumAmount`), writes the top-up
|
|
128
|
+
down and opens its Checkout payment. Answers
|
|
129
|
+
`{topUpId, status, amount, currency, url}`; navigate to `url` (in a framed
|
|
130
|
+
page, `@jskit-ai/payments-web`'s `openPaymentPage(url)` opens it in a new
|
|
131
|
+
tab). The same `requestId` answers the same top-up.
|
|
132
|
+
- `confirmTopUp({actor, subjectId, topUpId})`: the return page's call, with the
|
|
133
|
+
`paymentTopUp` query parameter Checkout returns with. It authorizes action
|
|
134
|
+
`topUp`, reads the session from Stripe with the server's key and settles it.
|
|
135
|
+
Answers the same shape plus `credited`, true only for the call that credited.
|
|
136
|
+
- `webhook({rawBody, signature})` settles the top-ups' Checkout events
|
|
137
|
+
(`checkout.session.completed`, `checkout.session.async_payment_succeeded`,
|
|
138
|
+
`checkout.session.async_payment_failed`, `checkout.session.expired`) through
|
|
139
|
+
the same path, before subscription events.
|
|
140
|
+
|
|
141
|
+
`credit` is called once per paid top-up with a stable `reference`
|
|
142
|
+
(`top-up:<topUpId>`), the subject the top-up was written down for, the amount
|
|
143
|
+
and the currency, and the options of the transaction that settles it. Its
|
|
144
|
+
handle calls take those options (spread under the application's own context
|
|
145
|
+
where it needs one) and join that transaction. It runs again only after its
|
|
146
|
+
transaction rolled back, so it writes nothing outside it; a balance kept
|
|
147
|
+
elsewhere must be idempotent on the reference. Composing top-ups with a Paddle
|
|
148
|
+
adapter, or without `offer` or `credit`, throws a TypeError naming the fix; a
|
|
149
|
+
service composed without them answers `topUp` with `payment_top_ups_unavailable`.
|
|
150
|
+
|
|
94
151
|
## Failures and evidence
|
|
95
152
|
|
|
96
153
|
Checkout writes an intent before contacting the provider. A crash or ambiguous
|
|
@@ -112,7 +169,12 @@ features or allowances.
|
|
|
112
169
|
Focused fixture evidence currently covers raw signatures with both official
|
|
113
170
|
SDKs, storage rollback, duplicate grants/renewals, subject/environment isolation,
|
|
114
171
|
concurrent debit requests, expired refunds, checkout authorization, uncertain
|
|
115
|
-
writes and explicit recovery.
|
|
172
|
+
writes and explicit recovery. Top-ups are tested through the real Stripe SDK
|
|
173
|
+
against a stand-in for Stripe's API (`test/support/fakeStripe.js`): checkout
|
|
174
|
+
creation and authorization, limits, each webhook outcome, the return page's
|
|
175
|
+
confirmation, foreign and tampered sessions, a failing credit, and live-key and
|
|
176
|
+
stand-in refusals; `test/topUps.mysql.test.js` races the webhook and the return
|
|
177
|
+
page over one payment on MariaDB and sees it credited once. SQLite fixtures do not establish PostgreSQL/MySQL
|
|
116
178
|
multi-process locking behavior. Live provider accounts and full generated-app
|
|
117
179
|
acceptance have not been exercised.
|
|
118
180
|
|
|
@@ -133,7 +195,9 @@ existing subscribers; publication does not cancel their subscriptions.
|
|
|
133
195
|
|
|
134
196
|
Configure Stripe deliveries for `invoice.paid`, `invoice.payment_failed`,
|
|
135
197
|
`invoice.payment_action_required`, and the `customer.subscription.*` lifecycle
|
|
136
|
-
used by the application
|
|
198
|
+
used by the application, and, for top-ups, `checkout.session.completed`,
|
|
199
|
+
`checkout.session.async_payment_succeeded`,
|
|
200
|
+
`checkout.session.async_payment_failed` and `checkout.session.expired`. Configure Paddle for `transaction.completed` and
|
|
137
201
|
`subscription.*` lifecycle deliveries. The provider adapter selects relevant
|
|
138
202
|
subscription events only after signature verification; signed standalone
|
|
139
203
|
invoices/transactions are ignored before application customer lookup.
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
},
|
|
28
28
|
"plans": {
|
|
29
29
|
"type": "object",
|
|
30
|
-
"minProperties": 1,
|
|
31
30
|
"maxProperties": 100,
|
|
32
31
|
"propertyNames": {
|
|
33
32
|
"$ref": "#/definitions/id"
|
|
@@ -35,8 +34,33 @@
|
|
|
35
34
|
"additionalProperties": {
|
|
36
35
|
"$ref": "#/definitions/plan"
|
|
37
36
|
}
|
|
37
|
+
},
|
|
38
|
+
"topUps": {
|
|
39
|
+
"$ref": "#/definitions/topUps"
|
|
38
40
|
}
|
|
39
41
|
},
|
|
42
|
+
"anyOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"plans": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"minProperties": 1
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": [
|
|
55
|
+
"topUps"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"topUps": {
|
|
59
|
+
"type": "object"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
],
|
|
40
64
|
"definitions": {
|
|
41
65
|
"id": {
|
|
42
66
|
"type": "string",
|
|
@@ -143,6 +167,37 @@
|
|
|
143
167
|
"maximum": 1000000000
|
|
144
168
|
}
|
|
145
169
|
}
|
|
170
|
+
},
|
|
171
|
+
"topUps": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"additionalProperties": false,
|
|
174
|
+
"required": [
|
|
175
|
+
"name",
|
|
176
|
+
"currency",
|
|
177
|
+
"minimumAmount",
|
|
178
|
+
"maximumAmount"
|
|
179
|
+
],
|
|
180
|
+
"properties": {
|
|
181
|
+
"name": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"minLength": 1,
|
|
184
|
+
"maxLength": 200
|
|
185
|
+
},
|
|
186
|
+
"currency": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"pattern": "^[A-Z]{3}$"
|
|
189
|
+
},
|
|
190
|
+
"minimumAmount": {
|
|
191
|
+
"type": "integer",
|
|
192
|
+
"minimum": 50,
|
|
193
|
+
"maximum": 99999999
|
|
194
|
+
},
|
|
195
|
+
"maximumAmount": {
|
|
196
|
+
"type": "integer",
|
|
197
|
+
"minimum": 50,
|
|
198
|
+
"maximum": 99999999
|
|
199
|
+
}
|
|
200
|
+
}
|
|
146
201
|
}
|
|
147
202
|
}
|
|
148
203
|
}
|