@revoengine/cli 1.0.33 → 1.0.35

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 (73) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +89 -6
  3. package/dist/src/argument-contract.d.ts +17 -0
  4. package/dist/src/argument-contract.js +359 -0
  5. package/dist/src/automation-contract.generated.d.ts +2 -2
  6. package/dist/src/automation-contract.generated.js +2 -2
  7. package/dist/src/cli.js +15 -13
  8. package/dist/src/client.d.ts +2 -0
  9. package/dist/src/client.js +38 -1
  10. package/dist/src/commands/agents.js +5 -1
  11. package/dist/src/commands/auth.js +2 -0
  12. package/dist/src/commands/component.js +34 -17
  13. package/dist/src/commands/database-tables.js +5 -1
  14. package/dist/src/commands/database-views.js +5 -1
  15. package/dist/src/commands/endpoints.js +5 -1
  16. package/dist/src/commands/env.js +5 -1
  17. package/dist/src/commands/events.js +5 -1
  18. package/dist/src/commands/groups.js +5 -1
  19. package/dist/src/commands/info.js +2 -0
  20. package/dist/src/commands/job-templates.js +5 -1
  21. package/dist/src/commands/metadata.js +2 -0
  22. package/dist/src/commands/migrate.d.ts +2 -2
  23. package/dist/src/commands/migrate.js +31 -7
  24. package/dist/src/commands/project.js +19 -14
  25. package/dist/src/commands/request.js +2 -0
  26. package/dist/src/commands/role-groups.js +5 -1
  27. package/dist/src/commands/schedules.js +5 -1
  28. package/dist/src/commands/search.js +2 -0
  29. package/dist/src/commands/service-accounts.js +5 -1
  30. package/dist/src/commands/studio.js +2 -0
  31. package/dist/src/commands/terminal-file-descriptor.d.ts +9 -0
  32. package/dist/src/commands/terminal-file-descriptor.js +39 -0
  33. package/dist/src/commands/terminal-file.js +41 -6
  34. package/dist/src/commands/terminal-image.js +3 -31
  35. package/dist/src/commands/terminal-process-group.d.ts +25 -0
  36. package/dist/src/commands/terminal-process-group.js +144 -0
  37. package/dist/src/commands/terminal.js +123 -40
  38. package/dist/src/commands/tests.js +2 -0
  39. package/dist/src/component-lock.d.ts +15 -1
  40. package/dist/src/component-lock.js +96 -10
  41. package/dist/src/env-sync.js +12 -6
  42. package/dist/src/migration.d.ts +7 -0
  43. package/dist/src/migration.js +39 -21
  44. package/dist/src/planning-snapshot.d.ts +3 -0
  45. package/dist/src/planning-snapshot.js +60 -2
  46. package/dist/src/project.d.ts +1 -0
  47. package/dist/src/project.js +7 -8
  48. package/dist/src/resource-syncs/agent-sync.js +76 -24
  49. package/dist/src/resource-syncs/database-table-sync.js +33 -22
  50. package/dist/src/resource-syncs/database-view-sync.js +41 -28
  51. package/dist/src/resource-syncs/endpoint-sync.js +90 -18
  52. package/dist/src/resource-syncs/event-sync.js +33 -14
  53. package/dist/src/resource-syncs/group-sync.js +21 -11
  54. package/dist/src/resource-syncs/job-template-sync.js +98 -37
  55. package/dist/src/resource-syncs/role-group-sync.js +22 -11
  56. package/dist/src/resource-syncs/schedule-sync.js +26 -11
  57. package/dist/src/resource-syncs/service-account-sync.js +22 -11
  58. package/dist/src/reviewed-plan.js +3 -0
  59. package/dist/src/runtime-view.js +2 -18
  60. package/dist/src/sync-omit-command.d.ts +6 -0
  61. package/dist/src/sync-omit-command.js +49 -0
  62. package/dist/src/sync-omit-write-fence.d.ts +10 -0
  63. package/dist/src/sync-omit-write-fence.js +134 -0
  64. package/dist/src/sync-omit.d.ts +59 -0
  65. package/dist/src/sync-omit.js +469 -0
  66. package/dist/src/ui.js +10 -5
  67. package/dist/src/update-notifier.d.ts +1 -1
  68. package/dist/src/update-notifier.js +2 -1
  69. package/dist/src/utils.js +46 -17
  70. package/dist/src/workspace-prune.js +11 -3
  71. package/dist/src/workspace-write-lock.d.ts +7 -0
  72. package/dist/src/workspace-write-lock.js +144 -0
  73. package/package.json +4 -2
