@larkup/cli 0.2.8 → 0.2.10

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.
@@ -60,23 +60,7 @@ async function writeManifest(manifest) {
60
60
  }
61
61
  async function getInstalledTools() {
62
62
  const manifest = await readManifest();
63
- const tools = [...manifest.tools];
64
- const bundledIds = (process.env.LARKUP_BUNDLED_TOOLS ?? "doc-editor,video-audio").split(",").map((id) => id.trim()).filter(Boolean);
65
- for (const toolId of bundledIds) {
66
- if (tools.some((tool) => tool.id === toolId)) continue;
67
- const descriptor = await getToolById(toolId);
68
- if (!descriptor) continue;
69
- tools.push({
70
- id: toolId,
71
- version: descriptor.version,
72
- installedAt: "bundled",
73
- packageName: descriptor.packageName,
74
- resolvedPath: descriptor.packageName,
75
- source: "local",
76
- config: buildDefaultConfig(descriptor)
77
- });
78
- }
79
- return tools;
63
+ return [...manifest.tools];
80
64
  }
81
65
  async function isToolInstalled(toolId) {
82
66
  const tools = await getInstalledTools();
@@ -240,12 +224,8 @@ async function resolveManifest(toolId) {
240
224
  }
241
225
  async function isWorkspaceTool(packageName) {
242
226
  try {
243
- const { stdout } = await execAsync(`pnpm ls -r --depth -1 --json 2>/dev/null || true`, {
244
- cwd: process.cwd(),
245
- timeout: 1e4
246
- });
247
- const data = JSON.parse(stdout || "[]");
248
- return Array.isArray(data) && data.some((pkg) => pkg.name === packageName);
227
+ __require.resolve(packageName, { paths: [process.cwd()] });
228
+ return true;
249
229
  } catch {
250
230
  return false;
251
231
  }
@@ -261,7 +241,7 @@ async function installTool(toolId, onProgress) {
261
241
  throw new Error(`${descriptor.name} is coming soon.`);
262
242
  }
263
243
  report("checking-deps", 15, "Checking system dependencies\u2026");
264
- const missing = await checkSystemDeps(toolId);
244
+ const missing = (await checkSystemDeps(toolId)).filter((dependency) => dependency !== "docker");
265
245
  if (missing.length > 0) {
266
246
  const msg = `Missing system dependencies: ${missing.join(", ")}. Please install them first.`;
267
247
  report("failed", 0, msg);
@@ -343,7 +323,7 @@ async function uninstallTool(toolId) {
343
323
  }
344
324
  }
345
325
  invalidateRegistryCache();
346
- const { unloadTool: unloadTool2 } = await import("./tool-loader-VBH7DQU3.js");
326
+ const { unloadTool: unloadTool2 } = await import("./tool-loader-BAUVT52G.js");
347
327
  unloadTool2(toolId);
348
328
  }
349
329
  async function notifyHubInstall(toolId) {
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  isToolInstalled,
20
20
  loadTool,
21
21
  uninstallTool
22
- } from "./chunk-KMVYMOQV.js";
22
+ } from "./chunk-ECNTPZXZ.js";
23
23
  import {
24
24
  getAllTools,
25
25
  getToolById
@@ -34,7 +34,7 @@ import { Command } from "commander";
34
34
  // package.json
35
35
  var package_default = {
36
36
  name: "@larkup/cli",
37
- version: "0.2.8",
37
+ version: "0.2.10",
38
38
  publishConfig: {
39
39
  access: "public"
40
40
  },
@@ -3,7 +3,7 @@ import {
3
3
  isToolLoaded,
4
4
  loadTool,
5
5
  unloadTool
6
- } from "./chunk-KMVYMOQV.js";
6
+ } from "./chunk-ECNTPZXZ.js";
7
7
  import "./chunk-UCYL66UI.js";
8
8
  import "./chunk-3RG5ZIWI.js";
9
9
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/cli",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -28,9 +28,9 @@
28
28
  "cli-table3": "^0.6.5",
29
29
  "commander": "^15.0.0",
30
30
  "zod": "^4.4.3",
31
- "@larkup/vector-stores": "0.1.23",
32
31
  "@larkup/core": "0.2.4",
33
- "@larkup/marketplace": "0.1.8"
32
+ "@larkup/marketplace": "0.1.10",
33
+ "@larkup/vector-stores": "0.1.23"
34
34
  },
35
35
  "devDependencies": {
36
36
  "tsup": "^8.0.0",