@larkup/marketplace 0.3.4 โ†’ 0.3.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/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@larkup/marketplace",
3
- "version": "0.3.4",
3
+ "version": "0.3.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
+ "files": [
8
+ ".env.example",
9
+ "db",
10
+ "src"
11
+ ],
7
12
  "type": "module",
8
13
  "exports": {
9
14
  "./types": "./src/types.ts",
@@ -26,11 +31,11 @@
26
31
  "drizzle-orm": "^0.45.2",
27
32
  "postgres": "^3.4.9",
28
33
  "tsx": "^4.23.5",
29
- "@larkup/core": "0.7.3"
34
+ "@larkup/core": "0.7.4"
30
35
  },
31
36
  "devDependencies": {
32
37
  "@types/node": "^26",
33
- "dotenv": "^17.4.2",
38
+ "dotenv": "^18.0.3",
34
39
  "drizzle-kit": "^0.31.10",
35
40
  "typescript": "^7.0.2",
36
41
  "vitest": "^5.0.0"
@@ -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.3.2',
13
+ version: '0.3.5',
14
14
  pricing: 'free',
15
15
  emoji: '๐ŸŽฌ',
16
16
  icon: 'Film',
@@ -191,7 +191,7 @@ export const BUILTIN_TOOLS: Record<string, unknown>[] = [
191
191
  downloads: 0,
192
192
  repositoryUrl: 'https://github.com/Larkup-AI/larkup',
193
193
  license: 'Apache-2.0',
194
- updatedAt: '2026-08-20',
194
+ updatedAt: '2026-10-06',
195
195
  trustLevel: 'elevated',
196
196
  permissions: {
197
197
  fsRead: true,
@@ -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.3.2',
12
+ version: '0.3.5',
13
13
  });
14
14
  });
15
15
  });
