@larkup/tool-video-intelligence 0.3.2 → 0.3.3

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/README.md CHANGED
@@ -133,6 +133,22 @@ queue as Docker. To use a LAN URL, set the card's local URL to an address on
133
133
  the host and keep the generated key private. Configure optional AI/provider
134
134
  credentials with `larkup-video-intelligence config set …` before starting.
135
135
 
136
+ ## Supported sources and evidence fallback
137
+
138
+ The Larkup Data page accepts local video uploads, direct public media URLs,
139
+ YouTube links, and public pages supported by the built-in media extractor. For
140
+ YouTube, Larkup prefers one native-language human caption track and then the
141
+ original-language automatic caption track. When no usable source caption is
142
+ available, the runtime transcribes the audio. Speech recognition is only one
143
+ evidence source: frame OCR and visual analysis continue when a video is silent
144
+ or transcription is unavailable, so written content can still be indexed.
145
+
146
+ Downloaded adaptive video and audio streams are merged into one browser-safe
147
+ asset. Larkup uses the video stream as the canonical timeline and normalizes a
148
+ padded container before storage when it would otherwise report an inflated
149
+ duration. Chat citations retain that same source timeline and open the local or
150
+ provider player at the cited moment.
151
+
136
152
  ## Indexing contract
137
153
 
138
154
  1. Upload to `POST /v1/uploads`.
@@ -253,7 +269,7 @@ These are self-hosted worker/service variables. Managed Cloud receives the corre
253
269
  | `LARKUP_VIDEO_AGENT_PROVIDER` | `vercel_ai_gateway` | Defaults from the AI Models chat provider and can be overridden per tool; supports Gateway, Google, OpenAI, DeepSeek, Mistral, Cohere, and Anthropic. |
254
270
  | `LARKUP_VIDEO_AGENT_API_KEY` | unset | User-owned agent provider credential. |
255
271
  | `LARKUP_VIDEO_AGENT_MODEL` | `openai/gpt-5-mini` | Tool-brain model that chooses modalities, sampling density, priority ranges, and extraction focus. |
256
- | `LARKUP_VIDEO_CONTINUITY_WAVE_BATCHES` | `4` | Parallel vision batches per chronological wave. Only source-grounded continuity candidates cross from one wave to the next. |
272
+ | `LARKUP_VIDEO_CONTINUITY_WAVE_BATCHES` | `4` | Parallel vision batches per chronological wave. Only source-grounded continuity candidates cross from one wave to the next. |
257
273
  | `LARKUP_VIDEO_GOOGLE_CONCURRENCY` | `4` | Maximum simultaneous native Gemini vision batches. Kept below Gateway concurrency to avoid direct-project burst limits. |
258
274
  | `LARKUP_VIDEO_GOOGLE_MAX_IMAGES_PER_REQUEST` | `8` | Bounds native Gemini request size so multi-clip structured responses remain within interactive provider timeouts. |
259
275
  | `LARKUP_VIDEO_GOOGLE_REQUESTS_PER_MINUTE` | `12` | Sliding-window request limit for native Gemini vision calls, leaving quota headroom for the agent model. |
package/dist/agent.js CHANGED
@@ -1994,7 +1994,7 @@ function citationSurface(asset, context, evidence, supportingClip) {
1994
1994
  items: evidence.map((item) => ({
1995
1995
  label: evidenceLabel(item.modality),
1996
1996
  timestampSecs: item.timeRange.startSecs,
1997
- seekUrl: `${sourceUrl}${sourceUrl.includes('?') ? '&' : '?'}t=${Math.floor(item.timeRange.startSecs)}`,
1997
+ seekUrl: `${sourceUrl}#t=${Math.floor(item.timeRange.startSecs)}`,
1998
1998
  })),
1999
1999
  };
2000
2000
  }
@@ -26,6 +26,8 @@ export interface VideoIndexingBrief {
26
26
  retainSourceHours: number;
27
27
  /** The app supplies transcript evidence itself, so the cloud GPU skips speech decoding. */
28
28
  skipTranscription?: boolean;
29
+ /** Timestamped source captions supplied by the host (for example YouTube captions). */
30
+ transcriptContext?: TranscriptEvidence[];
29
31
  /** A bounded verification must retain its direct visual evidence source. */
30
32
  requireSemanticVision?: boolean;
31
33
  /** Reads the requested range as one chronology instead of independent clips. */
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export * from './ui.js';
9
9
  export declare const TOOL_META: {
10
10
  readonly id: "video-intelligence";
11
11
  readonly name: "Video Intelligence";
12
- readonly version: "0.3.2";
12
+ readonly version: "0.3.3";
13
13
  };
14
14
  export declare const TOOL_EXTENSION: {
15
15
  id: "video-intelligence";
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ export * from './ui.js';
11
11
  export const TOOL_META = {
12
12
  id: 'video-intelligence',
13
13
  name: 'Video Intelligence',
14
- version: '0.3.2',
14
+ version: '0.3.3',
15
15
  };
16
16
  /** Managed infrastructure stays an implementation detail of Larkup Cloud. */
17
17
  const MANAGED_CLOUD_ENDPOINT = process.env.LARKUP_VIDEO_INTELLIGENCE_CLOUD_ENDPOINT ??
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/tool-video-intelligence",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "Installable local and cloud video intelligence with evidence-first indexing.",
6
6
  "main": "./dist/index.js",
@@ -55,13 +55,13 @@
55
55
  }
56
56
  },
57
57
  "dependencies": {
58
- "@larkup/core": "0.7.2"
58
+ "@larkup/core": "0.7.4"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/node": "^26",
62
62
  "typescript": "^7.0.2",
63
63
  "vitest": "^5.0.0",
64
- "@larkup/marketplace": "0.3.3"
64
+ "@larkup/marketplace": "0.3.5"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"
@@ -7,7 +7,7 @@
7
7
  "description": "Help your AI understand your videos, so you can ask questions and get answers from the right moments.",
8
8
  "longDescription": "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.",
9
9
  "category": "media",
10
- "version": "0.3.2",
10
+ "version": "0.3.3",
11
11
  "pricing": "free",
12
12
  "emoji": "🎥",
13
13
  "icon": "Film",