@larkup/tool-video-intelligence 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/dist/agent.js +6 -4
- package/package.json +1 -1
- package/tool.manifest.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -153,7 +153,7 @@ export function attachVideoIntelligenceAgentClient(client, fetcher = globalThis.
|
|
|
153
153
|
ui: citationSurface(asset, context, established.map((reading) => ({
|
|
154
154
|
modality: 'visual',
|
|
155
155
|
timeRange: { ...reading.range, precision: 'estimated' },
|
|
156
|
-
})), supportingClip
|
|
156
|
+
})), supportingClip),
|
|
157
157
|
directObservation: {
|
|
158
158
|
readings: established,
|
|
159
159
|
rule: 'These are direct readings taken by re-watching the source just now, for this ' +
|
|
@@ -264,7 +264,7 @@ export function attachVideoIntelligenceAgentClient(client, fetcher = globalThis.
|
|
|
264
264
|
// The UI contract is generic and tool-owned. The host only
|
|
265
265
|
// renders a citations surface; it does not know why this
|
|
266
266
|
// source range was selected or expose extraction details.
|
|
267
|
-
ui: citationSurface(asset, context, evidence, supportingClip
|
|
267
|
+
ui: citationSurface(asset, context, evidence, supportingClip),
|
|
268
268
|
}
|
|
269
269
|
: {}),
|
|
270
270
|
claimVerification: {
|
|
@@ -1719,7 +1719,7 @@ function isServiceBusy(value) {
|
|
|
1719
1719
|
return false;
|
|
1720
1720
|
return value.serviceBusy === true;
|
|
1721
1721
|
}
|
|
1722
|
-
function citationSurface(asset, context, evidence,
|
|
1722
|
+
function citationSurface(asset, context, evidence, supportingClip) {
|
|
1723
1723
|
const sourceUrl = `/api/media/${encodeURIComponent(asset.id)}${context.projectId ? `?projectId=${encodeURIComponent(context.projectId)}` : ''}`;
|
|
1724
1724
|
return {
|
|
1725
1725
|
kind: 'citations',
|
|
@@ -1727,7 +1727,9 @@ function citationSurface(asset, context, evidence, primaryTimestampSecs) {
|
|
|
1727
1727
|
fileName: asset.fileName ?? 'Video',
|
|
1728
1728
|
mediaType: asset.type === 'audio' ? 'audio' : 'video',
|
|
1729
1729
|
mediaUrl: sourceUrl,
|
|
1730
|
-
|
|
1730
|
+
sourceUrl: asset.originalUrl || sourceUrl,
|
|
1731
|
+
primaryTimestampSecs: supportingClip.startSecs,
|
|
1732
|
+
primaryEndSecs: supportingClip.endSecs,
|
|
1731
1733
|
// Keep citations inspectable without surfacing raw transcription or
|
|
1732
1734
|
// frame-extraction text in the conversation.
|
|
1733
1735
|
items: evidence.map((item) => ({
|
package/package.json
CHANGED
package/tool.manifest.json
CHANGED
|
@@ -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.2.
|
|
10
|
+
"version": "0.2.8",
|
|
11
11
|
"pricing": "free",
|
|
12
12
|
"emoji": "🎥",
|
|
13
13
|
"icon": "Film",
|