@larkup/marketplace 0.2.4 → 0.2.6

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.
@@ -1,11 +1,22 @@
1
1
 
2
- > @larkup/marketplace@0.2.3 test /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
2
+ > @larkup/marketplace@0.2.6 test /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
3
3
  > vitest run
4
4
 
5
5
 
6
- RUN v4.1.11 /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
6
+ RUN v5.0.0 /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
7
+
8
+ ✓ src/tool-loader.test.ts (3 tests) 584ms
9
+ ✓ loadTool (3)
10
+ ✓ loads an unlinked workspace package from its resolved directory 332ms
11
+ ✓ src/storage-provider-s3.test.ts (8 tests) 39ms
12
+ ✓ src/tool-registry.test.ts (2 tests) 35ms
13
+ ✓ src/output-sanitizer.test.ts (2 tests) 7ms
14
+
15
+ Test Files 4 passed (4)
16
+ Tests 15 passed (15)
17
+ Start at 09:45:05
18
+ Duration 5.20s (tests 44%, transform 31%, import 18%, worker 7%)
19
+
20
+ Isolate 4 workers spawned · ~865ms startup each (spawn + environment, per file)
21
+ at least ~2.59s faster with isolate: false — reuses workers across files instead of one per file
7
22
 
8
- ✓ src/tool-loader.test.ts (3 tests) 155ms
9
- ✓ src/tool-registry.test.ts (1 test) 7ms
10
- ✓ src/storage-provider-s3.test.ts (8 tests) 14ms
11
-  ELIFECYCLE  Test failed. See above for more details.
@@ -1,4 +1,4 @@
1
1
 
2
- > @larkup/marketplace@0.2.3 type-check /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
2
+ > @larkup/marketplace@0.2.6 type-check /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
3
3
  > tsc --noEmit
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @larkup/marketplace
2
2
 
3
+ ## 0.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [167ee9c]
8
+ - Updated dependencies [b483d01]
9
+ - Updated dependencies [ff5a5b6]
10
+ - @larkup/core@0.5.5
11
+
12
+ ## 0.2.5
13
+
14
+ ### Patch Changes
15
+
16
+ - a37cee1: Make Marketplace tool updates visible and preserve installed settings while updating Video Intelligence to the cited-video playback release.
17
+
3
18
  ## 0.2.4
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.4",
3
+ "version": "0.2.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,14 +26,14 @@
26
26
  "drizzle-orm": "^0.45.2",
27
27
  "postgres": "^3.4.9",
28
28
  "tsx": "^4.23.5",
29
- "@larkup/core": "0.5.4"
29
+ "@larkup/core": "0.5.5"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^26",
33
33
  "dotenv": "^17.4.2",
34
34
  "drizzle-kit": "^0.31.10",
35
35
  "typescript": "^7.0.2",
36
- "vitest": "^4.1.10"
36
+ "vitest": "^5.0.0"
37
37
  },
38
38
  "scripts": {
39
39
  "type-check": "tsc --noEmit",
@@ -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.2.2',
13
+ version: '0.2.9',
14
14
  pricing: 'free',
15
15
  emoji: '🎬',
16
16
  icon: 'Film',
@@ -572,6 +572,7 @@ export async function installTool(
572
572
  const manifest = await readManifest();
573
573
  const existing = manifest.tools.findIndex((t) => t.id === toolId);
574
574
 
575
+ const existingTool = existing >= 0 ? manifest.tools[existing] : undefined;
575
576
  const entry: InstalledTool = {
576
577
  id: toolId,
577
578
  version: installedVersion,
@@ -579,7 +580,13 @@ export async function installTool(
579
580
  packageName: descriptor.packageName,
580
581
  resolvedPath,
581
582
  source,
582
- config: { ...buildDefaultConfig(descriptor), ...initialConfig },
583
+ // Updating a package must not silently discard settings that are kept in
584
+ // the installation manifest. Explicit input still wins over prior values.
585
+ config: {
586
+ ...buildDefaultConfig(descriptor),
587
+ ...(existingTool?.config ?? {}),
588
+ ...initialConfig,
589
+ },
583
590
  };
584
591
 
585
592
  if (existing >= 0) {
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, it } from 'vitest';
2
- import { buildRegistry, invalidateRegistryCache } from './tool-registry';
2
+ import { buildRegistry, compareToolVersions, invalidateRegistryCache } from './tool-registry';
3
3
 
4
4
  describe('tool registry fallback catalog', () => {
5
5
  it('keeps Video Intelligence installable when a remote catalog is stale or incomplete', async () => {
@@ -13,3 +13,10 @@ describe('tool registry fallback catalog', () => {
13
13
  });
14
14
  });
15
15
  });
16
+
17
+ describe('tool version comparison', () => {
18
+ it('does not let a stale catalog version outrank a newer installed release', () => {
19
+ expect(compareToolVersions('0.2.9', '0.2.8')).toBeGreaterThan(0);
20
+ expect(compareToolVersions('0.2.8', '0.2.9')).toBeLessThan(0);
21
+ });
22
+ });
@@ -23,7 +23,7 @@ function normalizeToolDescriptor(descriptor: ToolDescriptor): ToolDescriptor {
23
23
  * use stable releases, but accepting a suffix keeps a pre-release catalog
24
24
  * entry from incorrectly outranking its corresponding stable release.
25
25
  */
26
- function compareToolVersions(left: string, right: string): number {
26
+ export function compareToolVersions(left: string, right: string): number {
27
27
  const parse = (version: string) => {
28
28
  const [core, suffix = ''] = version.split('-', 2);
29
29
  const parts = core.split('.').map((part) => Number.parseInt(part, 10) || 0);