@crossdelta/platform-sdk 0.19.7 → 0.19.8
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/cli.mjs
CHANGED
|
@@ -32,7 +32,7 @@ ${r}
|
|
|
32
32
|
* Re-exports all event contracts for convenient importing.
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
${r}
|
|
36
36
|
`,"utf-8"),!0;let o=He(e,"utf-8").split(`
|
|
37
37
|
`);if(o.some(i=>i.trim()===r))return!1;let s=o.findLastIndex(i=>i.startsWith("export"));return s>=0?o.splice(s+1,0,r):o.push(r),X(e,o.join(`
|
|
38
38
|
`),"utf-8"),!0},na=e=>{if(!z(e))return!1;let t=He(e,"utf-8"),r="export * from './events'";if(t.split(`
|
|
@@ -561,10 +561,10 @@ ${q.bold(`cd ${e} && ${t} run start:dev`)}`).breakLine().log("Happy coding! \u{1
|
|
|
561
561
|
`),await Pt(t),await Sr(e),await wr(e),await Tr(t,e),t.isRestarting=!1)},300),s=async()=>{t.isShuttingDown||(console.log(`
|
|
562
562
|
\u{1F6D1} Shutting down...`),await Pt(t),process.exit(T.SUCCESS))};process.removeAllListeners("SIGINT"),process.removeAllListeners("SIGTERM"),process.on("SIGINT",s),process.on("SIGTERM",s);let i;try{await r(),Hr(e,o),i=Ps(e),console.log(`
|
|
563
563
|
\u{1F440} Watching for changes...`),console.log(` Press Ctrl+C twice to exit (first stops Turbo, second triggers cleanup)
|
|
564
|
-
`)}catch(a){await i?.(),await Pt(t),A(a)}});import As from"chalk";import{Command as Qm}from"commander";import{existsSync as Hm,readFileSync as Gm,writeFileSync as Bm}from"fs";import Es from"path";import Er from"chalk";import{Command as
|
|
564
|
+
`)}catch(a){await i?.(),await Pt(t),A(a)}});import As from"chalk";import{Command as Qm}from"commander";import{existsSync as Hm,readFileSync as Gm,writeFileSync as Bm}from"fs";import Um from"os";import Es from"path";import Er from"chalk";import{Command as zm}from"commander";var{name:Vm,publishConfig:Km}=I,Jm=Km?.registry,qm=Vm?.split("/")[0],SS=new zm("token:set").description(Er.bold("Set a registry auth token in a .npmrc file")).argument("<token>","Authentication token (e.g. GitHub or npm token)").option("--scope <scope>","Package scope (e.g. @my-workspace)",qm).option("--registry <registry>","Registry URL",Jm).option("--local","Write token to a local .npmrc in the current directory",!1).option("--force","Force overwrite existing token if already present",!1).action((e,t)=>$s(e,t.scope||"",t.registry||"",t.local,t.force)).addHelpText("after",()=>`${Er.cyan(`
|
|
565
565
|
Example:`)}
|
|
566
566
|
${Er.bold("pf token set <token> --scope @my-workspace --registry https://npm.pkg.github.com")}
|
|
567
|
-
`),Ym=e=>e?Es.join(process.cwd(),".npmrc"):Es.join(
|
|
567
|
+
`),Ym=e=>e?Es.join(process.cwd(),".npmrc"):Es.join(Um.homedir(),".npmrc"),Zm=(e,t,r)=>{let n=new URL(r).host;return t?`${t}:registry=https://${n}
|
|
568
568
|
//${n}/:_authToken=${e}`:`//${n}/:_authToken=${e}`},Xm=e=>Hm(e)?Gm(e,"utf8"):"",$r=(e,t)=>Bm(e,t),$s=(e,t,r,n=!1,o=!1)=>{let s=Ym(n),i=Zm(e,t,r),a=new URL(r).host,c=Xm(s),l=new RegExp(`//${a}/:_authToken=\\S+`);if(!c){$r(s,`${i}
|
|
569
569
|
`),d.success(`Created new .npmrc and set token for ${a}`);return}if(l.test(c)){if(!o){d.warn(`Token for ${a} already exists in ${s}. Use --force to overwrite.`);return}c=c.replace(l,i),$r(s,c),d.success(`Overwrote existing token for ${a} in ${s}`);return}c+=`
|
|
570
570
|
${i}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"pulumi": "pulumi"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@crossdelta/cloudevents": "^0.
|
|
11
|
-
"@crossdelta/infrastructure": "^0.
|
|
10
|
+
"@crossdelta/cloudevents": "^0.7.2",
|
|
11
|
+
"@crossdelta/infrastructure": "^0.7.2",
|
|
12
12
|
"{{scope}}/contracts": "workspace:*",
|
|
13
13
|
"@pulumi/digitalocean": "^4.55.0",
|
|
14
14
|
"@pulumi/kubernetes": "^4.21.0",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"clean": "rm -rf dist"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@crossdelta/cloudevents": "^0.
|
|
23
|
-
"@crossdelta/infrastructure": "^0.
|
|
22
|
+
"@crossdelta/cloudevents": "^0.7.2",
|
|
23
|
+
"@crossdelta/infrastructure": "^0.7.2",
|
|
24
24
|
"zod": "^4.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
package/dist/facade.js
CHANGED
|
@@ -967,7 +967,8 @@ var addDomainToEventsIndex = (eventsIndexPath, domain) => {
|
|
|
967
967
|
*/
|
|
968
968
|
|
|
969
969
|
`;
|
|
970
|
-
(0, import_node_fs4.writeFileSync)(eventsIndexPath, header
|
|
970
|
+
(0, import_node_fs4.writeFileSync)(eventsIndexPath, `${header}${exportLine}
|
|
971
|
+
`, "utf-8");
|
|
971
972
|
return true;
|
|
972
973
|
}
|
|
973
974
|
const content = (0, import_node_fs4.readFileSync)(eventsIndexPath, "utf-8");
|
package/dist/facade.mjs
CHANGED
|
@@ -899,7 +899,8 @@ var addDomainToEventsIndex = (eventsIndexPath, domain) => {
|
|
|
899
899
|
*/
|
|
900
900
|
|
|
901
901
|
`;
|
|
902
|
-
writeFileSync3(eventsIndexPath, header
|
|
902
|
+
writeFileSync3(eventsIndexPath, `${header}${exportLine}
|
|
903
|
+
`, "utf-8");
|
|
903
904
|
return true;
|
|
904
905
|
}
|
|
905
906
|
const content = readFileSync2(eventsIndexPath, "utf-8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossdelta/platform-sdk",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.8",
|
|
4
4
|
"description": "Platform toolkit for event-driven microservices — keeping code and infrastructure in lockstep.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@ai-sdk/anthropic": "^2.0.53",
|
|
119
119
|
"@ai-sdk/openai": "^2.0.79",
|
|
120
120
|
"@angular-devkit/core": "^21.0.0",
|
|
121
|
-
"@crossdelta/flowcore": "0.1.
|
|
121
|
+
"@crossdelta/flowcore": "0.1.1",
|
|
122
122
|
"@faker-js/faker": "^9.8.0",
|
|
123
123
|
"@inquirer/prompts": "^7.5.0",
|
|
124
124
|
"@listr2/prompt-adapter-enquirer": "^2.0.15",
|
|
@@ -143,8 +143,8 @@
|
|
|
143
143
|
"zod": "^4.0.0"
|
|
144
144
|
},
|
|
145
145
|
"peerDependencies": {
|
|
146
|
-
"@crossdelta/cloudevents": "0.
|
|
147
|
-
"@crossdelta/infrastructure": "0.
|
|
146
|
+
"@crossdelta/cloudevents": "0.7.2",
|
|
147
|
+
"@crossdelta/infrastructure": "0.7.2",
|
|
148
148
|
"@nestjs/schematics": "^11.0.5",
|
|
149
149
|
"turbo": "^2.0.0"
|
|
150
150
|
},
|