@hobble-env/cli 3.3.12 → 3.3.13
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/SKILL.md +2 -1
- package/dist/bin/hobble.js +1 -1
- package/dist/commands/list.js +1 -1
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -7,7 +7,7 @@ description: Use when a repository contains a `.hobble` file, references the hob
|
|
|
7
7
|
|
|
8
8
|
> **Living document.** This file is the canonical agent-facing reference for the hobble CLI surface. Per the gate in `AGENTS.md`, any feature work that changes the CLI surface (commands, flags, arguments, output formats, exit behavior, env vars, or config files) MUST update this file in the same change, and it must be verified current before every PR. Source of truth: `cli/bin/hobble.ts` and `cli/commands/*.ts`.
|
|
9
9
|
|
|
10
|
-
<!-- documented-version: 3.3.
|
|
10
|
+
<!-- documented-version: 3.3.11 — keep in sync with cli/bin/hobble.ts -->
|
|
11
11
|
|
|
12
12
|
## Overview
|
|
13
13
|
|
|
@@ -139,6 +139,7 @@ project root is.
|
|
|
139
139
|
- Overrides via env vars: `HOBBLE_API_KEY`, `HOBBLE_API_URL`. Prefer these in CI.
|
|
140
140
|
- A 401 means the credential is stale or expired — tell the user to run `hobble login` rather than re-running it yourself. `hobble whoami` shows the effective instance, auth type, and session expiry.
|
|
141
141
|
- `HOBBLE_ASSUME_TTY=1` makes `init` treat piped stdin as interactive (test harness escape hatch — do not use it to bypass Rule 5).
|
|
142
|
+
- An environment-scoped API token works with `--project`/`--env`: it can resolve its environment's parent project by name and list that project's environments, but any read or write outside the scoped environment(s) fails with a permission error. A project name the credential is not scoped to reports `not found, or your credential is not scoped to it`.
|
|
142
143
|
|
|
143
144
|
## Common Mistakes
|
|
144
145
|
|
package/dist/bin/hobble.js
CHANGED
|
@@ -20,7 +20,7 @@ const program = new Command();
|
|
|
20
20
|
program
|
|
21
21
|
.name("hobble")
|
|
22
22
|
.description("CLI for managing secrets via the secret-management-dash API")
|
|
23
|
-
.version("3.3.
|
|
23
|
+
.version("3.3.12")
|
|
24
24
|
.enablePositionalOptions()
|
|
25
25
|
.option("-v, --verbose", "Show debug output for troubleshooting");
|
|
26
26
|
program.hook("preAction", (thisCommand) => {
|
package/dist/commands/list.js
CHANGED
|
@@ -6,7 +6,7 @@ async function resolveProjectId(projectName) {
|
|
|
6
6
|
const data = (await api.get("/api/v1/projects"));
|
|
7
7
|
const proj = data.projects.find((p) => p.name === projectName);
|
|
8
8
|
if (!proj) {
|
|
9
|
-
throw new Error(`Project "${projectName}" not found. Run \`hobble init\` to select a project.`);
|
|
9
|
+
throw new Error(`Project "${projectName}" not found, or your credential is not scoped to it. Run \`hobble init\` to select a project.`);
|
|
10
10
|
}
|
|
11
11
|
return proj.id;
|
|
12
12
|
}
|