@snappedly-tools/shipyard 0.4.1 → 0.4.4

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
@@ -34,9 +34,10 @@ cp .shipyard/.env.example .shipyard/.env
34
34
  ```
35
35
 
36
36
  `init` asks which agent, sandbox provider, and starter template to use. Its
37
- issue-based templates use GitHub Issues. Start with the `blank` template. Put
38
- the requested credentials in
39
- `.shipyard/.env`, then write one concrete task in `.shipyard/prompt.md`.
37
+ issue-based templates use GitHub Issues. When you select Codex, it also asks
38
+ whether to sign in with ChatGPT or use an API key. Start with the `blank`
39
+ template. Put any requested credentials in `.shipyard/.env`, then write one
40
+ concrete task in `.shipyard/prompt.md`.
40
41
 
41
42
  Run it:
42
43
 
@@ -128,15 +129,20 @@ patches private.
128
129
  Use a subscription first when the selected agent supports it. If subscription
129
130
  authentication does not work in your environment, use the API-key fallback:
130
131
 
131
- - Codex subscription authentication: run `codex login` on the host, then pass
132
- `--codex-auth chatgpt` to `shipyard init`. The generated configuration mounts
133
- `~/.codex/auth.json` read-only.
134
- - Codex API authentication: pass `--codex-auth api-key` and put
135
- `OPENAI_API_KEY` in `.shipyard/.env`.
132
+ - Codex subscription authentication: choose **Sign in with ChatGPT** during
133
+ interactive init and complete the browser login. The generated configuration
134
+ mounts `~/.codex/auth.json` read-only. For non-interactive init, run
135
+ `codex login` on the host, then pass `--codex-auth chatgpt`.
136
+ - Codex API authentication: choose **OpenAI API key** during interactive init
137
+ and put `OPENAI_API_KEY` in `.shipyard/.env`. For non-interactive init, pass
138
+ `--codex-auth api-key`.
136
139
  - Claude Code subscription authentication: run `claude setup-token` on the
137
140
  host and put the result in `CLAUDE_CODE_OAUTH_TOKEN` in `.shipyard/.env`.
138
141
  - Claude Code API authentication: uncomment `ANTHROPIC_API_KEY` in
139
142
  `.shipyard/.env` and put your API key there.
143
+ - GitHub Issues authentication: set `GH_TOKEN` in `.shipyard/.env`. To use the
144
+ token from a host-side `gh auth login` without storing it in the file, leave
145
+ `GH_TOKEN=` blank and run `GH_TOKEN="$(gh auth token)" npx shipyard run`.
140
146
 
141
147
  ## Generated files
142
148
 
package/dist/index.js CHANGED
@@ -701,8 +701,8 @@ var resolveEnv = (repoDir) => Effect.gen(function* () {
701
701
  const shipyardEnv = yield* parseEnvFile(envPath);
702
702
  const result3 = {};
703
703
  for (const key of Object.keys(shipyardEnv)) {
704
- const value = shipyardEnv[key] ?? process.env[key];
705
- if (value !== void 0) {
704
+ const value = shipyardEnv[key] || process.env[key];
705
+ if (value) {
706
706
  result3[key] = value;
707
707
  }
708
708
  }