@larkup/cli 0.3.22 → 0.3.25

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.
Files changed (40) hide show
  1. package/dist/{bowser-KBMRPWZW.js → bowser-ASWGABFI.js} +164 -121
  2. package/dist/{chunk-M4T7TRRC.js → chunk-5BSYIRDU.js} +101 -99
  3. package/dist/{chunk-JKTTCUZ3.js → chunk-6DABOFED.js} +45 -43
  4. package/dist/chunk-7EA4HEQD.js +34 -0
  5. package/dist/{chunk-G4JLV4D2.js → chunk-7FM7FGTQ.js} +44 -45
  6. package/dist/{chunk-3HURSQNH.js → chunk-7TW2TQDP.js} +2 -2
  7. package/dist/{chunk-G542PEOG.js → chunk-CONEIN76.js} +12 -40
  8. package/dist/{chunk-SUBMQE2G.js → chunk-H7OL7A3G.js} +29 -29
  9. package/dist/{chunk-NMIRIGDS.js → chunk-HQBHXWFO.js} +25 -25
  10. package/dist/{chunk-TEVXZRMI.js → chunk-ILXTFN5F.js} +73 -71
  11. package/dist/{chunk-CQRTVM3R.js → chunk-J7WYSJV7.js} +41 -36
  12. package/dist/{chunk-YL567TPU.js → chunk-JI3YBGMX.js} +4 -4
  13. package/dist/{chunk-4Y7OLVDR.js → chunk-K4ZAP2B4.js} +4 -4
  14. package/dist/{chunk-VMIDDBSU.js → chunk-KS7UJLUP.js} +3 -3
  15. package/dist/{chunk-5UNSW2YQ.js → chunk-MJ2NZ7GC.js} +2 -2
  16. package/dist/{chunk-MEKWGOS5.js → chunk-R344ACAN.js} +3 -3
  17. package/dist/{chunk-TX2W2TDD.js → chunk-UQHNRXYH.js} +3 -3
  18. package/dist/{chunk-5YXDD2GC.js → chunk-YK4G67UU.js} +135 -163
  19. package/dist/{chunk-MTXSOKLF.js → chunk-ZXBQA42I.js} +1066 -1027
  20. package/dist/{chunk-5LXQQ3B5.js → chunk-ZYEAPZDK.js} +67 -64
  21. package/dist/{dist-es-EYJKNFZZ.js → dist-es-3UDUJKAW.js} +10 -9
  22. package/dist/{dist-es-I5PEXU6M.js → dist-es-3ZGN24NL.js} +6 -5
  23. package/dist/{dist-es-HOKTEA4H.js → dist-es-6VWQDGTA.js} +23 -22
  24. package/dist/{dist-es-IBDQOMV4.js → dist-es-DJYED3JX.js} +21 -20
  25. package/dist/{dist-es-KLJ57YTV.js → dist-es-HKJET4EN.js} +3 -2
  26. package/dist/{dist-es-GCJ2YN2W.js → dist-es-JZZWWWB2.js} +15 -12
  27. package/dist/{dist-es-RSHHKZQR.js → dist-es-RQTS5BDT.js} +287 -236
  28. package/dist/{dist-es-SM3XZOJI.js → dist-es-RUHE7T2I.js} +11 -10
  29. package/dist/{dist-es-64SQQSB2.js → dist-es-S4JBTIGW.js} +9 -8
  30. package/dist/{dist-es-WKOKSFRW.js → dist-es-TGIPXSQR.js} +9 -8
  31. package/dist/{event-streams-DO25HTN4.js → event-streams-5GHJY7DB.js} +3 -2
  32. package/dist/{event-streams-DE7Y6VJA.js → event-streams-7GD5LM2F.js} +19 -18
  33. package/dist/index.js +92 -60
  34. package/dist/{loadSso-RBMT5EPI.js → loadSso-QUU5KKBX.js} +27 -26
  35. package/dist/{signin-S7FYOH5Y.js → signin-KDNHL2KM.js} +30 -29
  36. package/dist/{sso-oidc-YVLODDDB.js → sso-oidc-BNG5ERAX.js} +29 -28
  37. package/dist/{sts-R6CUYWGQ.js → sts-K53JNAYZ.js} +32 -31
  38. package/dist/{tool-loader-ZRVSMB4T.js → tool-loader-3TBSU7FY.js} +2 -2
  39. package/dist/{tool-registry-FLO7V4FK.js → tool-registry-HJLG5I6X.js} +1 -1
  40. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  isToolInstalled,
7
7
  loadTool,
