@larkup/marketplace 0.1.8 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @larkup/marketplace
2
2
 
3
+ ## 0.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - c1b12cb: Restore reliable no-Docker local crawler search with a resilient public-search fallback, make current-event chat questions use enabled web search, speed up first-party tool installation, and improve media URL progress handling. Simplify settings and prompt UX, and make failed-crawl URL copying reliable.
8
+
9
+ ## 0.1.9
10
+
11
+ ### Patch Changes
12
+
13
+ - 5ba20af: Make the local crawler work without Docker, make Marketplace installs opt-in and removable, and bound RAG retrieval tool loops and context growth.
14
+
3
15
  ## 0.1.8
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/marketplace",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -105,31 +105,11 @@ async function writeManifest(manifest: InstalledToolsManifest) {
105
105
 
106
106
  export async function getInstalledTools(): Promise<InstalledTool[]> {
107
107
  const manifest = await readManifest();
108
- const tools = [...manifest.tools];
109
- // The desktop/web distribution already ships these first-party packages as
110
- // direct dependencies. Treat them as available immediately rather than
111
- // downloading a second copy into the isolated tools folder.
112
- const bundledIds = (process.env.LARKUP_BUNDLED_TOOLS ?? 'doc-editor,video-audio')
113
- .split(',')
114
- .map((id) => id.trim())
115
- .filter(Boolean);
116
-
117
- for (const toolId of bundledIds) {
118
- if (tools.some((tool) => tool.id === toolId)) continue;
119
- const descriptor = await getToolById(toolId);
120
- if (!descriptor) continue;
121
- tools.push({
122
- id: toolId,
123
- version: descriptor.version,
124
- installedAt: 'bundled',
125
- packageName: descriptor.packageName,
126
- resolvedPath: descriptor.packageName,
127
- source: 'local',
128
- config: buildDefaultConfig(descriptor),
129
- });
130
- }
131
-
132
- return tools;
108
+ // A package being bundled with the application only makes it *available* to
109
+ // install. It must not silently enable an optional capability or make the
110
+ // Marketplace claim it was installed. The manifest is the single source of
111
+ // truth, which also makes uninstall immediately reflect in the UI.
112
+ return [...manifest.tools];
133
113
  }
134
114
 
135
115
  export async function isToolInstalled(toolId: string): Promise<boolean> {
@@ -380,13 +360,11 @@ async function resolveManifest(toolId: string): Promise<ToolDescriptor> {
380
360
  */
381
361
  async function isWorkspaceTool(packageName: string): Promise<boolean> {
382
362
  try {
383
- // Check if this package exists in the pnpm workspace
384
- const { stdout } = await execAsync(`pnpm ls -r --depth -1 --json 2>/dev/null || true`, {
385
- cwd: process.cwd(),
386
- timeout: 10_000,
387
- });
388
- const data = JSON.parse(stdout || '[]');
389
- return Array.isArray(data) && data.some((pkg: any) => pkg.name === packageName);
363
+ // Resolving a bundled package is instant. Running `pnpm ls -r` here made
364
+ // a small first-party tool installation wait on a full workspace scan (or
365
+ // a missing pnpm binary) on every end-user machine.
366
+ require.resolve(packageName, { paths: [process.cwd()] });
367
+ return true;
390
368
  } catch {
391
369
  return false;
392
370
  }
@@ -428,7 +406,7 @@ export async function installTool(
428
406
 
429
407
  // 2. Check system dependencies
430
408
  report('checking-deps', 15, 'Checking system dependencies…');
431
- const missing = await checkSystemDeps(toolId);
409
+ const missing = (await checkSystemDeps(toolId)).filter((dependency) => dependency !== 'docker');
432
410
  if (missing.length > 0) {
433
411
  const msg = `Missing system dependencies: ${missing.join(', ')}. Please install them first.`;
434
412
  report('failed', 0, msg);