@deepdynamic/cli 0.1.2 → 0.1.3

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.
@@ -529,10 +529,10 @@ export const details = {
529
529
  'Project names are global: 1-63 lowercase letters, digits or hyphens, starting and ending with a letter or digit. Projects can only be created from the CLI.',
530
530
  'Naming step 1: run deepdynamic projects first. If one of the projects was made from this source, for example it has the name you would derive below, deploy to it instead of creating another project. If that project has a name that says nothing about the content (step 4), suggest deepdynamic projects rename instead of creating a new one.',
531
531
  'Naming step 2: if the user gave a name, use it. Otherwise read the source and derive one, in this order: the name in package.json without an @scope/ prefix, the site <title> or first heading, then the folder name.',
532
- 'Naming step 3: use lowercase letters, digits and hyphens, preferably 3-30 characters. Turn spaces, underscores and dots into hyphens, drop other characters, collapse repeated hyphens and remove hyphens at either end. Translate or romanize Korean and other non-Latin titles by meaning, for example 목동 국수집 becomes mokdong-noodle.',
532
+ 'Naming step 3: summarize the source into the shortest name that still says what the site is: one or two words, preferably 12 characters or fewer, and longer only when no shorter name does. Drop filler words such as official, homepage, website, page, the, my, korea and project. Build a long title around its most distinctive word, such as a brand or a place. Use only abbreviations most people know, such as snu, never ones a first-time reader cannot read. Join two words without a hyphen when they still read clearly, otherwise with one hyphen. Use only lowercase letters, digits and hyphens. Translate or romanize Korean and other non-Latin titles by meaning, for example 제주 카페 becomes jejucafe and 서울대학교 총동문회 공식 홈페이지 becomes snu-alumni.',
533
533
  'Naming step 4: avoid names that say nothing about the content, such as app, site, web, test, demo, my-app, vite-project or untitled. Never put personal data such as emails or phone numbers, or secrets, in a name.',
534
- 'Naming step 5: check each candidate with deepdynamic projects create <name> --dry-run. Show the user one recommended available name and two available alternatives, each with the reason taken from the source, and create the project only after the user confirms. If the user told you to proceed without asking, create the recommended name.',
535
- 'Naming step 6: on project_taken, or available: false with owned: false, add a word about the content instead of random digits, for example noodle-shop becomes mokdong-noodle-shop, and check again.',
534
+ 'Naming step 5: check each candidate with deepdynamic projects create <name> --dry-run. Show the user one recommended available name and two available alternatives as full addresses, https://<name>.deepdynamic.space, the recommendation first and the alternatives shortest first, each with a reason of a few words taken from the source, and create the project only after the user confirms. If the user told you to proceed without asking, create the recommended name.',
535
+ 'Naming step 6: on project_taken, or available: false with owned: false, first look for another name of about the same length, such as a synonym or another key word from the source, for example jejucafe becomes jejubrew or cafejeju. Only when none is available, add one short word about the content instead of random digits, for example jejucafe becomes jejucafe-aewol, and check again.',
536
536
  'With --dry-run nothing is created: available: true means nobody uses the name, owned: true means it is already your project so deploy to it, and both false mean another account uses it.',
537
537
  'Each project gets its own server and its own Git repository. The server is turned on and connected to the issued address when the project is created.',
538
538
  'The command waits while the server is prepared, writing progress to stderr. Running it again for your own project only waits for the existing server.',
@@ -540,7 +540,7 @@ export const details = {
540
540
  ],
541
541
  result: {
542
542
  project: 'The project name.',
543
- publicUrl: 'Address issued for the project, http://<project>.deepdynamic.internal. It is connected when the project server is ready and again on each deploy. It follows the project name, so a rename changes it.',
543
+ publicUrl: 'Address issued for the project, https://<project>.deepdynamic.space. It is connected when the project server is ready and again on each deploy. It follows the project name, so a rename changes it.',
544
544
  server: 'stage (network, provisioning, stopped, running or failed), ready, errorCode and a Korean message for the user.',
545
545
  dryRun: 'true with --dry-run. Then only project, available and owned are returned and nothing was created.',
546
546
  available: '--dry-run only: true when no account uses the name.',
@@ -601,7 +601,7 @@ export const details = {
601
601
  statusUrl: 'Authenticated GET progress endpoint. Read it with deepdynamic deployments <id> instead of calling it yourself.',
602
602
  percent: 'Overall milestone percentage: 75 while Git is verified, 90 while publishing and 100 when the site is published.',
603
603
  deployed: 'true only when the project server published this commit.',
604
- publicUrl: 'Issued address of the project, http://<project>.deepdynamic.internal, once deployed is true, otherwise null. Tell the user the site was deployed to this address.',
604
+ publicUrl: 'Issued address of the project, https://<project>.deepdynamic.space, once deployed is true, otherwise null. Tell the user the site was deployed to this address.',
605
605
  forHuman: 'User-facing Korean message and detail, using airline wording.',
606
606
  forAgent: 'Stage, status, gitUploaded (server verified), deployed, commit, errorCode, publishLog, nextAction and pollAfterMs.',
607
607
  manifest: `--dry-run only, present when ${MANIFEST_FILE} exists: its parsed content. The server validates it on deploy.`,
@@ -840,7 +840,7 @@ export const details = {
840
840
  target: '{ commit, publishedAt } of the deployment that was restored.',
841
841
  changed: 'false when the project branch already held the same files, so no new commit was pushed.',
842
842
  deployed: 'true only when the project server published the restored files.',
843
- publicUrl: 'Issued address of the project, http://<project>.deepdynamic.internal, once deployed is true, otherwise null.',
843
+ publicUrl: 'Issued address of the project, https://<project>.deepdynamic.space, once deployed is true, otherwise null.',
844
844
  forAgent: 'Same as deepdynamic projects deploy. forAgent.commit is the new rollback commit, not the target commit.',
845
845
  deployments: 'On no_previous_deployment, deployment_not_found and already_current: the published history to choose from.',
846
846
  dryRun: 'true with --dry-run; nothing was sent.',
@@ -874,8 +874,8 @@ export const details = {
874
874
  notes: [
875
875
  SIGN_IN_NOTE,
876
876
  'Use it when the user asks for a new name, or when a project has a name that says nothing about the content, such as demo-site, my-app, test or vite-project.',
877
- 'Unless the user gave the new name, pick it with naming steps 2-4 in deepdynamic projects create --help: read the source and derive it from the name in package.json without an @scope/ prefix, the site <title> or first heading, then the folder name.',
878
- 'Check each candidate with --dry-run. Show the user one recommended available name and two available alternatives, each with the reason taken from the source, and rename only after the user confirms. If the user told you to proceed without asking, use the recommended name.',
877
+ 'Unless the user gave the new name, pick it with naming steps 2-4 in deepdynamic projects create --help: read the source, derive it from the name in package.json without an @scope/ prefix, the site <title> or first heading, then the folder name, and summarize it into the shortest name that still says what the site is.',
878
+ 'Check each candidate with --dry-run. Show the user one recommended available name and two available alternatives as full addresses, https://<name>.deepdynamic.space, the recommendation first and the alternatives shortest first, each with a reason of a few words taken from the source, and rename only after the user confirms. If a name is taken, follow naming step 6. If the user told you to proceed without asking, use the recommended name.',
879
879
  'The issued site address follows the new name and is connected on the next deploy. The project server, the Git repository and the deploy history stay, and rollback still reaches every earlier deployment.',
880
880
  'Use the new name in every later command, such as deepdynamic projects deploy <new-name> <directory> --agent <code>. The old name is released and anyone can take it.',
881
881
  'Do not rename while a deploy of the project is running; that deploy may fail and then has to be started again with the new name.'
package/dist/guide.js CHANGED
@@ -4,8 +4,8 @@ const TITLE = '# DeepDynamic Cloud CLI Guide';
4
4
  const SECTIONS = `## CLI projects and deploys
5
5
  - Guidance level: run \`deepdynamic account get\` first and follow \`guide\` in its result. If the user has turned on captain mode (기장 모드) on My Projects (${SITE_URL}/projects), it is \`audience: "developer"\`: explain with technical terms and relay only \`percent\` and \`forHuman.detail\` for deploy progress. If it is off or cannot be checked, it is \`audience: "non_developer"\`: explain plainly for a non-developer with the airline terms of the My Projects page and relay only \`percent\` and \`forHuman.message\` for deploy progress.
6
6
  - Projects are created only from the CLI. Run \`deepdynamic projects create my-site\` once before the first deploy. Each project gets one server inside a customer-dedicated network and one Git repository; a pre-provisioned server is assigned, turned on and connected to the issued address. Check the status with \`deepdynamic projects status my-site\` and list your projects with \`deepdynamic projects\` without a subcommand (20 per page by recent activity, \`--page\`). \`status\` in the list is the result of the last deploy run, and when \`live\` is present that deploy is still published. Deploying to a name that is not your project is rejected with \`project_not_found\` before the upload.
7
- - Naming a project: if the user did not give a name, first check \`deepdynamic projects\` for a project made from this source and deploy there if one exists. Otherwise read the source and look for evidence in this order: \`name\` in \`package.json\` (without \`@scope/\`) → the site \`<title>\` and first heading → the folder name, then make a name of 3-30 lowercase English letters, digits and hyphens (render Korean by its meaning in English or romanization, e.g. 목동 국수집 → \`mokdong-noodle\`). Do not use names that say nothing about the content, such as \`app\`, \`site\`, \`test\`, \`my-app\` or \`vite-project\`, nor personal data or secrets. Names are globally unique, so check each candidate with \`deepdynamic projects create <name> --dry-run\` (checks only \`available\` and \`owned\` without creating), then show the user one available recommendation and two alternatives with your reasons and create it after they confirm. If a name is taken, add a word that describes the content instead of random digits. The full rules are in the notes of \`deepdynamic projects create --help\`.
8
- - Renaming: for a project made with a name that says nothing about the content, such as \`demo-site\`, do not create a new one; name it from the source by the same rules and rename it with \`deepdynamic projects rename demo-site <new-name>\` (\`POST /api/v1/projects/{project}/rename\`). Check first with \`--dry-run\` that the name is available and have the user confirm one recommendation and two alternatives. The issued address changes to the new name and is connected on the next deploy. The server, repository and deploy history stay, and later commands use the new name.
7
+ - Naming a project: if the user did not give a name, first check \`deepdynamic projects\` for a project made from this source and deploy there if one exists. Otherwise read the source and look for evidence in this order: \`name\` in \`package.json\` (without \`@scope/\`) → the site \`<title>\` and first heading → the folder name, then summarize it into the shortest name that still says what the site is: one or two words of lowercase English letters, digits and hyphens, preferably 12 characters or fewer and longer only when no shorter name does. Drop filler words such as \`official\`, \`homepage\`, \`website\` or \`korea\`, build a long title around its most distinctive word such as a brand or place, use only abbreviations most people know, and join two words without a hyphen when they still read clearly (render Korean by its meaning in English or romanization, e.g. 제주 카페 → \`jejucafe\`, 서울대학교 총동문회 공식 홈페이지 → \`snu-alumni\`). Do not use names that say nothing about the content, such as \`app\`, \`site\`, \`test\`, \`my-app\` or \`vite-project\`, nor personal data or secrets. Names are globally unique, so check each candidate with \`deepdynamic projects create <name> --dry-run\` (checks only \`available\` and \`owned\` without creating), then show the user one available recommendation and two alternatives as full addresses (\`https://<name>.deepdynamic.space\`), the alternatives shortest first, each with a reason of a few words, and create it after they confirm. If a name is taken, first try another name of about the same length, such as a synonym or another key word, and only then add one short word that describes the content instead of random digits. The full rules are in the notes of \`deepdynamic projects create --help\`.
8
+ - Renaming: for a project made with a name that says nothing about the content, such as \`demo-site\`, do not create a new one; name it from the source by the same rules and rename it with \`deepdynamic projects rename demo-site <new-name>\` (\`POST /api/v1/projects/{project}/rename\`). Check first with \`--dry-run\` that the name is available and have the user confirm one recommendation and two alternatives shown as full addresses. The issued address changes to the new name and is connected on the next deploy. The server, repository and deploy history stay, and later commands use the new name.
9
9
  - Installable app (PWA): \`deepdynamic projects pwa my-site\` (\`GET /api/v1/projects/{project}/pwa\`) returns in \`pwa\` whether the gateway advertises the site as an installable web app, and \`deepdynamic projects pwa my-site on|off\` (\`POST /api/v1/projects/{project}/pwa\`, \`{ enabled }\`) changes it. It is on by default; when on, the gateway always appends \`<link rel="manifest">\` before \`</head>\` while browsers use only the first manifest link on the page, so a manifest the site declares wins, and it serves \`/__dd/manifest.webmanifest\`, which Android Chrome uses for "Install app" and iOS Safari for "Add to Home Screen". No UI is injected into the page and the site files are not changed; when the gateway cannot be synchronized the command fails with \`unavailable\` and the setting stays as it was.
10
10
  - Deploy settings go in \`deepdynamic.json\` at the root of the deploy folder. The only accepted fields are \`packageManager\` (\`pnpm\` only), \`build\` (\`pnpm build\` or \`pnpm run <script>\`), \`output\` (relative path of the build output folder), \`start\` and \`port\`; without the file the uploaded files are served as they are. For an app server set \`start\` (\`pnpm start\` or \`pnpm run <script>\`) and \`port\` (1024-65535) instead of \`output\`: the project server starts it with \`PORT\` set and proxies the site to that port. Follow the notes of \`deepdynamic projects deploy --help\` for the full rules.
11
11
  - Security rules: use pnpm only and upload \`pnpm-lock.yaml\` with the source (the server installs with \`pnpm install --frozen-lockfile\`). Do not call npm, npx, yarn, curl or wget from package.json scripts, and list only the packages that really need install scripts in \`pnpm.onlyBuiltDependencies\`. Never put API keys, tokens or .env values into the source or settings. The build runs on the project server as a non-root user without deploy credentials.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepdynamic/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Command-line tool for deploying and managing sites on DeepDynamic Cloud.",
5
5
  "keywords": [
6
6
  "deepdynamic",