@larkup/marketplace 0.1.21 → 0.1.23

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,18 @@
1
1
  # @larkup/marketplace
2
2
 
3
+ ## 0.1.23
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [07e35de]
8
+ - @larkup/core@0.4.0
9
+
10
+ ## 0.1.22
11
+
12
+ ### Patch Changes
13
+
14
+ - 57a3be9: Offer a one-click Video & Audio tool update when an older installation asks the user to install yt-dlp manually.
15
+
3
16
  ## 0.1.21
4
17
 
5
18
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/marketplace",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
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.3.4"
17
+ "@larkup/core": "0.4.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^26",
@@ -472,14 +472,31 @@ async function resolveManifest(toolId: string): Promise<ToolDescriptor> {
472
472
  * Outside the monorepo, tools are downloaded from npm.
473
473
  */
474
474
  async function isWorkspaceTool(packageName: string): Promise<boolean> {
475
+ return Boolean(await resolveWorkspaceToolPath(packageName));
476
+ }
477
+
478
+ /**
479
+ * Return the real package root for a pnpm/workspace-linked tool. This must not
480
+ * rely on CommonJS `require.resolve`: Next.js route handlers run as ESM and
481
+ * can otherwise mistake a bundled workspace tool for a remote npm package.
482
+ */
483
+ async function resolveWorkspaceToolPath(packageName: string): Promise<string | undefined> {
475
484
  try {
476
- // Resolving a bundled package is instant. Running `pnpm ls -r` here made
477
- // a small first-party tool installation wait on a full workspace scan (or
478
- // a missing pnpm binary) on every end-user machine.
479
- require.resolve(packageName, { paths: [process.cwd()] });
480
- return true;
485
+ const linkedPath = path.join(process.cwd(), 'node_modules', ...packageName.split('/'));
486
+ const packageRoot = await fs.realpath(linkedPath);
487
+ const manifest = JSON.parse(
488
+ await fs.readFile(path.join(packageRoot, 'package.json'), 'utf8'),
489
+ ) as {
490
+ name?: string;
491
+ };
492
+ // Registry packages resolve inside node_modules; a pnpm workspace link
493
+ // resolves to the repository package directory outside of it.
494
+ return manifest.name === packageName &&
495
+ !packageRoot.includes(`${path.sep}node_modules${path.sep}`)
496
+ ? packageRoot
497
+ : undefined;
481
498
  } catch {
482
- return false;
499
+ return undefined;
483
500
  }
484
501
  }
485
502
 
@@ -552,16 +569,9 @@ export async function installTool(
552
569
  if (isWorkspace) {
553
570
  // Monorepo development — tool is already linked via workspace
554
571
  report('downloading', 30, 'Resolving workspace package…');
555
- try {
556
- // Resolve the workspace package path
557
- const modulePath = require.resolve(descriptor.packageName, {
558
- paths: [process.cwd()],
559
- });
560
- resolvedPath = path.dirname(modulePath);
561
- } catch {
562
- // Fallback: try resolving from node_modules directly
563
- resolvedPath = path.join(process.cwd(), 'node_modules', descriptor.packageName);
564
- }
572
+ resolvedPath =
573
+ (await resolveWorkspaceToolPath(descriptor.packageName)) ??
574
+ path.join(process.cwd(), 'node_modules', descriptor.packageName);
565
575
  source = 'local';
566
576
  report('installing', 60, 'Workspace package resolved.');
567
577
  } else {
@@ -180,10 +180,11 @@ export async function fetchToolFromHub(
180
180
  const FALLBACK_REGISTRY: Record<string, ToolDescriptor> = {
181
181
  'video-audio': {
182
182
  id: 'video-audio',
183
- name: 'Video & Audio',
184
- description: 'Index video and audio files with transcription and frame analysis.',
183
+ name: 'Video Intelligence',
184
+ description:
185
+ 'Build evidence-backed video timelines with adaptive attention and bounded source rewind.',
185
186
  category: 'media',
186
- version: '0.3.5',
187
+ version: '0.3.6',
187
188
  pricing: 'free',
188
189
  emoji: '🎬',
189
190
  icon: 'Film',
@@ -196,8 +197,11 @@ const FALLBACK_REGISTRY: Record<string, ToolDescriptor> = {
196
197
  'transcription',
197
198
  'frame-extraction',
198
199
  'youtube-import',
200
+ 'attention-driven-analysis',
201
+ 'temporal-evidence',
202
+ 'bounded-source-rewind',
199
203
  ],
200
- tags: ['transcription', 'ffmpeg', 'video', 'audio', 'whisper'],
204
+ tags: ['video intelligence', 'temporal reasoning', 'transcription', 'ffmpeg', 'video', 'audio'],
201
205
  downloads: 0,
202
206
  repositoryUrl: 'https://github.com/Larkup-AI/larkup',
203
207
  license: 'Apache-2.0',
@@ -205,7 +209,7 @@ const FALLBACK_REGISTRY: Record<string, ToolDescriptor> = {
205
209
  configSchema: [
206
210
  {
207
211
  key: 'frameInterval',
208
- label: 'Frame extraction interval (seconds)',
212
+ label: 'Baseline coverage interval (seconds)',
209
213
  type: 'text',
210
214
  defaultValue: '10',
211
215
  help: 'Baseline cadence for duration-aware coverage frames; scene changes and a reserved ending pass are added separately.',