package/.env DELETED
@@ -1,6 +0,0 @@
1
- # Local contributor path (no Neon account needed):
2
- # docker compose -f docker/hub-db.yml up -d
3
- # cp packages/hub-db/.env.example packages/hub-db/.env
4
- # pnpm --filter @larkup/hub-db push
5
- # pnpm --filter @larkup/hub-db seed
6
- DATABASE_URL=postgres://larkup:larkup@localhost:5433/larkup_hub
@@ -1,21 +0,0 @@
1
-
2
- > @larkup/marketplace@0.3.4 test /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
3
- > vitest run
4
-
5
-
6
- RUN v5.0.1 /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
7
-
8
- โœ“ src/tool-loader.test.ts (3 tests) 55ms
9
- โœ“ src/tool-registry.test.ts (2 tests) 8ms
10
- โœ“ src/storage-provider-s3.test.ts (8 tests) 5ms
11
- โœ“ src/output-sanitizer.test.ts (2 tests) 4ms
12
- โœ“ src/tool-installer.test.ts (1 test) 2ms
13
-
14
- Test Files 5 passed (5)
15
- Tests 16 passed (16)
16
- Start at 21:22:21
17
- Duration 1.05s (transform 56%, import 20%, tests 18%, worker 5%)
18
-
19
- Isolate 5 workers spawned ยท ~124ms startup each (spawn + environment, per file)
20
- at least ~497ms faster with isolate: false โ€” reuses workers across files instead of one per file
21
-
@@ -1,4 +0,0 @@
1
-
2
- > @larkup/marketplace@0.3.4 type-check /Users/abdelrahmanabounida/Desktop/my-ai-startup/larkup/larkup/packages/marketplace
3
- > tsc --noEmit
4
-
package/CHANGELOG.md DELETED
@@ -1,461 +0,0 @@
1
- # @larkup/marketplace
2
-
3
- ## 0.3.4
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [c4be854]
8
- - @larkup/core@0.7.3
9
-
10
- ## 0.3.3
11
-
12
- ### Patch Changes
13
-
14
- - Updated dependencies [6b99a59]
15
- - Updated dependencies [6b99a59]
16
- - @larkup/core@0.7.2
17
-
18
- ## 0.3.2
19
-
20
- ### Patch Changes
21
-
22
- - Updated dependencies [d3ead95]
23
- - @larkup/core@0.7.1
24
-
25
- ## 0.3.1
26
-
27
- ### Patch Changes
28
-
29
- - Keep Marketplace update actions accurate after a successful install, and do not offer an npm update for a workspace-linked development tool that cannot be replaced by the installer.
30
-
31
- ## 0.3.0
32
-
33
- ### Minor Changes
34
-
35
- - Add language-neutral, model-issued video investigation directives, source-grounded chronological continuity, and an anonymous detection presence ledger for broad video investigation. Preserve the Media Panel indexing focus across local and remote imports, add source-wide coverage retrieval outside the model context, and make Marketplace tool updates settle to the verified installed version.
36
-
37
- ### Patch Changes
38
-
39
- - Updated dependencies
40
- - @larkup/core@0.7.0
41
-
42
- ## 0.2.9
43
-
44
- ### Patch Changes
45
-
46
- - 87a6753: Fix Marketplace tool updates when local npm metadata or installed version records are stale.
47
-
48
- ## 0.2.8
49
-
50
- ### Patch Changes
51
-
52
- - 211071c: Improve deterministic video evidence routing and complete-source retrieval.
53
- - Updated dependencies [211071c]
54
- - @larkup/core@0.6.0
55
-
56
- ## 0.2.7
57
-
58
- ### Patch Changes
59
-
60
- - Fix Hub database modules loading on Node.js runtimes that use native TypeScript stripping.
61
-
62
- ## 0.2.6
63
-
64
- ### Patch Changes
65
-
66
- - Keep the bundled Video Intelligence fallback catalog aligned with version 0.2.10.
67
- - Updated dependencies [167ee9c]
68
- - Updated dependencies [b483d01]
69
- - Updated dependencies [ff5a5b6]
70
- - @larkup/core@0.5.5
71
-
72
- ## 0.2.5
73
-
74
- ### Patch Changes
75
-
76
- - a37cee1: Make Marketplace tool updates visible and preserve installed settings while updating Video Intelligence to the cited-video playback release.
77
-
78
- ## 0.2.4
79
-
80
- ### Patch Changes
81
-
82
- - Updated dependencies [4130731]
83
- - @larkup/core@0.5.4
84
-
85
- ## 0.2.3
86
-
87
- ### Patch Changes
88
-
89
- - Updated dependencies [36e524c]
90
- - @larkup/core@0.5.3
91
-
92
- ## 0.2.2
93
-
94
- ### Patch Changes
95
-
96
- - 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.
97
- - Updated dependencies [2bb75fa]
98
- - @larkup/core@0.5.2
99
-
100
- ## 0.2.1
101
-
102
- ### Patch Changes
103
-
104
- - 847b502: Keep global installs and updates quiet and compatible by aligning Apache Arrow with LanceDB's
105
- supported peer range, shipping the marketplace TypeScript runtime loader, and using the renamed
106
- Daytona SDK package. Public tarballs also scrub local project state from all traced workspaces.
107
- - Updated dependencies [81abfcb]
108
- - @larkup/core@0.5.1
109
-
110
- ## 0.2.0
111
-
112
- ### Minor Changes
113
-
114
- - b2f4aa2: Add a shared agent-planned video indexing pipeline with Fast, Balanced, and
115
- Thorough modes, timestamp-grounded knowledge synthesis, live ETA progress, and
116
- independently selectable provider-filtered vision and tool-brain models.
117
- - Add the Marketplace v3 extension/runtime/billing contract and the installable cloud-first Video Intelligence tool with automatic device-scoped cloud connections, managed AWS deployment, quota controls, indexing briefs, durable timestamped chat evidence, audio-provider settings, and temporary capacity requests.
118
- - bf44a90: feat(marketplace): add a durable Postgres catalog
119
-
120
- `apps/marketplace` now stores publisher identity, extension versions, install
121
- counts, and audit events in Postgres.
122
-
123
- **`@larkup/marketplace`** now includes the Drizzle schema, committed
124
- migrations, a lazy Postgres client, and typed catalog queries under `src/db`.
125
- The Hub owns HTTP handling while the Marketplace package owns database access.
126
- Publishing validates manifests, preserves immutable versions, and enforces
127
- publisher ownership.
128
-
129
- **Local contributor path, no Neon account needed**:
130
- `docker compose -f docker/marketplace-db.yml up`, then `pnpm --filter
131
- @larkup/marketplace db:migrate && pnpm --filter @larkup/marketplace db:seed`.
132
-
133
- **`@larkup/hub`**: `/v1/*` stays byte-compatible โ€” every response is
134
- reconstructed from the stored manifest so `ToolDescriptor`/`ToolListResponse`/
135
- `ToolDetailResponse` are unchanged field-for-field, and
136
- `POST /v1/tools/:id/installed` still accepts the body-less request
137
- `packages/marketplace`'s installer sends today (falls back to an
138
- `"anonymous"` workspace bucket; a caller sending `workspaceId` gets accurate
139
- per-workspace install tracking with no Hub change required).
140
-
141
- See [ADR-012](docs/adrs/adr-012-marketplace-hub-on-postgres.md) for the
142
- schema and authorization design.
143
-
144
- - b2f4aa2: Make indexed video evidence findable and answerable.
145
-
146
- Retrieval now ranks the evidence at its own timestamps using the workspace
147
- embedding model, so a question asked in one language locates a moment recorded
148
- in another; the corpus only ever matched chapter-sized documents, and lexical
149
- scoring matched nothing at all across languages. Every timestamped signal is
150
- fused into a short ranked list of windows, which both aims bounded source
151
- inspection and gives the model a compact map to navigate by, replacing offsets
152
- computed from the recording's length.
153
-
154
- A conclusion, a count, and a comparison are settled by reading across records
155
- rather than by finding one that states the answer. Requiring a single record
156
- made those questions report the source as silent even when its closing state was
157
- plainly indexed; they are now answered from a chronological trail, with the
158
- answering rule stating how far that trail goes.
159
-
160
- Also fixes: the chapter/scene hierarchy was scoped to one revision, so a single
161
- refinement replaced the whole map of a source; the loader served a workspace
162
- tool's stale build until the host restarted; and a live analysis showed a
163
- completed progress bar for the minutes of work that follow the worker's own pass.
164
-
165
- - b2f4aa2: Video indexing now takes notes instead of describing frames, and a chat question
166
- that the index cannot settle is answered by re-reading the source directly
167
- instead of dispatching a re-index.
168
-
169
- **Indexing.** The per-clip reader was instructed to describe only what a clip's
170
- own pixels showed and never to use on-screen text or speech to identify anyone,
171
- which produced entries like "a man in a jersey sits on a couch" alongside
172
- detector class lists ("person, chair, couch"). It now writes notes the way a
173
- person would if they had to answer questions from them later: what happened and
174
- what changed, who was involved and what established each identity, and every
175
- informative piece of on-screen text read exactly and attached to what it labels.
176
- How much a note carries scales with the requested coverage (fast / balanced /
177
- thorough), and the indexing hint steers what gets the most detail. Detector class
178
- lists and low-confidence text no longer enter the searchable notes at all; both
179
- remain queryable as their own evidence.
180
-
181
- **Answering.** A question the index could not settle previously dispatched a
182
- bounded re-index: a cold GPU worker, minutes of wall time, and frequently a turn
183
- that expired before it returned, which reached the user as the video not showing
184
- something it plainly did. The host now exposes a `reWatch` capability that
185
- samples the candidate windows off the source and reads them in one multimodal
186
- request per window, with the windows read together. The dispatched path remains
187
- as the fallback behind it.
188
-
189
- **Transcription.** Local Whisper ran with voice detection always on. Over
190
- continuous background noise it discards speech rather than finding silence: on a
191
- noisy source it kept 2 segments where a second pass without it recovered 66, and
192
- a whole recording indexed with 5% of its speech. It now measures how much of the
193
- source the first pass found and re-decodes without voice detection when that is
194
- implausibly low, keeping whichever pass heard more.
195
-
196
- Also fixes three answering bugs found while testing against a real index:
197
-
198
- - A question settled by a trail of evidence rather than one record returned an
199
- empty evidence list, so the reply had nothing to cite and reported the source
200
- as silent.
201
- - A question about a conclusion spent one of its bounded looks on the opening of
202
- the source, where the answer cannot be.
203
- - A question about a whole progression spread its looks evenly across the
204
- source, landing between the moments it changed instead of on them.
205
-
206
- Also raises the reader's output budget. Current readers spend most of a small
207
- budget before emitting any content, so the previous interactive ceiling produced
208
- truncated, unparseable results rather than shorter ones.
209
-
210
- Measured on a 14.6-minute source: indexing 131s (balanced), and a bounded
211
- re-watch 660ms to sample plus ~14s to read, against minutes for the dispatched
212
- path.
213
-
214
- ### Patch Changes
215
-
216
- - Load installed Marketplace agent actions dynamically in chat, with validated schemas, collision protection, execution context, and workflow metadata. Video Intelligence now owns its bounded evidence-refinement action and declarative chat behavior.
217
- - b2f4aa2: Honor a Marketplace tool manifest's public or private distribution setting when it is published.
218
- - b2f4aa2: Make indexed video answers RAG-first, share one bounded fallback-analysis deadline, animate per-call chat progress, expose matched indexed context with timestamps, automatically paginate broad questions, and remove answer-cache shortcuts.
219
- - Improve project settings with portable Agent Skills, runtime filtering, current installed-tool manifests, and expanded Video Intelligence configuration. Agent Server deployments now expose tool discovery plus AI SDK and OpenAI-compatible streaming endpoints, grouped separately from Knowledge endpoints in Scalar. Add text streaming helpers, chat-model discovery, and guarded per-request provider/model selection to the JavaScript and Python SDK clients. AI Gateway runtimes list their available language models; direct-provider runtimes remain constrained to their configured provider. Align `larkup chat --model` with the configured provider so a Gateway key is never routed to a direct vendor.
220
- - b2f4aa2: Add portable runtime selection, a manifest-driven media-indexing confirmation form, cloud allowance support requests, and capped device-trial entitlement controls for Video Intelligence.
221
- - b2f4aa2: Make video indexing and retrieval work the same for any kind of video, and
222
- make an indexing job's progress reflect the work it is doing.
223
-
224
- Indexing and retrieval both carried rules written for one kind of footage: a
225
- question planner that branched on sport vocabulary in English and Arabic, an
226
- OCR pass that only kept paired numbers under 30, and prompts that told the
227
- reader how to interpret a two-sided display. Those rules answered a narrow set
228
- of questions on a narrow set of videos and quietly distorted everything else.
229
- They are replaced by signals that mean the same thing in any recording: which
230
- short on-screen text persists and when it changes, whether a question wants one
231
- fact or the whole source, and whether a state sequence is consistent with
232
- itself over time.
233
-
234
- The retrieval agent now runs one gap-driven loop rather than a set of
235
- per-question-type rules: it retrieves, decides what the evidence still lacks,
236
- watches the moments the index pointed at, and re-checks. Independent moments are
237
- watched together instead of one after another, which cuts a multi-range turn to
238
- roughly the cost of its slowest look, and a runtime that admits one job at a
239
- time is handled by falling back to one at a time rather than failing the turn.
240
- An answer a question was watched for is now recognised by what produced it,
241
- rather than by the reader repeating the question back.
242
-
243
- Progress is budgeted by how long each phase actually takes and advances between
244
- milestones, so the bar moves the whole way through rather than sitting still and
245
- then jumping. The runtime reports how far through its current stage it is, so a
246
- host rendering one bar per step no longer keeps its own copy of that budget.
247
-
248
- The three coverage modes now have non-overlapping budgets, so Fast can no longer
249
- plan more work than Balanced.
250
-
251
- The index's own reconciled account is now published as retrievable evidence.
252
- The runtime already cross-checks every reading of a moment against the rest of
253
- the timeline, but only the raw readings reached retrieval, so chat could answer
254
- from a reading the index had already set aside. Evidence that reconciles other
255
- evidence now leads the answer.
256
-
257
- The managed cloud worker's bulk reader moves to a stronger model. Measured on
258
- the same GPU and source, the previous one misread a two-sided on-screen display
259
- and produced a wrong index while also finishing slower, because a weaker reader
260
- costs more retries than it saves.
261
-
262
- - b2f4aa2: Improve Video Intelligence cloud usage, model verification, and local runtime controls.
263
- - Updated dependencies [738ba6c]
264
- - Updated dependencies [738ba6c]
265
- - Updated dependencies [738ba6c]
266
- - Updated dependencies
267
- - Updated dependencies [b2f4aa2]
268
- - Updated dependencies [b2f4aa2]
269
- - Updated dependencies [790a298]
270
- - Updated dependencies [b2f4aa2]
271
- - Updated dependencies
272
- - Updated dependencies
273
- - Updated dependencies
274
- - Updated dependencies
275
- - Updated dependencies
276
- - Updated dependencies [5d9b483]
277
- - Updated dependencies
278
- - Updated dependencies [b2f4aa2]
279
- - Updated dependencies [b2f4aa2]
280
- - Updated dependencies [b2f4aa2]
281
- - @larkup/core@0.5.0
282
-
283
- ## 0.1.25
284
-
285
- ### Patch Changes
286
-
287
- - Updated dependencies [aa75e4b]
288
- - @larkup/core@0.4.2
289
-
290
- ## 0.1.24
291
-
292
- ### Patch Changes
293
-
294
- - @larkup/core@0.4.1
295
-
296
- ## 0.1.23
297
-
298
- ### Patch Changes
299
-
300
- - Updated dependencies [07e35de]
301
- - @larkup/core@0.4.0
302
-
303
- ## 0.1.22
304
-
305
- ### Patch Changes
306
-
307
- - 57a3be9: Offer a one-click Video & Audio tool update when an older installation asks the user to install yt-dlp manually.
308
-
309
- ## 0.1.21
310
-
311
- ### Patch Changes
312
-
313
- - 4398407: Automatically prepare the official yt-dlp executable for YouTube imports, removing the host installation requirement.
314
-
315
- ## 0.1.20
316
-
317
- ### Patch Changes
318
-
319
- - 7601d83: Update Video & Audio from the Media page when an installed tool is stale, and prefer the newest marketplace catalog version so packaged ffmpeg helpers load correctly after installation.
320
-
321
- ## 0.1.19
322
-
323
- ### Patch Changes
324
-
325
- - d7d293c: Make Chat retrieval-only, reliably parse PDFs in Next deployments, simplify website entry, and prevent stale Video & Audio metadata from requiring a host ffmpeg installation.
326
- - Updated dependencies [d7d293c]
327
- - @larkup/core@0.3.4
328
-
329
- ## 0.1.18
330
-
331
- ### Patch Changes
332
-
333
- - 2d0d490: Improve AI Gateway rate-limit recovery and make video processing use bundled ffmpeg binaries without a system dependency.
334
- - Updated dependencies [e40bbe8]
335
- - @larkup/core@0.3.3
336
-
337
- ## 0.1.17
338
-
339
- ### Patch Changes
340
-
341
- - aae57aa: Recover gracefully from embedding quota limits, improve Knowledge Base and visual-answer UX, and bundle video processing binaries so media tooling installs without a separate ffmpeg setup.
342
- - Updated dependencies [aae57aa]
343
- - @larkup/core@0.3.2
344
-
345
- ## 0.1.16
346
-
347
- ### Patch Changes
348
-
349
- - 5da7a99: Replace deprecated fluent-ffmpeg with direct child_process.spawn calls. Eliminates npm deprecation warnings for fluent-ffmpeg and node-domexception. Increases auto-install timeout to 5min for large dependencies like ffmpeg.
350
-
351
- ## 0.1.15
352
-
353
- ### Patch Changes
354
-
355
- - f23cba6: Auto-install missing system dependencies (e.g. ffmpeg) during tool installation using the platform package manager (brew on macOS, apt/dnf/pacman/apk on Linux). Falls back to actionable error messages with the exact install command when auto-install is not possible.
356
-
357
- ## 0.1.14
358
-
359
- ### Patch Changes
360
-
361
- - @larkup/core@0.3.1
362
-
363
- ## 0.1.13
364
-
365
- ### Patch Changes
366
-
367
- - Updated dependencies [02fbbba]
368
- - @larkup/core@0.3.0
369
-
370
- ## 0.1.12
371
-
372
- ### Patch Changes
373
-
374
- - Updated dependencies
375
- - @larkup/core@0.2.6
376
-
377
- ## 0.1.11
378
-
379
- ### Patch Changes
380
-
381
- - Updated dependencies [2a0a7e2]
382
- - @larkup/core@0.2.5
383
-
384
- ## 0.1.10
385
-
386
- ### Patch Changes
387
-
388
- - c1b12cb: Restore reliable no-Docker local crawler search with a resilient public-search fallback, make current-event chat questions use enabled web search, speed up first-party tool installation, and improve media URL progress handling. Simplify settings and prompt UX, and make failed-crawl URL copying reliable.
389
-
390
- ## 0.1.9
391
-
392
- ### Patch Changes
393
-
394
- - 5ba20af: Make the local crawler work without Docker, make Marketplace installs opt-in and removable, and bound RAG retrieval tool loops and context growth.
395
-
396
- ## 0.1.8
397
-
398
- ### Patch Changes
399
-
400
- - 592c637: Fix standalone startup and Docker runtime compatibility, make bundled marketplace tools ready immediately, and improve ingestion, chat retrieval, media preview, and analytics feedback.
401
-
402
- ## 0.1.7
403
-
404
- ### Patch Changes
405
-
406
- - 197c629: fix: Docker compatibility, AI agent tool priority, and indexing reliability
407
-
408
- - Fix yt-dlp "No supported JavaScript runtime" error in Docker by passing --js-runtimes nodejs:node
409
- - Fix LanceDB "Found field not in schema: metadata" by always serializing metadata column
410
- - Speed up Marketplace tool installs in Docker with --prefer-offline
411
- - Enforce RAG-first tool priority: searchKnowledgeBase โ†’ webSearch โ†’ other tools
412
- - Instruct AI to use presentMedia for image previews instead of raw markdown (fixes [Image unavailable])
413
- - Strengthen webSearch tool description to enforce secondary priority
414
- - @larkup/core@0.2.4
415
-
416
- ## 0.1.6
417
-
418
- ### Patch Changes
419
-
420
- - Fix Docker data persistence, Marketplace installs, crawler readiness, and workspace-aware RAG retrieval.
421
- - Updated dependencies
422
- - @larkup/core@0.2.3
423
-
424
- ## 0.1.5
425
-
426
- ### Patch Changes
427
-
428
- - 19767f8: Fix isolated Marketplace tool loading in Docker, improve Video & Audio setup guidance, and reliably index PDF images.
429
-
430
- ## 0.1.4
431
-
432
- ### Patch Changes
433
-
434
- - c769d08: Retry marketplace installs against the latest published package when a stale catalog version is unavailable, and improve server and analytics UI behavior.
435
-
436
- ## 0.1.3
437
-
438
- ### Patch Changes
439
-
440
- - Updated dependencies [6241db2]
441
- - @larkup/core@0.2.2
442
-
443
- ## 0.1.2
444
-
445
- ### Patch Changes
446
-
447
- - 08e7029: Fix LanceDB native-module loading in packaged Larkup installations, align marketplace catalog versions with published tools, and make clearing a knowledge base discoverable.
448
- - @larkup/core@0.2.1
449
-
450
- ## 0.1.1
451
-
452
- ### Patch Changes
453
-
454
- - 4e54939: feat: add doc-editor tool and canvas preview
455
- - 8042a54: Index video and audio as multilingual timestamped evidence with adaptive sampling, complete-media notes, outcome-aware retrieval, and durable per-stage live progress.
456
- - Updated dependencies [efc6810]
457
- - Updated dependencies [5caaf2f]
458
- - Updated dependencies [8042a54]
459
- - Updated dependencies [843ef5c]
460
- - Updated dependencies [b7bc6fe]
461
- - @larkup/core@0.2.0
package/FUTURE_TODO.md DELETED
@@ -1,131 +0,0 @@
1
- # Future Optimizations & Roadmap
2
-
3
- ## Performance Optimizations
4
-
5
- ### Bull/Redis Worker Queue
6
- The current media processing uses in-process `worker_threads`. For production-scale workloads (processing 10,000+ images or long video files simultaneously), consider migrating to Bull + Redis:
7
- - **Bull** provides persistent job queues with retry, priority, and rate limiting
8
- - **Redis** as the backing store enables multi-process workers
9
- - Jobs can survive server restarts
10
- - Dashboard UI via Bull Board
11
-
12
- ### Parallel Processing
13
- - Process multiple media files in parallel with configurable concurrency
14
- - Use sharp's pipeline mode for batch image thumbnailing
15
- - Implement streaming upload for large video files
16
-
17
- ---
18
-
19
- ## Cloud Storage Providers
20
-
21
- ### S3 Provider
22
- ```typescript
23
- class S3StorageProvider implements StorageProvider {
24
- // Store files in S3 buckets
25
- // Pre-signed URLs for secure serving
26
- // Lifecycle policies for cost management
27
- }
28
- ```
29
-
30
- ### UploadThing Provider
31
- - Integrate with UploadThing for managed file uploads
32
- - Automatic CDN distribution
33
-
34
- ### Google Cloud Storage
35
- - GCS bucket integration
36
- - Cloud CDN for low-latency serving
37
-
38
- ---
39
-
40
- ## Marketplace Subscription System
41
-
42
- ### Architecture
43
- 1. **Remote Registry API** (Larkup Hub):
44
- - Hosted tool catalog with versioning
45
- - Subscription validation via license keys
46
- - Usage metering and billing integration
47
-
48
- 2. **Pricing Tiers**:
49
- - `free`: Always available, no restrictions
50
- - `pro`: Requires active subscription ($X/mo)
51
- - `enterprise`: Custom pricing, SLA, priority support
52
-
53
- 3. **Implementation**:
54
- - `ToolDescriptor.requiresSubscription` flag
55
- - License key validation on install
56
- - Periodic subscription status check
57
- - Graceful degradation on expiry (tool still installed but disabled)
58
-
59
- ### Revenue Model Ideas
60
- - Per-tool subscription (individual tool pricing)
61
- - Bundle pricing (all pro tools for one price)
62
- - Usage-based (pay per minute of video processed, per image captioned)
63
- - Freemium with limits (e.g., 100 images free, then subscription)
64
-
65
- ---
66
-
67
- ## API Gateway / Proxy Server
68
-
69
- ### Purpose
70
- A centralized API gateway to power the marketplace at scale. Currently all tracking is local; this service would enable:
71
- - **Remote tool registry** โ€” serve tool manifests from a central catalog / CDN
72
- - **Download/install count tracking** โ€” server-side counters (not local-only)
73
- - **Pricing & subscription validation** โ€” free vs pro vs enterprise tier enforcement
74
- - **License key verification** โ€” validate paid tools on install
75
- - **Tool version checks** โ€” notify users of available updates
76
- - **Rate limiting & abuse prevention** โ€” protect against malicious installs
77
- - **Analytics** โ€” track tool popularity, usage patterns, error rates
78
-
79
- ### Possible Stack
80
- - **Hono on Cloudflare Workers** (lightweight, edge-deployed)
81
- - **Alternatively**: Express/Fastify on a VPS, or a serverless function (Vercel/AWS Lambda)
82
- - **Storage**: Turso (SQLite) or Planetscale for tool metadata + download counts
83
- - **CDN**: Serve tool icon images via Cloudflare R2 or S3
84
-
85
- ### Endpoints (Draft)
86
- ```
87
- GET /v1/tools โ†’ list all available tools
88
- GET /v1/tools/:id โ†’ get tool details + download count
89
- POST /v1/tools/:id/install โ†’ increment download counter
90
- POST /v1/license/validate โ†’ validate license key for paid tools
91
- GET /v1/tools/:id/icon โ†’ serve tool icon image from CDN
92
- ```
93
-
94
- ---
95
-
96
- ## CLIP/SigLIP Native Embeddings
97
-
98
- ### What It Enables
99
- - Direct image-to-image similarity search
100
- - Text-to-image search via shared embedding space
101
- - No captioning needed for basic image retrieval
102
-
103
- ### Implementation Path
104
- 1. Integrate `open-clip-torch` or `@xenova/transformers` (JS)
105
- 2. Add CLIP vector dimension alongside text embeddings in vector store
106
- 3. Multi-vector index: text vectors + CLIP vectors
107
- 4. Hybrid search: combine text similarity + visual similarity scores
108
- 5. UI: drag-and-drop query image for visual search
109
-
110
- ### Estimated Model Sizes
111
- - ViT-B/32: ~340MB
112
- - ViT-L/14: ~900MB
113
- - SigLIP ViT-B/16: ~360MB (recommended for accuracy/speed tradeoff)
114
-
115
- ---
116
-
117
- ## Additional Future Features
118
-
119
- ### Real-time Audio Transcription
120
- - Stream microphone input directly to Whisper
121
- - Live captioning and indexing during meetings/calls
122
-
123
- ### Video Scene Segmentation
124
- - AI-powered scene boundary detection
125
- - Automatic chapter markers
126
- - Per-scene captioning instead of fixed-interval frames
127
-
128
- ### Batch Re-processing
129
- - Re-caption all media when switching vision models
130
- - Re-embed with different embedding model
131
- - Bulk update metadata
package/tsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ESNext",
5
- "moduleResolution": "bundler",
6
- "declaration": true,
7
- "strict": true,
8
- "types": ["node"],
9
- "esModuleInterop": true,
10
- "skipLibCheck": true,
11
- "outDir": "dist",
12
- "rootDir": "src"
13
- },
14
- "include": ["src"]
15
- }
package/vitest.config.ts DELETED
@@ -1,13 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- include: ['src/**/*.test.ts'],
6
- // src/db/** requires a real Postgres connection and already has its own
7
- // dedicated runner (`pnpm db:test`, db/vitest.config.ts) -- keep it out
8
- // of the default `pnpm test` so this doesn't fail without a database.
9
- exclude: ['node_modules/**', 'db/**', 'src/db/**'],
10
- environment: 'node',
11
- fileParallelism: false,
12
- },
13
- });