@substrat-run/contracts 0.55.0 → 0.57.0
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/ci.d.ts +17 -0
- package/dist/ci.d.ts.map +1 -1
- package/dist/ci.js +51 -11
- package/dist/ci.js.map +1 -1
- package/dist/platform-request.d.ts +56 -0
- package/dist/platform-request.d.ts.map +1 -1
- package/dist/platform-request.js +29 -1
- package/dist/platform-request.js.map +1 -1
- package/dist/registry.d.ts +36 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +19 -0
- package/dist/registry.js.map +1 -1
- package/package.json +1 -1
package/dist/ci.d.ts
CHANGED
|
@@ -88,7 +88,24 @@ export interface DeployWorkflowOptions {
|
|
|
88
88
|
cpUrl: string;
|
|
89
89
|
/** Defaults to `trunk`. */
|
|
90
90
|
release?: ReleaseMode;
|
|
91
|
+
/**
|
|
92
|
+
* The vertical's directory INSIDE the repo, for a monorepo whose package is not the
|
|
93
|
+
* repo root (e.g. `demos/auth-server`). Every push/preview runs against this directory,
|
|
94
|
+
* the version gates read ITS package.json, and the triggers gain a `paths:` filter so a
|
|
95
|
+
* merge that never touched the package does not release it. Install still runs at the
|
|
96
|
+
* repo root — a workspace repo's lockfile lives there. Omitted = the repo root, exactly
|
|
97
|
+
* the file this generator always produced.
|
|
98
|
+
*/
|
|
99
|
+
path?: string;
|
|
91
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Normalize a package directory to the repo-relative form the workflow embeds: no leading
|
|
103
|
+
* `./`, no trailing `/`. Root spellings (``, `.`, `./`) collapse to undefined so callers
|
|
104
|
+
* cannot generate a `push ./` that means the same thing as the pathless file but diffs
|
|
105
|
+
* against it. Traversal is refused here — a generator shared by three writers must not
|
|
106
|
+
* rely on every caller validating.
|
|
107
|
+
*/
|
|
108
|
+
export declare function normalizeWorkflowDir(path: string | undefined): string | undefined;
|
|
92
109
|
/**
|
|
93
110
|
* The workflow the one-click setup commits and `substrat init --ci github` writes.
|
|
94
111
|
*
|
package/dist/ci.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci.d.ts","sourceRoot":"","sources":["../src/ci.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,MAA0B,CAAC;AAEzE;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,aAAc,MAAM,SAAS,MAAM,GAAG,MAAM,KAAG,MAChD,CAAC;AAE5B;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,aAAc,MAAM,KAAG,MAA2B,CAAC;AAMrF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAElE;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,MAAM,CAa1F;AAED,iFAAiF;AACjF,eAAO,MAAM,iBAAiB,QAAO,MACiF,CAAC;AAMvH;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,YAAY,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ci.d.ts","sourceRoot":"","sources":["../src/ci.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,aAAc,MAAM,KAAG,MAA0B,CAAC;AAEzE;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,aAAc,MAAM,SAAS,MAAM,GAAG,MAAM,KAAG,MAChD,CAAC;AAE5B;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,aAAc,MAAM,KAAG,MAA2B,CAAC;AAMrF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,8BAA8B,CAAC;AAElE;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,MAAM,CAa1F;AAED,iFAAiF;AACjF,eAAO,MAAM,iBAAiB,QAAO,MACiF,CAAC;AAMvH;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,YAAY,CAAC;AAEjD,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAQjF;AAKD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CAuNtE"}
|
package/dist/ci.js
CHANGED
|
@@ -77,6 +77,24 @@ export function previewCommentBody(urls) {
|
|
|
77
77
|
}
|
|
78
78
|
/** The sticky comment after the PR closed and the preview forks were deleted. */
|
|
79
79
|
export const previewReapedBody = () => `${PREVIEW_COMMENT_MARKER}\n🔎 **Substrat preview:** reaped — this PR is closed and the preview forks were deleted.`;
|
|
80
|
+
/**
|
|
81
|
+
* Normalize a package directory to the repo-relative form the workflow embeds: no leading
|
|
82
|
+
* `./`, no trailing `/`. Root spellings (``, `.`, `./`) collapse to undefined so callers
|
|
83
|
+
* cannot generate a `push ./` that means the same thing as the pathless file but diffs
|
|
84
|
+
* against it. Traversal is refused here — a generator shared by three writers must not
|
|
85
|
+
* rely on every caller validating.
|
|
86
|
+
*/
|
|
87
|
+
export function normalizeWorkflowDir(path) {
|
|
88
|
+
if (path === undefined)
|
|
89
|
+
return undefined;
|
|
90
|
+
const trimmed = path.replace(/^\.\//, '').replace(/\/+$/, '');
|
|
91
|
+
if (trimmed === '' || trimmed === '.')
|
|
92
|
+
return undefined;
|
|
93
|
+
if (trimmed.startsWith('/') || trimmed.split('/').some((seg) => seg === '' || seg === '.' || seg === '..')) {
|
|
94
|
+
throw new Error(`not a repo-relative package directory: '${path}'`);
|
|
95
|
+
}
|
|
96
|
+
return trimmed;
|
|
97
|
+
}
|
|
80
98
|
/** Render a comment body as a single-quoted `printf` format string (literal `\n`, `%s` holes). */
|
|
81
99
|
const printfFormat = (body) => body.replace(/\n/g, '\\n');
|
|
82
100
|
/**
|
|
@@ -101,6 +119,10 @@ export function deployWorkflowYaml(opts) {
|
|
|
101
119
|
const { branch, slug, cpUrl } = opts;
|
|
102
120
|
const release = opts.release ?? 'trunk';
|
|
103
121
|
const cli = 'npx @substrat-run/cli';
|
|
122
|
+
// The package directory: what push/preview build, whose package.json owns the version.
|
|
123
|
+
const path = normalizeWorkflowDir(opts.path);
|
|
124
|
+
const dir = path ?? '.';
|
|
125
|
+
const pkgRef = path ? `./${path}/package.json` : './package.json';
|
|
104
126
|
// The install block repeats across jobs (self-contained file, see above). `fetch-depth: 2`
|
|
105
127
|
// is what lets the changesets release gate diff package.json against the previous commit.
|
|
106
128
|
const setup = (fetchDepth) => ` - uses: actions/checkout@v4${fetchDepth ? `\n with:\n fetch-depth: ${fetchDepth}` : ''}
|
|
@@ -131,19 +153,19 @@ export function deployWorkflowYaml(opts) {
|
|
|
131
153
|
${cpEnv}
|
|
132
154
|
run: |
|
|
133
155
|
set -euo pipefail
|
|
134
|
-
CUR=$(node -p "require('
|
|
135
|
-
PREV=$(git show HEAD
|
|
156
|
+
CUR=$(node -p "require('${pkgRef}').version")
|
|
157
|
+
PREV=$(git show HEAD^:${path ? `${path}/package.json` : 'package.json'} 2>/dev/null | node -pe "JSON.parse(require('fs').readFileSync(0,'utf8')).version" 2>/dev/null || echo '')
|
|
136
158
|
if [ "$CUR" = "$PREV" ]; then
|
|
137
159
|
echo "package.json version is still $CUR — this merge landed a changeset, not a release. Skipping prod."
|
|
138
160
|
exit 0
|
|
139
161
|
fi
|
|
140
162
|
echo "releasing $CUR (was \${PREV:-none})"
|
|
141
|
-
${cli} push
|
|
163
|
+
${cli} push ${dir} --slug ${slug} --version "$CUR" --promote prod`
|
|
142
164
|
: ` - name: Release to prod
|
|
143
165
|
${cpEnv}
|
|
144
166
|
run: |
|
|
145
167
|
set -euo pipefail
|
|
146
|
-
${cli} push
|
|
168
|
+
${cli} push ${dir} --slug ${slug} --promote prod`;
|
|
147
169
|
// --- the "tracks main" test environment ---------------------------------------------
|
|
148
170
|
//
|
|
149
171
|
// Runs on EVERY merge, release or not — that is the point of a test env: it is always the
|
|
@@ -157,8 +179,8 @@ ${cpEnv}
|
|
|
157
179
|
${cpEnv}
|
|
158
180
|
run: |
|
|
159
181
|
set -euo pipefail
|
|
160
|
-
BASE=$(node -p "require('
|
|
161
|
-
${cli} push
|
|
182
|
+
BASE=$(node -p "require('${pkgRef}').version")
|
|
183
|
+
${cli} push ${dir} --slug ${slug} --version "$BASE-test.\${{ github.run_number }}" | tee push.out
|
|
162
184
|
# '|| true' so an unmatched grep does not trip pipefail before the message below —
|
|
163
185
|
# "could not read the pushed version id" beats a bare exit 1 from grep.
|
|
164
186
|
VID=$(grep -F '✓ pushed' push.out | grep -oE 'version [A-Za-z0-9]+' | head -1 | cut -d' ' -f2 || true)
|
|
@@ -172,7 +194,7 @@ ${cpEnv}
|
|
|
172
194
|
${cpEnv}
|
|
173
195
|
run: |
|
|
174
196
|
set -euo pipefail
|
|
175
|
-
${cli} preview create
|
|
197
|
+
${cli} preview create ${dir} --slug ${slug} --tag pr-\${{ github.event.number }} | tee preview.out
|
|
176
198
|
# Take the URL from the CLI success line (the ✓ marker) only — the push it runs
|
|
177
199
|
# first also prints an https:// *deploy endpoint* we must never mistake for a preview.
|
|
178
200
|
grep -F '✓ preview' preview.out | grep -oE 'https://[a-zA-Z0-9.:/_-]+' | tail -1 > preview.url || true
|
|
@@ -184,7 +206,7 @@ ${cpEnv}
|
|
|
184
206
|
# A FRESH scope, bound once and never rebound, so this URL is frozen to this build
|
|
185
207
|
# forever. Clean-room (--empty) rather than a fork: a throwaway per build should not
|
|
186
208
|
# copy prod data every push. Short TTL — the sticky preview is the one that lives.
|
|
187
|
-
${cli} preview create
|
|
209
|
+
${cli} preview create ${dir} --slug ${slug} \\
|
|
188
210
|
--tag pr-\${{ github.event.number }}-\${{ github.run_id }} --empty --ttl 24h | tee build.out
|
|
189
211
|
grep -F '✓ preview' build.out | grep -oE 'https://[a-zA-Z0-9.:/_-]+' | tail -1 > build.url || true`;
|
|
190
212
|
// The comment body comes from previewCommentBody() so the CI-written and platform-written
|
|
@@ -227,6 +249,22 @@ ${cpEnv}
|
|
|
227
249
|
- name: Reap the preview
|
|
228
250
|
${cpEnv}
|
|
229
251
|
run: ${cli} preview delete --slug ${slug} --tag pr-\${{ github.event.number }}`;
|
|
252
|
+
// A nested package only deploys when a change could have affected it. The filter is
|
|
253
|
+
// deliberately editable prose, not policy: a workspace package that consumes SIBLING
|
|
254
|
+
// packages should add their paths, or delete the filter to deploy on every merge.
|
|
255
|
+
const pathsFilter = path
|
|
256
|
+
? `
|
|
257
|
+
# Only changes that can affect ${path} deploy it. If this package depends on other
|
|
258
|
+
# directories of the repo (workspace packages, shared config), add their paths here —
|
|
259
|
+
# or remove the filter to build on every merge.
|
|
260
|
+
paths:
|
|
261
|
+
- '${path}/**'
|
|
262
|
+
- '.github/workflows/**'
|
|
263
|
+
- 'package.json'
|
|
264
|
+
- 'pnpm-lock.yaml'
|
|
265
|
+
- 'yarn.lock'
|
|
266
|
+
- 'package-lock.json'`
|
|
267
|
+
: '';
|
|
230
268
|
const releaseNote = release === 'changesets'
|
|
231
269
|
? ` # Release train: the version lives in package.json and only a version PR moves it, so a
|
|
232
270
|
# merge releases ONLY when that version changed. Every merge still updates the test env.`
|
|
@@ -236,7 +274,9 @@ ${cpEnv}
|
|
|
236
274
|
|
|
237
275
|
# Generated by Substrat (substrat init --ci github). The workflow this encodes — one prod
|
|
238
276
|
# channel, previews as the only non-prod environment — is documented at
|
|
239
|
-
# https://substrat.net/guide/environments-and-previews
|
|
277
|
+
# https://substrat.net/guide/environments-and-previews${path
|
|
278
|
+
? `\n#\n# Monorepo: this deploys the '${slug}' vertical from ${path}/ (dependencies still\n# install at the repo root — the workspace lockfile lives there).`
|
|
279
|
+
: ''}
|
|
240
280
|
#
|
|
241
281
|
# Optional repository variables (Settings → Secrets and variables → Actions → Variables):
|
|
242
282
|
# SUBSTRAT_TEST_SCOPE_ID a long-lived scope rebound to every merge (the test env)
|
|
@@ -244,11 +284,11 @@ ${cpEnv}
|
|
|
244
284
|
|
|
245
285
|
on:
|
|
246
286
|
push:
|
|
247
|
-
branches: [${branch}]
|
|
287
|
+
branches: [${branch}]${pathsFilter}
|
|
248
288
|
# Per-PR previews: open/update a PR → a preview instance running the PR's code against a
|
|
249
289
|
# FORK of prod on its own URL; close the PR → it is reaped (the TTL is the GC backstop).
|
|
250
290
|
pull_request:
|
|
251
|
-
types: [opened, synchronize, reopened, closed]
|
|
291
|
+
types: [opened, synchronize, reopened, closed]${pathsFilter}
|
|
252
292
|
|
|
253
293
|
jobs:
|
|
254
294
|
deploy:
|
package/dist/ci.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci.js","sourceRoot":"","sources":["../src/ci.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG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;IAClF,MAAM,WAAW,GAAG,IAAI;QACtB,CAAC,CAAC;qCAC+B,IAAI;;;;WAI9B,IAAI;;;;;4BAKa;QACxB,CAAC,CAAC,EAAE,CAAC;IAEP,MAAM,WAAW,GAAG,OAAO,KAAK,YAAY;QAC1C,CAAC,CAAC;6FACuF;QACzF,CAAC,CAAC,qCAAqC,MAAM;8EAC6B,CAAC;IAE7E,OAAO;;;;wDAKL,IAAI;QACF,CAAC,CAAC,sCAAsC,IAAI,mBAAmB,IAAI,0FAA0F;QAC7J,CAAC,CAAC,EACN;;;;;;;;iBAQe,MAAM,IAAI,WAAW;;;;oDAIc,WAAW;;;;EAI7D,WAAW;;;;EAIX,KAAK,CAAC,OAAO,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;EAC/C,QAAQ;EACR,OAAO;;;;;;;;;;;EAWP,KAAK,EAAE;EACP,YAAY;EACZ,WAAW;;EAEX,OAAO;CACR,CAAC;AACF,CAAC"}
|
|
@@ -140,4 +140,60 @@ export declare const setEntitlementsPayload: z.ZodObject<{
|
|
|
140
140
|
export type SetEntitlementsPayload = z.infer<typeof setEntitlementsPayload>;
|
|
141
141
|
/** The well-known intent kind string for `setEntitlementsPayload`. */
|
|
142
142
|
export declare const SET_ENTITLEMENTS_KIND = "set-entitlements";
|
|
143
|
+
/**
|
|
144
|
+
* The `connector:<provider>` intent family (#574 phase 3) — a CP-less host routing one
|
|
145
|
+
* connector delivery onto the platform-requests surface instead of running it in-process.
|
|
146
|
+
* A hosted vertical cannot reach the connection directory, so its host journals the
|
|
147
|
+
* delivery as routed and enqueues this intent; the platform's drain executes the same
|
|
148
|
+
* connector handler a self-host runs, with the directory, sealed credentials and egress
|
|
149
|
+
* it already holds, and writes back through the vertical's `/internal/connector-*` seam.
|
|
150
|
+
*
|
|
151
|
+
* The kind is a FAMILY, not one string: the suffix names the provider so the platform
|
|
152
|
+
* registers one handler per connector it operates (`connector:scrive`), exactly as it
|
|
153
|
+
* registers per-provider sweepers.
|
|
154
|
+
*/
|
|
155
|
+
export declare const CONNECTOR_DISPATCH_KIND_PREFIX = "connector:";
|
|
156
|
+
/** The intent kind for one provider's routed dispatch: `connector:scrive`. */
|
|
157
|
+
export declare const connectorDispatchKind: (provider: string) => string;
|
|
158
|
+
/**
|
|
159
|
+
* The routed delivery itself. The event is embedded FAT (the whole spine envelope, not an
|
|
160
|
+
* id): the platform's handler needs everything the in-process handler would have been
|
|
161
|
+
* handed, and the vertical's outbox is not reachable from the drain without a second hop.
|
|
162
|
+
* The drain re-parses it (`domainEvent`) and refuses an event whose kernel-stamped
|
|
163
|
+
* tenant/scope disagree with the drained scope's — the intent rides that scope's own
|
|
164
|
+
* spine table, so those are the proven values. `executorId` is the vertical-side
|
|
165
|
+
* registration the delivery was journaled under, carried for attribution/debugging.
|
|
166
|
+
*/
|
|
167
|
+
export declare const connectorDispatchPayload: z.ZodObject<{
|
|
168
|
+
executorId: z.ZodString;
|
|
169
|
+
event: z.ZodObject<{
|
|
170
|
+
id: z.core.$ZodBranded<z.ZodString, "EventId", "out">;
|
|
171
|
+
type: z.ZodString;
|
|
172
|
+
schemaVersion: z.ZodNumber;
|
|
173
|
+
occurredAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
|
|
174
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
175
|
+
scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
176
|
+
actor: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">, z.ZodObject<{
|
|
177
|
+
system: z.core.$ZodBranded<z.ZodString, "ModuleId", "out">;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
connection: z.ZodString;
|
|
180
|
+
}, z.core.$strip>]>;
|
|
181
|
+
entity: z.ZodObject<{
|
|
182
|
+
entityType: z.ZodString;
|
|
183
|
+
entityId: z.ZodString;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
piiClass: z.ZodEnum<{
|
|
186
|
+
direct: "direct";
|
|
187
|
+
none: "none";
|
|
188
|
+
pseudonymous: "pseudonymous";
|
|
189
|
+
}>;
|
|
190
|
+
subjectId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "DataSubjectId", "out">>;
|
|
191
|
+
authorization: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
192
|
+
permission: z.core.$ZodBranded<z.ZodString, "PermissionKey", "out">;
|
|
193
|
+
grant: z.ZodOptional<z.ZodString>;
|
|
194
|
+
}, z.core.$strip>>>;
|
|
195
|
+
payload: z.ZodUnknown;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
export type ConnectorDispatchPayload = z.infer<typeof connectorDispatchPayload>;
|
|
143
199
|
//# sourceMappingURL=platform-request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-request.d.ts","sourceRoot":"","sources":["../src/platform-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;GAMG;AAEH,eAAO,MAAM,qBAAqB;;;;EAAwC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,+FAA+F;AAC/F,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;iBAW1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;iBA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ACtE,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,8BAA8B,eAAe,CAAC;AAE3D,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,aAAc,MAAM,KAAG,MACT,CAAC;AAEjD;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/platform-request.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { instant, platformRequestId, scopeId } from './ids.js';
|
|
3
|
-
import { actor } from './events.js';
|
|
3
|
+
import { actor, domainEvent } from './events.js';
|
|
4
4
|
/**
|
|
5
5
|
* Platform intents (docs/design/platform-intents.md) — how a sandbox-clean vertical asks the
|
|
6
6
|
* platform to perform a privileged action (provision a sibling scope, request quota, …) without
|
|
@@ -117,4 +117,32 @@ export const setEntitlementsPayload = z.object({
|
|
|
117
117
|
});
|
|
118
118
|
/** The well-known intent kind string for `setEntitlementsPayload`. */
|
|
119
119
|
export const SET_ENTITLEMENTS_KIND = 'set-entitlements';
|
|
120
|
+
/**
|
|
121
|
+
* The `connector:<provider>` intent family (#574 phase 3) — a CP-less host routing one
|
|
122
|
+
* connector delivery onto the platform-requests surface instead of running it in-process.
|
|
123
|
+
* A hosted vertical cannot reach the connection directory, so its host journals the
|
|
124
|
+
* delivery as routed and enqueues this intent; the platform's drain executes the same
|
|
125
|
+
* connector handler a self-host runs, with the directory, sealed credentials and egress
|
|
126
|
+
* it already holds, and writes back through the vertical's `/internal/connector-*` seam.
|
|
127
|
+
*
|
|
128
|
+
* The kind is a FAMILY, not one string: the suffix names the provider so the platform
|
|
129
|
+
* registers one handler per connector it operates (`connector:scrive`), exactly as it
|
|
130
|
+
* registers per-provider sweepers.
|
|
131
|
+
*/
|
|
132
|
+
export const CONNECTOR_DISPATCH_KIND_PREFIX = 'connector:';
|
|
133
|
+
/** The intent kind for one provider's routed dispatch: `connector:scrive`. */
|
|
134
|
+
export const connectorDispatchKind = (provider) => `${CONNECTOR_DISPATCH_KIND_PREFIX}${provider}`;
|
|
135
|
+
/**
|
|
136
|
+
* The routed delivery itself. The event is embedded FAT (the whole spine envelope, not an
|
|
137
|
+
* id): the platform's handler needs everything the in-process handler would have been
|
|
138
|
+
* handed, and the vertical's outbox is not reachable from the drain without a second hop.
|
|
139
|
+
* The drain re-parses it (`domainEvent`) and refuses an event whose kernel-stamped
|
|
140
|
+
* tenant/scope disagree with the drained scope's — the intent rides that scope's own
|
|
141
|
+
* spine table, so those are the proven values. `executorId` is the vertical-side
|
|
142
|
+
* registration the delivery was journaled under, carried for attribution/debugging.
|
|
143
|
+
*/
|
|
144
|
+
export const connectorDispatchPayload = z.object({
|
|
145
|
+
executorId: z.string().min(1),
|
|
146
|
+
event: domainEvent,
|
|
147
|
+
});
|
|
120
148
|
//# sourceMappingURL=platform-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-request.js","sourceRoot":"","sources":["../src/platform-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"platform-request.js","sourceRoot":"","sources":["../src/platform-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;;GAMG;AAEH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E,WAAW;CACnB,CAAC,CAAC"}
|
package/dist/registry.d.ts
CHANGED
|
@@ -136,6 +136,24 @@ export declare const AUTO_ADMISSION_NOTE = "auto-admitted: private vertical";
|
|
|
136
136
|
* comparison here, where today it is a person remembering to look — and per §4 of the
|
|
137
137
|
* plan, a checkpoint that can be skipped is not a checkpoint.
|
|
138
138
|
*/
|
|
139
|
+
/**
|
|
140
|
+
* Where ONE pushed version's code came from — self-reported by the CLI at push time.
|
|
141
|
+
* `git` is a push from CI (the generated deploy workflow runs `substrat push` inside
|
|
142
|
+
* GitHub Actions, so the CLI detects the runner and attaches the repo/commit/ref it
|
|
143
|
+
* built from); `cli` is a person's terminal. Informational labeling, never authority:
|
|
144
|
+
* both transports are the same authenticated push, and nothing gates on this — it
|
|
145
|
+
* exists so the dashboard can answer "where did this code come from".
|
|
146
|
+
*/
|
|
147
|
+
export declare const versionOrigin: z.ZodObject<{
|
|
148
|
+
source: z.ZodEnum<{
|
|
149
|
+
cli: "cli";
|
|
150
|
+
git: "git";
|
|
151
|
+
}>;
|
|
152
|
+
gitRepo: z.ZodOptional<z.ZodString>;
|
|
153
|
+
gitCommit: z.ZodOptional<z.ZodString>;
|
|
154
|
+
gitRef: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
export type VersionOrigin = z.infer<typeof versionOrigin>;
|
|
139
157
|
export declare const verticalVersion: z.ZodObject<{
|
|
140
158
|
id: z.ZodString;
|
|
141
159
|
verticalSlug: z.ZodString;
|
|
@@ -150,6 +168,15 @@ export declare const verticalVersion: z.ZodObject<{
|
|
|
150
168
|
rejected: "rejected";
|
|
151
169
|
}>;
|
|
152
170
|
admissionNote: z.ZodNullable<z.ZodString>;
|
|
171
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
172
|
+
source: z.ZodEnum<{
|
|
173
|
+
cli: "cli";
|
|
174
|
+
git: "git";
|
|
175
|
+
}>;
|
|
176
|
+
gitRepo: z.ZodOptional<z.ZodString>;
|
|
177
|
+
gitCommit: z.ZodOptional<z.ZodString>;
|
|
178
|
+
gitRef: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, z.core.$strip>>>;
|
|
153
180
|
createdAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
|
|
154
181
|
}, z.core.$strip>;
|
|
155
182
|
export type VerticalVersion = z.infer<typeof verticalVersion>;
|
|
@@ -161,6 +188,15 @@ export declare const publishVersionInput: z.ZodObject<{
|
|
|
161
188
|
permissionDigest: z.ZodString;
|
|
162
189
|
migrationDigest: z.ZodString;
|
|
163
190
|
deploymentRef: z.ZodNullable<z.ZodString>;
|
|
191
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
192
|
+
source: z.ZodEnum<{
|
|
193
|
+
cli: "cli";
|
|
194
|
+
git: "git";
|
|
195
|
+
}>;
|
|
196
|
+
gitRepo: z.ZodOptional<z.ZodString>;
|
|
197
|
+
gitCommit: z.ZodOptional<z.ZodString>;
|
|
198
|
+
gitRef: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>>>;
|
|
164
200
|
manifestJson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
201
|
}, z.core.$strip>;
|
|
166
202
|
export type PublishVersionInput = z.infer<typeof publishVersionInput>;
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;;GAUG;AAEH,yFAAyF;AACzF,eAAO,MAAM,cAAc;;;;EAAoC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuHnB,CAAC;AACH,MAA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YG;AACH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/registry.js
CHANGED
|
@@ -183,6 +183,22 @@ export const AUTO_ADMISSION_NOTE = 'auto-admitted: private vertical';
|
|
|
183
183
|
* comparison here, where today it is a person remembering to look — and per §4 of the
|
|
184
184
|
* plan, a checkpoint that can be skipped is not a checkpoint.
|
|
185
185
|
*/
|
|
186
|
+
/**
|
|
187
|
+
* Where ONE pushed version's code came from — self-reported by the CLI at push time.
|
|
188
|
+
* `git` is a push from CI (the generated deploy workflow runs `substrat push` inside
|
|
189
|
+
* GitHub Actions, so the CLI detects the runner and attaches the repo/commit/ref it
|
|
190
|
+
* built from); `cli` is a person's terminal. Informational labeling, never authority:
|
|
191
|
+
* both transports are the same authenticated push, and nothing gates on this — it
|
|
192
|
+
* exists so the dashboard can answer "where did this code come from".
|
|
193
|
+
*/
|
|
194
|
+
export const versionOrigin = z.object({
|
|
195
|
+
source: z.enum(['git', 'cli']),
|
|
196
|
+
/** `owner/repo`, when pushed from GitHub Actions. */
|
|
197
|
+
gitRepo: z.string().min(1).optional(),
|
|
198
|
+
gitCommit: z.string().min(1).optional(),
|
|
199
|
+
/** The branch/tag the workflow ran for (`GITHUB_REF_NAME`). */
|
|
200
|
+
gitRef: z.string().min(1).optional(),
|
|
201
|
+
});
|
|
186
202
|
export const verticalVersion = z.object({
|
|
187
203
|
id: z.string().min(1), // ULID
|
|
188
204
|
verticalSlug,
|
|
@@ -195,6 +211,8 @@ export const verticalVersion = z.object({
|
|
|
195
211
|
admission: admissionStatus,
|
|
196
212
|
/** Why it was rejected, when it was. Null otherwise. */
|
|
197
213
|
admissionNote: z.string().nullable(),
|
|
214
|
+
/** Null/absent = pushed before origin tracking (or by an old CLI). */
|
|
215
|
+
origin: versionOrigin.nullish(),
|
|
198
216
|
createdAt: instant,
|
|
199
217
|
});
|
|
200
218
|
export const publishVersionInput = verticalVersion
|
|
@@ -206,6 +224,7 @@ export const publishVersionInput = verticalVersion
|
|
|
206
224
|
permissionDigest: true,
|
|
207
225
|
migrationDigest: true,
|
|
208
226
|
deploymentRef: true,
|
|
227
|
+
origin: true,
|
|
209
228
|
})
|
|
210
229
|
.extend({
|
|
211
230
|
/**
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;;;;;;GAUG;AAEH,yFAAyF;AACzF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAGhE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,YAAY,EAAE,iFAAiF;IACrG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,MAAM,EAAE,cAAc;IACtB;;;;;OAKG;IACH,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAAE;IAChC;;;;;;OAMG;IACH,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IACvC;;;;;;OAMG;IACH,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,aAA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E,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,6BAA6B;IACpD,YAAY;IACZ,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,gFAAgF;IAChF,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,EAAE,EAAE,OAAO;CACZ,CAAC,CAAC;AAGH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "Substrat kernel contract schemas — Zod is the source of truth (master plan D-22); OAS/JSON Schema are emitted artifacts",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|