8
8
  uninstallTool
9
- } from "./chunk-4Y7OLVDR.js";
9
+ } from "./chunk-K4ZAP2B4.js";
10
10
  import {
11
11
  DEFAULT_CONFIG,
12
12
  createProject,
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  getAllTools,
30
30
  getToolById
31
- } from "./chunk-5UNSW2YQ.js";
31
+ } from "./chunk-MJ2NZ7GC.js";
32
32
  import {
33
33
  __require
34
34
  } from "./chunk-QGM4M3NI.js";
@@ -39,7 +39,7 @@ import { Command } from "commander";
39
39
  // package.json
40
40
  var package_default = {
41
41
  name: "@larkup/cli",
42
- version: "0.3.22",
42
+ version: "0.3.25",
43
43
  engines: {
44
44
  node: ">=22"
45
45
  },
@@ -60,21 +60,21 @@ var package_default = {
60
60
  "type-check": "tsc --noEmit"
61
61
  },
62
62
  dependencies: {
63
- "@ai-sdk/cohere": "^4.0.76",
64
- "@ai-sdk/deepseek": "^3.0.80",
65
- "@ai-sdk/gateway": "^4.0.136",
66
- "@ai-sdk/google": "^4.0.112",
67
- "@ai-sdk/mistral": "^4.0.80",
68
- "@ai-sdk/openai": "^4.0.109",
69
- "@ai-sdk/openai-compatible": "^3.0.85",
63
+ "@ai-sdk/cohere": "^4.0.85",
64
+ "@ai-sdk/deepseek": "^3.0.88",
65
+ "@ai-sdk/gateway": "^4.0.150",
66
+ "@ai-sdk/google": "^4.0.122",
67
+ "@ai-sdk/mistral": "^4.0.88",
68
+ "@ai-sdk/openai": "^4.0.121",
69
+ "@ai-sdk/openai-compatible": "^3.0.93",
70
70
  "@clack/prompts": "^1.7.0",
71
71
  "@lancedb/lancedb": "^0.41.0",
72
72
  "@larkup/core": "workspace:*",
73
73
  "@larkup/marketplace": "workspace:*",
74
74
  "@larkup/vector-stores": "workspace:*",
75
- "@napi-rs/canvas": "1.1.0",
75
+ "@napi-rs/canvas": "1.1.1",
76
76
  "@pinecone-database/pinecone": "^9.0.0",
77
- ai: "^7.0.163",
77
+ ai: "^7.0.177",
78
78
  "apache-arrow": "18.1.0",
79
79
  chalk: "^6.0.0",
80
80
  chromadb: "^3.5.0",
@@ -4001,6 +4001,7 @@ async function corpusStats() {
4001
4001
  // ../../packages/core/src/index-store.ts
4002
4002
  import { promises as fs5 } from "fs";
4003
4003
  import path7 from "path";
4004
+ import { randomUUID as randomUUID3 } from "crypto";
4004
4005
  var writeChain2 = Promise.resolve();
4005
4006
  function serialize2(fn) {
4006
4007
  const run = writeChain2.then(fn, fn);
@@ -4023,6 +4024,15 @@ async function readRun() {
4023
4024
  return null;
4024
4025
  }
4025
4026
  }
4027
+ async function writeStoredRun(file, run) {
4028
+ const temporary = `${file}.${randomUUID3()}.tmp`;
4029
+ try {
4030
+ await fs5.writeFile(temporary, JSON.stringify(run, null, 2), "utf8");
4031
+ await fs5.rename(temporary, file);
4032
+ } finally {
4033
+ await fs5.rm(temporary, { force: true });
4034
+ }
4035
+ }
4026
4036
  function claimRun(run) {
4027
4037
  return serialize2(async () => {
4028
4038
  const current = await readRun();
@@ -4031,7 +4041,7 @@ function claimRun(run) {
4031
4041
  }
4032
4042
  const file = await runPath(true);
4033
4043
  const next = { ...run, updatedAt: (/* @__PURE__ */ new Date()).toISOString() };
4034
- if (file) await fs5.writeFile(file, JSON.stringify(next, null, 2), "utf8");
4044
+ if (file) await writeStoredRun(file, next);
4035
4045
  return next;
4036
4046
  });
4037
4047
  }
@@ -4048,7 +4058,7 @@ function patchRun(patch, expectedRunId, requireActive) {
4048
4058
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
4049
4059
  };
4050
4060
  const file = await runPath(true);
4051
- if (file) await fs5.writeFile(file, JSON.stringify(next, null, 2), "utf8");
4061
+ if (file) await writeStoredRun(file, next);
4052
4062
  return next;
4053
4063
  });
4054
4064
  }
