@topolo/cli 0.1.19 → 0.1.21
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/index.js +18 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4189,18 +4189,20 @@ function scaffoldFiles(options) {
|
|
|
4189
4189
|
}
|
|
4190
4190
|
);
|
|
4191
4191
|
if (options.api && application.serviceId) {
|
|
4192
|
-
files.push(
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4192
|
+
files.push(
|
|
4193
|
+
{
|
|
4194
|
+
path: `PlatformApplications/TopoloAuth/catalog/service-manifests/${application.serviceId}.json`,
|
|
4195
|
+
purpose: "Auth service manifest for first-party permissions, role bundles, and API-key scopes.",
|
|
4196
|
+
requiredSignals: [
|
|
4197
|
+
"serviceId matches the generated Worker service id",
|
|
4198
|
+
"permissions, role bundles, and API-key scopes exist before the app is catalog-visible",
|
|
4199
|
+
"systems metadata maps the service back to the generated TopoloDocs entries"
|
|
4200
|
+
],
|
|
4201
|
+
content: serviceManifestJson(application, {
|
|
4202
|
+
tenancy: options.payload.tenancy
|
|
4203
|
+
})
|
|
4204
|
+
}
|
|
4205
|
+
);
|
|
4204
4206
|
}
|
|
4205
4207
|
} else {
|
|
4206
4208
|
files.push(
|
|
@@ -4441,6 +4443,7 @@ function topoloPackageVersion(packageName, target) {
|
|
|
4441
4443
|
}
|
|
4442
4444
|
function readme(application, target, options) {
|
|
4443
4445
|
const displayName = toTitle(application.name);
|
|
4446
|
+
const slug = toSlug(application.id);
|
|
4444
4447
|
const targetLabel = target === "platform" ? options.portfolio === "personal" ? "first-party Topolo personal application" : "first-party Topolo platform application" : options.audience === "personal" ? "third-party Topolo personal application" : "third-party Topolo business application";
|
|
4445
4448
|
const lines = [
|
|
4446
4449
|
`# ${displayName}`,
|
|
@@ -4488,7 +4491,7 @@ function readme(application, target, options) {
|
|
|
4488
4491
|
"",
|
|
4489
4492
|
"## Platform Registration",
|
|
4490
4493
|
"",
|
|
4491
|
-
|
|
4494
|
+
`This scaffold includes CloudControl metadata, TopoloDocs system coverage, and a Topolo app conformance workflow. Run \`topolo platform apps scaffold ${slug} --write --provision\` with an authenticated platform-admin session to register the app through Topolo Developers and project the service into Auth.`
|
|
4492
4495
|
);
|
|
4493
4496
|
} else {
|
|
4494
4497
|
lines.push(
|
|
@@ -5614,7 +5617,7 @@ function internalDocs(application, options) {
|
|
|
5614
5617
|
"",
|
|
5615
5618
|
"## Failure Modes",
|
|
5616
5619
|
"",
|
|
5617
|
-
"-
|
|
5620
|
+
"- Developers provisioning drifts from the generated Worker `SERVICE_ID`.",
|
|
5618
5621
|
"- CloudControl metadata does not match the eventual Cloudflare project or route.",
|
|
5619
5622
|
"- linked Topolo packages resolve a second React runtime and the browser shell renders blank instead of mounting the shared surfaces.",
|
|
5620
5623
|
`- ${boundaryFailureText}`,
|
|
@@ -5625,6 +5628,7 @@ function internalDocs(application, options) {
|
|
|
5625
5628
|
"- run `topolo apps audit <app> --local --repo-root /Users/ashes/Projects/topolo --fail-on needs_review --json` after SDK catalog registration",
|
|
5626
5629
|
"- inspect `topolo.cloudcontrol.json` before deployment changes",
|
|
5627
5630
|
...options.api && application.serviceId ? [`- inspect \`PlatformApplications/TopoloAuth/catalog/service-manifests/${application.serviceId}.json\` when permission grants fail`] : [],
|
|
5631
|
+
...options.api && application.serviceId ? [`- re-run \`topolo platform apps scaffold ${slug} --write --provision\` when embedded app login, launcher visibility, or callback origins drift`] : [],
|
|
5628
5632
|
"",
|
|
5629
5633
|
"## Change Log / Verification",
|
|
5630
5634
|
"",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topolo/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Command-line interface for Topolo developers, operators, and agents, with internal first-party scaffolding available under the topolo platform namespace.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|