@larkup/marketplace 0.2.7 → 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,20 +1,22 @@
1
1
 
2
- > @larkup/marketplace@0.2.7 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) 214ms
9
- ✓ src/storage-provider-s3.test.ts (8 tests) 16ms
10
- ✓ src/tool-registry.test.ts (2 tests) 35ms
11
- ✓ src/output-sanitizer.test.ts (2 tests) 9ms
8
+ ✓ src/tool-loader.test.ts (3 tests) 602ms
9
+ ✓ loadTool (3)
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
12
14
 
13
15
  Test Files 4 passed (4)
14
16
  Tests 15 passed (15)
15
- Start at 10:26:02
16
- Duration 3.16s (transform 36%, tests 34%, import 23%, worker 7%)
17
+ Start at 10:14:55
18
+ Duration 6.36s (tests 40%, transform 37%, import 18%, worker 4%, environment 1%)
17
19
 
18
- Isolate 4 workers spawned · ~517ms startup each (spawn + environment, per file)
19
- at least ~1.55s 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
20
22
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @larkup/marketplace@0.2.7 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,5 +1,13 @@
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
+
3
11
  ## 0.2.7
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/marketplace",
3
- "version": "0.2.7",
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.10',
13
+ version: '0.2.11',
14
14
  pricing: 'free',
15
15
  emoji: '🎬',
16
16
  icon: 'Film',
@@ -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: '0.2.10',
12
+ version: '0.2.11',
13
13
  });
14
14
  });
15
15
  });