@@ -4113,7 +4123,7 @@ async function addDocCommand(options) {
4113
4123
  }
4114
4124
 
4115
4125
  // ../../packages/core/src/indexing/indexer.ts
4116
- import { randomUUID as randomUUID3 } from "crypto";
4126
+ import { randomUUID as randomUUID4 } from "crypto";
4117
4127
 
4118
4128
  // ../../packages/core/src/indexing/chunker.ts
4119
4129
  var CHARS_PER_TOKEN = 4;
@@ -4179,32 +4189,53 @@ function chunkDocument(doc, params) {
4179
4189
  const overlapChars = tokensToChars(params.chunkOverlap);
4180
4190
  const text4 = doc.content?.trim() || "";
4181
4191
  const chunks = [];
4182
- if (text4) {
4192
+ const storedPages = doc.metadata?.pdfPages;
4193
+ const pdfPages = Array.isArray(storedPages) ? storedPages.filter(
4194
+ (page) => page !== null && typeof page === "object" && Number.isInteger(page.pageNumber) && page.pageNumber > 0 && typeof page.text === "string"
4195
+ ) : [];
4196
+ const textSections = pdfPages.length ? pdfPages.map((page) => ({ text: page.text, pageNumber: page.pageNumber })) : [{ text: text4, pageNumber: void 0 }];
4197
+ const imagesByPage = /* @__PURE__ */ new Map();
4198
+ if (Array.isArray(doc.metadata?.images)) {
4199
+ for (const image of doc.metadata.images) {
4200
+ if (!image || !Number.isInteger(image.pageNumber)) continue;
4201
+ const images = imagesByPage.get(image.pageNumber) ?? [];
4202
+ images.push(image);
4203
+ imagesByPage.set(image.pageNumber, images);
4204
+ }
4205
+ }
4206
+ for (const section of textSections) {
4207
+ const text5 = section.text.trim();
4208
+ if (!text5) continue;
4183
4209
  let raw;
4184
4210
  switch (params.strategy) {
4185
4211
  case "sentence":
4186
- raw = splitSentences(text4, maxChars);
4212
+ raw = splitSentences(text5, maxChars);
4187
4213
  break;
4188
4214
  case "fixed":
4189
- raw = hardSlice(text4, maxChars);
4215
+ raw = hardSlice(text5, maxChars);
4190
4216
  break;
4191
4217
  case "recursive":
4192
4218
  default:
4193
- raw = splitRecursive(text4, maxChars);
4219
+ raw = splitRecursive(text5, maxChars);
4194
4220
  break;
4195
4221
  }
4196
4222
  const withOverlap = applyOverlap(raw.map((c) => c.trim()).filter(Boolean), overlapChars);
4197
4223
  chunks.push(
4198
- ...withOverlap.map((textChunk, index) => ({
4199
- id: `${doc.id}#${index}`,
4224
+ ...withOverlap.map((textChunk, offset) => ({
4225
+ id: `${doc.id}#${chunks.length + offset}`,
4200
4226
  documentId: doc.id,
4201
- index,
4227
+ index: chunks.length + offset,
4202
4228
  text: textChunk,
4203
4229
  title: doc.title,
4204
4230
  url: doc.url,
4205
4231
  source: doc.source,
4206
4232
  charCount: textChunk.length,
4207
- metadata: doc.metadata
4233
+ metadata: section.pageNumber ? {
4234
+ ...doc.metadata,
4235
+ pdfPages: void 0,
4236
+ images: imagesByPage.get(section.pageNumber) ?? [],
4237
+ pageNumber: section.pageNumber
4238
+ } : doc.metadata
4208
4239
  }))
4209
4240
  );
4210
4241
  }
@@ -4222,6 +4253,7 @@ function chunkDocument(doc, params) {
4222
4253
  charCount: 0,
4223
4254
  metadata: {
4224
4255
  isImage: true,
4256
+ index: img.index,
4225
4257
  imageUrl: img.imageUrl,
4226
4258
  pageNumber: img.pageNumber,
4227
4259
  originalFile: doc.title,
@@ -4419,7 +4451,7 @@ function rateLimitDelayMs(error, attempt) {
4419
4451
  async function createRun(config) {
4420
4452
  const now = (/* @__PURE__ */ new Date()).toISOString();
4421
4453
  const run = {
4422
- id: randomUUID3(),
4454
+ id: randomUUID4(),
4423
4455
  status: "chunking",
4424
4456
  embeddingModelId: config.embeddingModelId,
4425
4457
  vectorStore: config.vectorStore,
@@ -4830,14 +4862,14 @@ async function readTextFiles(files) {
4830
4862
 
4831
4863
  // src/commands/media.ts
4832
4864
  import { promises as fs11 } from "fs";
4833
- import { createHash, randomUUID as randomUUID10 } from "crypto";
4865
+ import { createHash, randomUUID as randomUUID11 } from "crypto";
4834
4866
  import { createReadStream } from "fs";
4835
4867
  import path13 from "path";
4836
4868
 
4837
4869
  // ../../packages/core/src/media-store.ts
4838
4870
  import { promises as fs8 } from "fs";
4839
4871
  import path10 from "path";
4840
- import { randomUUID as randomUUID4 } from "crypto";
4872
+ import { randomUUID as randomUUID5 } from "crypto";
4841
4873
  var writeChain3 = Promise.resolve();
4842
4874
  function serialize3(fn) {
4843
4875
  const run = writeChain3.then(fn, fn);
@@ -4877,7 +4909,7 @@ async function writeAll2(assets) {
4877
4909
  if (!file) return;
4878
4910
  const temporaryFile = path10.join(
4879
4911
  path10.dirname(file),
4880
- `.${path10.basename(file)}.${process.pid}.${randomUUID4()}.tmp`
4912
+ `.${path10.basename(file)}.${process.pid}.${randomUUID5()}.tmp`
4881
4913
  );
4882
4914
  try {
4883
4915
  await fs8.writeFile(temporaryFile, JSON.stringify(assets, null, 2), "utf8");
@@ -4916,7 +4948,7 @@ function addMediaAssets(inputs) {
4916
4948
  const assets = await readMediaAssets();
4917
4949
  const now = (/* @__PURE__ */ new Date()).toISOString();
4918
4950
  const newAssets = inputs.map((input) => ({
4919
- id: randomUUID4(),
4951
+ id: randomUUID5(),
4920
4952
  type: input.type,
4921
4953
  fileName: input.fileName,
4922
4954
  mimeType: input.mimeType,
@@ -5089,7 +5121,7 @@ var S3StorageProvider = class {
5089
5121
  }
5090
5122
  async client() {
5091
5123
  if (!this._client) {
5092
- const { S3Client } = await import("./dist-es-RSHHKZQR.js");
5124
+ const { S3Client } = await import("./dist-es-RQTS5BDT.js");
5093
5125
  this._client = new S3Client({
5094
5126
  region: this.region,
5095
5127
  ...this._credentials ? { credentials: this._credentials } : {}
@@ -5108,7 +5140,7 @@ var S3StorageProvider = class {
5108
5140
  return { bucket: withoutScheme.slice(0, slashIndex), key: withoutScheme.slice(slashIndex + 1) };
5109
5141
  }
5110
5142
  async store(key, data, mimeType) {
5111
- const { PutObjectCommand } = await import("./dist-es-RSHHKZQR.js");
5143
+ const { PutObjectCommand } = await import("./dist-es-RQTS5BDT.js");
5112
5144
  const client = await this.client();
5113
5145
  const objectKey = this.objectKey(key);
5114
5146
  await client.send(
@@ -5126,7 +5158,7 @@ var S3StorageProvider = class {
5126
5158
  return this.store(key, await fs9.readFile(sourcePath), mimeType);
5127
5159
  }
5128
5160
  async retrieve(uri) {
5129
- const { GetObjectCommand } = await import("./dist-es-RSHHKZQR.js");
5161
+ const { GetObjectCommand } = await import("./dist-es-RQTS5BDT.js");
5130
5162
  const { bucket, key } = this.parseUri(uri);
5131
5163
  const client = await this.client();
5132
5164
  const response = await client.send(new GetObjectCommand({ Bucket: bucket, Key: key }));
@@ -5142,8 +5174,8 @@ var S3StorageProvider = class {
5142
5174
  return void 0;
5143
5175
  }
5144
5176
  async getReadUrl(uri, expiresInSecs) {
5145
- const { GetObjectCommand } = await import("./dist-es-RSHHKZQR.js");
5146
- const { getSignedUrl } = await import("./dist-es-EYJKNFZZ.js");
5177
+ const { GetObjectCommand } = await import("./dist-es-RQTS5BDT.js");
5178
+ const { getSignedUrl } = await import("./dist-es-3UDUJKAW.js");
5147
5179
  const { bucket, key } = this.parseUri(uri);
5148
5180
  const client = await this.client();
5149
5181
  return getSignedUrl(client, new GetObjectCommand({ Bucket: bucket, Key: key }), {
@@ -5151,7 +5183,7 @@ var S3StorageProvider = class {
5151
5183
  });
5152
5184
  }
5153
5185
  async delete(uri) {
5154
- const { DeleteObjectCommand } = await import("./dist-es-RSHHKZQR.js");
5186
+ const { DeleteObjectCommand } = await import("./dist-es-RQTS5BDT.js");
5155
5187
  const { bucket, key } = this.parseUri(uri);
5156
5188
  const client = await this.client();
5157
5189
  try {
@@ -5183,12 +5215,12 @@ function createStorageProvider(_config) {
5183
5215
  }
5184
5216
 
5185
5217
  // ../../packages/core/src/video-knowledge/revision-store.ts
5186
- import { randomUUID as randomUUID6 } from "crypto";
5218
+ import { randomUUID as randomUUID7 } from "crypto";
5187
5219
 
5188
5220
  // ../../packages/core/src/video-knowledge/store.ts
5189
5221
  import { promises as fs10 } from "fs";
5190
5222
  import path12 from "path";
5191
- import { randomUUID as randomUUID5 } from "crypto";
5223
+ import { randomUUID as randomUUID6 } from "crypto";
5192
5224
  var EMPTY_STATE = {
5193
5225
  schemaVersion: 1,
5194
5226
  revisions: [],
@@ -5272,7 +5304,7 @@ async function writeState2(state) {
5272
5304
  if (!file) return;
5273
5305
  const temp = path12.join(
5274
5306
  path12.dirname(file),
5275
- `.${path12.basename(file)}.${process.pid}.${randomUUID5()}.tmp`
5307
+ `.${path12.basename(file)}.${process.pid}.${randomUUID6()}.tmp`
5276
5308
  );
5277
5309
  try {
5278
5310
  await fs10.writeFile(temp, JSON.stringify(state, null, 2), "utf8");
@@ -5342,7 +5374,7 @@ function createVideoKnowledgeRevision(input) {
5342
5374
  return mutateVideoKnowledgeState((state) => {
5343
5375
  const now = (/* @__PURE__ */ new Date()).toISOString();
5344
5376
  const revision = {
5345
- id: randomUUID6(),
5377
+ id: randomUUID7(),
5346
5378
  mediaAssetId: input.mediaAssetId,
5347
5379
  sourceFingerprint: input.sourceFingerprint,
5348
5380
  pipelineVersion: input.pipelineVersion,
@@ -5360,7 +5392,7 @@ function createVideoKnowledgeRevision(input) {
5360
5392
  }
5361
5393
 
5362
5394
  // ../../packages/core/src/video-knowledge/job-store.ts
5363
- import { randomUUID as randomUUID7 } from "crypto";
5395
+ import { randomUUID as randomUUID8 } from "crypto";
5364
5396
  function createVideoKnowledgeJob(input) {
5365
5397
  return mutateVideoKnowledgeState((state) => {
5366
5398
  const existing = state.jobs.find(
@@ -5369,7 +5401,7 @@ function createVideoKnowledgeJob(input) {
5369
5401
  if (existing) return existing;
5370
5402
  const now = (/* @__PURE__ */ new Date()).toISOString();
5371
5403
  const job = {
5372
- id: randomUUID7(),
5404
+ id: randomUUID8(),
5373
5405
  mediaAssetId: input.mediaAssetId,
5374
5406
  knowledgeRevisionId: input.knowledgeRevisionId,
5375
5407
  idempotencyKey: input.idempotencyKey,
@@ -5436,7 +5468,7 @@ function finishVideoKnowledgeJob(id, owner, status, error) {
5436
5468
  }
5437
5469
 
5438
5470
  // ../../packages/core/src/video-knowledge/knowledge-builder.ts
5439
- import { randomUUID as randomUUID8 } from "crypto";
5471
+ import { randomUUID as randomUUID9 } from "crypto";
5440
5472
  var uncalibrated = {
5441
5473
  score: 1,
5442
5474
  source: "heuristic",
@@ -5465,8 +5497,8 @@ function buildVideoKnowledgeFromEvidence(input) {
5465
5497
  (left, right) => left.timeRange.startSecs - right.timeRange.startSecs || left.timeRange.endSecs - right.timeRange.endSecs
5466
5498
  );
5467
5499
  const evidence = accepted.map((item) => {
5468
- const id = randomUUID8();
5469
- const lineageId = randomUUID8();
5500
+ const id = randomUUID9();
5501
+ const lineageId = randomUUID9();
5470
5502
  state.evidence.push({
5471
5503
  id,
5472
5504
  lineageId,
@@ -5490,8 +5522,8 @@ function buildVideoKnowledgeFromEvidence(input) {
5490
5522
  const observations = [];
5491
5523
  for (const record of evidence) {
5492
5524
  const kind = record.item.observation?.kind ?? (record.item.modality === "transcript" ? "speech" : record.item.modality === "ocr" ? "ocr" : record.item.modality === "audio-event" ? "audio-event" : record.item.modality === "computed" ? "computed" : "state");
5493
- const id = randomUUID8();
5494
- const lineageId = randomUUID8();
5525
+ const id = randomUUID9();
5526
+ const lineageId = randomUUID9();
5495
5527
  state.observations.push({
5496
5528
  id,
5497
5529
  lineageId,
@@ -5520,8 +5552,8 @@ function buildVideoKnowledgeFromEvidence(input) {
5520
5552
  if (!subject || !property || value.value === void 0) continue;
5521
5553
  const key = `${subject}\0${property}`;
5522
5554
  const previous = previousByProperty.get(key);
5523
- const stateId = randomUUID8();
5524
- const stateLineageId = randomUUID8();
5555
+ const stateId = randomUUID9();
5556
+ const stateLineageId = randomUUID9();
5525
5557
  state.states.push({
5526
5558
  id: stateId,
5527
5559
  lineageId: stateLineageId,
@@ -5552,7 +5584,7 @@ function buildVideoKnowledgeFromEvidence(input) {
5552
5584
  );
5553
5585
  if (!existing) {
5554
5586
  state.conflicts.push({
5555
- id: randomUUID8(),
5587
+ id: randomUUID9(),
5556
5588
  mediaAssetId: input.mediaAssetId,
5557
5589
  knowledgeRevisionId: input.knowledgeRevisionId,
5558
5590
  evidenceLineageIds: [
@@ -5566,9 +5598,9 @@ function buildVideoKnowledgeFromEvidence(input) {
5566
5598
  }
5567
5599
  }
5568
5600
  if (previous && JSON.stringify(previous.value) !== JSON.stringify(value.value)) {
5569
- const transitionLineageId = randomUUID8();
5601
+ const transitionLineageId = randomUUID9();
5570
5602
  state.transitions.push({
5571
- id: randomUUID8(),
5603
+ id: randomUUID9(),
5572
5604
  lineageId: transitionLineageId,
5573
5605
  mediaAssetId: input.mediaAssetId,
5574
5606
  knowledgeRevisionId: input.knowledgeRevisionId,
@@ -5596,8 +5628,8 @@ function buildVideoKnowledgeFromEvidence(input) {
5596
5628
  (candidate) => candidate.knowledgeRevisionId === input.knowledgeRevisionId && candidate.timeRange.startSecs === item.timeRange.startSecs && candidate.evidenceLineageIds.includes(observation.evidenceLineageId)
5597
5629
  );
5598
5630
  const event = {
5599
- id: randomUUID8(),
5600
- lineageId: randomUUID8(),
5631
+ id: randomUUID9(),
5632
+ lineageId: randomUUID9(),
5601
5633
  mediaAssetId: input.mediaAssetId,
5602
5634
  knowledgeRevisionId: input.knowledgeRevisionId,
5603
5635
  type: transition ? "state-transition" : item.observation?.kind ?? item.modality,
@@ -5628,8 +5660,8 @@ function buildVideoKnowledgeFromEvidence(input) {
5628
5660
  }
5629
5661
  const scenes = sceneGroups.map((group, index) => {
5630
5662
  const scene = {
5631
- id: randomUUID8(),
5632
- lineageId: randomUUID8(),
5663
+ id: randomUUID9(),
5664
+ lineageId: randomUUID9(),
5633
5665
  mediaAssetId: input.mediaAssetId,
5634
5666
  knowledgeRevisionId: input.knowledgeRevisionId,
5635
5667
  title: `Scene ${index + 1}: ${eventsDescription(group).slice(0, 120)}`,
@@ -5652,8 +5684,8 @@ function buildVideoKnowledgeFromEvidence(input) {
5652
5684
  for (let start = 0; start < scenes.length; start += chapterSize) {
5653
5685
  const group = scenes.slice(start, start + chapterSize);
5654
5686
  state.chapters.push({
5655
- id: randomUUID8(),
5656
- lineageId: randomUUID8(),
5687
+ id: randomUUID9(),
5688
+ lineageId: randomUUID9(),
5657
5689
  mediaAssetId: input.mediaAssetId,
5658
5690
  knowledgeRevisionId: input.knowledgeRevisionId,
5659
5691
  title: `Chapter ${Math.floor(start / chapterSize) + 1}: ${group[0].title.slice(0, 120)}`,
@@ -5684,7 +5716,7 @@ function eventsDescription(events) {
5684
5716
  }
5685
5717
 
5686
5718
  // ../../packages/core/src/video-knowledge/manifest-store.ts
5687
- import { randomUUID as randomUUID9 } from "crypto";
5719
+ import { randomUUID as randomUUID10 } from "crypto";
5688
5720
  function saveVideoKnowledgeProjection(record) {
5689
5721
  return saveVideoKnowledgeProjections([record]).then(([projection]) => projection);
5690
5722
  }
@@ -5694,7 +5726,7 @@ function saveVideoKnowledgeProjections(records) {
5694
5726
  const projections = records.map(
5695
5727
  (record) => ({
5696
5728
  ...record,
5697
- id: randomUUID9(),
5729
+ id: randomUUID10(),
5698
5730
  schemaVersion: 1,
5699
5731
  createdAt
5700
5732
  })
@@ -5712,7 +5744,7 @@ function activateVideoKnowledgeManifest(input) {
5712
5744
  }
5713
5745
  const manifest = {
5714
5746
  ...input,
5715
- id: randomUUID9(),
5747
+ id: randomUUID10(),
5716
5748
  schemaVersion: 1,
5717
5749
  createdAt: now,
5718
5750
  activatedAt: now
@@ -5979,7 +6011,7 @@ async function publishCliVideoKnowledge(input) {
5979
6011
  idempotencyKey: `${input.asset.id}:${revision.sourceFingerprint}:video-knowledge-v1`,
5980
6012
  budget: revision.budget
5981
6013
  });
5982
- const owner = randomUUID10();
6014
+ const owner = randomUUID11();
5983
6015
  if (!await claimVideoKnowledgeJob(job.id, owner))
5984
6016
  throw new Error("Unable to claim CLI video knowledge job.");
5985
6017
  try {
@@ -23,19 +23,19 @@ import {
23
23
  resolveDefaultRuntimeConfig,
24
24
  resolveEndpointConfig,
25
25
  resolveRetryConfig
26
- } from "./chunk-M4T7TRRC.js";
26
+ } from "./chunk-5BSYIRDU.js";
27
27
  import {
28
28
  AwsRestJsonProtocol,
29
29
  AwsSdkSigV4Signer,
30
30
  NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
31
31
  resolveAwsSdkSigV4Config
32
- } from "./chunk-CQRTVM3R.js";
33
- import "./chunk-3HURSQNH.js";
32
+ } from "./chunk-J7WYSJV7.js";
33
+ import "./chunk-7TW2TQDP.js";
34
34
  import {
35
35
  getContentLengthPlugin,
36
36
  getHttpHandlerExtensionConfiguration,
37
37
  resolveHttpHandlerRuntimeConfig
38
- } from "./chunk-MEKWGOS5.js";
38
+ } from "./chunk-R344ACAN.js";
39
39
  import {
40
40
  NODE_REGION_CONFIG_FILE_OPTIONS,
41
41
  NODE_REGION_CONFIG_OPTIONS,
@@ -44,10 +44,10 @@ import {
44
44
  loadConfig,
45
45
  resolveDefaultsModeConfig,
46
46
  resolveRegionConfig
47
- } from "./chunk-JKTTCUZ3.js";
47
+ } from "./chunk-6DABOFED.js";
48
48
  import {
49
49
  NodeHttpHandler
50
- } from "./chunk-G4JLV4D2.js";
50
+ } from "./chunk-7FM7FGTQ.js";
51
51
  import {
52
52
  NODE_APP_ID_CONFIG_OPTIONS,
53
53
  awsEndpointFunctions,
@@ -62,12 +62,12 @@ import {
62
62
  resolveAwsRegionExtensionConfiguration,
63
63
  resolveHostHeaderConfig,
64
64
  resolveUserAgentConfig
65
- } from "./chunk-MTXSOKLF.js";
66
- import "./chunk-5LXQQ3B5.js";
67
- import "./chunk-TEVXZRMI.js";
65
+ } from "./chunk-ZXBQA42I.js";
66
+ import "./chunk-ZYEAPZDK.js";
67
+ import "./chunk-ILXTFN5F.js";
68
68
  import {
69
69
  streamCollector
70
- } from "./chunk-5YXDD2GC.js";
70
+ } from "./chunk-YK4G67UU.js";
71
71
  import {
72
72
  Sha256Node,
73
73
  TypeRegistry,
@@ -77,15 +77,16 @@ import {
77
77
  getSchemaSerdePlugin,
78
78
  toBase64,
79
79
  toUtf8
80
- } from "./chunk-SUBMQE2G.js";
80
+ } from "./chunk-H7OL7A3G.js";
81
81
  import {
82
82
  getSmithyContext,
83
83
  normalizeProvider,
84
84
  parseUrl
85
- } from "./chunk-G542PEOG.js";
85
+ } from "./chunk-CONEIN76.js";
86
+ import "./chunk-7EA4HEQD.js";
86
87
  import "./chunk-QGM4M3NI.js";
87
88
 
88
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
89
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
89
90
  var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
90
91
  return {
91
92
  operation: getSmithyContext(context).operation,
@@ -136,7 +137,7 @@ var resolveHttpAuthSchemeConfig = (config) => {
136
137
  });
137
138
  };
138
139
 
139
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
140
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
140
141
  var resolveClientEndpointParameters = (options) => {
141
142
  return Object.assign(options, {
142
143
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -151,7 +152,7 @@ var commonParams = {
151
152
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
152
153
  };
153
154
 
154
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js
155
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js
155
156
  var k = "ref";
156
157
  var a = -1;
157
158
  var b = true;
@@ -238,7 +239,7 @@ var nodes = new Int32Array([
238
239
  ]);
239
240
  var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
240
241
 
241
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
242
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
242
243
  var cache = new EndpointCache({
243
244
  size: 50,
244
245
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
@@ -251,7 +252,7 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
251
252
  };
252
253
  customEndpointFunctions.aws = awsEndpointFunctions;
253
254
 
254
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
255
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
255
256
  var SSOServiceException = class _SSOServiceException extends ServiceException {
256
257
  static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";
257
258
  constructor(options) {
@@ -260,7 +261,7 @@ var SSOServiceException = class _SSOServiceException extends ServiceException {
260
261
  }
261
262
  };
262
263
 
263
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
264
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
264
265
  var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
265
266
  static shapeId = "com.amazonaws.sso#InvalidRequestException";
266
267
  name = "InvalidRequestException";
@@ -314,7 +315,7 @@ var UnauthorizedException = class _UnauthorizedException extends SSOServiceExcep
314
315
  }
315
316
  };
316
317
 
317
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
318
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
318
319
  var _ATT = "AccessTokenType";
319
320
  var _GRC = "GetRoleCredentials";
320
321
  var _GRCR = "GetRoleCredentialsRequest";
@@ -427,7 +428,7 @@ var GetRoleCredentials$ = [
427
428
  () => GetRoleCredentialsResponse$
428
429
  ];
429
430
 
430
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
431
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
431
432
  var getRuntimeConfig = (config) => {
432
433
  return {
433
434
  apiVersion: "2019-06-10",
@@ -465,7 +466,7 @@ var getRuntimeConfig = (config) => {
465
466
  };
466
467
  };
467
468
 
468
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
469
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
469
470
  var getRuntimeConfig2 = (config) => {
470
471
  emitWarningIfUnsupportedVersion2(process.version);
471
472
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -499,7 +500,7 @@ var getRuntimeConfig2 = (config) => {
499
500
  };
500
501
  };
501
502
 
502
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
503
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
503
504
  var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
504
505
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
505
506
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -538,14 +539,14 @@ var resolveHttpAuthRuntimeConfig = (config) => {
538
539
  };
539
540
  };
540
541
 
541
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
542
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
542
543
  var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
543
544
  const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
544
545
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
545
546
  return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
546
547
  };
547
548
 
548
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
549
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
549
550
  var SSOClient = class extends Client {
550
551
  config;
551
552
  constructor(...[configuration]) {
@@ -581,12 +582,12 @@ var SSOClient = class extends Client {
581
582
  }
582
583
  };
583
584
 
584
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js
585
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js
585
586
  var command = makeBuilder(commonParams, "SWBPortalService", "SSOClient", getEndpointPlugin);
586
587
  var _ep0 = {};
587
588
  var _mw0 = (Command, cs, config, o) => [];
588
589
 
589
- // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.1/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
590
+ // ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.998.4/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
590
591
  var GetRoleCredentialsCommand = class extends command(_ep0, _mw0, "GetRoleCredentials", GetRoleCredentials$) {
591
592
  };
592
593
  export {