showpane 0.4.23 → 0.4.25
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/bundle/meta/scaffold-manifest.json +3 -3
- package/bundle/scaffold/src/__tests__/portal-contracts.test.ts +20 -0
- package/bundle/scaffold/src/lib/portal-contracts.ts +2 -0
- package/bundle/toolchain/CLI_VERSION +1 -1
- package/bundle/toolchain/bin/deploy-to-cloud.ts +761 -0
- package/bundle/toolchain/bin/ensure-cloud-project-link.ts +2 -0
- package/bundle/toolchain/skills/portal-create/SKILL.md +9 -11
- package/bundle/toolchain/skills/portal-create/SKILL.md.tmpl +9 -11
- package/bundle/toolchain/skills/portal-deploy/SKILL.md +37 -325
- package/bundle/toolchain/skills/portal-deploy/SKILL.md.tmpl +37 -325
- package/bundle/toolchain/skills/portal-onboard/SKILL.md +9 -5
- package/bundle/toolchain/skills/portal-onboard/SKILL.md.tmpl +9 -5
- package/dist/index.js +125 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-04-
|
|
3
|
+
"generatedAt": "2026-04-13T22:00:52.340Z",
|
|
4
4
|
"scaffoldVersion": "0.2.7",
|
|
5
5
|
"files": {
|
|
6
6
|
".env.example": "ed105f2bdcd1888a98181d55e3c9f7d6eff3ae9c3e2366c2e777a12e3caddfa7",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"scripts/prisma-schema.mjs": "0a86cc1b5f84120948aed8f97a84f2d5b173f91a43ea34ad6767441894121d83",
|
|
22
22
|
"src/__tests__/client-portals.test.ts": "9c3236bf0f7190b7d5ba9082287dcb29bc00d28dd63782a89505125ead06c624",
|
|
23
23
|
"src/__tests__/deploy-bundle.test.ts": "abd3216170f306c09df6abb0d2afad966a5741e8859f25a310a0a09693d37609",
|
|
24
|
-
"src/__tests__/portal-contracts.test.ts": "
|
|
24
|
+
"src/__tests__/portal-contracts.test.ts": "a3ecf29c460a14f22ef48449fc9de5b945ce5f03423f12380d05e01159d1e3b4",
|
|
25
25
|
"src/app/(portal)/client/[slug]/page.tsx": "4f2f9253b2ad5d37a0f13759db52c786ae9c401f50fae9431da1417e9736e000",
|
|
26
26
|
"src/app/(portal)/client/[slug]/s/[token]/route.ts": "a445e54b9139e40dfe0bc039e34e6af224a27f75a614741ab224d317ad4d3ec9",
|
|
27
27
|
"src/app/(portal)/client/example/example-client.tsx": "ed32b111acea861f448d865338f8841d47c6ca7c2f87ed30d85bb0804940d4ec",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"src/lib/deploy-bundle.ts": "e9675cccb2c802e408639481986c6b629737541853e1c93f322c08a5b9dfc5f9",
|
|
52
52
|
"src/lib/files.ts": "24fd8d1d53c180d62441019395fb140ba3baa28311918ac488284adcdda8eb9a",
|
|
53
53
|
"src/lib/load-app-env.ts": "78b80e17d896885f0d72315ee9a6cf7a0a8c6c08171f26e3d599bb9b2e8afeee",
|
|
54
|
-
"src/lib/portal-contracts.ts": "
|
|
54
|
+
"src/lib/portal-contracts.ts": "e3521b117239d0b0f9bc86a08607c6bb26f93dc1c47cd2dcf0485c2ca7358835",
|
|
55
55
|
"src/lib/prisma-client.ts": "28cd100129a0178a6c8fdfe49e6997b19983fcc427b9fa7caee3ac26226e5eb3",
|
|
56
56
|
"src/lib/runtime-state.ts": "3d30de7dfeaaa48d8b6fd5d29976ecd001408172100c95b063d5d804fdce0a2e",
|
|
57
57
|
"src/lib/storage.ts": "ae3b85fc6cccd39d4174a391dcbe6e91fb9460eb407ec9dbfedd63594a441d08",
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
ANALYTICS_METADATA_KEYS,
|
|
5
5
|
ORGANIZATION_NOT_READY_ERROR,
|
|
6
6
|
ORGANIZATION_REQUIRED_ERROR,
|
|
7
|
+
type OrganizationNotReadyPayload,
|
|
7
8
|
isPortalEventType,
|
|
8
9
|
toCloudPortalEventPayload,
|
|
9
10
|
} from "@/lib/portal-contracts";
|
|
@@ -36,4 +37,23 @@ describe("portal contracts", () => {
|
|
|
36
37
|
expect(ORGANIZATION_REQUIRED_ERROR).toBe("organization_required");
|
|
37
38
|
expect(ORGANIZATION_NOT_READY_ERROR).toBe("organization_not_ready");
|
|
38
39
|
});
|
|
40
|
+
|
|
41
|
+
it("keeps retry metadata on not-ready payloads", () => {
|
|
42
|
+
const payload: OrganizationNotReadyPayload = {
|
|
43
|
+
code: ORGANIZATION_NOT_READY_ERROR,
|
|
44
|
+
error: "Still provisioning",
|
|
45
|
+
orgSlug: "acme",
|
|
46
|
+
provisioningStatus: "provisioning",
|
|
47
|
+
subscriptionStatus: "trialing",
|
|
48
|
+
isActive: true,
|
|
49
|
+
retryable: true,
|
|
50
|
+
retryAfterMs: 3_000,
|
|
51
|
+
settingsUrl: "/dashboard/settings",
|
|
52
|
+
nextAction: "wait_for_provisioning",
|
|
53
|
+
reason: "provisioning",
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
expect(payload.retryable).toBe(true);
|
|
57
|
+
expect(payload.retryAfterMs).toBe(3_000);
|
|
58
|
+
});
|
|
39
59
|
});
|
|
@@ -40,6 +40,8 @@ export interface OrganizationNotReadyPayload {
|
|
|
40
40
|
provisioningStatus: string | null;
|
|
41
41
|
subscriptionStatus: string | null;
|
|
42
42
|
isActive: boolean;
|
|
43
|
+
retryable: boolean;
|
|
44
|
+
retryAfterMs?: number;
|
|
43
45
|
checkoutUrl?: string;
|
|
44
46
|
settingsUrl: string;
|
|
45
47
|
nextAction: WorkspaceNextAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.25
|