@linzumi/cli 0.0.62-beta → 0.0.63-beta

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
@@ -62,7 +62,7 @@ Install the CLI or run it with `npx`:
62
62
  ```bash
63
63
  npm install -g @linzumi/cli@latest
64
64
  npx -y @linzumi/cli@latest signup
65
- npx -y @linzumi/cli@0.0.62-beta --version
65
+ npx -y @linzumi/cli@0.0.63-beta --version
66
66
  linzumi --version
67
67
  ```
68
68
 
package/dist/index.js CHANGED
@@ -28295,7 +28295,7 @@ function realpathOrResolved(pathValue) {
28295
28295
  }
28296
28296
 
28297
28297
  // src/version.ts
28298
- var linzumiCliVersion = "0.0.62-beta";
28298
+ var linzumiCliVersion = "0.0.63-beta";
28299
28299
  var linzumiCliVersionText = `linzumi ${linzumiCliVersion}`;
28300
28300
 
28301
28301
  // src/runnerLock.ts
@@ -29201,9 +29201,7 @@ async function runThreadCodexWorker(options) {
29201
29201
  throw new Error("thread Codex worker requires an IPC channel");
29202
29202
  }
29203
29203
  const log = makeRunnerLogger(options);
29204
- const started = await startOwnedCodexAppServer(options, {
29205
- linzumiMcp: false
29206
- });
29204
+ const started = await startOwnedCodexAppServer(options);
29207
29205
  const codex = await connectCodexAppServer(started.url);
29208
29206
  const stop = once(() => {
29209
29207
  codex.close();
@@ -33108,7 +33106,8 @@ async function spawnLocalThreadRunnerProcess(options) {
33108
33106
  const env = {
33109
33107
  ...process.env,
33110
33108
  LINZUMI_THREAD_RUNNER_ROLE: "thread",
33111
- LINZUMI_THREAD_RUNNER_KANDAN_THREAD_ID: kandanThreadId
33109
+ LINZUMI_THREAD_RUNNER_KANDAN_THREAD_ID: kandanThreadId,
33110
+ LINZUMI_THREAD_RUNNER_TOKEN: options.token
33112
33111
  };
33113
33112
  writeCliAuditEvent("process.spawn", {
33114
33113
  command: process.execPath,
@@ -52958,6 +52957,7 @@ async function runMcpServer(args) {
52958
52957
  name: "linzumi",
52959
52958
  version: "0.1.0"
52960
52959
  });
52960
+ registerEmptyMcpResources(server);
52961
52961
  server.tool(
52962
52962
  "linzumi_get_message",
52963
52963
  "Read one Linzumi message by scoped message_seq/message_id or a Linzumi message URL, with optional bounded before/after context.",
@@ -53053,6 +53053,17 @@ async function runMcpServer(args) {
53053
53053
  );
53054
53054
  await server.connect(new StdioServerTransport());
53055
53055
  }
53056
+ function registerEmptyMcpResources(server) {
53057
+ server.server.registerCapabilities({
53058
+ resources: { listChanged: false }
53059
+ });
53060
+ server.server.setRequestHandler(ListResourcesRequestSchema, () => ({
53061
+ resources: []
53062
+ }));
53063
+ server.server.setRequestHandler(ListResourceTemplatesRequestSchema, () => ({
53064
+ resourceTemplates: []
53065
+ }));
53066
+ }
53056
53067
  async function runMcpConfig(args) {
53057
53068
  const values = strictFlagValues(args);
53058
53069
  const kandanUrl = required(values, "api-url");
@@ -54219,9 +54230,10 @@ function parseThreadCodexWorkerArgs(args) {
54219
54230
  parseAllowedCwdList(stringValue5(values, "allowed-cwd"))
54220
54231
  ) : assertConfiguredAllowedCwds([cwd]);
54221
54232
  const kandanThreadId = requiredThreadRunnerKandanThreadId();
54233
+ const token = requiredThreadRunnerToken();
54222
54234
  return {
54223
54235
  kandanUrl,
54224
- token: "",
54236
+ token,
54225
54237
  runnerId: `thread-codex-worker:${kandanThreadId}`,
54226
54238
  machineId: void 0,
54227
54239
  runnerLockConfigPath: void 0,
@@ -54257,6 +54269,13 @@ function requiredThreadRunnerKandanThreadId() {
54257
54269
  }
54258
54270
  return kandanThreadId;
54259
54271
  }
54272
+ function requiredThreadRunnerToken() {
54273
+ const token = process.env.LINZUMI_THREAD_RUNNER_TOKEN;
54274
+ if (token === void 0 || token.trim() === "") {
54275
+ throw new Error("thread runner is missing LINZUMI_THREAD_RUNNER_TOKEN");
54276
+ }
54277
+ return token;
54278
+ }
54260
54279
  function required2(values, key) {
54261
54280
  const value = stringValue5(values, key);
54262
54281
  if (value === void 0) {
@@ -54539,7 +54558,8 @@ export {
54539
54558
  main,
54540
54559
  parseAgentRunnerArgs,
54541
54560
  parseRunnerArgs,
54542
- parseStartRunnerArgs
54561
+ parseStartRunnerArgs,
54562
+ parseThreadCodexWorkerArgs
54543
54563
  };
54544
54564
  /*! Bundled license information:
54545
54565
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linzumi/cli",
3
- "version": "0.0.62-beta",
3
+ "version": "0.0.63-beta",
4
4
  "description": "Linzumi CLI — point a Codex agent at the real code on your laptop, with your team watching and steering from shared threads.",
5
5
  "type": "module",
6
6
  "bin": {