@larkup/marketplace 0.1.6 → 0.1.8

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,25 @@
1
1
  # @larkup/marketplace
2
2
 
3
+ ## 0.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 592c637: Fix standalone startup and Docker runtime compatibility, make bundled marketplace tools ready immediately, and improve ingestion, chat retrieval, media preview, and analytics feedback.
8
+
9
+ ## 0.1.7
10
+
11
+ ### Patch Changes
12
+
13
+ - 197c629: fix: Docker compatibility, AI agent tool priority, and indexing reliability
14
+
15
+ - Fix yt-dlp "No supported JavaScript runtime" error in Docker by passing --js-runtimes nodejs:node
16
+ - Fix LanceDB "Found field not in schema: metadata" by always serializing metadata column
17
+ - Speed up Marketplace tool installs in Docker with --prefer-offline
18
+ - Enforce RAG-first tool priority: searchKnowledgeBase → webSearch → other tools
19
+ - Instruct AI to use presentMedia for image previews instead of raw markdown (fixes [Image unavailable])
20
+ - Strengthen webSearch tool description to enforce secondary priority
21
+ - @larkup/core@0.2.4
22
+
3
23
  ## 0.1.6
4
24
 
5
25
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/marketplace",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -14,7 +14,7 @@
14
14
  "./manifest": "./src/tool-manifest.schema.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@larkup/core": "0.2.3"
17
+ "@larkup/core": "0.2.4"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^24",
@@ -14,6 +14,16 @@ import { getToolById, invalidateRegistryCache } from './tool-registry';
14
14
 
15
15
  const execAsync = promisify(execCb);
16
16
 
17
+ // npm mutates a shared node_modules tree. Serializing those mutations prevents
18
+ // double-clicks or concurrent API requests from colliding during npm's rename
19
+ // phase (the source of the ENOTEMPTY failures seen in installed applications).
20
+ let packageMutationChain: Promise<unknown> = Promise.resolve();
21
+ function serializePackageMutation<T>(fn: () => Promise<T>): Promise<T> {
22
+ const run = packageMutationChain.then(fn, fn);
23
+ packageMutationChain = run.catch(() => {});
24
+ return run;
25
+ }
26
+
17
27
  /**
18
28
  * Tool installer — manages installing / uninstalling marketplace tools.
19
29
  *
@@ -96,7 +106,10 @@ async function writeManifest(manifest: InstalledToolsManifest) {
96
106
  export async function getInstalledTools(): Promise<InstalledTool[]> {
97
107
  const manifest = await readManifest();
98
108
  const tools = [...manifest.tools];
99
- const bundledIds = (process.env.LARKUP_BUNDLED_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')
100
113
  .split(',')
101
114
  .map((id) => id.trim())
102
115
  .filter(Boolean);
@@ -233,6 +246,17 @@ async function execInstall(
233
246
  version: string,
234
247
  target: DeploymentTarget,
235
248
  onProgress?: (message: string) => void,
249
+ ): Promise<{ resolvedPath: string; version: string }> {
250
+ return serializePackageMutation(() =>
251
+ execInstallUnlocked(packageName, version, target, onProgress),
252
+ );
253
+ }
254
+
255
+ async function execInstallUnlocked(
256
+ packageName: string,
257
+ version: string,
258
+ target: DeploymentTarget,
259
+ onProgress?: (message: string) => void,
236
260
  ): Promise<{ resolvedPath: string; version: string }> {
237
261
  const toolsDir = getToolsDir();
238
262
 
@@ -243,7 +267,7 @@ async function execInstall(
243
267
  await ensureToolsPackageJson();
244
268
 
245
269
  const install = async (specifier: string) => {
246
- const installCmd = `npm install ${specifier} --prefix "${toolsDir}" --save --no-audit --no-fund`;
270
+ const installCmd = `npm install ${specifier} --prefix "${toolsDir}" --save --no-audit --no-fund --prefer-offline`;
247
271
  onProgress?.(`Running: npm install ${specifier}`);
248
272
  const { stderr } = await execAsync(installCmd, {
249
273
  cwd: toolsDir,
@@ -160,7 +160,7 @@ const FALLBACK_REGISTRY: Record<string, ToolDescriptor> = {
160
160
  ],
161
161
  tags: ['transcription', 'ffmpeg', 'video', 'audio', 'whisper'],
162
162
  downloads: 0,
163
- repositoryUrl: 'https://github.com/Larkup-AI/larkup-rag',
163
+ repositoryUrl: 'https://github.com/Larkup-AI/larkup',
164
164
  license: 'Apache-2.0',
165
165
  updatedAt: '2026-07-20',
166
166
  configSchema: [
@@ -215,7 +215,7 @@ const FALLBACK_REGISTRY: Record<string, ToolDescriptor> = {
215
215
  capabilities: ['clip-embeddings', 'image-similarity'],
216
216
  tags: ['clip', 'siglip', 'image-search', 'visual-similarity'],
217
217
  downloads: 0,
218
- repositoryUrl: 'https://github.com/Larkup-AI/larkup-rag',
218
+ repositoryUrl: 'https://github.com/Larkup-AI/larkup',
219
219
  license: 'Apache-2.0',
220
220
  updatedAt: '2026-07-20',
221
221
  comingSoon: true,
@@ -237,7 +237,7 @@ const FALLBACK_REGISTRY: Record<string, ToolDescriptor> = {
237
237
  capabilities: ['document-editing', 'form-filling', 'document-preview'],
238
238
  tags: ['pdf', 'docx', 'pptx', 'form', 'canvas', 'editor', 'fill'],
239
239
  downloads: 0,
240
- repositoryUrl: 'https://github.com/Larkup-AI/larkup-rag',
240
+ repositoryUrl: 'https://github.com/Larkup-AI/larkup',
241
241
  license: 'Apache-2.0',
242
242
  updatedAt: '2026-07-20',
243
243
  },