@larkup/marketplace 0.2.6 → 0.2.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.
@@ -1,22 +1,22 @@
1
1
 
2
- > @larkup/marketplace@0.2.6 test /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
2
+ > @larkup/marketplace@0.2.8 test /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
3
3
  > vitest run
4
4
 
5
5
 
6
6
  RUN v5.0.0 /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
7
7
 
8
- ✓ src/tool-loader.test.ts (3 tests) 584ms
8
+ ✓ src/tool-loader.test.ts (3 tests) 602ms
9
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
10
+ ✓ loads an unlinked workspace package from its resolved directory 518ms
11
+ ✓ src/tool-registry.test.ts (2 tests) 26ms
12
+ ✓ src/storage-provider-s3.test.ts (8 tests) 47ms
13
+ ✓ src/output-sanitizer.test.ts (2 tests) 24ms
14
14
 
15
15
  Test Files 4 passed (4)
16
16
  Tests 15 passed (15)
17
- Start at 09:45:05
18
- Duration 5.20s (tests 44%, transform 31%, import 18%, worker 7%)
17
+ Start at 10:14:55
18
+ Duration 6.36s (tests 40%, transform 37%, import 18%, worker 4%, environment 1%)
19
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
20
+ Isolate 4 workers spawned · ~1.05s startup each (spawn + environment, per file)
21
+ at least ~3.14s faster with isolate: false — reuses workers across files instead of one per file
22
22
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @larkup/marketplace@0.2.6 type-check /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
2
+ > @larkup/marketplace@0.2.8 type-check /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
3
3
  > tsc --noEmit
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,9 +1,24 @@
1
1
  # @larkup/marketplace
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 211071c: Improve deterministic video evidence routing and complete-source retrieval.
8
+ - Updated dependencies [211071c]
9
+ - @larkup/core@0.6.0
10
+
11
+ ## 0.2.7
12
+
13
+ ### Patch Changes
14
+
15
+ - Fix Hub database modules loading on Node.js runtimes that use native TypeScript stripping.
16
+
3
17
  ## 0.2.6
4
18
 
5
19
  ### Patch Changes
6
20
 
21
+ - Keep the bundled Video Intelligence fallback catalog aligned with version 0.2.10.
7
22
  - Updated dependencies [167ee9c]
8
23
  - Updated dependencies [b483d01]
9
24
  - Updated dependencies [ff5a5b6]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/marketplace",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
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.5"
29
+ "@larkup/core": "0.6.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^26",
@@ -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.9',
13
+ version: '0.2.11',
14
14
  pricing: 'free',
15
15
  emoji: '🎬',
16
16
  icon: 'Film',
package/src/db/repo.ts CHANGED
@@ -15,9 +15,12 @@ import { workspaceInstallations } from './schema/installations.js';
15
15
  import { validateToolManifest } from './validate.js';
16
16
 
17
17
  export class ManifestInvalidError extends Error {
18
- constructor(readonly errors: string[]) {
18
+ readonly errors: string[];
19
+
20
+ constructor(errors: string[]) {
19
21
  super(`Invalid manifest: ${errors.join('; ')}`);
20
22
  this.name = 'ManifestInvalidError';
23
+ this.errors = errors;
21
24
  }
22
25
  }
23
26
 
@@ -37,6 +37,7 @@ export interface AgentToolExecutionContext {
37
37
  >;
38
38
  planQuestion: (question: string) => {
39
39
  kinds: string[];
40
+ route?: 'search' | 'temporal' | 'aggregate' | 'scan' | 'export';
40
41
  requiresInspectionWhenInsufficient: boolean;
41
42
  requiresBothRanges?: boolean;
42
43
  requiresBroadCoverage?: boolean;
@@ -147,6 +148,72 @@ export interface AgentToolExecutionContext {
147
148
  };
148
149
  }>
149
150
  >;
151
+ /**
152
+ * Reads the active source in chronological pages. Unlike `search`, this
153
+ * operation has no relevance ranking and is used for complete inventories.
154
+ */
155
+ scan?: (
156
+ mediaAssetId: string,
157
+ input: { kind: 'source-inventory' | 'all-evidence'; cursor?: number; limit?: number },
158
+ ) => Promise<
159
+ | {
160
+ resultHandle: string;
161
+ records: Array<{
162
+ id: string;
163
+ sourceEvidenceId: string;
164
+ kind: string;
165
+ channel?: string;
166
+ questionRole?: 'primary' | 'interactional' | 'rhetorical';
167
+ taskId?: string;
168
+ text: string;
169
+ answer?: string;
170
+ respondent?: string;
171
+ timeRange: { startSecs: number; endSecs: number; precision?: string };
172
+ modality: string;
173
+ confidence: unknown;
174
+ }>;
175
+ continuation: {
176
+ cursor: number;
177
+ nextCursor?: number;
178
+ hasMore: boolean;
179
+ totalRecords: number;
180
+ };
181
+ coverage: {
182
+ complete: boolean;
183
+ scannedRecords: number;
184
+ totalRecords: number;
185
+ reason?: string;
186
+ };
187
+ }
188
+ | undefined
189
+ >;
190
+ /** A compact, durable navigation map built from all active source evidence. */
191
+ aggregate?: (mediaAssetId: string) => Promise<
192
+ | {
193
+ resultHandle: string;
194
+ cached: boolean;
195
+ participants: Array<{
196
+ name: string;
197
+ description: string;
198
+ timeRange: { startSecs: number; endSecs: number; precision?: string };
199
+ }>;
200
+ timeline: Array<{
201
+ text: string;
202
+ timeRange: { startSecs: number; endSecs: number; precision?: string };
203
+ }>;
204
+ sourceItems: Array<{
205
+ id: string;
206
+ kind: string;
207
+ channel?: string;
208
+ questionRole?: 'primary' | 'interactional' | 'rhetorical';
209
+ promptSlots?: number;
210
+ text: string;
211
+ timeRange: { startSecs: number; endSecs: number; precision?: string };
212
+ }>;
213
+ coverage: { inventoryComplete: boolean; activeEvidenceRecords: number };
214
+ }
215
+ | undefined
216
+ >;
150
217
  };
151
218
  }
152
219
 
@@ -9,7 +9,7 @@ describe('tool registry fallback catalog', () => {
9
9
  expect(registry['video-intelligence']).toMatchObject({
10
10
  id: 'video-intelligence',
11
11
  packageName: '@larkup/tool-video-intelligence',
12
- version: expect.any(String),
12
+ version: '0.2.11',
13
13
  });
14
14
  });
15
15
  });