@powerhousedao/ph-cli 6.2.3-dev.97 → 6.2.3-dev.98

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.
Files changed (27) hide show
  1. package/dist/build--EI1OAjL.mjs +4 -0
  2. package/dist/{build-3RaSOgNk.mjs → build-BlubqQME.mjs} +4 -4
  3. package/dist/{build-3RaSOgNk.mjs.map → build-BlubqQME.mjs.map} +1 -1
  4. package/dist/{check-33uP64kE.mjs → check-CzNvklyE.mjs} +4 -4
  5. package/dist/{check-33uP64kE.mjs.map → check-CzNvklyE.mjs.map} +1 -1
  6. package/dist/{check-B9IwyWZ8.mjs → check-DQV3IopN.mjs} +3 -3
  7. package/dist/cli.mjs +3 -3
  8. package/dist/{connect-build-QmjuPPIg.mjs → connect-build-DEpfBUSe.mjs} +4 -4
  9. package/dist/{connect-build-QmjuPPIg.mjs.map → connect-build-DEpfBUSe.mjs.map} +1 -1
  10. package/dist/definitions-worker.mjs +1 -1
  11. package/dist/{get-version-b84F8Pa8.mjs → get-version-JUaeclcJ.mjs} +4 -4
  12. package/dist/{get-version-b84F8Pa8.mjs.map → get-version-JUaeclcJ.mjs.map} +1 -1
  13. package/dist/{init-DV385Z92.mjs → init-BjwbWklG.mjs} +11 -6
  14. package/dist/init-BjwbWklG.mjs.map +1 -0
  15. package/dist/{mcp-GcFTEzbh.mjs → mcp-D9ZXXoSG.mjs} +4 -4
  16. package/dist/{mcp-GcFTEzbh.mjs.map → mcp-D9ZXXoSG.mjs.map} +1 -1
  17. package/dist/ph-cli-commands-p8F2fENt.mjs +4 -0
  18. package/dist/{ph-cli-commands-FHSAtJu3.mjs → ph-cli-commands-racSfAU6.mjs} +9 -9
  19. package/dist/{ph-cli-commands-FHSAtJu3.mjs.map → ph-cli-commands-racSfAU6.mjs.map} +1 -1
  20. package/dist/runners/connect.mjs +1 -1
  21. package/dist/runners/switchboard.mjs +1 -1
  22. package/dist/{verify-BRwHZaDj.mjs → verify-DmO_x14L.mjs} +4 -4
  23. package/dist/{verify-BRwHZaDj.mjs.map → verify-DmO_x14L.mjs.map} +1 -1
  24. package/package.json +16 -16
  25. package/dist/build-Ogg4fpe2.mjs +0 -4
  26. package/dist/init-DV385Z92.mjs.map +0 -1
  27. package/dist/ph-cli-commands-D0LiPnEg.mjs +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"verify-BRwHZaDj.mjs","sources":["../src/services/release/verify.ts"],"sourcesContent":["import { getVersion } from \"../../get-version.js\";\nimport {\n type ApprovalRead,\n decisionWithoutApproval,\n type ReleaseDecision,\n verifyReleaseApproval,\n} from \"./approval.js\";\nimport { publishedFiles, readReleaseApproval, revisionFiles } from \"./files.js\";\nimport { packedDigests, packRelease, type PackedRelease } from \"./pack.js\";\nimport type { FileDigest } from \"./revision.js\";\n\n/**\n * Compares the package as it is now with its release approval: the files\n * the revision reads, with the output directory and exclusions the approval\n * records, and what `npm pack` publishes, or `published` when the caller\n * already packed it. Throws when either cannot be read.\n */\nexport function verifyRelease(\n packageRoot: string,\n read: ApprovalRead = readReleaseApproval(packageRoot),\n published?: readonly FileDigest[],\n): ReleaseDecision {\n if (read.kind !== \"found\") return decisionWithoutApproval(read);\n const { approval } = read;\n return verifyReleaseApproval(approval, {\n phCliVersion: getVersion(),\n files: revisionFiles(packageRoot, [\n approval.outDir,\n ...approval.packageRevision.excluded,\n ]),\n publishedFiles: published ?? publishedFiles(packageRoot),\n });\n}\n\nconst HEADLINES: Readonly<Record<ReleaseDecision[\"decision\"], string>> = {\n approved: \"the release approval matches this package\",\n missing: \"this package has no release approval\",\n unreadable: \"the release approval cannot be read\",\n stale: \"the release approval does not match this package\",\n refused: \"the release approval records a release check that did not pass\",\n};\n\n/** The decision and each reason on its own line. */\nexport function renderReleaseDecision(decision: ReleaseDecision): string {\n return [\n `${decision.decision}: ${HEADLINES[decision.decision]}`,\n ...decision.reasons.map((reason) => ` - ${reason}`),\n ].join(\"\\n\");\n}\n\n/**\n * Whether `ph publish` goes on. With `--require-approval`, `packed` is the\n * tarball the approval was checked against: publish that file, and call its\n * `dispose` once done.\n */\nexport type PublishCheck =\n | { readonly proceed: false }\n | { readonly proceed: true; readonly packed?: PackedRelease };\n\n/**\n * Checks the release approval before `ph publish` resolves a registry.\n * Without an approval file and without `required`, does nothing, as before\n * approvals existed. Otherwise a decision other than approved is a warning,\n * or with `required` a refusal.\n */\nexport function checkApprovalBeforePublish(\n packageRoot: string,\n required: boolean,\n): PublishCheck {\n const read = readReleaseApproval(packageRoot);\n if (read.kind === \"missing\" && !required) return { proceed: true };\n let text: string;\n let packed: PackedRelease | undefined;\n let approved = false;\n try {\n if (required && read.kind === \"found\") packed = packRelease(packageRoot);\n const decision = verifyRelease(\n packageRoot,\n read,\n packed && packedDigests(packed),\n );\n approved = decision.decision === \"approved\";\n text = renderReleaseDecision(decision);\n } catch (error) {\n text = `the release approval could not be checked: ${error instanceof Error ? error.message : String(error)}`;\n }\n if (approved) {\n console.log(`✔ ${text}`);\n return { proceed: true, packed };\n }\n packed?.dispose();\n if (required) {\n console.error(\n `✘ ${text}\\nph publish --require-approval publishes only an approved package. Run ph build --release, then publish again.`,\n );\n return { proceed: false };\n }\n console.warn(\n `⚠ ${text}\\nPublishing anyway. Run ph build --release to approve this package, or pass --require-approval to stop here instead.`,\n );\n return { proceed: true };\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAiBA,SAAgB,cACd,aACA,OAAqB,oBAAoB,WAAW,GACpD,WACiB;CACjB,IAAI,KAAK,SAAS,SAAS,OAAO,wBAAwB,IAAI;CAC9D,MAAM,EAAE,aAAa;CACrB,OAAO,sBAAsB,UAAU;EACrC,cAAc,WAAW;EACzB,OAAO,cAAc,aAAa,CAChC,SAAS,QACT,GAAG,SAAS,gBAAgB,QAC9B,CAAC;EACD,gBAAgB,aAAa,eAAe,WAAW;CACzD,CAAC;AACH;AAEA,MAAM,YAAmE;CACvE,UAAU;CACV,SAAS;CACT,YAAY;CACZ,OAAO;CACP,SAAS;AACX;;AAGA,SAAgB,sBAAsB,UAAmC;CACvE,OAAO,CACL,GAAG,SAAS,SAAS,IAAI,UAAU,SAAS,aAC5C,GAAG,SAAS,QAAQ,KAAK,WAAW,OAAO,QAAQ,CACrD,CAAC,CAAC,KAAK,IAAI;AACb;;;;;;;AAiBA,SAAgB,2BACd,aACA,UACc;CACd,MAAM,OAAO,oBAAoB,WAAW;CAC5C,IAAI,KAAK,SAAS,aAAa,CAAC,UAAU,OAAO,EAAE,SAAS,KAAK;CACjE,IAAI;CACJ,IAAI;CACJ,IAAI,WAAW;CACf,IAAI;EACF,IAAI,YAAY,KAAK,SAAS,SAAS,SAAS,YAAY,WAAW;EACvE,MAAM,WAAW,cACf,aACA,MACA,UAAU,cAAc,MAAM,CAChC;EACA,WAAW,SAAS,aAAa;EACjC,OAAO,sBAAsB,QAAQ;CACvC,SAAS,OAAO;EACd,OAAO,8CAA8C,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CAC5G;CACA,IAAI,UAAU;EACZ,QAAQ,IAAI,KAAK,MAAM;EACvB,OAAO;GAAE,SAAS;GAAM;EAAO;CACjC;CACA,QAAQ,QAAQ;CAChB,IAAI,UAAU;EACZ,QAAQ,MACN,KAAK,KAAK,gHACZ;EACA,OAAO,EAAE,SAAS,MAAM;CAC1B;CACA,QAAQ,KACN,KAAK,KAAK,sHACZ;CACA,OAAO,EAAE,SAAS,KAAK;AACzB","debug_id":"86dbd888-7d59-5054-9fdd-8b931f811a3a"}
