@shipfoundry/cli 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ShipFoundry contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # ShipFoundry CLI
2
+
3
+ Manage projects, recommendations, briefs and outcomes from your terminal or an
4
+ agent workflow. Requires Node.js 22 or newer. No runtime dependencies.
5
+
6
+ ## Install
7
+
8
+ This release candidate is not published yet. Install the supplied
9
+ `shipfoundry-cli-0.1.0.tgz` in a separate directory:
10
+
11
+ ```bash
12
+ bun add ./shipfoundry-cli-0.1.0.tgz
13
+ ./node_modules/.bin/shipfoundry --help
14
+ ```
15
+
16
+ The planned registry package is `@shipfoundry/cli`; the command is `shipfoundry`.
17
+ Registry installation instructions will be added once publication is verified.
18
+ The installed CLI works without the ShipFoundry application source tree.
19
+
20
+ Read the [CLI guide](https://shipfoundry.ai/docs/cli) for commands and the
21
+ [agent setup guide](https://shipfoundry.ai/docs/agent-setup) for onboarding.
22
+
23
+ ## Configuration
24
+
25
+ Precedence: explicit option, environment, then non-secret profile. A base URL is required; there is no default production destination.
26
+
27
+ - `SHIPFOUNDRY_API_KEY` (canonical) or legacy `SHIPFOUNDRY_MCP_TOKEN`. The legacy variable name grants nothing extra: its value must be a key with explicit Developer API resource permission. Old MCP-only keys and MCP OAuth tokens do not work with the API.
28
+ - `SHIPFOUNDRY_BASE_URL`, `--base-url`, profile `baseUrl` in `~/.config/shipfoundry/config.json` (base URL only, never secrets), required. There is no default production destination.
29
+ - Plain HTTP is allowed only for loopback development endpoints. Credential-bearing redirects are refused.
30
+
31
+ Key setup is dashboard-bootstrapped; run `shipfoundry auth login` for the path. The CLI never mints keys and never persists secrets.
32
+
33
+ ## Output and exits
34
+
35
+ - `--json` emits structured data on stdout; progress and diagnostics go to stderr.
36
+ - Reads never prompt. Every write requires `--yes`; nothing hangs on a TTY prompt.
37
+ - `--wait` (briefs request, operations wait) is bounded; on timeout or interruption the operation ID is reported so another process can resume.
38
+ - Idempotency keys are preserved across retries: pass `--idempotency-key` explicitly for automation.
39
+ - Exits: 0 ok, 2 usage, 3 auth, 4 forbidden, 5 not found, 6 conflict, 7 quota/rate-limit, 8 transient, 9 wait timeout.
40
+
41
+ ## License
42
+
43
+ MIT. The license covers this CLI package only. It does not license the
44
+ ShipFoundry hosted service or application repository.
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ import { main } from "../src/main.mjs";
3
+
4
+ const code = await main(process.argv.slice(2));
5
+ process.exitCode = code;
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@shipfoundry/cli",
3
+ "version": "0.1.0",
4
+ "description": "Manage ShipFoundry projects, recommendations, briefs and outcomes from your terminal.",
5
+ "type": "module",
6
+ "bin": {
7
+ "shipfoundry": "./bin/shipfoundry.mjs"
8
+ },
9
+ "files": [
10
+ "bin/",
11
+ "src/",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "engines": {
16
+ "node": ">=22.0.0"
17
+ },
18
+ "scripts": {
19
+ "test": "node --test \"test/*.test.mjs\"",
20
+ "smoke": "node ./bin/shipfoundry.mjs doctor --json"
21
+ },
22
+ "license": "MIT",
23
+ "homepage": "https://shipfoundry.ai/docs/cli",
24
+ "publishConfig": {
25
+ "access": "public",
26
+ "registry": "https://registry.npmjs.org/"
27
+ }
28
+ }