@spacefast/common 0.2.1 → 0.4.1
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/dist/agents/marketplace-prompts.d.ts +1 -0
- package/dist/agents/marketplace-prompts.js +6 -0
- package/dist/agents/registry/core.d.ts +4 -12
- package/dist/agents/registry/core.js +7 -28
- package/dist/config/domains.d.ts +10 -8
- package/dist/config/domains.js +4 -7
- package/dist/contracts/access-core.d.ts +135 -0
- package/dist/contracts/access-core.js +242 -0
- package/dist/contracts/access-profiles.d.ts +8 -8
- package/dist/contracts/access-profiles.js +8 -8
- package/dist/contracts/access.d.ts +14 -103
- package/dist/contracts/access.js +10 -210
- package/dist/contracts/activity.d.ts +54 -55
- package/dist/contracts/activity.js +38 -9
- package/dist/contracts/api-keys.d.ts +69 -26
- package/dist/contracts/api-keys.js +29 -2
- package/dist/contracts/application-journal.d.ts +197 -4
- package/dist/contracts/application-journal.js +97 -16
- package/dist/contracts/auth.d.ts +20 -0
- package/dist/contracts/auth.js +18 -0
- package/dist/contracts/beta.d.ts +13 -0
- package/dist/contracts/beta.js +28 -0
- package/dist/contracts/billing.d.ts +2 -2
- package/dist/contracts/bootstrap.d.ts +23 -6
- package/dist/contracts/builds.d.ts +24 -4
- package/dist/contracts/builds.js +16 -4
- package/dist/contracts/channels.d.ts +43 -0
- package/dist/contracts/channels.js +22 -6
- package/dist/contracts/comments.d.ts +49 -0
- package/dist/contracts/comments.js +61 -2
- package/dist/contracts/commerce.d.ts +19 -13
- package/dist/contracts/connector-access.d.ts +28 -0
- package/dist/contracts/connector-access.js +31 -0
- package/dist/contracts/connectors.d.ts +2382 -0
- package/dist/contracts/connectors.js +941 -0
- package/dist/contracts/content-contract-verification.d.ts +112 -58
- package/dist/contracts/content-contract-verification.js +42 -54
- package/dist/contracts/content-model-emit.d.ts +97 -0
- package/dist/contracts/content-model-emit.js +306 -0
- package/dist/contracts/content-model-sdk.d.ts +101 -0
- package/dist/contracts/content-model-sdk.js +232 -0
- package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
- package/dist/contracts/{content-program.js → content-model.js} +291 -63
- package/dist/contracts/content-platform-fixture.d.ts +380 -110
- package/dist/contracts/content-platform-fixture.js +8 -8
- package/dist/contracts/content-sync.d.ts +197 -74
- package/dist/contracts/content-sync.js +98 -37
- package/dist/contracts/content.d.ts +30 -422
- package/dist/contracts/content.js +34 -294
- package/dist/contracts/dashboard-prefs.d.ts +10 -3
- package/dist/contracts/dashboard-prefs.js +6 -3
- package/dist/contracts/data-location.d.ts +9 -0
- package/dist/contracts/data-location.js +7 -0
- package/dist/contracts/deployment-comparison.d.ts +67 -0
- package/dist/contracts/deployment-comparison.js +68 -0
- package/dist/contracts/device-auth.d.ts +55 -11
- package/dist/contracts/domains.d.ts +40 -16
- package/dist/contracts/domains.js +23 -0
- package/dist/contracts/enums.d.ts +1 -10
- package/dist/contracts/enums.js +0 -15
- package/dist/contracts/error-code-meta.d.ts +388 -20
- package/dist/contracts/error-code-meta.js +201 -5
- package/dist/contracts/error-codes.d.ts +17 -4
- package/dist/contracts/error-codes.js +109 -10
- package/dist/contracts/events.d.ts +5 -0
- package/dist/contracts/events.js +12 -3
- package/dist/contracts/execution.d.ts +5 -1
- package/dist/contracts/execution.js +4 -0
- package/dist/contracts/feature-lifecycle.d.ts +53 -20
- package/dist/contracts/feature-lifecycle.js +65 -23
- package/dist/contracts/features.d.ts +57 -31
- package/dist/contracts/features.js +0 -1
- package/dist/contracts/feedback.d.ts +124 -0
- package/dist/contracts/feedback.js +64 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
- package/dist/contracts/fixtures/content-platform-v1.json +101 -49
- package/dist/contracts/frame-session.d.ts +60 -10
- package/dist/contracts/frame-session.js +52 -12
- package/dist/contracts/functions.d.ts +28 -2
- package/dist/contracts/functions.js +25 -2
- package/dist/contracts/grant-copy.d.ts +2 -0
- package/dist/contracts/grant-copy.js +2 -0
- package/dist/contracts/grants-core.d.ts +95 -0
- package/dist/contracts/grants-core.js +435 -0
- package/dist/contracts/grants.d.ts +13 -84
- package/dist/contracts/grants.js +21 -369
- package/dist/contracts/ids-core.d.ts +11 -0
- package/dist/contracts/ids-core.js +14 -0
- package/dist/contracts/ids.d.ts +7 -4
- package/dist/contracts/ids.js +12 -4
- package/dist/contracts/internal.d.ts +18 -0
- package/dist/contracts/internal.js +19 -0
- package/dist/contracts/mcp.d.ts +8 -18
- package/dist/contracts/mcp.js +2 -23
- package/dist/contracts/notifications.d.ts +4 -1
- package/dist/contracts/notifications.js +1 -0
- package/dist/contracts/oauth-resources.d.ts +55 -9
- package/dist/contracts/oauth-resources.js +64 -1
- package/dist/contracts/oauth-scope-actions.d.ts +27 -3
- package/dist/contracts/oauth-scope-actions.js +18 -8
- package/dist/contracts/operations.d.ts +1 -1
- package/dist/contracts/partner-account.d.ts +629 -0
- package/dist/contracts/partner-account.js +18 -0
- package/dist/contracts/principal-assertion.d.ts +74 -1
- package/dist/contracts/principal-assertion.js +67 -3
- package/dist/contracts/publish-archive.d.ts +22 -1
- package/dist/contracts/push-new.d.ts +3 -3
- package/dist/contracts/push-new.js +1 -1
- package/dist/contracts/quotas.js +2 -1
- package/dist/contracts/repository-connections.d.ts +10 -6
- package/dist/contracts/repository-connections.js +15 -0
- package/dist/contracts/resources.d.ts +6 -5
- package/dist/contracts/resources.js +7 -0
- package/dist/contracts/route-inventory.d.ts +74 -19
- package/dist/contracts/route-inventory.js +20 -6
- package/dist/contracts/runtime-api.d.ts +415 -4
- package/dist/contracts/runtime-api.js +60 -15
- package/dist/contracts/runtime-app.d.ts +6 -1
- package/dist/contracts/runtime-components.d.ts +646 -18
- package/dist/contracts/runtime-components.js +304 -188
- package/dist/contracts/runtime-services.d.ts +15 -0
- package/dist/contracts/runtime-services.js +25 -0
- package/dist/contracts/runtime-storage.d.ts +32 -0
- package/dist/contracts/runtime-storage.js +37 -0
- package/dist/contracts/source-workspaces.d.ts +511 -0
- package/dist/contracts/source-workspaces.js +276 -0
- package/dist/contracts/space-config-spacefast.d.ts +394 -0
- package/dist/contracts/space-config-spacefast.js +70 -0
- package/dist/contracts/space-config.d.ts +177 -90
- package/dist/contracts/space-config.js +77 -92
- package/dist/contracts/spaces.d.ts +132 -24
- package/dist/contracts/spaces.js +77 -13
- package/dist/contracts/superadmin-connectors.d.ts +371 -0
- package/dist/contracts/superadmin-connectors.js +61 -0
- package/dist/contracts/superadmin-emails.d.ts +1 -1
- package/dist/contracts/superadmin-emails.js +1 -1
- package/dist/contracts/superadmin-entities.d.ts +105 -0
- package/dist/contracts/superadmin-entities.js +64 -0
- package/dist/contracts/superadmin-runtime.d.ts +35 -116
- package/dist/contracts/superadmin-runtime.js +13 -69
- package/dist/contracts/superadmin-search.d.ts +12 -14
- package/dist/contracts/superadmin-search.js +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -72
- package/dist/contracts/superadmin-spaces.js +2 -7
- package/dist/contracts/superadmin-teams.d.ts +12 -0
- package/dist/contracts/superadmin-teams.js +7 -1
- package/dist/contracts/superadmin-tenants.d.ts +44 -16
- package/dist/contracts/superadmin.d.ts +2 -2
- package/dist/contracts/tags.d.ts +12 -12
- package/dist/contracts/teams.d.ts +29 -1
- package/dist/contracts/teams.js +24 -2
- package/dist/contracts/tenants.d.ts +98 -0
- package/dist/contracts/tenants.js +20 -0
- package/dist/contracts/transfers.d.ts +92 -0
- package/dist/contracts/transfers.js +37 -0
- package/dist/contracts/usage.d.ts +9 -1
- package/dist/contracts/usage.js +2 -0
- package/dist/contracts/visual-review.d.ts +448 -0
- package/dist/contracts/visual-review.js +156 -0
- package/dist/contracts/wordpress-php-toolkit.json +9 -0
- package/dist/contracts/work-mode.d.ts +24 -0
- package/dist/contracts/work-mode.js +17 -0
- package/dist/contracts/wp-cli.d.ts +66 -0
- package/dist/contracts/wp-cli.js +68 -0
- package/dist/contracts/zero-catalog.d.ts +29 -0
- package/dist/contracts/zero-catalog.js +55 -0
- package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
- package/dist/contracts/zero-platform-abilities.generated.js +373 -0
- package/dist/contracts/zero-spacefast.d.ts +444 -0
- package/dist/contracts/zero-spacefast.js +149 -0
- package/dist/contracts/zero-types.d.ts +47 -0
- package/dist/contracts/zero-types.js +263 -0
- package/dist/contracts/zero.d.ts +781 -14
- package/dist/contracts/zero.js +204 -10
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.js +5 -0
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +15 -18
- package/dist/docs/agent-setup.d.ts +1 -1
- package/dist/docs/agent-setup.js +5 -13
- package/dist/docs/catalog.d.ts +64 -28
- package/dist/docs/catalog.js +155 -28
- package/dist/docs/error-docs.d.ts +365 -17
- package/dist/docs/error-docs.js +369 -21
- package/dist/docs/reference-urls.js +1 -1
- package/dist/docs/skills.d.ts +84 -84
- package/dist/docs/skills.js +66 -47
- package/dist/docs/start-prompts.d.ts +14 -0
- package/dist/docs/start-prompts.js +20 -0
- package/dist/utils/account-labels.d.ts +7 -0
- package/dist/utils/account-labels.js +15 -0
- package/dist/utils/auth.d.ts +1 -0
- package/dist/utils/auth.js +1 -0
- package/dist/utils/credential-policy.d.ts +22 -1
- package/dist/utils/credential-policy.js +55 -6
- package/dist/utils/local-space-state.d.ts +7 -0
- package/dist/utils/local-space-state.js +7 -0
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.js +144 -0
- package/dist/utils/page-routes.d.ts +9 -0
- package/dist/utils/page-routes.js +82 -0
- package/dist/utils/pages.d.ts +2 -0
- package/dist/utils/pages.js +7 -0
- package/dist/utils/publish-form-data.d.ts +2 -0
- package/dist/utils/publish-form-data.js +2 -0
- package/dist/utils/publish-policy-spacefast.d.ts +13 -0
- package/dist/utils/publish-policy-spacefast.js +117 -0
- package/dist/utils/publish-policy.d.ts +22 -16
- package/dist/utils/publish-policy.fixtures.json +15 -0
- package/dist/utils/publish-policy.js +62 -139
- package/dist/utils/query-client.js +9 -1
- package/dist/utils/runtime-upload.d.ts +4 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +2 -3
- package/dist/utils/space-config.js +1 -1
- package/dist/utils/uploaded-source.d.ts +4 -0
- package/dist/utils/uploaded-source.js +12 -0
- package/dist/visual-review.d.ts +4 -0
- package/dist/visual-review.js +208 -0
- package/dist/vocabulary.d.ts +38 -0
- package/dist/vocabulary.js +55 -0
- package/package.json +7 -2
- package/dist/agents/registry/deeplink-probes.d.ts +0 -23
- package/dist/agents/registry/deeplink-probes.js +0 -18
package/dist/vocabulary.d.ts
CHANGED
|
@@ -100,6 +100,44 @@ export declare const CONCEPTS: {
|
|
|
100
100
|
readonly aliases: readonly [];
|
|
101
101
|
readonly description: "The page-enhancement feature. Capital-S as a feature name.";
|
|
102
102
|
};
|
|
103
|
+
readonly contentModel: {
|
|
104
|
+
readonly id: "contentModel";
|
|
105
|
+
readonly canonicalNoun: "content model";
|
|
106
|
+
readonly aliases: readonly [];
|
|
107
|
+
readonly deprecated: readonly ["content program", "program collection"];
|
|
108
|
+
readonly description: string;
|
|
109
|
+
};
|
|
110
|
+
readonly ability: {
|
|
111
|
+
readonly id: "ability";
|
|
112
|
+
readonly canonicalNoun: "Ability";
|
|
113
|
+
readonly aliases: readonly [];
|
|
114
|
+
readonly description: string;
|
|
115
|
+
};
|
|
116
|
+
readonly collection: {
|
|
117
|
+
readonly id: "collection";
|
|
118
|
+
readonly canonicalNoun: "collection";
|
|
119
|
+
readonly aliases: readonly [];
|
|
120
|
+
readonly description: string;
|
|
121
|
+
};
|
|
122
|
+
readonly frame: {
|
|
123
|
+
readonly id: "frame";
|
|
124
|
+
readonly canonicalNoun: "Frame";
|
|
125
|
+
readonly aliases: readonly [];
|
|
126
|
+
readonly description: string;
|
|
127
|
+
};
|
|
128
|
+
readonly shareLink: {
|
|
129
|
+
readonly id: "shareLink";
|
|
130
|
+
readonly canonicalNoun: "share link";
|
|
131
|
+
readonly aliases: readonly [];
|
|
132
|
+
readonly deprecated: readonly ["Anyone with the link"];
|
|
133
|
+
readonly description: string;
|
|
134
|
+
};
|
|
135
|
+
readonly storage: {
|
|
136
|
+
readonly id: "storage";
|
|
137
|
+
readonly canonicalNoun: "storage";
|
|
138
|
+
readonly aliases: readonly [];
|
|
139
|
+
readonly description: string;
|
|
140
|
+
};
|
|
103
141
|
readonly infra: {
|
|
104
142
|
readonly id: "infra";
|
|
105
143
|
readonly canonicalNoun: "infra";
|
package/dist/vocabulary.js
CHANGED
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
// - `API key`, never "access token".
|
|
23
23
|
// - `Collab` is the feature; `comment` is the unit.
|
|
24
24
|
// - `Superpowers` is the page-enhancement feature.
|
|
25
|
+
// - The content platform's nouns (ADDED 2026-08-30): a `content model` holds
|
|
26
|
+
// `collection`s and the `Ability`s over them, a `Frame` is an embedded
|
|
27
|
+
// editing surface, and `storage` is the system name the dashboard labels
|
|
28
|
+
// Files. "Program" is not a content noun; it only names a compiled Zero
|
|
29
|
+
// endpoint or run.
|
|
25
30
|
// - Provider names stay off public surfaces by default: never "E2B" (say
|
|
26
31
|
// "Spacefast Builds" / "Spacefast CI"), never "code.storage" / "Pierre".
|
|
27
32
|
// The infra brand is "WP Cloud", never "WP.Cloud"/"wp-cloud" (AMENDED
|
|
@@ -102,6 +107,56 @@ export const CONCEPTS = {
|
|
|
102
107
|
aliases: [],
|
|
103
108
|
description: "The page-enhancement feature. Capital-S as a feature name.",
|
|
104
109
|
},
|
|
110
|
+
contentModel: {
|
|
111
|
+
id: "contentModel",
|
|
112
|
+
canonicalNoun: "content model",
|
|
113
|
+
aliases: [],
|
|
114
|
+
deprecated: ["content program", "program collection"],
|
|
115
|
+
description: "The schema a space's content takes: its collections, their fields, and the " +
|
|
116
|
+
"Abilities over them. Compiled at publish and bound to the version, so a " +
|
|
117
|
+
"rollback rolls the model back with it. It was briefly called a 'program'; " +
|
|
118
|
+
"that word now only means a compiled Zero endpoint or run.",
|
|
119
|
+
},
|
|
120
|
+
ability: {
|
|
121
|
+
id: "ability",
|
|
122
|
+
canonicalNoun: "Ability",
|
|
123
|
+
aliases: [],
|
|
124
|
+
description: "One named, callable operation a space publishes through the WordPress " +
|
|
125
|
+
"Abilities API. Capital-A as a product noun, and the set is the 'Ability " +
|
|
126
|
+
"catalog' — American spelling, matching every identifier around it.",
|
|
127
|
+
},
|
|
128
|
+
collection: {
|
|
129
|
+
id: "collection",
|
|
130
|
+
canonicalNoun: "collection",
|
|
131
|
+
aliases: [],
|
|
132
|
+
description: "One resource in a content model: posts, pages, media, or a set the model " +
|
|
133
|
+
"declares itself. Collections is also the dashboard page that lists them.",
|
|
134
|
+
},
|
|
135
|
+
frame: {
|
|
136
|
+
id: "frame",
|
|
137
|
+
canonicalNoun: "Frame",
|
|
138
|
+
aliases: [],
|
|
139
|
+
description: "An editing surface a space hosts and the dashboard embeds, opened through " +
|
|
140
|
+
"a one-use session minted from a Frame Link. Capital-F as a product noun.",
|
|
141
|
+
},
|
|
142
|
+
shareLink: {
|
|
143
|
+
id: "shareLink",
|
|
144
|
+
canonicalNoun: "share link",
|
|
145
|
+
aliases: [],
|
|
146
|
+
deprecated: ["Anyone with the link"],
|
|
147
|
+
description: "A scoped capability link that lets visitors into a space. Lowercase in " +
|
|
148
|
+
"prose, 'Share link' in labels — a common noun, not a product noun " +
|
|
149
|
+
"(DECIDED 2026-08-31). 'Anyone with the link' read as if it meant the " +
|
|
150
|
+
"space's normal URL in access settings, so every surface naming the " +
|
|
151
|
+
"audience says share link. Plain URLs are never called share links.",
|
|
152
|
+
},
|
|
153
|
+
storage: {
|
|
154
|
+
id: "storage",
|
|
155
|
+
canonicalNoun: "storage",
|
|
156
|
+
aliases: [],
|
|
157
|
+
description: "A space's files. 'Storage' is the system name — contracts, Ability ids, " +
|
|
158
|
+
"runtime paths — and the dashboard labels the same thing Files.",
|
|
159
|
+
},
|
|
105
160
|
infra: {
|
|
106
161
|
id: "infra",
|
|
107
162
|
canonicalNoun: "infra",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spacefast/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared TypeScript contracts and utilities for Spacefast packages.",
|
|
6
6
|
"repository": {
|
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
"types": "./dist/config/index.d.ts",
|
|
99
99
|
"import": "./dist/config/index.js",
|
|
100
100
|
"default": "./dist/config/index.js"
|
|
101
|
+
},
|
|
102
|
+
"./visual-review": {
|
|
103
|
+
"types": "./dist/visual-review.d.ts",
|
|
104
|
+
"import": "./dist/visual-review.js",
|
|
105
|
+
"default": "./dist/visual-review.js"
|
|
101
106
|
}
|
|
102
107
|
},
|
|
103
108
|
"dependencies": {
|
|
@@ -110,7 +115,7 @@
|
|
|
110
115
|
"zod": "^4.4.3"
|
|
111
116
|
},
|
|
112
117
|
"peerDependencies": {
|
|
113
|
-
"@tanstack/react-query": "^5.
|
|
118
|
+
"@tanstack/react-query": "^5.102.8"
|
|
114
119
|
},
|
|
115
120
|
"peerDependenciesMeta": {
|
|
116
121
|
"@tanstack/react-query": {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deeplink probe results, keyed `<agentId>:<methodId>`.
|
|
3
|
-
*
|
|
4
|
-
* Deeplinks are volatile vendor behavior, so the registry never asserts they
|
|
5
|
-
* work — it records what a probe last observed. This module is the ONLY place a
|
|
6
|
-
* status stronger than `declared` may come from, and it is written by
|
|
7
|
-
* `scripts/marketplaces/probe-deeplinks.mjs` (scheduled weekly by
|
|
8
|
-
* `.github/workflows/deeplink-probe.yml`). A `failed` entry demotes its deeplink
|
|
9
|
-
* out of `interactive-primary` automatically, so the page falls through to the
|
|
10
|
-
* method's declared fallback.
|
|
11
|
-
*
|
|
12
|
-
* Browser-safe by construction: plain data, no filesystem, no network.
|
|
13
|
-
*
|
|
14
|
-
* TODO(deeplink-probe): the probe currently only writes this file by hand-run.
|
|
15
|
-
* Wire the scheduled workflow to open a PR with the regenerated map so a broken
|
|
16
|
-
* vendor deeplink demotes itself without a human in the loop.
|
|
17
|
-
*/
|
|
18
|
-
export type DeeplinkProbeResult = Readonly<{
|
|
19
|
-
checkedAt: string;
|
|
20
|
-
evidence?: string;
|
|
21
|
-
status: "probed" | "failed";
|
|
22
|
-
}>;
|
|
23
|
-
export declare const DEEPLINK_PROBE_RESULTS: Readonly<Record<string, DeeplinkProbeResult>>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deeplink probe results, keyed `<agentId>:<methodId>`.
|
|
3
|
-
*
|
|
4
|
-
* Deeplinks are volatile vendor behavior, so the registry never asserts they
|
|
5
|
-
* work — it records what a probe last observed. This module is the ONLY place a
|
|
6
|
-
* status stronger than `declared` may come from, and it is written by
|
|
7
|
-
* `scripts/marketplaces/probe-deeplinks.mjs` (scheduled weekly by
|
|
8
|
-
* `.github/workflows/deeplink-probe.yml`). A `failed` entry demotes its deeplink
|
|
9
|
-
* out of `interactive-primary` automatically, so the page falls through to the
|
|
10
|
-
* method's declared fallback.
|
|
11
|
-
*
|
|
12
|
-
* Browser-safe by construction: plain data, no filesystem, no network.
|
|
13
|
-
*
|
|
14
|
-
* TODO(deeplink-probe): the probe currently only writes this file by hand-run.
|
|
15
|
-
* Wire the scheduled workflow to open a PR with the regenerated map so a broken
|
|
16
|
-
* vendor deeplink demotes itself without a human in the loop.
|
|
17
|
-
*/
|
|
18
|
-
export const DEEPLINK_PROBE_RESULTS = {};
|