@larkup/marketplace 0.2.1 → 0.2.3
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/.turbo/turbo-test.log +9 -9
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +15 -0
- package/package.json +2 -2
- package/src/db/builtin-tools.ts +1 -1
- package/src/tool-installer.ts +2 -1
- package/src/tool-registry.test.ts +15 -0
- package/src/tool-registry.ts +11 -45
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @larkup/marketplace@0.2.
|
|
2
|
+
> @larkup/marketplace@0.2.3 test /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
|
|
3
3
|
> vitest run
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
RUN v4.1.11 /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
|
|
7
7
|
|
|
8
|
-
✓ src/tool-loader.test.ts (3 tests)
|
|
9
|
-
|
|
10
|
-
✓ src/storage-provider-s3.test.ts (8 tests)
|
|
11
|
-
✓ src/output-sanitizer.test.ts (2 tests)
|
|
8
|
+
✓ src/tool-loader.test.ts (3 tests) 194ms
|
|
9
|
+
✓ src/tool-registry.test.ts (1 test) 15ms
|
|
10
|
+
✓ src/storage-provider-s3.test.ts (8 tests) 7ms
|
|
11
|
+
✓ src/output-sanitizer.test.ts (2 tests) 3ms
|
|
12
12
|
|
|
13
|
-
Test Files
|
|
14
|
-
Tests
|
|
15
|
-
Start at
|
|
16
|
-
Duration 2.
|
|
13
|
+
Test Files 4 passed (4)
|
|
14
|
+
Tests 14 passed (14)
|
|
15
|
+
Start at 20:25:37
|
|
16
|
+
Duration 2.22s (transform 170ms, setup 0ms, import 387ms, tests 218ms, environment 0ms)
|
|
17
17
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @larkup/marketplace
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [36e524c]
|
|
8
|
+
- @larkup/core@0.5.3
|
|
9
|
+
|
|
10
|
+
## 0.2.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 2bb75fa: Persist packaged local projects, credentials, uploads, indexes, installed tools, and Video Intelligence runtime data outside the npm installation, with automatic migration from the legacy package-local directory. Keep Video Intelligence available when a Hub catalog is incomplete, and require a fresh visual pass for exhaustive PDF diagram questions.
|
|
15
|
+
- Updated dependencies [2bb75fa]
|
|
16
|
+
- @larkup/core@0.5.2
|
|
17
|
+
|
|
3
18
|
## 0.2.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@larkup/marketplace",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"drizzle-orm": "^0.45.2",
|
|
27
27
|
"postgres": "^3.4.9",
|
|
28
28
|
"tsx": "^4.23.5",
|
|
29
|
-
"@larkup/core": "0.5.
|
|
29
|
+
"@larkup/core": "0.5.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^26",
|
package/src/db/builtin-tools.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const BUILTIN_TOOLS: Record<string, unknown>[] = [
|
|
|
10
10
|
longDescription:
|
|
11
11
|
'Turn videos into knowledge your AI can understand. It listens to what is said, reads what appears on screen, and helps you find the moments that matter.',
|
|
12
12
|
category: 'media',
|
|
13
|
-
version: '0.
|
|
13
|
+
version: '0.2.2',
|
|
14
14
|
pricing: 'free',
|
|
15
15
|
emoji: '🎬',
|
|
16
16
|
icon: 'Film',
|
package/src/tool-installer.ts
CHANGED
|
@@ -39,7 +39,8 @@ function serializePackageMutation<T>(fn: () => Promise<T>): Promise<T> {
|
|
|
39
39
|
|
|
40
40
|
/** Root directory for tool installations. */
|
|
41
41
|
function getToolsDir(): string {
|
|
42
|
-
|
|
42
|
+
const dataDir = process.env.LARKUP_DATA_DIR?.trim();
|
|
43
|
+
return path.join(dataDir ? path.resolve(dataDir) : path.join(process.cwd(), '.larkup'), 'tools');
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
/** Path to the installed tools manifest. */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { buildRegistry, invalidateRegistryCache } from './tool-registry';
|
|
3
|
+
|
|
4
|
+
describe('tool registry fallback catalog', () => {
|
|
5
|
+
it('keeps Video Intelligence installable when a remote catalog is stale or incomplete', async () => {
|
|
6
|
+
invalidateRegistryCache();
|
|
7
|
+
const registry = await buildRegistry({ skipHub: true });
|
|
8
|
+
|
|
9
|
+
expect(registry['video-intelligence']).toMatchObject({
|
|
10
|
+
id: 'video-intelligence',
|
|
11
|
+
packageName: '@larkup/tool-video-intelligence',
|
|
12
|
+
version: expect.any(String),
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
});
|
package/src/tool-registry.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { promises as fs } from 'node:fs';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import type { ToolDescriptor } from './types';
|
|
4
4
|
import { DEFAULT_HUB_URL } from './types';
|
|
5
|
+
import { BUILTIN_TOOLS } from './db/builtin-tools';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Tool registry — resolves tool descriptors from multiple sources.
|
|
@@ -61,12 +62,16 @@ async function discoverLocalManifests(): Promise<Record<string, ToolDescriptor>>
|
|
|
61
62
|
const registry: Record<string, ToolDescriptor> = {};
|
|
62
63
|
|
|
63
64
|
// Try multiple possible tool directories
|
|
65
|
+
const persistentDataDir = process.env.LARKUP_DATA_DIR?.trim();
|
|
64
66
|
const searchPaths = [
|
|
65
67
|
// Monorepo development: packages/marketplace-tools/*
|
|
66
68
|
path.resolve(process.cwd(), 'packages', 'marketplace-tools'),
|
|
67
69
|
// Next.js dev server runs in apps/web
|
|
68
70
|
path.resolve(process.cwd(), '..', '..', 'packages', 'marketplace-tools'),
|
|
69
71
|
// Installed tools: .larkup/tools/node_modules/@larkup
|
|
72
|
+
...(persistentDataDir
|
|
73
|
+
? [path.resolve(persistentDataDir, 'tools', 'node_modules', '@larkup')]
|
|
74
|
+
: []),
|
|
70
75
|
path.resolve(process.cwd(), '.larkup', 'tools', 'node_modules', '@larkup'),
|
|
71
76
|
path.resolve(process.cwd(), '..', '..', '.larkup', 'tools', 'node_modules', '@larkup'),
|
|
72
77
|
];
|
|
@@ -160,51 +165,12 @@ export async function fetchToolFromHub(
|
|
|
160
165
|
* Minimal hardcoded registry for offline / first-run scenarios
|
|
161
166
|
* where neither manifests nor Hub are available.
|
|
162
167
|
*/
|
|
163
|
-
const FALLBACK_REGISTRY: Record<string, ToolDescriptor> =
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
version: '0.1.0',
|
|
170
|
-
pricing: 'free',
|
|
171
|
-
emoji: '🔍',
|
|
172
|
-
icon: 'ScanEye',
|
|
173
|
-
packageName: '@larkup/tool-clip-embeddings',
|
|
174
|
-
installSize: '~200 MB',
|
|
175
|
-
requiresSandbox: true,
|
|
176
|
-
author: 'Larkup',
|
|
177
|
-
capabilities: ['clip-embeddings', 'image-similarity'],
|
|
178
|
-
tags: ['clip', 'siglip', 'image-search', 'visual-similarity'],
|
|
179
|
-
downloads: 0,
|
|
180
|
-
repositoryUrl: 'https://github.com/Larkup-AI/larkup',
|
|
181
|
-
license: 'Apache-2.0',
|
|
182
|
-
updatedAt: '2026-07-20',
|
|
183
|
-
comingSoon: true,
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
'doc-editor': {
|
|
187
|
-
id: 'doc-editor',
|
|
188
|
-
name: 'Document Editor',
|
|
189
|
-
description: 'AI-powered form filling and document editing with Canvas-style live preview.',
|
|
190
|
-
category: 'utility',
|
|
191
|
-
version: '0.2.3',
|
|
192
|
-
pricing: 'free',
|
|
193
|
-
emoji: '📝',
|
|
194
|
-
icon: 'FileEdit',
|
|
195
|
-
packageName: '@larkup/tool-doc-editor',
|
|
196
|
-
installSize: '~5 MB',
|
|
197
|
-
systemDeps: ['docker'],
|
|
198
|
-
requiresSandbox: true,
|
|
199
|
-
author: 'Larkup',
|
|
200
|
-
capabilities: ['document-editing', 'form-filling', 'document-preview'],
|
|
201
|
-
tags: ['pdf', 'docx', 'pptx', 'form', 'canvas', 'editor', 'fill'],
|
|
202
|
-
downloads: 0,
|
|
203
|
-
repositoryUrl: 'https://github.com/Larkup-AI/larkup',
|
|
204
|
-
license: 'Apache-2.0',
|
|
205
|
-
updatedAt: '2026-07-20',
|
|
206
|
-
},
|
|
207
|
-
};
|
|
168
|
+
const FALLBACK_REGISTRY: Record<string, ToolDescriptor> = Object.fromEntries(
|
|
169
|
+
BUILTIN_TOOLS.map((tool) => {
|
|
170
|
+
const descriptor = normalizeToolDescriptor(tool as unknown as ToolDescriptor);
|
|
171
|
+
return [descriptor.id, descriptor];
|
|
172
|
+
}),
|
|
173
|
+
);
|
|
208
174
|
|
|
209
175
|
/**
|
|
210
176
|
* Build the full tool registry by merging sources. The deployed Hub is the
|