@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.
- package/.turbo/turbo-test.log +11 -9
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/db/builtin-tools.ts +1 -1
- package/src/tool-extension.ts +67 -0
- package/src/tool-registry.test.ts +1 -1
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
> @larkup/marketplace@0.2.
|
|
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)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
✓ src/
|
|
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:
|
|
16
|
-
Duration
|
|
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 · ~
|
|
19
|
-
at least ~
|
|
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
|
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@larkup/marketplace",
|
|
3
|
-
"version": "0.2.
|
|
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.
|
|
29
|
+
"@larkup/core": "0.6.0"
|
|
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.2.
|
|
13
|
+
version: '0.2.11',
|
|
14
14
|
pricing: 'free',
|
|
15
15
|
emoji: '🎬',
|
|
16
16
|
icon: 'Film',
|
package/src/tool-extension.ts
CHANGED
|
@@ -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
|
|