@highstate/backend 0.9.20 → 0.9.21

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AccessError, InstanceLockLostError, globalProjectSpace, codebaseLibrary, hostPulumiBackend, codebaseProjectModelStorage, databaseProjectModelStorage, ProjectLockedError, ProjectNotFoundError, BackendError, forSchema, projectOutputSchema, InstanceStateNotFoundError, InstanceLockedError, waitAll, OperationNotFoundError, InputResolver, CannotDeleteLastUnlockMethodError, InvalidInstanceKindError, operationOutputSchema, terminalOutputSchema, toTerminalOutput, terminalDetailsOutputSchema, toTerminalDetailsOutput, serviceAccountOutputSchema, apiKeyOutputSchema, toApiKeyOutput, workerOutputSchema, toWorkerOutput, workerVersionOutputSchema, toWorkerVersionOutput, pageDetailsOutputSchema, toPageOutput, secretOutputSchema, toSecretOutput, artifactOutputSchema, triggerOutputSchema, unlockMethodOutputSchema, pageOutputSchema, toTerminalSessionOutput, extractDigestFromImage, getWorkerIdentity, WorkerVersionNotFoundError, createAsyncBatcher, operationOptionsSchema, finalOperationStatuses, finalInstanceOperationStatuses, diffLibraries, isTransientInstanceOperationStatus, InputHashResolver, PromiseTracker, workerUnitRegistrationEventSchema, terminalSessionOutputSchema, operationEventSchema, projectModelEventSchema, instanceLockEventSchema, instanceStateEventSchema, projectUnlockStateSchema, isVirtualGhostInstance } from './chunk-RC6Q3XQQ.js';
1
+ import { AccessError, InstanceLockLostError, globalProjectSpace, codebaseLibrary, hostPulumiBackend, codebaseProjectModelStorage, databaseProjectModelStorage, ProjectLockedError, ProjectNotFoundError, BackendError, forSchema, projectOutputSchema, InstanceStateNotFoundError, InstanceLockedError, waitAll, OperationNotFoundError, InputResolver, CannotDeleteLastUnlockMethodError, InvalidInstanceKindError, operationOutputSchema, terminalOutputSchema, toTerminalOutput, terminalDetailsOutputSchema, toTerminalDetailsOutput, serviceAccountOutputSchema, apiKeyOutputSchema, toApiKeyOutput, workerOutputSchema, toWorkerOutput, workerVersionOutputSchema, toWorkerVersionOutput, pageDetailsOutputSchema, toPageOutput, secretOutputSchema, toSecretOutput, artifactOutputSchema, triggerOutputSchema, unlockMethodOutputSchema, pageOutputSchema, toTerminalSessionOutput, extractDigestFromImage, getWorkerIdentity, WorkerVersionNotFoundError, createAsyncBatcher, operationOptionsSchema, finalOperationStatuses, finalInstanceOperationStatuses, diffLibraries, isTransientInstanceOperationStatus, InputHashResolver, PromiseTracker, workerUnitRegistrationEventSchema, terminalSessionOutputSchema, operationEventSchema, projectModelEventSchema, instanceLockEventSchema, instanceStateEventSchema, projectUnlockStateSchema, isVirtualGhostInstance } from './chunk-JNUJ4LTX.js';
2
2
  import { codebaseConfig, stringArrayType, createProjectLogger, isAbortErrorLike, getCodebaseHighstatePath, resolveMainLocalProject, errorToString, waitForAbort, AbortError, renderTree, runWithRetryOnError } from './chunk-VB4YL327.js';
3
3
  import { __using, __callDispose } from './chunk-I7BWSAN6.js';
4
4
  import { randomBytes, createHash } from 'node:crypto';
@@ -4728,7 +4728,6 @@ var LocalRunnerBackend = class _LocalRunnerBackend {
4728
4728
  if (outputs["$artifacts"]) {
4729
4729
  const artifacts = z.record(z.string(), unitArtifactSchema.array()).parse(outputs["$artifacts"].value);
4730
4730
  await collectAndStoreArtifacts(
4731
- // biome-ignore lint/style/noNonNullAssertion: writePath is guaranteed to be non-null here
4732
4731
  artifactEnv.writePath,
4733
4732
  options.projectId,
4734
4733
  options.stateId,
@@ -5626,7 +5625,7 @@ var WorkerManager = class {
5626
5625
  }
5627
5626
  });
5628
5627
  stdout.on("end", () => {
5629
- if (info.lineBuffer && info.lineBuffer.trim()) {
5628
+ if (info.lineBuffer?.trim()) {
5630
5629
  logBatcher.call({ content: info.lineBuffer, isSystem: false });
5631
5630
  info.lineBuffer = "";
5632
5631
  }
@@ -5649,7 +5648,7 @@ var WorkerManager = class {
5649
5648
  }).finally(async () => {
5650
5649
  const info2 = this.runningWorkers.get(workerVersion.id);
5651
5650
  if (info2) {
5652
- if (info2.lineBuffer && info2.lineBuffer.trim()) {
5651
+ if (info2.lineBuffer?.trim()) {
5653
5652
  info2.logBatcher.call({ content: info2.lineBuffer, isSystem: false });
5654
5653
  info2.lineBuffer = "";
5655
5654
  }
@@ -5986,7 +5985,6 @@ var OperationContext = class _OperationContext {
5986
5985
  this.inputHashNodes.set(instance.id, {
5987
5986
  instance,
5988
5987
  component,
5989
- // biome-ignore lint/style/noNonNullAssertion: я разрешаю
5990
5988
  resolvedInputs: this.resolvedInstanceInputs.get(instance.id),
5991
5989
  state: this.stateMap.get(instance.id),
5992
5990
  sourceHash: this.getSourceHashIfApplicable(instance, component)
@@ -7762,7 +7760,6 @@ var ProjectEvaluationSubsystem = class _ProjectEvaluationSubsystem {
7762
7760
  }
7763
7761
  const states = evaluatedInstances.map((ei) => {
7764
7762
  return {
7765
- // biome-ignore lint/style/noNonNullAssertion: we ensure this is always set
7766
7763
  stateId: instanceIdToStateMap.get(ei.instanceId).id,
7767
7764
  status: ei.status,
7768
7765
  message: ei.message,