@opengeni/contracts 5.1.0 → 5.1.1

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.
@@ -33,6 +33,7 @@ export declare const ArtifactCatalogItem: z.ZodObject<{
33
33
  artifactId: z.ZodString;
34
34
  kind: z.ZodEnum<{
35
35
  assistant_completion: "assistant_completion";
36
+ browser_screenshot: "browser_screenshot";
36
37
  computer_screenshot: "computer_screenshot";
37
38
  event_media: "event_media";
38
39
  file: "file";
@@ -120,6 +121,7 @@ export declare const ArtifactCatalogListResponse: z.ZodObject<{
120
121
  artifactId: z.ZodString;
121
122
  kind: z.ZodEnum<{
122
123
  assistant_completion: "assistant_completion";
124
+ browser_screenshot: "browser_screenshot";
123
125
  computer_screenshot: "computer_screenshot";
124
126
  event_media: "event_media";
125
127
  file: "file";
package/dist/atlassian.js CHANGED
@@ -17,8 +17,8 @@ import {
17
17
  AtlassianSyncCadence,
18
18
  SaveAtlassianSourcesRequest,
19
19
  atlassianScopesAllowRead
20
- } from "./chunk-O23LYZFL.js";
21
- import "./chunk-M5ZGRVIQ.js";
20
+ } from "./chunk-4X45RNDK.js";
21
+ import "./chunk-5IXYF6XN.js";
22
22
  import "./chunk-7ABONTXE.js";
23
23
  import "./chunk-NRMCVHAU.js";
24
24
  import "./chunk-WYBDERIY.js";
@@ -4,7 +4,7 @@ import {
4
4
  RetainedArtifactReferenceSchema,
5
5
  retainedOutputUnavailable,
6
6
  validateRetainedOutputEvidence
7
- } from "./chunk-M5ZGRVIQ.js";
7
+ } from "./chunk-5IXYF6XN.js";
8
8
  import {
9
9
  normalizeAutomaticSessionTitle
10
10
  } from "./chunk-7ABONTXE.js";
@@ -586,6 +586,15 @@ var KnowledgeEntryRevision = z7.object({
586
586
  reviewBatchId: z7.uuid().nullable(),
587
587
  outcome: z7.enum(["published", "pending", "rejected", "superseded"])
588
588
  }).strict();
589
+ var KnowledgeIndexStatus = z7.enum([
590
+ "saved",
591
+ "queued",
592
+ "indexing",
593
+ "awaiting_funding",
594
+ "indexed",
595
+ "source_unavailable",
596
+ "provider_failed"
597
+ ]);
589
598
  var KnowledgeEntryRecord = z7.object({
590
599
  id: z7.uuid(),
591
600
  scope: KnowledgeEntryScope,
@@ -595,7 +604,8 @@ var KnowledgeEntryRecord = z7.object({
595
604
  revision: KnowledgeEntryRevision,
596
605
  archived: z7.boolean(),
597
606
  createdAt: z7.string().datetime({ offset: true }),
598
- updatedAt: z7.string().datetime({ offset: true })
607
+ updatedAt: z7.string().datetime({ offset: true }),
608
+ indexStatus: KnowledgeIndexStatus.optional()
599
609
  }).strict();
600
610
  var KnowledgeEntryListRequest = z7.object({
601
611
  query: z7.string().max(4096).optional(),
@@ -635,7 +645,8 @@ var KnowledgeEntrySummary = KnowledgeEntryRecord.omit({ revision: true }).extend
635
645
  var KnowledgeEntryListResponse = z7.object({
636
646
  entries: z7.array(KnowledgeEntrySummary),
637
647
  nextCursor: z7.string().nullable(),
638
- searchMode: z7.enum(["keyword", "hybrid", "vector"]).optional()
648
+ searchMode: z7.enum(["keyword", "hybrid", "vector"]).optional(),
649
+ fallbackReason: z7.enum(["awaiting_funding", "quota", "provider_unavailable", "query_limit"]).optional()
639
650
  });
640
651
  var KnowledgeReviewBatch = z7.object({
641
652
  id: z7.uuid(),
@@ -4370,6 +4381,14 @@ var BrowserObservation = z24.object({
4370
4381
  frameId: opaqueGeneration.nullable(),
4371
4382
  semantic: z24.union([InteractionSemanticSnapshot, InteractionSemanticDiff]).nullable(),
4372
4383
  screenshot: RetainedArtifactReferenceSchema.nullable(),
4384
+ viewport: z24.object({
4385
+ width: z24.number().int().positive(),
4386
+ height: z24.number().int().positive(),
4387
+ visualWidth: z24.number().positive(),
4388
+ visualHeight: z24.number().positive(),
4389
+ deviceScaleFactor: z24.number().positive(),
4390
+ maxTouchPoints: z24.number().int().nonnegative()
4391
+ }).strict().nullable().optional(),
4373
4392
  focusedRef: boundedOpaqueId.nullable(),
4374
4393
  changedRegions: z24.array(InteractionRect).max(INTERACTION_MAX_CHANGED_NODES),
4375
4394
  diagnostics: InteractionDiagnosticSummary,
@@ -4419,6 +4438,62 @@ var BrowserLocator = z24.discriminatedUnion("kind", [
4419
4438
  z24.object({ kind: z24.literal("test_id"), value: z24.string().min(1).max(2048) }).strict(),
4420
4439
  z24.object({ kind: z24.literal("css"), selector: z24.string().min(1).max(8192) }).strict()
4421
4440
  ]);
4441
+ var BrowserTargetState = z24.object({
4442
+ browserSessionId: z24.string().uuid(),
4443
+ controllerGeneration: opaqueGeneration,
4444
+ targetId: boundedOpaqueId,
4445
+ targetGeneration: opaqueGeneration,
4446
+ documentGeneration: opaqueGeneration.nullable(),
4447
+ frameId: opaqueGeneration.nullable()
4448
+ }).strict();
4449
+ var BrowserDomSafeAttribute = z24.enum([
4450
+ "href",
4451
+ "src",
4452
+ "alt",
4453
+ "title",
4454
+ "role",
4455
+ "aria-label",
4456
+ "aria-expanded",
4457
+ "aria-checked",
4458
+ "aria-selected",
4459
+ "placeholder",
4460
+ "type",
4461
+ "name",
4462
+ "data-testid"
4463
+ ]);
4464
+ var BrowserDomReadSelector = z24.string().min(1).max(8192).regex(/^[A-Za-z0-9_#.,\s>*-]+$/u);
4465
+ var BrowserDomReadLocator = z24.discriminatedUnion("kind", [
4466
+ z24.object({ kind: z24.literal("ref"), ref: boundedOpaqueId }).strict(),
4467
+ z24.object({ kind: z24.literal("placeholder"), text: z24.string().min(1).max(8192) }).strict(),
4468
+ z24.object({ kind: z24.literal("test_id"), value: z24.string().min(1).max(2048) }).strict(),
4469
+ z24.object({ kind: z24.literal("css"), selector: BrowserDomReadSelector }).strict()
4470
+ ]);
4471
+ var BrowserDomReadFence = z24.object({
4472
+ expectedTargetGeneration: opaqueGeneration,
4473
+ expectedDocumentGeneration: opaqueGeneration,
4474
+ expectedFrameId: opaqueGeneration
4475
+ });
4476
+ var BrowserDomReadRequest = z24.discriminatedUnion("kind", [
4477
+ BrowserDomReadFence.extend({
4478
+ kind: z24.literal("element"),
4479
+ locator: BrowserDomReadLocator,
4480
+ attributes: z24.array(BrowserDomSafeAttribute).max(13).optional(),
4481
+ maxChars: z24.number().int().min(1).max(32768).optional()
4482
+ }).strict(),
4483
+ BrowserDomReadFence.extend({
4484
+ kind: z24.literal("count"),
4485
+ selector: BrowserDomReadSelector
4486
+ }).strict()
4487
+ ]);
4488
+ var BrowserDomReadResponse = BrowserTargetState.extend({
4489
+ kind: z24.enum(["element", "count"]),
4490
+ count: z24.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
4491
+ text: z24.string().max(32768).nullable().optional(),
4492
+ value: z24.string().max(32768).nullable().optional(),
4493
+ attributes: z24.partialRecord(BrowserDomSafeAttribute, z24.string().max(32768).nullable()).optional(),
4494
+ redacted: z24.enum(["password", "payment", "private", "policy"]).nullable().optional(),
4495
+ truncated: z24.boolean()
4496
+ }).strict();
4422
4497
  var ComputerLocator = z24.discriminatedUnion("kind", [
4423
4498
  z24.object({ kind: z24.literal("ref"), ref: boundedOpaqueId }).strict(),
4424
4499
  z24.object({
@@ -4457,6 +4532,15 @@ var BrowserPermission = z24.enum([
4457
4532
  var BrowserPermissionSetting = z24.enum(["granted", "denied", "prompt"]);
4458
4533
  var browserActionVariants = [
4459
4534
  z24.object({ type: z24.literal("navigate"), url: boundedUrl }).strict(),
4535
+ z24.object({ type: z24.literal("history"), direction: z24.enum(["back", "forward"]) }).strict(),
4536
+ z24.object({ type: z24.literal("activate") }).strict(),
4537
+ z24.object({
4538
+ type: z24.literal("viewport"),
4539
+ width: z24.number().int().min(240).max(4096),
4540
+ height: z24.number().int().min(240).max(4096),
4541
+ mobile: z24.boolean(),
4542
+ deviceScaleFactor: z24.number().min(0.5).max(4).optional()
4543
+ }).strict(),
4460
4544
  z24.object({
4461
4545
  type: z24.literal("click"),
4462
4546
  locator: BrowserLocator,
@@ -5420,13 +5504,15 @@ var SandboxFileArtifactReceipt = z25.object({
5420
5504
  artifact: RetainedArtifactReferenceSchema
5421
5505
  }).strict().superRefine((value, context) => {
5422
5506
  const pathSegments = value.sandboxPath.split("/");
5423
- if (!value.sandboxPath.startsWith("/workspace/") || value.sandboxPath.includes("\0") || pathSegments.some(
5424
- (segment, index) => index > 1 && (!segment || segment === "." || segment === "..")
5507
+ const unc = value.sandboxPath.startsWith("//");
5508
+ const absolute = unc ? /^\/\/[^/]+\/[^/]+\/.+/u.test(value.sandboxPath) && !value.sandboxPath.startsWith("//?/") : value.sandboxPath.startsWith("/") || /^[A-Z]:\//u.test(value.sandboxPath);
5509
+ if (!absolute || /[\\\u0000-\u001f\u007f]/u.test(value.sandboxPath) || pathSegments.some(
5510
+ (segment, index) => index >= (unc ? 2 : 1) && (!segment || segment === "." || segment === "..")
5425
5511
  ) || pathSegments.at(-1) !== value.filename) {
5426
5512
  context.addIssue({
5427
5513
  code: "custom",
5428
5514
  path: ["sandboxPath"],
5429
- message: "sandbox path must canonically identify the published filename in /workspace"
5515
+ message: "sandbox path must canonically identify the published filename at an absolute host path"
5430
5516
  });
5431
5517
  }
5432
5518
  if (value.artifact.kind !== "file" || value.artifact.retention.policy !== "workspace_file") {
@@ -10380,6 +10466,8 @@ var FIRST_PARTY_MCP_TOOL_NAMES = [
10380
10466
  "browser_open",
10381
10467
  "browser_tabs",
10382
10468
  "browser_observe",
10469
+ "browser_read",
10470
+ "browser_screenshot",
10383
10471
  "browser_act",
10384
10472
  "browser_clipboard",
10385
10473
  "browser_debug",
@@ -10479,6 +10567,8 @@ var FIRST_PARTY_IN_PROCESS_TOOL_NAMES = [
10479
10567
  "browser_open",
10480
10568
  "browser_tabs",
10481
10569
  "browser_observe",
10570
+ "browser_read",
10571
+ "browser_screenshot",
10482
10572
  "browser_act",
10483
10573
  "browser_clipboard",
10484
10574
  "browser_debug",
@@ -21421,6 +21511,7 @@ export {
21421
21511
  KnowledgeEntryWriteReceipt,
21422
21512
  KnowledgeFilePreparationResult,
21423
21513
  KnowledgeEntryRevision,
21514
+ KnowledgeIndexStatus,
21424
21515
  KnowledgeEntryRecord,
21425
21516
  KnowledgeEntryListRequest,
21426
21517
  KnowledgeEntrySummary,
@@ -21789,6 +21880,12 @@ export {
21789
21880
  BrowserDiagnosticEntry,
21790
21881
  BrowserDiagnosticBatch,
21791
21882
  BrowserLocator,
21883
+ BrowserTargetState,
21884
+ BrowserDomSafeAttribute,
21885
+ BrowserDomReadSelector,
21886
+ BrowserDomReadLocator,
21887
+ BrowserDomReadRequest,
21888
+ BrowserDomReadResponse,
21792
21889
  ComputerLocator,
21793
21890
  BrowserPermission,
21794
21891
  BrowserPermissionSetting,
@@ -23285,4 +23382,4 @@ export {
23285
23382
  AtlassianDisconnectRequest,
23286
23383
  atlassianScopesAllowRead
23287
23384
  };
23288
- //# sourceMappingURL=chunk-O23LYZFL.js.map
23385
+ //# sourceMappingURL=chunk-4X45RNDK.js.map