@opengeni/contracts 5.0.0 → 5.1.0-canary.35916963870001

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/atlassian.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  AtlassianSyncCadence,
18
18
  SaveAtlassianSourcesRequest,
19
19
  atlassianScopesAllowRead
20
- } from "./chunk-CM7E7PFV.js";
20
+ } from "./chunk-S3DWFIPL.js";
21
21
  import "./chunk-YBW5JSA3.js";
22
22
  import "./chunk-ENJTPHKP.js";
23
23
  import "./chunk-GRG7PHWQ.js";
@@ -191,9 +191,9 @@ function readSkillMetadata(markdown) {
191
191
  }
192
192
 
193
193
  // src/skill-files.ts
194
- var SKILL_MAX_FILES = 128;
195
- var SKILL_MAX_FILE_BYTES = 256 * 1024;
196
- var SKILL_MAX_TOTAL_BYTES = 1024 * 1024;
194
+ var SKILL_MAX_FILES = 1024;
195
+ var SKILL_MAX_FILE_BYTES = 2 * 1024 * 1024;
196
+ var SKILL_MAX_TOTAL_BYTES = 8 * 1024 * 1024;
197
197
  function isSafeSkillRelativePath(path) {
198
198
  return path.length > 0 && path.length <= 512 && !/[\\:\u0000-\u001f\u007f]/u.test(path) && path.split("/").every((segment) => segment !== "" && segment !== "." && segment !== "..") && new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
199
199
  new TextEncoder().encode(path)
@@ -589,6 +589,15 @@ var KnowledgeEntryRevision = z7.object({
589
589
  reviewBatchId: z7.uuid().nullable(),
590
590
  outcome: z7.enum(["published", "pending", "rejected", "superseded"])
591
591
  }).strict();
592
+ var KnowledgeIndexStatus = z7.enum([
593
+ "saved",
594
+ "queued",
595
+ "indexing",
596
+ "awaiting_funding",
597
+ "indexed",
598
+ "source_unavailable",
599
+ "provider_failed"
600
+ ]);
592
601
  var KnowledgeEntryRecord = z7.object({
593
602
  id: z7.uuid(),
594
603
  scope: KnowledgeEntryScope,
@@ -598,7 +607,8 @@ var KnowledgeEntryRecord = z7.object({
598
607
  revision: KnowledgeEntryRevision,
599
608
  archived: z7.boolean(),
600
609
  createdAt: z7.string().datetime({ offset: true }),
601
- updatedAt: z7.string().datetime({ offset: true })
610
+ updatedAt: z7.string().datetime({ offset: true }),
611
+ indexStatus: KnowledgeIndexStatus.optional()
602
612
  }).strict();
603
613
  var KnowledgeEntryListRequest = z7.object({
604
614
  query: z7.string().max(4096).optional(),
@@ -638,7 +648,8 @@ var KnowledgeEntrySummary = KnowledgeEntryRecord.omit({ revision: true }).extend
638
648
  var KnowledgeEntryListResponse = z7.object({
639
649
  entries: z7.array(KnowledgeEntrySummary),
640
650
  nextCursor: z7.string().nullable(),
641
- searchMode: z7.enum(["keyword", "hybrid", "vector"]).optional()
651
+ searchMode: z7.enum(["keyword", "hybrid", "vector"]).optional(),
652
+ fallbackReason: z7.enum(["awaiting_funding", "quota", "provider_unavailable", "query_limit"]).optional()
642
653
  });
643
654
  var KnowledgeReviewBatch = z7.object({
644
655
  id: z7.uuid(),
@@ -2622,6 +2633,11 @@ var AttemptToolAnnotations = z20.object({
2622
2633
  openWorldHint: z20.boolean().optional()
2623
2634
  }).loose();
2624
2635
  var AttemptToolJsonSchema = jsonObject;
2636
+ var ToolDisplayMetadata = z20.object({
2637
+ toolName: toolIdentifier,
2638
+ title: z20.string().min(1).max(512).optional(),
2639
+ accountLabel: z20.string().min(1).max(1024).optional()
2640
+ }).strict();
2625
2641
  var AttemptToolCatalogEntry = z20.object({
2626
2642
  identity: AttemptToolIdentity,
2627
2643
  /** Exact model-wire projection for this generation, e.g. `slack__search`. */
@@ -4242,6 +4258,14 @@ var BrowserObservation = z23.object({
4242
4258
  frameId: opaqueGeneration.nullable(),
4243
4259
  semantic: z23.union([InteractionSemanticSnapshot, InteractionSemanticDiff]).nullable(),
4244
4260
  screenshot: RetainedArtifactReferenceSchema.nullable(),
4261
+ viewport: z23.object({
4262
+ width: z23.number().int().positive(),
4263
+ height: z23.number().int().positive(),
4264
+ visualWidth: z23.number().positive(),
4265
+ visualHeight: z23.number().positive(),
4266
+ deviceScaleFactor: z23.number().positive(),
4267
+ maxTouchPoints: z23.number().int().nonnegative()
4268
+ }).strict().nullable().optional(),
4245
4269
  focusedRef: boundedOpaqueId.nullable(),
4246
4270
  changedRegions: z23.array(InteractionRect).max(INTERACTION_MAX_CHANGED_NODES),
4247
4271
  diagnostics: InteractionDiagnosticSummary,
@@ -4329,6 +4353,15 @@ var BrowserPermission = z23.enum([
4329
4353
  var BrowserPermissionSetting = z23.enum(["granted", "denied", "prompt"]);
4330
4354
  var browserActionVariants = [
4331
4355
  z23.object({ type: z23.literal("navigate"), url: boundedUrl }).strict(),
4356
+ z23.object({ type: z23.literal("history"), direction: z23.enum(["back", "forward"]) }).strict(),
4357
+ z23.object({ type: z23.literal("activate") }).strict(),
4358
+ z23.object({
4359
+ type: z23.literal("viewport"),
4360
+ width: z23.number().int().min(240).max(4096),
4361
+ height: z23.number().int().min(240).max(4096),
4362
+ mobile: z23.boolean(),
4363
+ deviceScaleFactor: z23.number().min(0.5).max(4).optional()
4364
+ }).strict(),
4332
4365
  z23.object({
4333
4366
  type: z23.literal("click"),
4334
4367
  locator: BrowserLocator,
@@ -10222,6 +10255,7 @@ var FIRST_PARTY_MCP_TOOL_NAMES = [
10222
10255
  "run_on",
10223
10256
  "sandbox_provision",
10224
10257
  "connected_machine_remove",
10258
+ "connected_machine_enroll_token",
10225
10259
  "project_list",
10226
10260
  "project_get",
10227
10261
  "project_create",
@@ -16321,7 +16355,7 @@ var SkillArtifactFile = z47.object({
16321
16355
  path: z47.string().min(1).max(512).refine(isSafeSkillRelativePath, {
16322
16356
  message: "skill file path must be a safe relative POSIX path without '..' segments"
16323
16357
  }),
16324
- content: z47.string().max(256 * 1024)
16358
+ content: z47.string().max(SKILL_MAX_FILE_BYTES)
16325
16359
  });
16326
16360
  var SkillArtifactDefinition = /* @__PURE__ */ defineSkillContractSchema(
16327
16361
  () => z47.object({
@@ -16329,7 +16363,7 @@ var SkillArtifactDefinition = /* @__PURE__ */ defineSkillContractSchema(
16329
16363
  description: z47.string().min(1).max(1024).optional(),
16330
16364
  // Installation policy stays separate from session-owned Skill content.
16331
16365
  activationMode: z47.enum(["workspace_managed", "session_selected"]).optional(),
16332
- files: z47.array(SkillArtifactFile).min(1).max(128)
16366
+ files: z47.array(SkillArtifactFile).min(1).max(SKILL_MAX_FILES)
16333
16367
  }).transform((skill, ctx) => {
16334
16368
  const main = skill.files.find((file) => file.path === "SKILL.md");
16335
16369
  if (!main) {
@@ -17051,11 +17085,11 @@ var PreviewSkillImportRequest = z47.object({
17051
17085
  });
17052
17086
  var SkillImportFileSummary = z47.object({
17053
17087
  path: z47.string().min(1).max(1024),
17054
- byteSize: z47.number().int().nonnegative().max(262144),
17088
+ byteSize: z47.number().int().nonnegative().max(SKILL_MAX_FILE_BYTES),
17055
17089
  contentSha256: z47.string().regex(/^[0-9a-f]{64}$/)
17056
17090
  });
17057
17091
  var SkillImportPreview = z47.object({
17058
- markdown: z47.string().max(262144).optional(),
17092
+ markdown: z47.string().max(SKILL_MAX_FILE_BYTES).optional(),
17059
17093
  source: SkillImportSource,
17060
17094
  sourceUrl: z47.string().url(),
17061
17095
  repositoryUrl: z47.string().url(),
@@ -17066,8 +17100,8 @@ var SkillImportPreview = z47.object({
17066
17100
  name: z47.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/),
17067
17101
  description: z47.string().min(1).max(2048),
17068
17102
  contentSha256: z47.string().regex(/^[0-9a-f]{64}$/),
17069
- totalBytes: z47.number().int().positive().max(1048576),
17070
- files: z47.array(SkillImportFileSummary).min(1).max(128),
17103
+ totalBytes: z47.number().int().positive().max(SKILL_MAX_TOTAL_BYTES),
17104
+ files: z47.array(SkillImportFileSummary).min(1).max(SKILL_MAX_FILES),
17071
17105
  warnings: z47.array(z47.string().min(1).max(500)).max(32).default([]),
17072
17106
  installed: z47.boolean().default(false),
17073
17107
  installationVersion: z47.number().int().positive().nullable().default(null)
@@ -17628,6 +17662,7 @@ var SessionBackgroundCommand = z47.object({
17628
17662
  state: SessionBackgroundCommandState,
17629
17663
  observationStatus: z47.literal("unavailable").optional(),
17630
17664
  commandPreview: z47.string().max(512),
17665
+ commandText: z47.string().optional(),
17631
17666
  cancelRequestedAt: z47.string().nullable(),
17632
17667
  exitCode: z47.number().int().nullable(),
17633
17668
  settlementReason: z47.string().nullable(),
@@ -20577,7 +20612,19 @@ var MachineState = z47.enum([
20577
20612
  "display_unavailable",
20578
20613
  "enrolling"
20579
20614
  ]);
20580
- var MachineKind = z47.enum(["modal", "selfhosted", "opensandbox"]);
20615
+ var MachineKind = z47.enum([
20616
+ "docker",
20617
+ "modal",
20618
+ "local",
20619
+ "daytona",
20620
+ "runloop",
20621
+ "e2b",
20622
+ "blaxel",
20623
+ "cloudflare",
20624
+ "vercel",
20625
+ "selfhosted",
20626
+ "opensandbox"
20627
+ ]);
20581
20628
  var MachineConnectionAuthority = z47.object({
20582
20629
  state: z47.enum(["not_applicable", "unclaimed", "active", "expired"]),
20583
20630
  generation: z47.number().int().nonnegative(),
@@ -21404,6 +21451,7 @@ export {
21404
21451
  KnowledgeEntryWriteReceipt,
21405
21452
  KnowledgeFilePreparationResult,
21406
21453
  KnowledgeEntryRevision,
21454
+ KnowledgeIndexStatus,
21407
21455
  KnowledgeEntryRecord,
21408
21456
  KnowledgeEntryListRequest,
21409
21457
  KnowledgeEntrySummary,
@@ -21625,6 +21673,7 @@ export {
21625
21673
  AttemptToolCatalogIcon,
21626
21674
  AttemptToolAnnotations,
21627
21675
  AttemptToolJsonSchema,
21676
+ ToolDisplayMetadata,
21628
21677
  AttemptToolCatalogEntry,
21629
21678
  ToolGatewayCatalogEntry,
21630
21679
  ToolGatewayCatalog,
@@ -23267,4 +23316,4 @@ export {
23267
23316
  ClientConfig,
23268
23317
  evaluateWorkspaceModelPolicy
23269
23318
  };
23270
- //# sourceMappingURL=chunk-CM7E7PFV.js.map
23319
+ //# sourceMappingURL=chunk-S3DWFIPL.js.map