@somewhere-cloud/cli 0.38.139 → 0.38.142
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/CHANGELOG.md +14 -1
- package/README.md +3 -2
- package/dist/lib/bundle.js +26 -8
- package/dist/lib/bundle.js.map +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.142
|
|
4
|
+
|
|
5
|
+
- Use `somewhere tasks list --label <label>` to match an exact task label.
|
|
6
|
+
- Label the llms docs topic as the platform overview. The full manual opens with `somewhere docs --full`.
|
|
7
|
+
|
|
8
|
+
## 0.38.141
|
|
9
|
+
|
|
10
|
+
- Typecheck keeps the compiler result and exit code when its advisory source scan fails, and reports the source failure in text and JSON.
|
|
11
|
+
|
|
12
|
+
## 0.38.140
|
|
13
|
+
|
|
14
|
+
- Sign-in prints the Claude Code MCP install command when Somewhere is not configured.
|
|
15
|
+
|
|
3
16
|
## 0.38.139
|
|
4
17
|
|
|
5
18
|
- `somewhere typecheck` now reports the same platform source warnings and fixes as `somewhere lint`, alongside TypeScript diagnostics.
|
|
6
19
|
- CLI login leaves your agent's settings alone. When you sign in against another server, the CLI uses that server's instructions.
|
|
7
20
|
- `somewhere run` and `somewhere run check` explain the single-file limit and flag relative imports when TypeScript is installed in the project.
|
|
8
|
-
- The package installs the `somewhere` and `sw` commands.
|
|
21
|
+
- The package installs the `somewhere` and `sw` commands. Update scripts that invoke the removed `cli` executable to use `somewhere`.
|
|
9
22
|
- Updated CLI dependencies, including the MCP SDK, HTTP client and archive tooling.
|
|
10
23
|
|
|
11
24
|
## 0.38.138
|
package/README.md
CHANGED
|
@@ -60,6 +60,8 @@ somewhere logs --follow # Stream logs
|
|
|
60
60
|
somewhere open # Open in browser
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
To use the Somewhere MCP tools in Claude Code, run `somewhere mcp install claude-code` after signing in. Reload Claude Code to make the tools available.
|
|
64
|
+
|
|
63
65
|
New starters record the CLI version in `package.json` under
|
|
64
66
|
`somewhere.cli_version`. Use `somewhere` or `npx -y @somewhere-cloud/cli` in
|
|
65
67
|
the project. The pinned version runs from npm’s cache when needed. `somewhere
|
|
@@ -138,8 +140,7 @@ Short alias: `sw` works everywhere `somewhere` does.
|
|
|
138
140
|
approve the code. Use `--browser-callback` for Google sign-in with a localhost
|
|
139
141
|
callback. Credentials are saved in `~/.somewhere/config.json` with mode 600.
|
|
140
142
|
|
|
141
|
-
|
|
142
|
-
stdio bridge (`somewhere mcp`). The bridge reads the saved credentials when it
|
|
143
|
+
To connect Claude Code, run `somewhere mcp install claude-code`. The command registers the stdio bridge (`somewhere mcp`). The bridge reads the saved credentials when it
|
|
143
144
|
starts. Refreshable credentials can renew automatically; if renewal fails,
|
|
144
145
|
follow the reported sign-in instructions.
|
|
145
146
|
|
package/dist/lib/bundle.js
CHANGED
|
@@ -8756,17 +8756,21 @@ function saveGlobalMcpConfig() {
|
|
|
8756
8756
|
config2.mcpServers = servers;
|
|
8757
8757
|
writeFileSync(CLAUDE_CONFIG_PATH, JSON.stringify(config2, null, 2) + "\n");
|
|
8758
8758
|
}
|
|
8759
|
-
function
|
|
8760
|
-
if (!existsSync(CLAUDE_CONFIG_PATH))
|
|
8761
|
-
return false;
|
|
8759
|
+
function hasSomewhereMcpConfig(path3) {
|
|
8762
8760
|
try {
|
|
8763
|
-
const config2 = JSON.parse(readFileSync(
|
|
8761
|
+
const config2 = JSON.parse(readFileSync(path3, "utf-8"));
|
|
8764
8762
|
const servers = config2.mcpServers;
|
|
8765
8763
|
return !!servers?.somewhere;
|
|
8766
8764
|
} catch {
|
|
8767
8765
|
return false;
|
|
8768
8766
|
}
|
|
8769
8767
|
}
|
|
8768
|
+
function hasGlobalMcpConfig() {
|
|
8769
|
+
return hasSomewhereMcpConfig(CLAUDE_CONFIG_PATH);
|
|
8770
|
+
}
|
|
8771
|
+
function hasProjectMcpConfig(dir = process.cwd()) {
|
|
8772
|
+
return hasSomewhereMcpConfig(join(dir, ".mcp.json"));
|
|
8773
|
+
}
|
|
8770
8774
|
function saveCursorMcpConfig() {
|
|
8771
8775
|
let config2 = {};
|
|
8772
8776
|
if (existsSync(CURSOR_MCP_PATH)) {
|
|
@@ -8841,7 +8845,9 @@ var init_config = __esm({
|
|
|
8841
8845
|
__name(somewhereStdioEntry, "somewhereStdioEntry");
|
|
8842
8846
|
__name(saveMcpConfig, "saveMcpConfig");
|
|
8843
8847
|
__name(saveGlobalMcpConfig, "saveGlobalMcpConfig");
|
|
8848
|
+
__name(hasSomewhereMcpConfig, "hasSomewhereMcpConfig");
|
|
8844
8849
|
__name(hasGlobalMcpConfig, "hasGlobalMcpConfig");
|
|
8850
|
+
__name(hasProjectMcpConfig, "hasProjectMcpConfig");
|
|
8845
8851
|
CURSOR_DIR = join(homedir(), ".cursor");
|
|
8846
8852
|
CURSOR_MCP_PATH = join(CURSOR_DIR, "mcp.json");
|
|
8847
8853
|
__name(saveCursorMcpConfig, "saveCursorMcpConfig");
|
|
@@ -43372,6 +43378,9 @@ function registerAuthRoles(auth2) {
|
|
|
43372
43378
|
}
|
|
43373
43379
|
function printPostLoginNext() {
|
|
43374
43380
|
console.log("");
|
|
43381
|
+
if (!hasGlobalMcpConfig() && !hasProjectMcpConfig()) {
|
|
43382
|
+
console.log("To connect Somewhere to Claude Code, run somewhere mcp install claude-code");
|
|
43383
|
+
}
|
|
43375
43384
|
info(bold("Next"));
|
|
43376
43385
|
const actions = nextActions({ stage: "login", linkedProject: Boolean(loadProjectConfig()) });
|
|
43377
43386
|
for (const line of formatNextActions(actions, { command: teal, why: dim })) {
|
|
@@ -77948,12 +77957,18 @@ function registerTypecheck(program2) {
|
|
|
77948
77957
|
const spinner = opts.json || refused || opts.watch ? null : ora("Typechecking (tsc --noEmit)...").start();
|
|
77949
77958
|
const result2 = refused ?? await runTypecheck(dir);
|
|
77950
77959
|
spinner?.stop();
|
|
77951
|
-
const sourceLint = await lintProject(dir)
|
|
77960
|
+
const sourceLint = await lintProject(dir).catch((failure2) => ({
|
|
77961
|
+
ok: false,
|
|
77962
|
+
error: failure2 instanceof Error ? failure2.message : String(failure2)
|
|
77963
|
+
}));
|
|
77952
77964
|
if (opts.json)
|
|
77953
77965
|
printJson({ ...result2, sourceLint });
|
|
77954
77966
|
else {
|
|
77955
77967
|
reportTypecheck(result2);
|
|
77956
|
-
|
|
77968
|
+
if ("error" in sourceLint)
|
|
77969
|
+
warn(`Source lint failed: ${sourceLint.error}`);
|
|
77970
|
+
else
|
|
77971
|
+
printLintFindings(sourceLint);
|
|
77957
77972
|
}
|
|
77958
77973
|
return result2;
|
|
77959
77974
|
}, "check");
|
|
@@ -87873,7 +87888,7 @@ var init_docs = __esm({
|
|
|
87873
87888
|
},
|
|
87874
87889
|
llms: {
|
|
87875
87890
|
path: "/llms.txt",
|
|
87876
|
-
blurb: "
|
|
87891
|
+
blurb: "Platform overview and links to the full reference"
|
|
87877
87892
|
}
|
|
87878
87893
|
};
|
|
87879
87894
|
ALIASES = {
|
|
@@ -132161,12 +132176,13 @@ function resolveTaskProject(project) {
|
|
|
132161
132176
|
function registerTasks(program2) {
|
|
132162
132177
|
const tasks = program2.command("tasks").description("List, read, create, update, delete, and restore platform tasks").addHelpText("after", `
|
|
132163
132178
|
Shared organization board (requires access): ${cliInvocation()} tasks list -p default`);
|
|
132164
|
-
tasks.command("list").description("List tasks").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("--status <status>", "Filter by status").option("--type <type>", "Filter by type, or a comma-separated list (e.g. decision, directive)").option("--assignee <assignee>", "Filter by assignee").option("--area <area>", "Filter by area").option("--parent <task-id>", 'Filter by parent task; use "null" for top-level tasks').option("-q, --query <text>", "Search task titles and descriptions").option("--active", "Only open and in-progress tasks").option("--stale", "Only stale in-progress tasks").option("--stale-days <days>", "Staleness threshold").option("--sort <sort>", "Sort by priority, updated, or created").option("--full", "Return complete descriptions").option("--limit <n>", "Maximum rows").option("--offset <n>", "Fresh row offset; prefer cursor for continuation").option("--cursor <cursor>", "next_cursor from the previous page; repeat filters").option("--json", "Print the complete response as JSON").action(async (opts) => {
|
|
132179
|
+
tasks.command("list").description("List tasks").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("--status <status>", "Filter by status").option("--type <type>", "Filter by type, or a comma-separated list (e.g. decision, directive)").option("--assignee <assignee>", "Filter by assignee").option("--label <label>", "Match an exact label").option("--area <area>", "Filter by area").option("--parent <task-id>", 'Filter by parent task; use "null" for top-level tasks').option("-q, --query <text>", "Search task titles and descriptions").option("--active", "Only open and in-progress tasks").option("--stale", "Only stale in-progress tasks").option("--stale-days <days>", "Staleness threshold").option("--sort <sort>", "Sort by priority, updated, or created").option("--full", "Return complete descriptions").option("--limit <n>", "Maximum rows").option("--offset <n>", "Fresh row offset; prefer cursor for continuation").option("--cursor <cursor>", "next_cursor from the previous page; repeat filters").option("--json", "Print the complete response as JSON").action(async (opts) => {
|
|
132165
132180
|
const args = compactRecord([
|
|
132166
132181
|
["project_id", resolveTaskProject(opts.project)],
|
|
132167
132182
|
["status", opts.status],
|
|
132168
132183
|
["type", opts.type],
|
|
132169
132184
|
["assignee", opts.assignee],
|
|
132185
|
+
["label", opts.label],
|
|
132170
132186
|
["area", opts.area],
|
|
132171
132187
|
["parent_id", opts.parent],
|
|
132172
132188
|
["q", opts.query],
|
|
@@ -132188,6 +132204,8 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
|
|
|
132188
132204
|
if (isRecord(value) && isRecord(value.page)) {
|
|
132189
132205
|
const page = value.page;
|
|
132190
132206
|
console.log(dim(`Showing ${page.count} of ${page.total}. Order: ${page.order ?? "unspecified"}`));
|
|
132207
|
+
if (page.candidate_note)
|
|
132208
|
+
console.log(dim(String(page.candidate_note)));
|
|
132191
132209
|
if (page.consistency)
|
|
132192
132210
|
console.log(dim(String(page.consistency)));
|
|
132193
132211
|
if (page.next_cursor)
|