@doubledigit/cli 0.4.0 → 0.4.1

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/README.md CHANGED
@@ -120,6 +120,8 @@ dd actions remotion-hub search-components --query "animated chart" --limit 5
120
120
 
121
121
  The command resolves the app URL from exported `DD_APP_URL`, `APP_URL`, or `BETTER_AUTH_URL`; then local env-file `DD_APP_URL`; then the release-configured hosted app URL. It prints JSON responses to stdout. It also reads `.env`, `.env.local`, `apps/main-app/.env`, and `apps/main-app/.env.local`; exported shell values take precedence.
122
122
 
123
+ The published CLI embeds a hosted default from `DD_APP_URL` during the `@doubledigit/cli` package build. The release workflow maps GitHub secrets into that variable before publishing. Localhost values are not baked into the generated package default, but `DD_APP_URL` remains available as a runtime override for a specific invocation.
124
+
123
125
  The hosted Double Digit app is the default for npm users:
124
126
 
125
127
  ```bash
@@ -134,7 +136,7 @@ Local development or self-hosted environments should override the target explici
134
136
  DD_APP_URL=http://localhost:3111 dd actions remotion-hub
135
137
  ```
136
138
 
137
- In GitHub Actions or another CI/CD runner, provide `DD_ACTIONS_DEFAULT_APP_URL` or `DD_APP_URL` through the runner environment, variables, or secrets when the action target should differ from the hosted default. Do not rely on a local env file being present in CI.
139
+ In GitHub Actions or another CI/CD runner, provide `DD_APP_URL` through the runner environment, variables, or secrets when building or publishing the CLI package. Do not rely on a local env file being present in CI.
138
140
 
139
141
  GitHub or Infisical secrets are CI/CD inputs only. A local `npx @doubledigit/cli ...` command sees your shell environment and local env files, not repository secrets.
140
142
 
@@ -1 +1 @@
1
- {"version":3,"file":"actions-client.d.ts","sourceRoot":"","sources":["../../src/lib/actions-client.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAA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G,YAAY,GAAG,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,CAoBtI;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAuBjF"}
@@ -3,8 +3,9 @@ function readUrlValue(value) {
3
3
  return trimmed || undefined;
4
4
  }
5
5
  export function resolveDefaultActionAppUrl({ env = process.env, generatedUrl, localDefaultUrl, }) {
6
- return readUrlValue(env.DD_ACTIONS_DEFAULT_APP_URL)
7
- ?? readUrlValue(generatedUrl)
6
+ const hostedGeneratedUrl = readUrlValue(generatedUrl);
7
+ return readUrlValue(env.DD_APP_URL)
8
+ ?? (hostedGeneratedUrl && !isLocalAppUrl(hostedGeneratedUrl) ? hostedGeneratedUrl : undefined)
8
9
  ?? localDefaultUrl;
9
10
  }
10
11
  export function resolveActionAppUrl({ explicitUrl, env = process.env, fileEnv = {}, defaultUrl, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doubledigit/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "description": "CLI for Double Digit local setup and extension management.",
6
6
  "license": "MIT",