1
+ {"version":3,"file":"verify-DmO_x14L.mjs","sources":["../src/services/release/verify.ts"],"sourcesContent":["import { getVersion } from \"../../get-version.js\";\nimport {\n type ApprovalRead,\n decisionWithoutApproval,\n type ReleaseDecision,\n verifyReleaseApproval,\n} from \"./approval.js\";\nimport { publishedFiles, readReleaseApproval, revisionFiles } from \"./files.js\";\nimport { packedDigests, packRelease, type PackedRelease } from \"./pack.js\";\nimport type { FileDigest } from \"./revision.js\";\n\n/**\n * Compares the package as it is now with its release approval: the files\n * the revision reads, with the output directory and exclusions the approval\n * records, and what `npm pack` publishes, or `published` when the caller\n * already packed it. Throws when either cannot be read.\n */\nexport function verifyRelease(\n packageRoot: string,\n read: ApprovalRead = readReleaseApproval(packageRoot),\n published?: readonly FileDigest[],\n): ReleaseDecision {\n if (read.kind !== \"found\") return decisionWithoutApproval(read);\n const { approval } = read;\n return verifyReleaseApproval(approval, {\n phCliVersion: getVersion(),\n files: revisionFiles(packageRoot, [\n approval.outDir,\n ...approval.packageRevision.excluded,\n ]),\n publishedFiles: published ?? publishedFiles(packageRoot),\n });\n}\n\nconst HEADLINES: Readonly<Record<ReleaseDecision[\"decision\"], string>> = {\n approved: \"the release approval matches this package\",\n missing: \"this package has no release approval\",\n unreadable: \"the release approval cannot be read\",\n stale: \"the release approval does not match this package\",\n refused: \"the release approval records a release check that did not pass\",\n};\n\n/** The decision and each reason on its own line. */\nexport function renderReleaseDecision(decision: ReleaseDecision): string {\n return [\n `${decision.decision}: ${HEADLINES[decision.decision]}`,\n ...decision.reasons.map((reason) => ` - ${reason}`),\n ].join(\"\\n\");\n}\n\n/**\n * Whether `ph publish` goes on. With `--require-approval`, `packed` is the\n * tarball the approval was checked against: publish that file, and call its\n * `dispose` once done.\n */\nexport type PublishCheck =\n | { readonly proceed: false }\n | { readonly proceed: true; readonly packed?: PackedRelease };\n\n/**\n * Checks the release approval before `ph publish` resolves a registry.\n * Without an approval file and without `required`, does nothing, as before\n * approvals existed. Otherwise a decision other than approved is a warning,\n * or with `required` a refusal.\n */\nexport function checkApprovalBeforePublish(\n packageRoot: string,\n required: boolean,\n): PublishCheck {\n const read = readReleaseApproval(packageRoot);\n if (read.kind === \"missing\" && !required) return { proceed: true };\n let text: string;\n let packed: PackedRelease | undefined;\n let approved = false;\n try {\n if (required && read.kind === \"found\") packed = packRelease(packageRoot);\n const decision = verifyRelease(\n packageRoot,\n read,\n packed && packedDigests(packed),\n );\n approved = decision.decision === \"approved\";\n text = renderReleaseDecision(decision);\n } catch (error) {\n text = `the release approval could not be checked: ${error instanceof Error ? error.message : String(error)}`;\n }\n if (approved) {\n console.log(`✔ ${text}`);\n return { proceed: true, packed };\n }\n packed?.dispose();\n if (required) {\n console.error(\n `✘ ${text}\\nph publish --require-approval publishes only an approved package. Run ph build --release, then publish again.`,\n );\n return { proceed: false };\n }\n console.warn(\n `⚠ ${text}\\nPublishing anyway. Run ph build --release to approve this package, or pass --require-approval to stop here instead.`,\n );\n return { proceed: true };\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAiBA,SAAgB,cACd,aACA,OAAqB,oBAAoB,WAAW,GACpD,WACiB;CACjB,IAAI,KAAK,SAAS,SAAS,OAAO,wBAAwB,IAAI;CAC9D,MAAM,EAAE,aAAa;CACrB,OAAO,sBAAsB,UAAU;EACrC,cAAc,WAAW;EACzB,OAAO,cAAc,aAAa,CAChC,SAAS,QACT,GAAG,SAAS,gBAAgB,QAC9B,CAAC;EACD,gBAAgB,aAAa,eAAe,WAAW;CACzD,CAAC;AACH;AAEA,MAAM,YAAmE;CACvE,UAAU;CACV,SAAS;CACT,YAAY;CACZ,OAAO;CACP,SAAS;AACX;;AAGA,SAAgB,sBAAsB,UAAmC;CACvE,OAAO,CACL,GAAG,SAAS,SAAS,IAAI,UAAU,SAAS,aAC5C,GAAG,SAAS,QAAQ,KAAK,WAAW,OAAO,QAAQ,CACrD,CAAC,CAAC,KAAK,IAAI;AACb;;;;;;;AAiBA,SAAgB,2BACd,aACA,UACc;CACd,MAAM,OAAO,oBAAoB,WAAW;CAC5C,IAAI,KAAK,SAAS,aAAa,CAAC,UAAU,OAAO,EAAE,SAAS,KAAK;CACjE,IAAI;CACJ,IAAI;CACJ,IAAI,WAAW;CACf,IAAI;EACF,IAAI,YAAY,KAAK,SAAS,SAAS,SAAS,YAAY,WAAW;EACvE,MAAM,WAAW,cACf,aACA,MACA,UAAU,cAAc,MAAM,CAChC;EACA,WAAW,SAAS,aAAa;EACjC,OAAO,sBAAsB,QAAQ;CACvC,SAAS,OAAO;EACd,OAAO,8CAA8C,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CAC5G;CACA,IAAI,UAAU;EACZ,QAAQ,IAAI,KAAK,MAAM;EACvB,OAAO;GAAE,SAAS;GAAM;EAAO;CACjC;CACA,QAAQ,QAAQ;CAChB,IAAI,UAAU;EACZ,QAAQ,MACN,KAAK,KAAK,gHACZ;EACA,OAAO,EAAE,SAAS,MAAM;CAC1B;CACA,QAAQ,KACN,KAAK,KAAK,sHACZ;CACA,OAAO,EAAE,SAAS,KAAK;AACzB","debug_id":"1c19d0b6-42bc-51de-b282-cee94d294e97"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/ph-cli",
3
- "version": "6.2.3-dev.97",
3
+ "version": "6.2.3-dev.98",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
@@ -40,18 +40,18 @@
40
40
  "dependencies": {
41
41
  "@modelcontextprotocol/sdk": "1.29.0",
42
42
  "@originjs/vite-plugin-commonjs": "^1.0.3",
43
- "@powerhousedao/builder-tools": "6.2.3-dev.97",
44
- "@powerhousedao/codegen": "6.2.3-dev.97",
45
- "@powerhousedao/common": "6.2.3-dev.97",
46
- "@powerhousedao/config": "6.2.3-dev.97",
47
- "@powerhousedao/ph-run": "6.2.3-dev.97",
48
- "@powerhousedao/reactor": "6.2.3-dev.97",
49
- "@powerhousedao/reactor-api": "6.2.3-dev.97",
50
- "@powerhousedao/reactor-mcp": "6.2.3-dev.97",
51
- "@powerhousedao/shared": "6.2.3-dev.97",
52
- "@powerhousedao/switchboard": "6.2.3-dev.97",
53
- "@powerhousedao/vetra": "6.2.3-dev.97",
54
- "@renown/sdk": "6.2.3-dev.97",
43
+ "@powerhousedao/builder-tools": "6.2.3-dev.98",
44
+ "@powerhousedao/codegen": "6.2.3-dev.98",
45
+ "@powerhousedao/common": "6.2.3-dev.98",
46
+ "@powerhousedao/config": "6.2.3-dev.98",
47
+ "@powerhousedao/ph-run": "6.2.3-dev.98",
48
+ "@powerhousedao/reactor": "6.2.3-dev.98",
49
+ "@powerhousedao/reactor-api": "6.2.3-dev.98",
50
+ "@powerhousedao/reactor-mcp": "6.2.3-dev.98",
51
+ "@powerhousedao/shared": "6.2.3-dev.98",
52
+ "@powerhousedao/switchboard": "6.2.3-dev.98",
53
+ "@powerhousedao/vetra": "6.2.3-dev.98",
54
+ "@renown/sdk": "6.2.3-dev.98",
55
55
  "@sentry/node-core": "^10.52.0",
56
56
  "@tsdown/css": "0.23.0",
57
57
  "@vercel/nft": "^1.11.0",
@@ -60,7 +60,7 @@
60
60
  "change-case": "5.4.4",
61
61
  "cmd-ts": "0.15.0",
62
62
  "colorette": "2.0.20",
63
- "document-model": "6.2.3-dev.97",
63
+ "document-model": "6.2.3-dev.98",
64
64
  "dotenv": "16.4.7",
65
65
  "enquirer": "2.4.1",
66
66
  "graphql": "^16",
@@ -82,8 +82,8 @@
82
82
  "ts-morph": "27.0.2",
83
83
  "write-package": "7.2.0",
84
84
  "zod": "^4.5.4",
85
- "@powerhousedao/desktop": "6.2.3-dev.97",
86
- "@powerhousedao/host-core": "6.2.3-dev.97"
85
+ "@powerhousedao/desktop": "6.2.3-dev.98",
86
+ "@powerhousedao/host-core": "6.2.3-dev.98"
87
87
  },
88
88
  "scripts": {
89
89
  "tsc": "tsc",
@@ -1,4 +0,0 @@
1
- import { t as runBuild } from "./build-3RaSOgNk.mjs";
2
- export { runBuild };
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="61527587-8189-54e3-8b04-f05827a7d57a")}catch(e){}}();
4
- //# debugId=61527587-8189-54e3-8b04-f05827a7d57a
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-DV385Z92.mjs","sources":["../src/utils/validate-remote-drive.ts","../src/services/init.ts"],"sourcesContent":["import {\n createVetraDocument,\n getVetraDocuments,\n} from \"@powerhousedao/common/utils\";\n\n/**\n * Sets up a remote drive for initialization by validating and creating\n * a Vetra document if needed.\n * Returns true if setup succeeds, false if it should stop execution.\n */\nexport async function setupRemoteDrive(\n remoteDriveUrl: string,\n): Promise<boolean> {\n try {\n // Parse driveId from URL\n const driveId = remoteDriveUrl.split(\"/\").pop();\n\n if (!remoteDriveUrl || remoteDriveUrl.trim() === \"\") {\n console.error(\"❌ Remote drive URL is required\");\n return false;\n }\n\n // Construct GraphQL endpoint from base URL, preserving any subpath\n // prefix (e.g. when the reactor is served behind a proxy at /api/reactor).\n const url = new URL(remoteDriveUrl);\n const basePath = url.pathname.replace(/\\/d\\/[^/]+\\/?$/, \"\");\n const graphqlEndpoint = `${url.protocol}//${url.host}${basePath}/graphql`;\n\n let documents = await getVetraDocuments(graphqlEndpoint, driveId!);\n\n if (documents.length === 0) {\n console.log(\n \"No vetra package document found in the provided drive, creating one...\",\n );\n try {\n await createVetraDocument(graphqlEndpoint, driveId!, \"vetra-package\");\n\n // Re-fetch documents after creation\n documents = await getVetraDocuments(graphqlEndpoint, driveId!);\n\n if (documents.length === 0) {\n console.error(\n \"❌ Failed to create vetra package document in the remote drive\",\n );\n return false;\n }\n\n console.log(\"✅ Vetra package document created successfully\");\n } catch (createError) {\n console.error(\n \"❌ Failed to create vetra package document:\",\n createError,\n );\n return false;\n }\n }\n\n if (documents.length > 1) {\n console.warn(\n \"⚠️ Multiple vetra package documents were found in the provided remote drive, this might be an error in your remote drive\",\n );\n }\n\n const hasGithubUrl = documents.some((doc) => doc.githubUrl);\n\n if (hasGithubUrl) {\n console.error(\n \"❌ The remote drive provided already has been configured with a github url, please use the checkout command instead: ph checkout --remote-drive <remote drive url>\",\n );\n return false;\n }\n\n return true;\n } catch (error) {\n console.error(\"❌ Unable to fetch remote drive info:\", error);\n return false;\n }\n}\n","import { createProject } from \"@powerhousedao/codegen\";\nimport {\n handleMutuallyExclusiveOptions,\n parsePackageManager,\n parseTag,\n} from \"@powerhousedao/shared/clis\";\nimport chalk from \"chalk\";\nimport { kebabCase } from \"change-case\";\nimport enquirer from \"enquirer\";\nimport { clean, valid } from \"semver\";\nimport type { InitArgs } from \"../types.js\";\nimport { isUniformRunnersEnabled } from \"../utils/feature-flags.js\";\nimport { setupRemoteDrive } from \"../utils/validate-remote-drive.js\";\n\nexport async function startInit(args: InitArgs) {\n const {\n namePositional,\n nameOption,\n packageManager,\n npm,\n pnpm,\n yarn,\n bun,\n tag,\n version,\n dev,\n staging,\n rc,\n remoteDrive,\n clone,\n } = args;\n\n let name = namePositional ?? nameOption;\n if (!name) {\n const { prompt } = enquirer;\n\n const result = await prompt<{ name: string }>([\n {\n type: \"input\",\n name: \"name\",\n message: \"What is the project name?\",\n required: true,\n result: (value) => kebabCase(value),\n },\n ]);\n name = result.name;\n }\n if (!name) {\n throw new Error(\"You must provide a name for your project.\");\n }\n\n if (version !== undefined && !valid(clean(version))) {\n throw new Error(`Invalid version: ${version}`);\n }\n\n handleMutuallyExclusiveOptions(\n {\n tag,\n version,\n dev,\n staging,\n rc,\n },\n \"versioning strategy\",\n );\n\n handleMutuallyExclusiveOptions(\n {\n npm,\n pnpm,\n yarn,\n bun,\n packageManager,\n },\n \"package manager\",\n );\n\n const parsedPackageManager =\n parsePackageManager({\n npm,\n pnpm,\n yarn,\n bun,\n packageManager,\n }) ?? \"npm\";\n\n const parsedTag = parseTag({\n tag,\n dev,\n staging,\n rc,\n });\n\n if (clone && (tag || version || dev || staging || rc)) {\n console.log(\n chalk.yellow(\n \"⚠️ --clone is set; --version/--tag/--dev/--staging/--rc are ignored (the cloned project's dependency set is authoritative).\",\n ),\n );\n }\n\n try {\n if (remoteDrive) {\n console.log(chalk.blue(\"\\n⏳ Setting up remote drive...\\n\"));\n await setupRemoteDrive(remoteDrive);\n console.log(chalk.green(\"\\n✅ Remote drive set up.\"));\n }\n\n console.log(chalk.bold(\"\\n🚀 Initializing a new project...\\n\"));\n const { initialCommit } = await createProject({\n ...args,\n name,\n packageManager: parsedPackageManager,\n tag: parsedTag,\n // explicit flag wins; otherwise the env toggle decides (codegen never\n // sniffs env itself)\n uniformRunners: args.uniformRunners === true || isUniformRunnersEnabled(),\n });\n\n if (remoteDrive) {\n console.log();\n console.log(\"To link your project to GitHub:\");\n console.log();\n const steps = [\n \"Create a new repository on GitHub\",\n `cd ${name}`,\n ...(initialCommit?.committed\n ? []\n : [\"git add . && git commit -m 'Initial commit'\"]),\n \"git remote add origin <your-github-url>\",\n \"git push -u origin main\",\n ];\n steps.forEach((step, index) => console.log(` ${index + 1}. ${step}`));\n console.log();\n }\n } catch (error) {\n console.error(\"\\n❌ Failed to initialize project: \\n\");\n throw error;\n }\n}\n"],"names":[],"mappings":"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","debug_id":"594445ad-b88b-5e81-9df2-b911d785cdc4"}
@@ -1,4 +0,0 @@
1
- import { n as phCliCommands } from "./ph-cli-commands-FHSAtJu3.mjs";
2
- export { phCliCommands };
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d9d4dca6-fa1d-50a5-8a8a-5c145f61b800")}catch(e){}}();
4
- //# debugId=d9d4dca6-fa1d-50a5-8a8a-5c145f61b800