@teamclaws/teamclaw 2026.3.24-3 → 2026.3.24-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.
package/cli.mjs CHANGED
@@ -2,13 +2,18 @@
2
2
 
3
3
  import { spawnSync } from "node:child_process";
4
4
  import fs from "node:fs/promises";
5
+ import { createRequire } from "node:module";
5
6
  import os from "node:os";
6
7
  import path from "node:path";
7
8
  import process from "node:process";
8
9
  import { createInterface } from "node:readline/promises";
9
10
  import JSON5 from "json5";
10
11
 
11
- const PACKAGE_NAME = "@teamclaws/teamclaw";
12
+ const require = createRequire(import.meta.url);
13
+ const packageMetadata = require("./package.json");
14
+ const PACKAGE_NAME = packageMetadata.name;
15
+ const PACKAGE_VERSION = packageMetadata.version;
16
+ const PACKAGE_INSTALL_SPEC = `${PACKAGE_NAME}@${PACKAGE_VERSION}`;
12
17
  const PLUGIN_ID = "teamclaw";
13
18
  const DEFAULT_TEAMCLAW_IMAGE = "ghcr.io/topcheer/teamclaw-openclaw:latest";
14
19
  const DEFAULT_CONTROLLER_PORT = 9527;
@@ -548,18 +553,18 @@ function attemptPluginInstall({ configPath }) {
548
553
  {
549
554
  label: "openclaw",
550
555
  command: "openclaw",
551
- args: ["plugins", "install", PACKAGE_NAME],
556
+ args: ["plugins", "install", PACKAGE_INSTALL_SPEC],
552
557
  },
553
558
  {
554
559
  label: "npm exec fallback",
555
560
  command: "npm",
556
- args: ["exec", "-y", "openclaw@latest", "--", "plugins", "install", PACKAGE_NAME],
561
+ args: ["exec", "-y", "openclaw@latest", "--", "plugins", "install", PACKAGE_INSTALL_SPEC],
557
562
  },
558
563
  ];
559
564
 
560
565
  for (let index = 0; index < candidates.length; index += 1) {
561
566
  const candidate = candidates[index];
562
- console.log(`\nInstalling ${PACKAGE_NAME} with ${candidate.label}...`);
567
+ console.log(`\nInstalling ${PACKAGE_INSTALL_SPEC} with ${candidate.label}...`);
563
568
  const result = installPluginWithCommand(candidate.command, candidate.args, env);
564
569
  if (result.status === 0 && !result.error) {
565
570
  return {
@@ -2,7 +2,7 @@
2
2
  "id": "teamclaw",
3
3
  "name": "TeamClaw",
4
4
  "description": "Virtual team collaboration - multiple OpenClaw instances form a virtual software company with role-based task routing.",
5
- "version": "2026.3.24-3",
5
+ "version": "2026.3.24-4",
6
6
  "uiHints": {
7
7
  "mode": {
8
8
  "label": "Mode",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamclaws/teamclaw",
3
- "version": "2026.3.24-3",
3
+ "version": "2026.3.24-4",
4
4
  "description": "OpenClaw virtual software team orchestration plugin",
5
5
  "private": false,
6
6
  "keywords": [