@@ -9,6 +9,7 @@ import { createHash, randomBytes, randomUUID } from 'node:crypto';
9
9
  import { spawn } from 'node:child_process';
10
10
  import { StringDecoder } from 'node:string_decoder';
11
11
  import WebSocket from 'ws';
12
+ import { validateTerminalArguments } from "../argument-contract.js";
12
13
  import { getActiveEnvironmentName, getConfigDir, getEnvironmentProfile, loadStoredConfig, resolveRuntimeConfig } from "../config.js";
13
14
  import { installTerminalService, terminalServiceInstalled, uninstallTerminalService } from "./terminal-service.js";
14
15
  import { createSandboxScratchDirectory, isTerminalSandbox, sandboxCommand, shellQuote, requiresElevatedCommand } from "./terminal-sandbox.js";
@@ -17,6 +18,7 @@ import { closeThreadBrowserSession, threadBrowserScopes, browserSessionIds, clos
17
18
  import { transferWorkspaceFile, validateFileTransfer } from "./terminal-file.js";
18
19
  import { uploadWorkspaceImages } from "./terminal-image.js";
19
20
  import { ensurePtyHelperExecutable, normalizePtyStartError } from "./terminal-pty.js";
21
+ import { assertTerminalProcessProbeAvailable, ControlledTerminalProcessGroup } from "./terminal-process-group.js";
20
22
  import { TerminalReconnectGrace, TerminalTransportRecovery, isRunnerTransportHeartbeat } from "./terminal-reconnect-grace.js";
21
23
  import { CentralBrowserProfileLease } from "./terminal-browser-central-profile.js";
22
24
  import { BrowserProfileRunnerRpc } from "./terminal-browser-profile-sync.js";
@@ -87,7 +89,7 @@ const OPERATIONAL_ERROR_CODES = new Set([
87
89
  'browser_profile_corrupt', 'browser_profile_scope_invalid', 'browser_profile_scope_changed',
88
90
  'browser_profile_keystore_unavailable', 'browser_profile_keystore_unsupported',
89
91
  'browser_profile_directory_invalid', 'browser_profile_too_large',
90
- 'pty_unavailable', 'sandbox_unavailable',
92
+ 'pty_unavailable', 'sandbox_unavailable', 'terminal_process_identity_unavailable', 'file_transfer_path_unverifiable',
91
93
  ]);
92
94
  const CHILD_ENV_KEYS = ['HOME', 'PATH', 'USER', 'LOGNAME', 'SHELL', 'TMPDIR', 'LANG', 'LC_ALL', 'LC_CTYPE', 'TERM'];
93
95
  export function childEnvironment(source) {
@@ -409,6 +411,7 @@ export async function runCommand(input, onDone, onChunk) {
409
411
  throw new Error('terminal_policy_expired');
410
412
  if (sandbox !== 'unrestricted' && requiresElevatedCommand(input.cmd))
411
413
  throw new Error('destructive_command_requires_approval');
414
+ assertTerminalProcessProbeAvailable();
412
415
  const scratch = sandbox !== 'unrestricted' ? createSandboxScratchDirectory() : undefined;
413
416
  const scratchRoot = scratch ? fs.realpathSync(scratch) : undefined;
414
417
  let launch;
@@ -463,6 +466,9 @@ export async function runCommand(input, onDone, onChunk) {
463
466
  let stderr = '';
464
467
  let modelBytes = 0;
465
468
  let renderedBytes = 0;
469
+ let deliveredBytes = 0;
470
+ const deliveryTail = [];
471
+ const diagnosticReserveBytes = 512;
466
472
  let previewBytes = 0;
467
473
  let captureTruncated = false;
468
474
  let captureDeliveryFailed = false;
@@ -472,35 +478,54 @@ export async function runCommand(input, onDone, onChunk) {
472
478
  let timedOut = false;
473
479
  let policyExpired = false;
474
480
  let finished = false;
481
+ let acceptingOutput = true;
482
+ let terminationRequested = false;
483
+ let terminationSettled = false;
484
+ let cleanupUnverified = false;
485
+ let pendingCompletion;
486
+ let terminationTimer;
475
487
  const decoders = { stdout: new StringDecoder('utf8'), stderr: new StringDecoder('utf8') };
476
488
  const truncatedStreams = new Set();
477
489
  const pid = child?.pid || terminal?.pid;
490
+ const processGroup = pid ? new ControlledTerminalProcessGroup(pid) : undefined;
491
+ const settleTermination = (unverified) => {
492
+ if (terminationSettled)
493
+ return;
494
+ terminationSettled = true;
495
+ cleanupUnverified = unverified;
496
+ if (terminationTimer)
497
+ clearTimeout(terminationTimer);
498
+ if (pendingCompletion)
499
+ finish(pendingCompletion.exitCode, pendingCompletion.error, pendingCompletion.signal);
500
+ else if (unverified)
501
+ finish(null);
502
+ };
478
503
  const terminate = () => {
479
- if (!pid)
504
+ if (finished || terminationRequested)
505
+ return;
506
+ terminationRequested = true;
507
+ const state = processGroup?.signal('SIGTERM') ?? 'stopped';
508
+ if (state === 'stopped') {
509
+ settleTermination(false);
480
510
  return;
481
- try {
482
- process.kill(-pid, 'SIGTERM');
483
- }
484
- catch {
485
- try {
486
- process.kill(pid, 'SIGTERM');
487
- }
488
- catch { /* exited */ }
489
511
  }
490
- const hardStop = setTimeout(() => {
491
- if (finished)
512
+ terminationTimer = setTimeout(() => {
513
+ const stopped = processGroup?.signal('SIGKILL') ?? 'stopped';
514
+ if (stopped !== 'owned') {
515
+ settleTermination(stopped === 'unverified');
492
516
  return;
493
- try {
494
- process.kill(-pid, 'SIGKILL');
495
517
  }
496
- catch {
497
- try {
498
- process.kill(pid, 'SIGKILL');
518
+ const deadline = Date.now() + 500;
519
+ const awaitStopped = () => {
520
+ const remaining = processGroup?.state() ?? 'stopped';
521
+ if (remaining !== 'owned' || Date.now() >= deadline) {
522
+ settleTermination(remaining !== 'stopped');
523
+ return;
499
524
  }
500
- catch { /* exited */ }
501
- }
525
+ terminationTimer = setTimeout(awaitStopped, 25);
526
+ };
527
+ awaitStopped();
502
528
  }, 2_000);
503
- hardStop.unref?.();
504
529
  };
505
530
  const timer = input.background === true ? undefined : setTimeout(() => { timedOut = true; terminate(); }, Math.min(Math.max(input.timeoutMs, 1_000), MAX_TERMINAL_PROCESS_MS));
506
531
  let policyTimer;
@@ -515,6 +540,23 @@ export async function runCommand(input, onDone, onChunk) {
515
540
  }, Math.max(0, deadline - Date.now()));
516
541
  };
517
542
  updatePolicyDeadline(input.policyDeadlineMs ?? null);
543
+ const deliverBytes = (bytes, kind) => {
544
+ if (!onChunk || captureDeliveryFailed)
545
+ return;
546
+ for (let offset = 0; offset < bytes.length;) {
547
+ let end = Math.min(offset + OUTPUT_FRAME_BYTES, bytes.length);
548
+ while (end < bytes.length && (bytes[end] & 0xc0) === 0x80)
549
+ end--;
550
+ if (onChunk(kind, bytes.subarray(offset, end).toString('utf8')) === false) {
551
+ captureDeliveryFailed = true;
552
+ captureTruncated = true;
553
+ truncated = true;
554
+ break;
555
+ }
556
+ deliveredBytes += end - offset;
557
+ offset = end;
558
+ }
559
+ };
518
560
  const emitText = (text, kind) => {
519
561
  const decoded = Buffer.from(text);
520
562
  const captureLimit = input.captureOutput ? MAX_CAPTURE_OUTPUT_BYTES : MAX_MODEL_OUTPUT_BYTES;
@@ -540,21 +582,18 @@ export async function runCommand(input, onDone, onChunk) {
540
582
  stderr += projected;
541
583
  if (!onChunk || !bytes.length || captureDeliveryFailed)
542
584
  return;
543
- for (let offset = 0; offset < bytes.length;) {
544
- let end = Math.min(offset + OUTPUT_FRAME_BYTES, bytes.length);
545
- // The decoded text is valid UTF-8; keep a complete code point in each frame.
546
- while (end < bytes.length && (bytes[end] & 0xc0) === 0x80)
547
- end--;
548
- if (onChunk(kind, bytes.subarray(offset, end).toString('utf8')) === false) {
549
- captureDeliveryFailed = true;
550
- captureTruncated = true;
551
- truncated = true;
552
- break;
553
- }
554
- offset = end;
555
- }
585
+ // Reserve only the final bytes at the capture boundary. Interactive output
586
+ // remains immediate; successful completion flushes the held tail unchanged.
587
+ let immediate = Math.min(bytes.length, Math.max(0, captureLimit - diagnosticReserveBytes - deliveredBytes));
588
+ while (immediate > 0 && immediate < bytes.length && (bytes[immediate] & 0xc0) === 0x80)
589
+ immediate--;
590
+ deliverBytes(bytes.subarray(0, immediate), kind);
591
+ if (immediate < bytes.length)
592
+ deliveryTail.push({ kind, bytes: Buffer.from(bytes.subarray(immediate)) });
556
593
  };
557
- const append = (chunk, kind) => {
594
+ const append = (chunk, kind, render = true) => {
595
+ if (!acceptingOutput)
596
+ return;
558
597
  const logPart = chunk.subarray(0, Math.max(0, MAX_LOCAL_LOG_BYTES - logBytes));
559
598
  if (logPart.length && logFd !== undefined) {
560
599
  const header = Buffer.from(`[${kind}] `);
@@ -579,6 +618,8 @@ export async function runCommand(input, onDone, onChunk) {
579
618
  }
580
619
  if (logPart.length < chunk.length)
581
620
  logTruncated = true;
621
+ if (!render)
622
+ return;
582
623
  const available = Math.max(0, (input.captureOutput ? MAX_CAPTURE_OUTPUT_BYTES : MAX_MODEL_OUTPUT_BYTES) - modelBytes);
583
624
  const modelPart = chunk.subarray(0, available);
584
625
  modelBytes += modelPart.length;
@@ -592,14 +633,28 @@ export async function runCommand(input, onDone, onChunk) {
592
633
  child?.stdout?.on('data', (chunk) => append(chunk, 'stdout'));
593
634
  child?.stderr?.on('data', (chunk) => append(chunk, 'stderr'));
594
635
  terminal?.onData(text => append(Buffer.from(text), 'stdout'));
595
- const finish = (exitCode, error, signal) => {
636
+ function finish(exitCode, error, signal) {
596
637
  if (finished)
597
638
  return;
598
- finished = true;
599
639
  if (timer)
600
640
  clearTimeout(timer);
601
641
  if (policyTimer)
602
642
  clearTimeout(policyTimer);
643
+ if (!terminationSettled) {
644
+ const state = processGroup?.state() ?? 'stopped';
645
+ if (terminationRequested || state !== 'stopped') {
646
+ pendingCompletion = { exitCode, error, signal };
647
+ if (state === 'stopped')
648
+ settleTermination(false);
649
+ else
650
+ terminate();
651
+ return;
652
+ }
653
+ }
654
+ finished = true;
655
+ if (terminationTimer)
656
+ clearTimeout(terminationTimer);
657
+ const cleanupDiagnostic = 'terminal_process_cleanup_unverified: command may have run; do not automatically rerun. Controlled processes could not be confirmed stopped.';
603
658
  const diagnostic = [error?.message, policyExpired ? 'terminal_policy_expired' : null].filter(Boolean).join('\n');
604
659
  if (diagnostic)
605
660
  append(Buffer.from(`${stderr && !stderr.endsWith('\n') ? '\n' : ''}${diagnostic}`), 'stderr');
@@ -609,7 +664,26 @@ export async function runCommand(input, onDone, onChunk) {
609
664
  if (!truncatedStreams.has(kind))
610
665
  emitText(tail, kind);
611
666
  }
612
- if (scratch) {
667
+ if (cleanupUnverified) {
668
+ append(Buffer.from(`\n${cleanupDiagnostic}\n`), 'stderr', false);
669
+ if (deliveryTail.length) {
670
+ captureTruncated = true;
671
+ truncated = true;
672
+ }
673
+ deliveryTail.length = 0;
674
+ deliverBytes(Buffer.from(`${cleanupDiagnostic}\n`), 'stderr');
675
+ // Cleanup uncertainty must survive a full preview and result-frame
676
+ // truncation. A missing execution cannot safely be inferred or replayed.
677
+ const bounded = boundResultFrame({ stdout, stderr: `${cleanupDiagnostic}\n${stderr.replace(cleanupDiagnostic, '')}`, truncated });
678
+ stdout = String(bounded.stdout);
679
+ stderr = String(bounded.stderr);
680
+ truncated = bounded.truncated === true;
681
+ }
682
+ else
683
+ for (const tail of deliveryTail)
684
+ deliverBytes(tail.bytes, tail.kind);
685
+ acceptingOutput = false;
686
+ if (scratch && !cleanupUnverified) {
613
687
  try {
614
688
  fs.rmSync(scratch, { recursive: true, force: true });
615
689
  }
@@ -623,13 +697,13 @@ export async function runCommand(input, onDone, onChunk) {
623
697
  logTruncated = true;
624
698
  }
625
699
  }
626
- onDone({ executed: !error, exitCode: (timedOut || policyExpired) && exitCode === 0 ? null : exitCode,
700
+ onDone({ executed: cleanupUnverified || !error, exitCode: cleanupUnverified || (timedOut || policyExpired) && exitCode === 0 ? null : exitCode,
627
701
  stdout, stderr,
628
702
  timedOut, truncated, logTruncated, logPath: logFd === undefined ? '' : logPath,
629
703
  ...(input.captureOutput ? { captureTruncated } : {}),
630
704
  ...(signal ? { signal } : {}),
631
705
  ...(policyExpired ? { policyExpired: true } : {}) });
632
- };
706
+ }
633
707
  child?.on('close', (code, signal) => finish(code, undefined, signal));
634
708
  child?.on('error', error => finish(null, error));
635
709
  terminal?.onExit(({ exitCode }) => finish(exitCode));
@@ -1565,7 +1639,15 @@ async function runTerminalCommand(argv, signal) {
1565
1639
  const command = argv[0] || 'help';
1566
1640
  const browserProfileName = selectedBrowserProfile(argv);
1567
1641
  if (command === 'help' || argv.includes('--help')) {
1568
- console.log('revo terminal connect|status|disconnect [--project NAME] [--workspace PATH] [--name NAME|--terminal-id UUID] [--url URL] [--realtime-url URL]\nBrowser profiles are assigned in Revo Vault, including Linux/service runners.\nLegacy local cleanup: revo terminal browser-profile forget --browser-profile NAME --workspace PATH --terminal-id UUID [--project NAME]\nrevo terminal service install|uninstall --workspace PATH [--project NAME] [--name NAME|--terminal-id UUID]');
1642
+ console.log([
1643
+ 'revo terminal connect [--project NAME] [--workspace PATH] [--name NAME|--terminal-id UUID] [--realtime-url URL]',
1644
+ 'revo terminal status [--project NAME]',
1645
+ 'revo terminal disconnect [--project NAME] [--workspace PATH] [--name NAME|--terminal-id UUID]',
1646
+ 'API connection overrides: --url URL --token API_KEY --instance UUID (not service install/uninstall).',
1647
+ 'Browser profiles are assigned in Revo Vault, including Linux/service runners.',
1648
+ 'Legacy local cleanup: revo terminal browser-profile forget --browser-profile NAME --workspace PATH --terminal-id UUID [--project NAME]',
1649
+ 'revo terminal service install|uninstall --workspace PATH [--project NAME] [--name NAME|--terminal-id UUID]',
1650
+ ].join('\n'));
1569
1651
  return;
1570
1652
  }
1571
1653
  if (command === 'connect' && browserProfileName)
@@ -1804,6 +1886,7 @@ async function runTerminalCommand(argv, signal) {
1804
1886
  }
1805
1887
  /** Supervisors retry crashes, but a revoked grant or 401/403 needs a human credential/grant change. */
1806
1888
  export async function handleTerminalCommand(argv) {
1889
+ argv = validateTerminalArguments(argv);
1807
1890
  const controller = argv[0] === 'connect' ? new AbortController() : undefined;
1808
1891
  const stopSetup = () => controller?.abort();
1809
1892
  if (controller) {
@@ -1,5 +1,6 @@
1
1
  import { createHash, randomUUID } from 'node:crypto';
2
2
  import { setTimeout as wait } from 'node:timers/promises';
3
+ import { validateCommandArguments } from "../argument-contract.js";
3
4
  import { nativeTestCollection, nativeTestRunPassed, nativeTestRunPending } from "../native-tests.js";
4
5
  import { readNativeTestWorkspace } from "../test-workspace.js";
5
6
  import { readBoolFlag, readFlag, readValues } from "../utils.js";
@@ -114,6 +115,7 @@ function batchOperationId(operationId, index) {
114
115
  }
115
116
  /** Native execution captures portable source; it never saves Components or creates an approval. */
116
117
  export async function handleTestsCommand(context) {
118
+ validateCommandArguments(context.args);
117
119
  for (const name of ['workspace', 'search', 'operation-id', 'suite']) {
118
120
  if (context.args[name] !== undefined && !readFlag(context.args, [name]))
119
121
  throw new Error(`--${name} requires a value.`);
@@ -1,7 +1,9 @@
1
1
  import { type ComponentIdentityConfig, type ComponentIdentityMode } from './resource-metadata.ts';
2
2
  import type { ComponentRecord } from './types.ts';
3
+ import { type SyncOmitBaseline } from './sync-omit.ts';
3
4
  export declare const REVO_LOCK_FILE: string;
4
5
  export type ComponentLockEntry = {
6
+ omitBaseline?: SyncOmitBaseline;
5
7
  identityMode: ComponentIdentityMode;
6
8
  metadataProperty?: string;
7
9
  stableKey?: string;
@@ -13,11 +15,13 @@ export type ComponentLockEntry = {
13
15
  remoteVersion: number | null;
14
16
  remoteHash: string;
15
17
  sourceHash: string;
18
+ sourceBaseline?: SyncOmitBaseline;
16
19
  pulledAt: string;
17
20
  defaultRemoved?: boolean;
18
21
  environments?: Record<string, ComponentEnvironmentBaseline>;
19
22
  };
20
23
  export type ComponentEnvironmentBaseline = {
24
+ omitBaseline?: SyncOmitBaseline;
21
25
  remoteComponentId: string;
22
26
  remoteVersion: number | null;
23
27
  remoteHash: string;
@@ -25,6 +29,7 @@ export type ComponentEnvironmentBaseline = {
25
29
  };
26
30
  export type ComponentLockEntryInput = Omit<ComponentLockEntry, 'identityMode' | 'remoteComponentId' | 'defaultRemoved'> & Partial<Pick<ComponentLockEntry, 'identityMode' | 'remoteComponentId'>>;
27
31
  export type EnvironmentBaseline = {
32
+ omitBaseline?: SyncOmitBaseline;
28
33
  remoteHash: string;
29
34
  syncedAt: string;
30
35
  };
@@ -32,12 +37,14 @@ export type RoleGroupLockEntry = {
32
37
  stableKey: string;
33
38
  path: string;
34
39
  sourceHash: string;
40
+ sourceBaseline?: SyncOmitBaseline;
35
41
  environments: Record<string, EnvironmentBaseline>;
36
42
  };
37
43
  export type GroupLockEntry = {
38
44
  stableKey: string;
39
45
  path: string;
40
46
  sourceHash: string;
47
+ sourceBaseline?: SyncOmitBaseline;
41
48
  owner?: GroupOwnerPolicy;
42
49
  environments: Record<string, EnvironmentBaseline>;
43
50
  };
@@ -60,6 +67,7 @@ export type JobTemplateLockEntry = {
60
67
  stableKey: string;
61
68
  path: string;
62
69
  sourceHash: string;
70
+ sourceBaseline?: SyncOmitBaseline;
63
71
  environments: Record<string, EnvironmentBaseline>;
64
72
  migration?: {
65
73
  componentBinding?: 'pinned-unsupported';
@@ -70,27 +78,32 @@ export type ScheduleLockEntry = {
70
78
  stableKey: string;
71
79
  path: string;
72
80
  sourceHash: string;
81
+ sourceBaseline?: SyncOmitBaseline;
73
82
  environments: Record<string, EnvironmentBaseline>;
74
83
  };
75
84
  export type EventLockEntry = {
76
85
  stableKey: string;
77
86
  path: string;
78
87
  sourceHash: string;
88
+ sourceBaseline?: SyncOmitBaseline;
79
89
  environments: Record<string, EnvironmentBaseline>;
80
90
  };
81
91
  export type EndpointLockEntry = {
82
92
  stableKey: string;
83
93
  path: string;
84
94
  sourceHash: string;
95
+ sourceBaseline?: SyncOmitBaseline;
85
96
  environments: Record<string, EnvironmentBaseline>;
86
97
  };
87
98
  export type DatabaseSchemaLockEntry = {
88
99
  stableKey: string;
89
100
  path: string;
90
101
  sourceHash: string;
102
+ sourceBaseline?: SyncOmitBaseline;
91
103
  sourceRestricted?: boolean;
92
104
  parentStableKey?: string;
93
105
  environments: Record<string, {
106
+ omitBaseline?: SyncOmitBaseline;
94
107
  remoteHash: string;
95
108
  tombstone?: {
96
109
  deletedAt: string;
@@ -102,6 +115,7 @@ export type DatabaseViewLockEntry = {
102
115
  stableKey: string;
103
116
  path: string;
104
117
  sourceHash: string;
118
+ sourceBaseline?: SyncOmitBaseline;
105
119
  environments: Record<string, EnvironmentBaseline & {
106
120
  dependencyHash?: string;
107
121
  }>;
@@ -177,7 +191,7 @@ export type PortableComponentConfigField = (typeof PORTABLE_COMPONENT_CONFIG_FIE
177
191
  export declare function componentActivationValidationError(source: ComponentRecord): "Component active must be a boolean." | null;
178
192
  export declare function componentTypeTransitionReason(desired: string, current: string): string | null;
179
193
  export declare function diffPortableComponentSource(source: ComponentRecord, target: ComponentRecord): {
180
- configurationFields: ("name" | "type" | "metadata" | "desc" | "category" | "active" | "testConfig")[];
194
+ configurationFields: ("name" | "metadata" | "type" | "active" | "category" | "desc" | "testConfig")[];
181
195
  elementsChanged: boolean;
182
196
  changedFields: string[];
183
197
  };