lcclaude 1.0.2 → 1.0.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.
@@ -0,0 +1,5 @@
1
+ import { connectToDevTools } from "react-devtools-core";
2
+ connectToDevTools({
3
+ host: "127.0.0.1",
4
+ port: 8097
5
+ });
@@ -21,10 +21,9 @@ import { getFocusManager, getRootNode } from "./focus.js";
21
21
  import { LayoutDisplay } from "./layout/node.js";
22
22
  import applyStyles from "./styles.js";
23
23
  if (true) {
24
- try {
25
- import("./devtools.js");
26
- } catch (error) {
27
- if (error.code === "ERR_MODULE_NOT_FOUND") {
24
+ import("./devtools.js").catch((error) => {
25
+ const moduleError = error;
26
+ if (moduleError.code === "ERR_MODULE_NOT_FOUND") {
28
27
  console.warn(`
29
28
  The environment variable DEV is set to true, so Ink tried to import \`react-devtools-core\`,
30
29
  but this failed as it was not installed. Debugging with React Devtools requires it.
@@ -34,10 +33,10 @@ To install use this command:
34
33
  $ npm install --save-dev react-devtools-core
35
34
  `.trim() + `
36
35
  `);
37
- } else {
38
- throw error;
36
+ return;
39
37
  }
40
- }
38
+ throw error;
39
+ });
41
40
  }
42
41
  const diff = (before, after) => {
43
42
  if (before === after) {
package/dist/src/main.js CHANGED
@@ -530,7 +530,7 @@ async function run() {
530
530
  throw new Error("--task-budget must be a positive integer");
531
531
  }
532
532
  return tokens;
533
- }).hideHelp()).option("--replay-user-messages", "Re-emit user messages from stdin back on stdout for acknowledgment (only works with --input-format=stream-json and --output-format=stream-json)", () => true).addOption(new Option("--enable-auth-status", "Enable auth status messages in SDK mode").default(false).hideHelp()).option("--allowedTools, --allowed-tools <tools...>", 'Comma or space-separated list of tool names to allow (e.g. "Bash(git:*) Edit")').option("--tools <tools...>", 'Specify the list of available tools from the built-in set. Use "" to disable all tools, "default" to use all tools, or specify tool names (e.g. "Bash,Edit,Read").').option("--disallowedTools, --disallowed-tools <tools...>", 'Comma or space-separated list of tool names to deny (e.g. "Bash(git:*) Edit")').option("--mcp-config <configs...>", "Load MCP servers from JSON files or strings (space-separated)").addOption(new Option("--permission-prompt-tool <tool>", "MCP tool to use for permission prompts (only works with --print)").argParser(String).hideHelp()).addOption(new Option("--system-prompt <prompt>", "System prompt to use for the session").argParser(String)).addOption(new Option("--system-prompt-file <file>", "Read system prompt from a file").argParser(String).hideHelp()).addOption(new Option("--append-system-prompt <prompt>", "Append a system prompt to the default system prompt").argParser(String)).addOption(new Option("--append-system-prompt-file <file>", "Read system prompt from a file and append to the default system prompt").argParser(String).hideHelp()).addOption(new Option("--permission-mode <mode>", "Permission mode to use for the session").argParser(String).choices(PERMISSION_MODES)).option("-c, --continue", "Continue the most recent conversation in the current directory", () => true).option("-r, --resume [value]", "Resume a conversation by session ID, or open interactive picker with optional search term", (value) => value || true).option("--fork-session", "When resuming, create a new session ID instead of reusing the original (use with --resume or --continue)", () => true).addOption(new Option("--prefill <text>", "Pre-fill the prompt input with text without submitting it").hideHelp()).addOption(new Option("--deep-link-origin", "Signal that this session was launched from a deep link").hideHelp()).addOption(new Option("--deep-link-repo <slug>", "Repo slug the deep link ?repo= parameter resolved to the current cwd").hideHelp()).addOption(new Option("--deep-link-last-fetch <ms>", "FETCH_HEAD mtime in epoch ms, precomputed by the deep link trampoline").argParser((v) => {
533
+ }).hideHelp()).option("--replay-user-messages", "Re-emit user messages from stdin back on stdout for acknowledgment (only works with --input-format=stream-json and --output-format=stream-json)", () => true).addOption(new Option("--enable-auth-status", "Enable auth status messages in SDK mode").default(false).hideHelp()).option("--allowedTools <tools...>", 'Comma or space-separated list of tool names to allow (e.g. "Bash(git:*) Edit")').addOption(new Option("--allowed-tools <tools...>").hideHelp()).option("--tools <tools...>", 'Specify the list of available tools from the built-in set. Use "" to disable all tools, "default" to use all tools, or specify tool names (e.g. "Bash,Edit,Read").').option("--disallowedTools <tools...>", 'Comma or space-separated list of tool names to deny (e.g. "Bash(git:*) Edit")').addOption(new Option("--disallowed-tools <tools...>").hideHelp()).option("--mcp-config <configs...>", "Load MCP servers from JSON files or strings (space-separated)").addOption(new Option("--permission-prompt-tool <tool>", "MCP tool to use for permission prompts (only works with --print)").argParser(String).hideHelp()).addOption(new Option("--system-prompt <prompt>", "System prompt to use for the session").argParser(String)).addOption(new Option("--system-prompt-file <file>", "Read system prompt from a file").argParser(String).hideHelp()).addOption(new Option("--append-system-prompt <prompt>", "Append a system prompt to the default system prompt").argParser(String)).addOption(new Option("--append-system-prompt-file <file>", "Read system prompt from a file and append to the default system prompt").argParser(String).hideHelp()).addOption(new Option("--permission-mode <mode>", "Permission mode to use for the session").argParser(String).choices(PERMISSION_MODES)).option("-c, --continue", "Continue the most recent conversation in the current directory", () => true).option("-r, --resume [value]", "Resume a conversation by session ID, or open interactive picker with optional search term", (value) => value || true).option("--fork-session", "When resuming, create a new session ID instead of reusing the original (use with --resume or --continue)", () => true).addOption(new Option("--prefill <text>", "Pre-fill the prompt input with text without submitting it").hideHelp()).addOption(new Option("--deep-link-origin", "Signal that this session was launched from a deep link").hideHelp()).addOption(new Option("--deep-link-repo <slug>", "Repo slug the deep link ?repo= parameter resolved to the current cwd").hideHelp()).addOption(new Option("--deep-link-last-fetch <ms>", "FETCH_HEAD mtime in epoch ms, precomputed by the deep link trampoline").argParser((v) => {
534
534
  const n = Number(v);
535
535
  return Number.isFinite(n) ? n : undefined;
536
536
  }).hideHelp()).option("--from-pr [value]", "Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term", (value) => value || true).option("--no-session-persistence", "Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print)").addOption(new Option("--resume-session-at <message id>", "When resuming, only messages up to and including the assistant message with <message.id> (use with --resume in print mode)").argParser(String).hideHelp()).addOption(new Option("--rewind-files <user-message-id>", "Restore files to state at the specified user message and exit (requires --resume)").hideHelp()).option("--model <model>", `Model for the current session. Provide an alias for the latest model (e.g. 'sonnet' or 'opus') or a model's full name (e.g. 'claude-sonnet-4-6').`).addOption(new Option("--effort <level>", `Effort level for the current session (low, medium, high, max)`).argParser((rawValue) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lcclaude",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "imports": {
@@ -30,8 +30,8 @@
30
30
  "@alcalzone/ansi-tokenize": "^0.2.4",
31
31
  "@anthropic-ai/sandbox-runtime": "^0.0.44",
32
32
  "@anthropic-ai/sdk": "^0.80.0",
33
- "@aws-sdk/client-bedrock-runtime": "^3.1020.0",
34
- "@commander-js/extra-typings": "^14.0.0",
33
+ "@aws-sdk/client-bedrock-runtime": "3.930.0",
34
+ "@commander-js/extra-typings": "13.0.0",
35
35
  "@growthbook/growthbook": "^1.6.5",
36
36
  "@modelcontextprotocol/sdk": "^1.29.0",
37
37
  "@opentelemetry/api-logs": "^0.214.0",
@@ -47,12 +47,12 @@
47
47
  "axios": "^1.14.0",
48
48
  "bidi-js": "^1.0.3",
49
49
  "chalk": "^5.6.2",
50
- "chokidar": "^5.0.0",
50
+ "chokidar": "^4.0.3",
51
51
  "cli-boxes": "^4.0.1",
52
52
  "code-excerpt": "^4.0.0",
53
53
  "diff": "^8.0.4",
54
54
  "emoji-regex": "^10.6.0",
55
- "env-paths": "^4.0.0",
55
+ "env-paths": "^3.0.0",
56
56
  "execa": "^9.6.1",
57
57
  "figures": "^6.1.0",
58
58
  "fuse.js": "^7.1.0",
@@ -64,8 +64,8 @@
64
64
  "indent-string": "^5.0.0",
65
65
  "jsonc-parser": "^3.3.1",
66
66
  "lodash-es": "^4.17.23",
67
- "lru-cache": "^11.2.7",
68
- "marked": "^17.0.5",
67
+ "lru-cache": "10.4.3",
68
+ "marked": "15.0.12",
69
69
  "p-map": "^7.0.4",
70
70
  "picomatch": "^4.0.4",
71
71
  "proper-lockfile": "^4.1.2",
@@ -77,10 +77,10 @@
77
77
  "signal-exit": "^4.1.0",
78
78
  "stack-utils": "^2.0.6",
79
79
  "strip-ansi": "^7.2.0",
80
- "supports-hyperlinks": "^4.4.0",
80
+ "supports-hyperlinks": "3.2.0",
81
81
  "tree-kill": "^1.2.2",
82
82
  "type-fest": "^4.41.0",
83
- "undici": "^7.24.6",
83
+ "undici": "6.21.3",
84
84
  "usehooks-ts": "^3.1.1",
85
85
  "vscode-jsonrpc": "^8.2.1",
86
86
  "vscode-languageserver-types": "^3.17.5",