@happier-dev/stack 0.2.1-preview.1775586714.26562 → 0.2.12-preview.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.
- package/README.md +4 -4
- package/bin/happier.mjs +8 -1
- package/bin/hstack.mjs +51 -36
- package/bin/localBundledWorkspacePreflight.mjs +48 -0
- package/docs/server-flavors.md +10 -13
- package/node_modules/@happier-dev/agents/dist/advancedModes.d.ts +1 -1
- package/node_modules/@happier-dev/agents/dist/advancedModes.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/advancedModes.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/auth.d.ts +2 -2
- package/node_modules/@happier-dev/agents/dist/auth.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/auth.js +25 -5
- package/node_modules/@happier-dev/agents/dist/auth.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/connectedServices/runtimeFallbackCapability.d.ts +17 -0
- package/node_modules/@happier-dev/agents/dist/connectedServices/runtimeFallbackCapability.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/connectedServices/runtimeFallbackCapability.js +59 -0
- package/node_modules/@happier-dev/agents/dist/connectedServices/runtimeFallbackCapability.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/connectedServices/sessionOptions.d.ts +114 -0
- package/node_modules/@happier-dev/agents/dist/connectedServices/sessionOptions.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/connectedServices/sessionOptions.js +318 -0
- package/node_modules/@happier-dev/agents/dist/connectedServices/sessionOptions.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/index.d.ts +29 -14
- package/node_modules/@happier-dev/agents/dist/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/index.js +25 -11
- package/node_modules/@happier-dev/agents/dist/index.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/localCli.d.ts +2 -1
- package/node_modules/@happier-dev/agents/dist/localCli.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/localCli.js +68 -43
- package/node_modules/@happier-dev/agents/dist/localCli.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/manifest.d.ts +420 -162
- package/node_modules/@happier-dev/agents/dist/manifest.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/manifest.js +222 -6
- package/node_modules/@happier-dev/agents/dist/manifest.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/mediaCapabilities.d.ts +5 -0
- package/node_modules/@happier-dev/agents/dist/mediaCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/mediaCapabilities.js +11 -0
- package/node_modules/@happier-dev/agents/dist/mediaCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/models.d.ts +25 -0
- package/node_modules/@happier-dev/agents/dist/models.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/models.js +99 -68
- package/node_modules/@happier-dev/agents/dist/models.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/nativeLaunchSelection.d.ts +20 -0
- package/node_modules/@happier-dev/agents/dist/nativeLaunchSelection.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/nativeLaunchSelection.js +35 -0
- package/node_modules/@happier-dev/agents/dist/nativeLaunchSelection.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/path/isAbsolutePathLike.d.ts +2 -0
- package/node_modules/@happier-dev/agents/dist/path/isAbsolutePathLike.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/path/isAbsolutePathLike.js +12 -0
- package/node_modules/@happier-dev/agents/dist/path/isAbsolutePathLike.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/permissions/index.d.ts +5 -0
- package/node_modules/@happier-dev/agents/dist/permissions/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/permissions/index.js +23 -59
- package/node_modules/@happier-dev/agents/dist/permissions/index.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/permissions/privilege.d.ts +33 -0
- package/node_modules/@happier-dev/agents/dist/permissions/privilege.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/permissions/privilege.js +95 -0
- package/node_modules/@happier-dev/agents/dist/permissions/privilege.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.d.ts +171 -80
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.js +62 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.d.ts +10 -10
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/cursor.d.ts +65 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/cursor.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/cursor.js +81 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/cursor.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/kimi.d.ts +36 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/kimi.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/kimi.js +33 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/kimi.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/opencode.d.ts +16 -16
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/opencode.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/index.d.ts +4 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/index.js +3 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/index.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/registry.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providerSettings/registry.js +4 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/registry.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/claude/contextWindow.d.ts +49 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/contextWindow.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/contextWindow.js +102 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/contextWindow.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/effort.d.ts +9 -2
- package/node_modules/@happier-dev/agents/dist/providers/claude/effort.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/claude/effort.js +52 -20
- package/node_modules/@happier-dev/agents/dist/providers/claude/effort.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/claude/flagshipModel.d.ts +13 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/flagshipModel.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/flagshipModel.js +13 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/flagshipModel.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/index.d.ts +7 -2
- package/node_modules/@happier-dev/agents/dist/providers/claude/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/claude/index.js +7 -2
- package/node_modules/@happier-dev/agents/dist/providers/claude/index.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/claude/modelDisplayName.d.ts +9 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/modelDisplayName.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/modelDisplayName.js +13 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/modelDisplayName.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/oauthProfile.d.ts +14 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/oauthProfile.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/oauthProfile.js +37 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/oauthProfile.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/oauthScopes.d.ts +5 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/oauthScopes.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/oauthScopes.js +18 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/oauthScopes.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/permissionRequestSource.d.ts +7 -1
- package/node_modules/@happier-dev/agents/dist/providers/claude/permissionRequestSource.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/claude/permissionRequestSource.js +8 -0
- package/node_modules/@happier-dev/agents/dist/providers/claude/permissionRequestSource.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/codex/index.d.ts +3 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/index.js +3 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/index.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/oauth.d.ts +12 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/oauth.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/oauth.js +17 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/oauth.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/readSessionMetadataConnectedServiceBindings.d.ts +3 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/readSessionMetadataConnectedServiceBindings.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/readSessionMetadataConnectedServiceBindings.js +26 -0
- package/node_modules/@happier-dev/agents/dist/providers/codex/readSessionMetadataConnectedServiceBindings.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/gemini/index.d.ts +2 -0
- package/node_modules/@happier-dev/agents/dist/providers/gemini/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/gemini/index.js +2 -0
- package/node_modules/@happier-dev/agents/dist/providers/gemini/index.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/gemini/oauth.d.ts +7 -0
- package/node_modules/@happier-dev/agents/dist/providers/gemini/oauth.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/gemini/oauth.js +11 -0
- package/node_modules/@happier-dev/agents/dist/providers/gemini/oauth.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/index.d.ts +2 -0
- package/node_modules/@happier-dev/agents/dist/providers/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/index.js +2 -0
- package/node_modules/@happier-dev/agents/dist/providers/index.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.d.ts +3 -3
- package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.d.ts +24 -0
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.js +121 -15
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/readSessionMetadataConnectedServiceBindings.d.ts +3 -0
- package/node_modules/@happier-dev/agents/dist/providers/readSessionMetadataConnectedServiceBindings.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/readSessionMetadataConnectedServiceBindings.js +9 -0
- package/node_modules/@happier-dev/agents/dist/providers/readSessionMetadataConnectedServiceBindings.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.d.ts +26 -0
- package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.js +52 -10
- package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/runtime/agentStateRequestCoverage.d.ts +16 -0
- package/node_modules/@happier-dev/agents/dist/runtime/agentStateRequestCoverage.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtime/agentStateRequestCoverage.js +120 -0
- package/node_modules/@happier-dev/agents/dist/runtime/agentStateRequestCoverage.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.d.ts +82 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.js +18 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/inputInjection.d.ts +66 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/inputInjection.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/inputInjection.js +2 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/inputInjection.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtimeInput.d.ts +5 -0
- package/node_modules/@happier-dev/agents/dist/runtimeInput.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtimeInput.js +16 -0
- package/node_modules/@happier-dev/agents/dist/runtimeInput.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtimeKinds.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/runtimeKinds.js +2 -0
- package/node_modules/@happier-dev/agents/dist/runtimeKinds.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/agentRuntimeDescriptor.d.ts +20 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/agentRuntimeDescriptor.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/agentRuntimeDescriptor.js +13 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/agentRuntimeDescriptor.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeDescriptorExtra.d.ts +6 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeDescriptorExtra.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeDescriptorExtra.js +12 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/codexRuntimeDescriptorExtra.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.d.ts +79 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.js +180 -10
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadataKeys.d.ts +9 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadataKeys.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadataKeys.js +16 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadataKeys.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.d.ts +10 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.js +66 -10
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/sessionCapabilities.d.ts +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/sessionCapabilities.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/sessionCapabilities.js +7 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/sessionCapabilities.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/vendorResumePolicy.d.ts +14 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/vendorResumePolicy.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionControls/vendorResumePolicy.js +43 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/vendorResumePolicy.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionModes.d.ts +3 -0
- package/node_modules/@happier-dev/agents/dist/sessionModes.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessionModes.js +14 -0
- package/node_modules/@happier-dev/agents/dist/sessionModes.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.d.ts +262 -4
- package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.js +1619 -45
- package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/sessions/state/projectCurrentAgentSessionView.d.ts +66 -0
- package/node_modules/@happier-dev/agents/dist/sessions/state/projectCurrentAgentSessionView.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessions/state/projectCurrentAgentSessionView.js +194 -0
- package/node_modules/@happier-dev/agents/dist/sessions/state/projectCurrentAgentSessionView.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/types.d.ts +63 -4
- package/node_modules/@happier-dev/agents/dist/types.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/types.js +2 -2
- package/node_modules/@happier-dev/agents/dist/types.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/cliDistBuildManifest.cjs +708 -0
- package/node_modules/@happier-dev/cli-common/cliDistBuildManifest.d.cts +94 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.d.ts +4 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.js +161 -71
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.d.ts +6 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.js +58 -3
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.d.ts +7 -3
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.js +83 -9
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/compilePrismaMigrateBinary.d.ts +10 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/compilePrismaMigrateBinary.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/compilePrismaMigrateBinary.js +13 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/compilePrismaMigrateBinary.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.d.ts +9 -6
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.js +63 -9
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/finalizeRuntimeArtifactPayload.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/finalizeRuntimeArtifactPayload.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/finalizeRuntimeArtifactPayload.js +45 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/finalizeRuntimeArtifactPayload.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.js +2 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/refreshCliBinaryArtifactRuntimeAssetBuildManifest.d.ts +8 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/refreshCliBinaryArtifactRuntimeAssetBuildManifest.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/refreshCliBinaryArtifactRuntimeAssetBuildManifest.js +16 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/refreshCliBinaryArtifactRuntimeAssetBuildManifest.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverBuildDbProviders.d.ts +4 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverBuildDbProviders.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverBuildDbProviders.js +33 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverBuildDbProviders.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.d.ts +11 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.js +222 -12
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/shouldReuseCliDistSnapshot.d.ts +6 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/shouldReuseCliDistSnapshot.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/shouldReuseCliDistSnapshot.js +48 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/shouldReuseCliDistSnapshot.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.d.ts +3 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.js +7 -97
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/componentCatalog.d.ts +31 -31
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/componentCatalog.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.d.ts +9 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.js +224 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/defaultReleaseChannelState.d.ts +20 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/defaultReleaseChannelState.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/defaultReleaseChannelState.js +46 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/defaultReleaseChannelState.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/extractReleasePayloadRootFromArchive.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/extractReleasePayloadRootFromArchive.js +16 -28
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/extractReleasePayloadRootFromArchive.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.d.ts +11 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.js +8 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.js +7 -7
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.js +156 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.js +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.js +13 -3
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.js +38 -4
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.js +64 -23
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.d.ts +15 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.js +829 -76
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveDesiredShimTargets.d.ts +14 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveDesiredShimTargets.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveDesiredShimTargets.js +29 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveDesiredShimTargets.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.d.ts +32 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.js +21 -4
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveJunctionFreeCurrentPath.d.ts +34 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveJunctionFreeCurrentPath.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveJunctionFreeCurrentPath.js +49 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveJunctionFreeCurrentPath.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveManagedCliReleaseChannel.d.ts +29 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveManagedCliReleaseChannel.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveManagedCliReleaseChannel.js +177 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveManagedCliReleaseChannel.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveNonCollidingRelayPort.d.ts +39 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveNonCollidingRelayPort.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveNonCollidingRelayPort.js +112 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveNonCollidingRelayPort.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/runtimeKinds.d.ts +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/runtimeKinds.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.d.ts +53 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.js +284 -41
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/serverRuntimeArtifactLayout.d.ts +36 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/serverRuntimeArtifactLayout.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/serverRuntimeArtifactLayout.js +113 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/serverRuntimeArtifactLayout.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledFirstPartyShims.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledFirstPartyShims.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledFirstPartyShims.js +23 -10
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledFirstPartyShims.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledPayloadPointer.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledPayloadPointer.js +66 -6
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/syncInstalledPayloadPointer.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/uiDeploymentIdentity.d.ts +10 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/uiDeploymentIdentity.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/uiDeploymentIdentity.js +61 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/uiDeploymentIdentity.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/versionMarkers.d.ts +12 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/versionMarkers.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/versionMarkers.js +24 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/versionMarkers.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/fs/windowsProtectedAcl.d.ts +35 -0
- package/node_modules/@happier-dev/cli-common/dist/fs/windowsProtectedAcl.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/fs/windowsProtectedAcl.js +222 -0
- package/node_modules/@happier-dev/cli-common/dist/fs/windowsProtectedAcl.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/links/index.d.ts +6 -0
- package/node_modules/@happier-dev/cli-common/dist/links/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/links/index.js +30 -15
- package/node_modules/@happier-dev/cli-common/dist/links/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/output/index.d.ts +3 -0
- package/node_modules/@happier-dev/cli-common/dist/output/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/output/index.js +3 -0
- package/node_modules/@happier-dev/cli-common/dist/output/index.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/output/planet.d.ts +47 -0
- package/node_modules/@happier-dev/cli-common/dist/output/planet.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/output/planet.js +183 -0
- package/node_modules/@happier-dev/cli-common/dist/output/planet.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/output/progress.d.ts +30 -0
- package/node_modules/@happier-dev/cli-common/dist/output/progress.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/output/progress.js +200 -0
- package/node_modules/@happier-dev/cli-common/dist/output/progress.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/path/expandHomeDirPath.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/path/expandHomeDirPath.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/path/expandHomeDirPath.js +2 -0
- package/node_modules/@happier-dev/cli-common/dist/path/expandHomeDirPath.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/path/pathShape.d.ts +5 -0
- package/node_modules/@happier-dev/cli-common/dist/path/pathShape.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/path/pathShape.js +31 -0
- package/node_modules/@happier-dev/cli-common/dist/path/pathShape.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/commandExists.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/process/commandExists.js +12 -6
- package/node_modules/@happier-dev/cli-common/dist/process/commandExists.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/process/index.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/process/index.js +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/process/runCommandStreaming.d.ts +9 -0
- package/node_modules/@happier-dev/cli-common/dist/process/runCommandStreaming.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/runCommandStreaming.js +64 -0
- package/node_modules/@happier-dev/cli-common/dist/process/runCommandStreaming.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.js +35 -7
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.js +42 -20
- package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.d.ts +12 -0
- package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.js +86 -16
- package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/install.d.ts +3 -0
- package/node_modules/@happier-dev/cli-common/dist/providers/install.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/install.js +551 -78
- package/node_modules/@happier-dev/cli-common/dist/providers/install.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.js +4 -3
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.js +34 -3
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/nodeRelease.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.js +37 -12
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.d.ts +3 -3
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.js +109 -38
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.js +10 -5
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/relayHost/buildRelayRuntimeHealthProbeCommand.d.ts +8 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/buildRelayRuntimeHealthProbeCommand.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/buildRelayRuntimeHealthProbeCommand.js +40 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/buildRelayRuntimeHealthProbeCommand.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.d.ts +3 -2
- package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.js +1413 -373
- package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/relayHost/remoteRelayRuntimeInstallCommand.d.ts +13 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/remoteRelayRuntimeInstallCommand.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/remoteRelayRuntimeInstallCommand.js +45 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/remoteRelayRuntimeInstallCommand.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/launchd.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/launchd.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/service/launchd.js +4 -0
- package/node_modules/@happier-dev/cli-common/dist/service/launchd.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/service/manager.d.ts +30 -0
- package/node_modules/@happier-dev/cli-common/dist/service/manager.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/service/manager.js +197 -24
- package/node_modules/@happier-dev/cli-common/dist/service/manager.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/service/path.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/service/systemd.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/service/systemd.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/service/systemd.js +7 -1
- package/node_modules/@happier-dev/cli-common/dist/service/systemd.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/service/windows.d.ts +49 -0
- package/node_modules/@happier-dev/cli-common/dist/service/windows.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/service/windows.js +194 -5
- package/node_modules/@happier-dev/cli-common/dist/service/windows.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/createScpReadyPayloadArchive.d.ts +7 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/createScpReadyPayloadArchive.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/createScpReadyPayloadArchive.js +41 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/createScpReadyPayloadArchive.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/createScpReadyPayloadCopy.d.ts +5 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/createScpReadyPayloadCopy.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/createScpReadyPayloadCopy.js +51 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/createScpReadyPayloadCopy.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.js +1 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.js +104 -61
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/ssh/scpRemotePath.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/ssh/scpRemotePath.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/ssh/scpRemotePath.js +13 -0
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/ssh/scpRemotePath.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.js +20 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/index.d.ts +2 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/index.js +2 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/installStrategy.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.d.ts +15 -0
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.js +50 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/statusSnapshot.d.ts +29 -0
- package/node_modules/@happier-dev/cli-common/dist/tailscale/statusSnapshot.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/statusSnapshot.js +42 -0
- package/node_modules/@happier-dev/cli-common/dist/tailscale/statusSnapshot.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.d.ts +2 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.d.ts +16 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.js +113 -24
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/expandHomeDirPath.cjs +41 -0
- package/node_modules/@happier-dev/cli-common/expandHomeDirPath.d.cts +10 -0
- package/node_modules/@happier-dev/cli-common/jsonOwnerBuildLockState.cjs +54 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/license +9 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/package.json +83 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/readme.md +297 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/index.d.ts +325 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/index.js +225 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/node_modules/@happier-dev/cli-common/package.json +60 -1
- package/node_modules/@happier-dev/cli-common/processInstance.d.mts +10 -0
- package/node_modules/@happier-dev/cli-common/processInstance.mjs +67 -0
- package/node_modules/@happier-dev/cli-common/runtimeImportProbePolicy.d.mts +1 -0
- package/node_modules/@happier-dev/cli-common/runtimeImportProbePolicy.mjs +5 -0
- package/node_modules/@happier-dev/cli-common/workspaceBundleLock.d.mts +39 -0
- package/node_modules/@happier-dev/cli-common/workspaceBundleLock.mjs +380 -0
- package/node_modules/@happier-dev/cli-common/workspaceLockLease.d.mts +21 -0
- package/node_modules/@happier-dev/cli-common/workspaceLockLease.mjs +57 -0
- package/node_modules/@happier-dev/connection-supervisor/dist/createManagedConnectionSupervisor.d.ts.map +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/createManagedConnectionSupervisor.js +47 -9
- package/node_modules/@happier-dev/connection-supervisor/dist/createManagedConnectionSupervisor.js.map +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/createManagedEndpointSupervisor.d.ts.map +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/createManagedEndpointSupervisor.js +33 -0
- package/node_modules/@happier-dev/connection-supervisor/dist/createManagedEndpointSupervisor.js.map +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/index.d.ts +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionEvents.js +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionEvents.js.map +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionTypes.d.ts +8 -0
- package/node_modules/@happier-dev/connection-supervisor/dist/managedConnectionTypes.d.ts.map +1 -1
- package/node_modules/@happier-dev/connection-supervisor/dist/managedEndpointSupervisorTypes.d.ts +3 -0
- package/node_modules/@happier-dev/connection-supervisor/dist/managedEndpointSupervisorTypes.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.d.ts +443 -213
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.js +21 -3
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/account/profile.d.ts +102 -4
- package/node_modules/@happier-dev/protocol/dist/account/profile.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/profile.js +19 -2
- package/node_modules/@happier-dev/protocol/dist/account/profile.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.d.ts +254 -41
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.js +183 -18
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsApiV2.d.ts +3 -576
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsApiV2.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsPersistedObject.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsPersistedObject.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsPersistedObject.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsPersistedObject.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsStoredContentEnvelope.d.ts +1 -192
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsStoredContentEnvelope.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsStoredContentEnvelope.js +2 -2
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettingsStoredContentEnvelope.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/connectedServicesSettings.d.ts +79 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/connectedServicesSettings.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/connectedServicesSettings.js +80 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/connectedServicesSettings.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/index.d.ts +3 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/index.js +3 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/index.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.d.ts +41 -14
- package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.js +23 -2
- package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/acpCatalog/settingsV1.d.ts +29 -29
- package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalMetadata.d.ts +26 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalMetadata.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalMetadata.js +24 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalMetadata.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalPolicy.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalPolicy.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalPolicy.js +17 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionApprovalPolicy.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionCatalog.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionCatalog.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionCatalog.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionCatalog.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.d.ts +269 -17
- package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.js +1301 -134
- package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.d.ts +64 -44
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.js +21 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputVoiceGuidance.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputVoiceGuidance.js +13 -4
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputVoiceGuidance.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionOptionSources.d.ts +28 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionOptionSources.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionOptionSources.js +77 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionOptionSources.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.d.ts +73 -35
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.js +24 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.d.ts +487 -65
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.js +1390 -138
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/actionSurfaceAvailability.d.ts +24 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSurfaceAvailability.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSurfaceAvailability.js +139 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSurfaceAvailability.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionToolExposure.d.ts +14 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionToolExposure.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionToolExposure.js +46 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionToolExposure.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.d.ts +5 -5
- package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/executionRunActionPermissionMode.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/dist/actions/executionRunActionPermissionMode.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/executionRunActionPermissionMode.js +12 -0
- package/node_modules/@happier-dev/protocol/dist/actions/executionRunActionPermissionMode.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/index.d.ts +8 -3
- package/node_modules/@happier-dev/protocol/dist/actions/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/index.js +7 -2
- package/node_modules/@happier-dev/protocol/dist/actions/index.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/operations/actionOperationDeclarationV1.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/actionOperationDeclarationV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/actionOperationDeclarationV1.js +9 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/actionOperationDeclarationV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/actionOperationV1.d.ts +299 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/actionOperationV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/actionOperationV1.js +180 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/actionOperationV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/index.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/index.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/actions/operations/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/permissionPrivilege.d.ts +37 -0
- package/node_modules/@happier-dev/protocol/dist/actions/permissionPrivilege.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/permissionPrivilege.js +133 -0
- package/node_modules/@happier-dev/protocol/dist/actions/permissionPrivilege.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/sessionModeIds.js +5 -5
- package/node_modules/@happier-dev/protocol/dist/actions/sessionModeIds.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/actions/sessionSpawnConfigOptions.d.ts +37 -0
- package/node_modules/@happier-dev/protocol/dist/actions/sessionSpawnConfigOptions.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/sessionSpawnConfigOptions.js +80 -0
- package/node_modules/@happier-dev/protocol/dist/actions/sessionSpawnConfigOptions.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/agentRequestNotificationContent.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/activity/agentRequestNotificationContent.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/agentRequestNotificationContent.js +68 -0
- package/node_modules/@happier-dev/protocol/dist/activity/agentRequestNotificationContent.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/agentRequestSummary.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/activity/agentRequestSummary.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/agentRequestSummary.js +100 -0
- package/node_modules/@happier-dev/protocol/dist/activity/agentRequestSummary.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/backgroundTask/backgroundTaskRecordV1.d.ts +94 -0
- package/node_modules/@happier-dev/protocol/dist/activity/backgroundTask/backgroundTaskRecordV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/backgroundTask/backgroundTaskRecordV1.js +125 -0
- package/node_modules/@happier-dev/protocol/dist/activity/backgroundTask/backgroundTaskRecordV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/backgroundTask/backgroundTaskRedaction.d.ts +40 -0
- package/node_modules/@happier-dev/protocol/dist/activity/backgroundTask/backgroundTaskRedaction.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/backgroundTask/backgroundTaskRedaction.js +94 -0
- package/node_modules/@happier-dev/protocol/dist/activity/backgroundTask/backgroundTaskRedaction.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/parseJson.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/activity/parseJson.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/parseJson.js +32 -0
- package/node_modules/@happier-dev/protocol/dist/activity/parseJson.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/shellCommand.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/activity/shellCommand.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/shellCommand.js +120 -0
- package/node_modules/@happier-dev/protocol/dist/activity/shellCommand.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/activity/webhookPayload.d.ts +10 -2
- package/node_modules/@happier-dev/protocol/dist/activity/webhookPayload.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/activity/webhookPayload.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/activity/webhookPayload.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/approvals/approvalRequestV1.d.ts +105 -53
- package/node_modules/@happier-dev/protocol/dist/approvals/approvalRequestV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/approvals/approvalRequestV1.js +64 -0
- package/node_modules/@happier-dev/protocol/dist/approvals/approvalRequestV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/auth/errors.d.ts +15 -14
- package/node_modules/@happier-dev/protocol/dist/auth/errors.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/auth/errors.js +1 -0
- package/node_modules/@happier-dev/protocol/dist/auth/errors.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/backendSurface/declarationV1.d.ts +52 -0
- package/node_modules/@happier-dev/protocol/dist/backendSurface/declarationV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/backendSurface/declarationV1.js +13 -0
- package/node_modules/@happier-dev/protocol/dist/backendSurface/declarationV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.js +406 -10
- package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/changes.d.ts +11 -29
- package/node_modules/@happier-dev/protocol/dist/changes.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/changes.js +6 -1
- package/node_modules/@happier-dev/protocol/dist/changes.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/checklists.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/checklists.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/index.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/primitives.d.ts +19 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/primitives.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/primitives.js +46 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/primitives.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/upgradeRequiredV1.d.ts +36 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/upgradeRequiredV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/upgradeRequiredV1.js +19 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/upgradeRequiredV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/versionEndpointV1.d.ts +35 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/versionEndpointV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/versionEndpointV1.js +41 -0
- package/node_modules/@happier-dev/protocol/dist/clientCompatibility/versionEndpointV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/accountSubscription.d.ts +36 -0
- package/node_modules/@happier-dev/protocol/dist/connect/accountSubscription.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/accountSubscription.js +36 -0
- package/node_modules/@happier-dev/protocol/dist/connect/accountSubscription.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/accountUsage.d.ts +525 -0
- package/node_modules/@happier-dev/protocol/dist/connect/accountUsage.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/accountUsage.js +310 -0
- package/node_modules/@happier-dev/protocol/dist/connect/accountUsage.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.js +25 -1
- package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceAuthGroupMemberRuntimeStatePolicy.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceAuthGroupMemberRuntimeStatePolicy.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceAuthGroupMemberRuntimeStatePolicy.js +40 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceAuthGroupMemberRuntimeStatePolicy.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceBindings.d.ts +74 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceBindings.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceBindings.js +75 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceBindings.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.d.ts +0 -5
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.js +0 -8
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCredentialBinding.d.ts +19 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCredentialBinding.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCredentialBinding.js +19 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCredentialBinding.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.d.ts +25 -15
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceLimitCategory.d.ts +43 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceLimitCategory.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceLimitCategory.js +53 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceLimitCategory.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.d.ts +1371 -27
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.js +543 -13
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceUxDiagnostics.d.ts +184 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceUxDiagnostics.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceUxDiagnostics.js +142 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceUxDiagnostics.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/normalizeConnectedServiceSelectionInput.d.ts +61 -0
- package/node_modules/@happier-dev/protocol/dist/connect/normalizeConnectedServiceSelectionInput.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/normalizeConnectedServiceSelectionInput.js +148 -0
- package/node_modules/@happier-dev/protocol/dist/connect/normalizeConnectedServiceSelectionInput.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/recoveryCreditConsumeIdempotencyKey.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/connect/recoveryCreditConsumeIdempotencyKey.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/recoveryCreditConsumeIdempotencyKey.js +22 -0
- package/node_modules/@happier-dev/protocol/dist/connect/recoveryCreditConsumeIdempotencyKey.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.d.ts +2 -1
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.js +19 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.d.ts +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.js +34 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/crypto/canonicalDigest.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/canonicalDigest.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/canonicalDigest.js +21 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/canonicalDigest.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/cryptoGoldenVectors.d.ts +93 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/cryptoGoldenVectors.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/cryptoGoldenVectors.js +99 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/cryptoGoldenVectors.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/publicShareCapabilityUrl.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/publicShareCapabilityUrl.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/publicShareCapabilityUrl.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/publicShareCapabilityUrl.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/publicShareEncryptedDataKeyEnvelopeV0.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/publicShareEncryptedDataKeyEnvelopeV0.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/publicShareEncryptedDataKeyEnvelopeV0.js +34 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/publicShareEncryptedDataKeyEnvelopeV0.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.d.ts +18 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.js +85 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/daemon/serverWorkStatus.d.ts +52 -0
- package/node_modules/@happier-dev/protocol/dist/daemon/serverWorkStatus.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/daemon/serverWorkStatus.js +34 -0
- package/node_modules/@happier-dev/protocol/dist/daemon/serverWorkStatus.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.d.ts +51 -12
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.js +4 -1
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/daemonTerminal.d.ts +47 -26
- package/node_modules/@happier-dev/protocol/dist/daemonTerminal.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/daemonTerminal.js +26 -14
- package/node_modules/@happier-dev/protocol/dist/daemonTerminal.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/diagnostics/doctorSnapshot.d.ts +352 -0
- package/node_modules/@happier-dev/protocol/dist/diagnostics/doctorSnapshot.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/diagnostics/doctorSnapshot.js +159 -0
- package/node_modules/@happier-dev/protocol/dist/diagnostics/doctorSnapshot.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/directSessions/daemonRpcV1.d.ts +209 -28
- package/node_modules/@happier-dev/protocol/dist/directSessions/daemonRpcV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/directSessions/daemonRpcV1.js +94 -0
- package/node_modules/@happier-dev/protocol/dist/directSessions/daemonRpcV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/directSessions/linkedSessionMetadata.d.ts +35 -0
- package/node_modules/@happier-dev/protocol/dist/directSessions/linkedSessionMetadata.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/directSessions/linkedSessionMetadata.js +157 -0
- package/node_modules/@happier-dev/protocol/dist/directSessions/linkedSessionMetadata.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/drafts/index.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/drafts/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/drafts/index.js +2 -0
- package/node_modules/@happier-dev/protocol/dist/drafts/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/drafts/sessionDrafts.d.ts +1076 -0
- package/node_modules/@happier-dev/protocol/dist/drafts/sessionDrafts.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/drafts/sessionDrafts.js +169 -0
- package/node_modules/@happier-dev/protocol/dist/drafts/sessionDrafts.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.d.ts +7 -7
- package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.d.ts +4 -4
- package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.d.ts +4 -4
- package/node_modules/@happier-dev/protocol/dist/executionRunListRequest.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.d.ts +62 -12
- package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.js +51 -3
- package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts +136 -30
- package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/executionRuns.js +29 -2
- package/node_modules/@happier-dev/protocol/dist/executionRuns.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts +300 -168
- package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/catalog.js +140 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/decision.d.ts +93 -71
- package/node_modules/@happier-dev/protocol/dist/features/decision.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.d.ts +5 -5
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.d.ts +70 -5
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/connectedServicesCapabilities.d.ts +19 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/connectedServicesCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/connectedServicesCapabilities.js +18 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/connectedServicesCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.d.ts +4 -4
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/petsCapabilities.d.ts +84 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/petsCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/petsCapabilities.js +56 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/petsCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverCapabilities.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverCapabilities.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverIdentityCapabilities.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverIdentityCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverIdentityCapabilities.js +18 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverIdentityCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.js +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sessionCapabilities.d.ts +50 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sessionCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sessionCapabilities.js +35 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sessionCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sharingCapabilities.d.ts +16 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sharingCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sharingCapabilities.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sharingCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts +42 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.js +44 -2
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts +112 -5
- package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/dist/features.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features.js +5 -0
- package/node_modules/@happier-dev/protocol/dist/features.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/index.d.ts +119 -36
- package/node_modules/@happier-dev/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/index.js +117 -35
- package/node_modules/@happier-dev/protocol/dist/index.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/installables.d.ts +43 -5
- package/node_modules/@happier-dev/protocol/dist/installables.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/installables.js +29 -2
- package/node_modules/@happier-dev/protocol/dist/installables.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/llmTasks/llmTaskRunnerConfigV1.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/llmTasks/llmTaskRunnerConfigV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/llmTasks/llmTaskRunnerConfigV1.js +3 -1
- package/node_modules/@happier-dev/protocol/dist/llmTasks/llmTaskRunnerConfigV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/machineFileBrowser.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/machineHost/normalizeMachineHost.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/machineHost/normalizeMachineHost.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineHost/normalizeMachineHost.js +45 -0
- package/node_modules/@happier-dev/protocol/dist/machineHost/normalizeMachineHost.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/index.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/index.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/machineLocality.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/machineLocality.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/machineLocality.js +18 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/machineLocality.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/normalizeMachineHomeDir.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/normalizeMachineHomeDir.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/normalizeMachineHomeDir.js +73 -0
- package/node_modules/@happier-dev/protocol/dist/machineIdentity/normalizeMachineHomeDir.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineOwnership/daemonOwnership.d.ts +96 -0
- package/node_modules/@happier-dev/protocol/dist/machineOwnership/daemonOwnership.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineOwnership/daemonOwnership.js +107 -0
- package/node_modules/@happier-dev/protocol/dist/machineOwnership/daemonOwnership.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machineTransfer/transferStream.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/machineTransfer/transferStream.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/machineTransfer/transferStream.js +9 -2
- package/node_modules/@happier-dev/protocol/dist/machineTransfer/transferStream.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/machines/identity/canonicalMachineId.d.ts +57 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/canonicalMachineId.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/canonicalMachineId.js +88 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/canonicalMachineId.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/installationIdentity.d.ts +42 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/installationIdentity.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/installationIdentity.js +145 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/installationIdentity.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/machineReplacement.d.ts +14 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/machineReplacement.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/machineReplacement.js +21 -0
- package/node_modules/@happier-dev/protocol/dist/machines/identity/machineReplacement.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/machines/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/index.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/machines/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/metadataUpdate.d.ts +21 -0
- package/node_modules/@happier-dev/protocol/dist/machines/metadataUpdate.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/machines/metadataUpdate.js +23 -0
- package/node_modules/@happier-dev/protocol/dist/machines/metadataUpdate.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/mcpServers/daemonRpcV1.d.ts +30 -24
- package/node_modules/@happier-dev/protocol/dist/mcpServers/daemonRpcV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/mcpServers/previewV1.d.ts +38 -36
- package/node_modules/@happier-dev/protocol/dist/mcpServers/previewV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/mcpServers/sessionSelectionV1.d.ts +25 -2
- package/node_modules/@happier-dev/protocol/dist/mcpServers/sessionSelectionV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/mcpServers/sessionSelectionV1.js +30 -0
- package/node_modules/@happier-dev/protocol/dist/mcpServers/sessionSelectionV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/mcpServers/settingsV1.d.ts +3 -3
- package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.d.ts +8 -8
- package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.d.ts +58 -12
- package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.js +46 -5
- package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/memory/memoryStatus.d.ts +101 -2
- package/node_modules/@happier-dev/protocol/dist/memory/memoryStatus.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/memory/memoryStatus.js +53 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memoryStatus.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/mentionRefV1.d.ts +107 -0
- package/node_modules/@happier-dev/protocol/dist/mentionRefV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/mentionRefV1.js +191 -0
- package/node_modules/@happier-dev/protocol/dist/mentionRefV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/accountLibrary.d.ts +258 -0
- package/node_modules/@happier-dev/protocol/dist/pets/accountLibrary.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/accountLibrary.js +131 -0
- package/node_modules/@happier-dev/protocol/dist/pets/accountLibrary.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/assetFormats.d.ts +52 -0
- package/node_modules/@happier-dev/protocol/dist/pets/assetFormats.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/assetFormats.js +45 -0
- package/node_modules/@happier-dev/protocol/dist/pets/assetFormats.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/atlasPixelInspection.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/dist/pets/atlasPixelInspection.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/atlasPixelInspection.js +51 -0
- package/node_modules/@happier-dev/protocol/dist/pets/atlasPixelInspection.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/constants.d.ts +85 -0
- package/node_modules/@happier-dev/protocol/dist/pets/constants.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/constants.js +59 -0
- package/node_modules/@happier-dev/protocol/dist/pets/constants.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/daemonRpc.d.ts +610 -0
- package/node_modules/@happier-dev/protocol/dist/pets/daemonRpc.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/daemonRpc.js +265 -0
- package/node_modules/@happier-dev/protocol/dist/pets/daemonRpc.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/index.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/pets/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/index.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/pets/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/manifest.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/dist/pets/manifest.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/manifest.js +17 -0
- package/node_modules/@happier-dev/protocol/dist/pets/manifest.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/source.d.ts +79 -0
- package/node_modules/@happier-dev/protocol/dist/pets/source.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/pets/source.js +62 -0
- package/node_modules/@happier-dev/protocol/dist/pets/source.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/profiles/backendProfileSchema.d.ts +22 -8
- package/node_modules/@happier-dev/protocol/dist/profiles/backendProfileSchema.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/profiles/backendProfileSchema.js +5 -0
- package/node_modules/@happier-dev/protocol/dist/profiles/backendProfileSchema.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptAssetsV1.d.ts +41 -41
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptBundleSchemas.d.ts +3 -3
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptDocV2.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptExternalLinksV1.d.ts +8 -8
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptInvocationsV1.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptInvocationsV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptInvocationsV1.js +1 -1
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptInvocationsV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptPlacementV1.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptRegistriesV1.d.ts +18 -18
- package/node_modules/@happier-dev/protocol/dist/promptLibrary/promptStacksV1.d.ts +18 -18
- package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.js +8 -3
- package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/prompts/changeTitleInstructionV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/prompts/codingPromptBehaviorV1.d.ts +54 -0
- package/node_modules/@happier-dev/protocol/dist/prompts/codingPromptBehaviorV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/prompts/codingPromptBehaviorV1.js +67 -0
- package/node_modules/@happier-dev/protocol/dist/prompts/codingPromptBehaviorV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.js +34 -44
- package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/prompts/systemPromptBaseV1.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/prompts/systemPromptBaseV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/prompts/systemPromptBaseV1.js +28 -4
- package/node_modules/@happier-dev/protocol/dist/prompts/systemPromptBaseV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/agentProviderIdsV1.d.ts +3 -2
- package/node_modules/@happier-dev/protocol/dist/providers/agentProviderIdsV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/agentProviderIdsV1.js +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/agentProviderIdsV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/claude/builtInBackendProfiles.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/claude/builtInBackendProfiles.js +60 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/builtInBackendProfiles.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/claude/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/index.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/memoryDefaults.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/claude/sdkSkills.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/sdkSkills.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/sdkSkills.js +17 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/sdkSkills.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/sessionTasks.d.ts +100 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/sessionTasks.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/sessionTasks.js +301 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/sessionTasks.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/slashCommands.d.ts +37 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/slashCommands.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/slashCommands.js +60 -0
- package/node_modules/@happier-dev/protocol/dist/providers/claude/slashCommands.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerCapabilities.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerCapabilities.js +11 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerGoal.d.ts +35 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerGoal.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerGoal.js +74 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerGoal.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerPermissions.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerPermissions.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerPermissions.js +21 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerPermissions.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerPlugin.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerPlugin.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerPlugin.js +48 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerPlugin.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerTurnInput.d.ts +65 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerTurnInput.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerTurnInput.js +43 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/appServerTurnInput.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/backendMode.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/codex/backendMode.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/codex/builtInBackendProfiles.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/codex/builtInBackendProfiles.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/builtInBackendProfiles.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/codex/index.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/index.js +7 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/codex/installables.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/providers/codex/installables.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/gemini/builtInBackendProfiles.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/gemini/builtInBackendProfiles.js +4 -2
- package/node_modules/@happier-dev/protocol/dist/providers/gemini/builtInBackendProfiles.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/providers/github/installables.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/dist/providers/github/installables.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/github/installables.js +5 -0
- package/node_modules/@happier-dev/protocol/dist/providers/github/installables.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/kiro/acpCatalog.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/appSkills.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/appSkills.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/appSkills.js +26 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/appSkills.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/index.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/sessionTodo.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/sessionTodo.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/sessionTodo.js +58 -0
- package/node_modules/@happier-dev/protocol/dist/providers/opencode/sessionTodo.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/push/pushNotificationActions.d.ts +8 -8
- package/node_modules/@happier-dev/protocol/dist/push/pushNotificationActions.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/replaySeedBudget.d.ts +48 -0
- package/node_modules/@happier-dev/protocol/dist/replaySeedBudget.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/replaySeedBudget.js +60 -0
- package/node_modules/@happier-dev/protocol/dist/replaySeedBudget.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/retention/serverRetentionPolicyV2.d.ts +43 -0
- package/node_modules/@happier-dev/protocol/dist/retention/serverRetentionPolicyV2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/retention/serverRetentionPolicyV2.js +17 -0
- package/node_modules/@happier-dev/protocol/dist/retention/serverRetentionPolicyV2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.d.ts +10 -10
- package/node_modules/@happier-dev/protocol/dist/reviews/ReviewQuestion.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.d.ts +10 -1
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.js +3 -1
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/rpc.d.ts +231 -126
- package/node_modules/@happier-dev/protocol/dist/rpc.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/rpc.js +168 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.d.ts +16 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.js +44 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scm.d.ts +561 -173
- package/node_modules/@happier-dev/protocol/dist/scm.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scm.js +235 -45
- package/node_modules/@happier-dev/protocol/dist/scm.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scmBranches.d.ts +112 -37
- package/node_modules/@happier-dev/protocol/dist/scmBranches.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scmBranches.js +15 -1
- package/node_modules/@happier-dev/protocol/dist/scmBranches.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.js +38 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scmErrorCodes.d.ts +43 -0
- package/node_modules/@happier-dev/protocol/dist/scmErrorCodes.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmErrorCodes.js +42 -0
- package/node_modules/@happier-dev/protocol/dist/scmErrorCodes.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmPullRequests.d.ts +594 -0
- package/node_modules/@happier-dev/protocol/dist/scmPullRequests.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmPullRequests.js +192 -0
- package/node_modules/@happier-dev/protocol/dist/scmPullRequests.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmRepositoryProvisioning.d.ts +884 -0
- package/node_modules/@happier-dev/protocol/dist/scmRepositoryProvisioning.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmRepositoryProvisioning.js +109 -0
- package/node_modules/@happier-dev/protocol/dist/scmRepositoryProvisioning.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmRequestBase.d.ts +26 -0
- package/node_modules/@happier-dev/protocol/dist/scmRequestBase.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmRequestBase.js +11 -0
- package/node_modules/@happier-dev/protocol/dist/scmRequestBase.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmStash.d.ts +60 -45
- package/node_modules/@happier-dev/protocol/dist/scmStash.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scmWorktreeName.d.ts +52 -0
- package/node_modules/@happier-dev/protocol/dist/scmWorktreeName.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmWorktreeName.js +85 -0
- package/node_modules/@happier-dev/protocol/dist/scmWorktreeName.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmWorktrees.d.ts +49 -37
- package/node_modules/@happier-dev/protocol/dist/scmWorktrees.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sentFrom.d.ts +10 -10
- package/node_modules/@happier-dev/protocol/dist/sentFrom.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.d.ts +22 -18
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/serverUrls/index.d.ts +1 -0
- package/node_modules/@happier-dev/protocol/dist/serverUrls/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/serverUrls/index.js +1 -0
- package/node_modules/@happier-dev/protocol/dist/serverUrls/index.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/serverUrls/loopbackHostname.d.ts +36 -0
- package/node_modules/@happier-dev/protocol/dist/serverUrls/loopbackHostname.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/serverUrls/loopbackHostname.js +65 -0
- package/node_modules/@happier-dev/protocol/dist/serverUrls/loopbackHostname.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/serverUrls/serverUrlComparableKey.d.ts +21 -1
- package/node_modules/@happier-dev/protocol/dist/serverUrls/serverUrlComparableKey.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/serverUrls/serverUrlComparableKey.js +26 -0
- package/node_modules/@happier-dev/protocol/dist/serverUrls/serverUrlComparableKey.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/session/attachMetadataIdentityPolicy.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/session/attachMetadataIdentityPolicy.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionActivityHeadlineOrdering.d.ts +74 -0
- package/node_modules/@happier-dev/protocol/dist/sessionActivityHeadlineOrdering.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionActivityHeadlineOrdering.js +66 -0
- package/node_modules/@happier-dev/protocol/dist/sessionActivityHeadlineOrdering.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromExecutionRunStatus.d.ts +14 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromExecutionRunStatus.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromExecutionRunStatus.js +29 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromExecutionRunStatus.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromSubagentStatus.d.ts +34 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromSubagentStatus.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromSubagentStatus.js +54 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromSubagentStatus.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromWorkflowAgentStatus.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromWorkflowAgentStatus.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromWorkflowAgentStatus.js +30 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromWorkflowAgentStatus.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromWorkflowRunStatus.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromWorkflowRunStatus.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromWorkflowRunStatus.js +33 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/fromWorkflowRunStatus.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/index.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/index.js +5 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/adapters/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityEntryId.d.ts +71 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityEntryId.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityEntryId.js +119 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityEntryId.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityEntryV1.d.ts +81 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityEntryV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityEntryV1.js +143 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityEntryV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityHeadlineBuild.d.ts +41 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityHeadlineBuild.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityHeadlineBuild.js +77 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityHeadlineBuild.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityHeadlineV1.d.ts +115 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityHeadlineV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityHeadlineV1.js +113 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityHeadlineV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityKindV1.d.ts +32 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityKindV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityKindV1.js +31 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityKindV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityStatusV1.d.ts +100 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityStatusV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityStatusV1.js +129 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityStatusV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityToneV1.d.ts +25 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityToneV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityToneV1.js +46 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/agentActivityToneV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/index.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/index.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/workflowAgentSidechainId.d.ts +33 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/workflowAgentSidechainId.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/workflowAgentSidechainId.js +38 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentActivity/workflowAgentSidechainId.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransition.d.ts +409 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransition.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransition.js +457 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransition.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionDivider.d.ts +110 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionDivider.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionDivider.js +184 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionDivider.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionEffectStage.contract.test-d.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionEffectStage.contract.test-d.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionEffectStage.contract.test-d.js +2 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionEffectStage.contract.test-d.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionEffectStage.d.ts +155 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionEffectStage.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionEffectStage.js +54 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionEffectStage.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionVectors.d.ts +808 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionVectors.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionVectors.js +577 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAgentTransitionVectors.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/buildFieldArtifacts.d.ts +12 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/buildFieldArtifacts.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/buildFieldArtifacts.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/buildFieldArtifacts.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/contextKinds.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/contextKinds.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldCatalog.d.ts +537 -330
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldCatalog.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldCatalog.js +111 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldCatalog.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldDefinition.d.ts +6 -4
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldDefinition.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/fieldDefinition.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/index.d.ts +757 -440
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/index.js +5 -1
- package/node_modules/@happier-dev/protocol/dist/sessionAuthoring/index.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionChanges/reconcileWithScmSnapshot.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionChanges/reconcileWithScmSnapshot.js +90 -3
- package/node_modules/@happier-dev/protocol/dist/sessionChanges/reconcileWithScmSnapshot.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionChanges/schemas.d.ts +76 -76
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.d.ts +8 -8
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.js +3 -2
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts +2902 -374
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js +193 -10
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffRpc.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffRpc.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffRpc.js +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffRpc.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffSchemas.d.ts +401 -91
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffSchemas.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffSchemas.js +66 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffSchemas.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffStatus.d.ts +32 -31
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffStatus.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffTypes.d.ts +10 -5
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffTypes.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffTypes.js +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/handoff/handoffTypes.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/pendingActivationAuthorizationV1.d.ts +32 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/pendingActivationAuthorizationV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/pendingActivationAuthorizationV1.js +23 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/pendingActivationAuthorizationV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionPendingInputInterruptAndRunV1.d.ts +30 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionPendingInputInterruptAndRunV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionPendingInputInterruptAndRunV1.js +42 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionPendingInputInterruptAndRunV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionPendingQueueWakeV1.d.ts +49 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionPendingQueueWakeV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionPendingQueueWakeV1.js +35 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionPendingQueueWakeV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionTerminalComposerClearV1.d.ts +48 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionTerminalComposerClearV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionTerminalComposerClearV1.js +49 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionTerminalComposerClearV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionUsageLimitRecoveryOperationResultV1.d.ts +236 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionUsageLimitRecoveryOperationResultV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionUsageLimitRecoveryOperationResultV1.js +318 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/sessionUsageLimitRecoveryOperationResultV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderAssignments.d.ts +270 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderAssignments.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderAssignments.js +27 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderAssignments.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderSettings.d.ts +63 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderSettings.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderSettings.js +52 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderSettings.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/index.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/index.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFolders/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionFork.d.ts +36 -15
- package/node_modules/@happier-dev/protocol/dist/sessionFork.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionFork.js +42 -12
- package/node_modules/@happier-dev/protocol/dist/sessionFork.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionForkPoint.d.ts +25 -0
- package/node_modules/@happier-dev/protocol/dist/sessionForkPoint.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionForkPoint.js +27 -0
- package/node_modules/@happier-dev/protocol/dist/sessionForkPoint.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMedia/index.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMedia/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMedia/index.js +2 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMedia/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMedia/sessionMediaSchemas.d.ts +304 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMedia/sessionMediaSchemas.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMedia/sessionMediaSchemas.js +117 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMedia/sessionMediaSchemas.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/acceptedPendingSettlementV1.d.ts +104 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/acceptedPendingSettlementV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/acceptedPendingSettlementV1.js +72 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/acceptedPendingSettlementV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingDeliveryBlockedReason.d.ts +30 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingDeliveryBlockedReason.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingDeliveryBlockedReason.js +33 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingDeliveryBlockedReason.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingDeliveryStatusV1.d.ts +44 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingDeliveryStatusV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingDeliveryStatusV1.js +115 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingDeliveryStatusV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingLocalId.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingLocalId.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingLocalId.js +12 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingLocalId.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingProviderAction.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingProviderAction.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingProviderAction.js +7 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingProviderAction.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingRequestedActionV1.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingRequestedActionV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingRequestedActionV1.js +11 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/pendingRequestedActionV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageDeliveryResolutionV1.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageDeliveryResolutionV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageDeliveryResolutionV1.js +6 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageDeliveryResolutionV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.d.ts +20 -14
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.js +24 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageRole.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageRole.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageRole.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageRole.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/specialCommands.d.ts +18 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/specialCommands.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/specialCommands.js +51 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/specialCommands.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptObservationV1.d.ts +81 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptObservationV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptObservationV1.js +62 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptObservationV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptRawRecordV1.d.ts +1103 -22
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptRawRecordV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptRawRecordV1.js +621 -17
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/transcriptRawRecordV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/agentRuntimeDescriptorV1.d.ts +14 -3
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/agentRuntimeDescriptorV1.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/agentRuntimeDescriptorV1.js +22 -3
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/agentRuntimeDescriptorV1.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/connectedServiceMaterializationIdentityV1.d.ts +19 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/connectedServiceMaterializationIdentityV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/connectedServiceMaterializationIdentityV1.js +56 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/connectedServiceMaterializationIdentityV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/providerAccountUsageRefsV1.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/providerAccountUsageRefsV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/providerAccountUsageRefsV1.js +60 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/providerAccountUsageRefsV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/providerSessionInfoV1.d.ts +25 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/providerSessionInfoV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/providerSessionInfoV1.js +21 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/providerSessionInfoV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionContinuationRecoveryIdentityV1.d.ts +25 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionContinuationRecoveryIdentityV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionContinuationRecoveryIdentityV1.js +37 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionContinuationRecoveryIdentityV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.d.ts +31 -5
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.js +64 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionUsageLimitRecoveryV1.d.ts +159 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionUsageLimitRecoveryV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionUsageLimitRecoveryV1.js +75 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionUsageLimitRecoveryV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionWorkspaceLocationV1.d.ts +37 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionWorkspaceLocationV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionWorkspaceLocationV1.js +48 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionWorkspaceLocationV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.d.ts +57 -14
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.js +47 -4
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsRemoteSessionLaunchMode.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsRemoteSessionLaunchMode.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsTerminalWindowName.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsTerminalWindowName.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsTerminalWindowName.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/windowsTerminalWindowName.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/constants.d.ts +21 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/constants.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/constants.js +27 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/constants.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/content.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/content.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/content.js +29 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/content.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/folders.d.ts +30 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/folders.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/folders.js +33 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/folders.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/index.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/index.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/mutations.d.ts +325 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/mutations.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/mutations.js +184 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/mutations.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/ordering.d.ts +61 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/ordering.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/ordering.js +29 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/ordering.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/pins.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/pins.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/pins.js +12 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/pins.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/snapshot.d.ts +208 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/snapshot.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/snapshot.js +46 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/snapshot.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/standings.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/standings.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/standings.js +21 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/standings.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/tags.d.ts +23 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/tags.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/tags.js +25 -0
- package/node_modules/@happier-dev/protocol/dist/sessionOrganization/tags.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRunner/contract.d.ts +352 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRunner/contract.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRunner/contract.js +207 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRunner/contract.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRunner/index.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRunner/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRunner/index.js +2 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRunner/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/admission.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/admission.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/admission.js +14 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/admission.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/index.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/projection.d.ts +49 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/projection.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/projection.js +125 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/projection.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/transport.d.ts +113 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/transport.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/transport.js +79 -0
- package/node_modules/@happier-dev/protocol/dist/sessionRuntimeActivity/transport.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSpawnSourceContextV1.d.ts +47 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSpawnSourceContextV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSpawnSourceContextV1.js +44 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSpawnSourceContextV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionStop.d.ts +45 -0
- package/node_modules/@happier-dev/protocol/dist/sessionStop.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionStop.js +27 -0
- package/node_modules/@happier-dev/protocol/dist/sessionStop.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/activity/activitySystemRecordKinds.d.ts +36 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/activity/activitySystemRecordKinds.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/activity/activitySystemRecordKinds.js +40 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/activity/activitySystemRecordKinds.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/activity/activitySystemRecordPayload.d.ts +303 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/activity/activitySystemRecordPayload.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/activity/activitySystemRecordPayload.js +28 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/activity/activitySystemRecordPayload.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/index.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/index.js +12 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/memory/memorySystemRecordKinds.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/memory/memorySystemRecordKinds.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/memory/memorySystemRecordKinds.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/memory/memorySystemRecordKinds.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/memory/memorySystemRecordPayload.d.ts +69 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/memory/memorySystemRecordPayload.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/memory/memorySystemRecordPayload.js +28 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/memory/memorySystemRecordPayload.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecord.d.ts +28 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecord.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecord.js +20 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecord.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordCatalog.d.ts +150 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordCatalog.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordCatalog.js +69 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordCatalog.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordContent.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordContent.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordContent.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordContent.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordKind.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordKind.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordKind.js +9 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordKind.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordNamespace.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordNamespace.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordNamespace.js +9 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordNamespace.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordPayloads.d.ts +114 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordPayloads.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordPayloads.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordPayloads.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordRoutes.d.ts +174 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordRoutes.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordRoutes.js +68 -0
- package/node_modules/@happier-dev/protocol/dist/sessionSystemRecords/sessionSystemRecordRoutes.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.d.ts +80 -3
- package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.js +292 -2
- package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/index.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/index.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateBounds.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateBounds.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateBounds.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateBounds.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateItemIds.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateItemIds.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateItemIds.js +25 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateItemIds.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateMerge.d.ts +18 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateMerge.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateMerge.js +87 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateMerge.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStatePrimary.d.ts +21 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStatePrimary.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStatePrimary.js +91 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStatePrimary.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateRpc.d.ts +1600 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateRpc.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateRpc.js +396 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateRpc.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateV1.d.ts +165 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateV1.js +124 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/skillCatalogItemIdentityV1.d.ts +33 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/skillCatalogItemIdentityV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/skillCatalogItemIdentityV1.js +73 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkState/skillCatalogItemIdentityV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/index.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/index.js +6 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowActivityHeadlineBuild.d.ts +44 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowActivityHeadlineBuild.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowActivityHeadlineBuild.js +123 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowActivityHeadlineBuild.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowActivityHeadlineV1.d.ts +101 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowActivityHeadlineV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowActivityHeadlineV1.js +49 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowActivityHeadlineV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowPhases.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowPhases.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowPhases.js +29 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowPhases.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowRunRecordRevision.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowRunRecordRevision.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowRunRecordRevision.js +101 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowRunRecordRevision.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowRunSnapshotV1.d.ts +159 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowRunSnapshotV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowRunSnapshotV1.js +125 -0
- package/node_modules/@happier-dev/protocol/dist/sessionWorkflowActivity/sessionWorkflowRunSnapshotV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/control/runtimeIssueV1.d.ts +280 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/control/runtimeIssueV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/control/runtimeIssueV1.js +125 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/control/runtimeIssueV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnMutationV1.d.ts +336 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnMutationV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnMutationV1.js +138 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnMutationV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnV1.d.ts +224 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnV1.js +96 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnsProjectionV1.d.ts +188 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnsProjectionV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnsProjectionV1.js +24 -0
- package/node_modules/@happier-dev/protocol/dist/sessions/turns/sessionTurnsProjectionV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/social/friends.d.ts +16 -16
- package/node_modules/@happier-dev/protocol/dist/socketRpc.d.ts +36 -8
- package/node_modules/@happier-dev/protocol/dist/socketRpc.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/socketRpc.js +13 -0
- package/node_modules/@happier-dev/protocol/dist/socketRpc.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts +92 -14
- package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/spawnSession.js +234 -0
- package/node_modules/@happier-dev/protocol/dist/spawnSession.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/spawnSessionNonce.d.ts +66 -0
- package/node_modules/@happier-dev/protocol/dist/spawnSessionNonce.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/spawnSessionNonce.js +131 -0
- package/node_modules/@happier-dev/protocol/dist/spawnSessionNonce.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunCompletionV1.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunCompletionV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunCompletionV1.js +21 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunCompletionV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.d.ts +8 -8
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV2.d.ts +7 -7
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFollowUpV1.d.ts +6 -6
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewPublishRequestV1.d.ts +5 -5
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/systemTasks/spec.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/systemTasks/tailscaleSecureAccessTaskContract.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/systemTasks/tailscaleSecureAccessTaskContract.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/testing/accountScopedCipherFixtures.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/testing/accountScopedCipherFixtures.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/testing/accountScopedCipherFixtures.js +32 -0
- package/node_modules/@happier-dev/protocol/dist/testing/accountScopedCipherFixtures.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/happierToolsShellBridge.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/happierToolsShellBridge.js +95 -39
- package/node_modules/@happier-dev/protocol/dist/tools/happierToolsShellBridge.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/structuredQuestionAnswersV1.d.ts +99 -0
- package/node_modules/@happier-dev/protocol/dist/tools/structuredQuestionAnswersV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/structuredQuestionAnswersV1.js +246 -0
- package/node_modules/@happier-dev/protocol/dist/tools/structuredQuestionAnswersV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/aliases.d.ts +11 -11
- package/node_modules/@happier-dev/protocol/dist/tools/v2/aliases.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/index.d.ts +2 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/index.js +2 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/index.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.d.ts +5 -5
- package/node_modules/@happier-dev/protocol/dist/tools/v2/names.d.ts +45 -39
- package/node_modules/@happier-dev/protocol/dist/tools/v2/names.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/names.js +9 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/names.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/patch.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/patch.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/patch.js +343 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/patch.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.d.ts +284 -100
- package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.js +62 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/subAgentFamilies.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/tools/v2/subAgentFamilies.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/updates.d.ts +848 -24
- package/node_modules/@happier-dev/protocol/dist/updates.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/updates.js +150 -1
- package/node_modules/@happier-dev/protocol/dist/updates.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/voiceActions.d.ts +2 -2
- package/node_modules/@happier-dev/protocol/dist/voiceActions.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/workspace/anchors/v1.d.ts +310 -0
- package/node_modules/@happier-dev/protocol/dist/workspace/anchors/v1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/workspace/anchors/v1.js +108 -0
- package/node_modules/@happier-dev/protocol/dist/workspace/anchors/v1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/workspace/favicon/v1.d.ts +39 -0
- package/node_modules/@happier-dev/protocol/dist/workspace/favicon/v1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/workspace/favicon/v1.js +33 -0
- package/node_modules/@happier-dev/protocol/dist/workspace/favicon/v1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/workspaces/manifestSchema.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/package.json +8 -0
- package/node_modules/@happier-dev/release-runtime/dist/archiveExtraction.d.ts +38 -0
- package/node_modules/@happier-dev/release-runtime/dist/archiveExtraction.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/archiveExtraction.js +1123 -0
- package/node_modules/@happier-dev/release-runtime/dist/archiveExtraction.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/assets.d.ts.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/github.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/dist/github.d.ts.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/github.js +17 -15
- package/node_modules/@happier-dev/release-runtime/dist/github.js.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/index.d.ts +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/index.js +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/index.js.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.d.ts +3 -2
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.d.ts.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.js +5 -0
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.js.map +1 -1
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/README.md +1233 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/header.js +348 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/list.js +153 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/options.d.ts +604 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/parse.d.ts +92 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/types.d.ts +16 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/types.js +70 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/create.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/header.js +311 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/header.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/list.js +113 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/list.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/options.d.ts +604 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/options.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pack.d.ts +105 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pack.js +502 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/parse.d.ts +92 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/parse.js +651 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pax.js +178 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/types.d.ts +16 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/types.js +65 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/types.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/update.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/README.md +71 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/LICENSE +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/README.md +825 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/package.json +82 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/README.md +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/package.json +69 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/LICENSE +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/README.md +825 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/package.json +82 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/README.md +64 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/LICENSE +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/README.md +825 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/package.json +82 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/package.json +80 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/README.md +205 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/package.json +298 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/README.md +72 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/dist/package/xz-decompress.js +273 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/dist/package/xz-decompress.min.js +6 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/package.json +55 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/types.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/LICENSE +21 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/README.md +658 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/index.js +796 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/buffer-crc32/LICENSE +19 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/buffer-crc32/README.md +47 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/buffer-crc32/index.js +111 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/buffer-crc32/package.json +39 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/.npmignore +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/.travis.yml +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/CHANGELOG.md +49 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/LICENSE +21 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/README.md +199 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/index.js +296 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/LICENSE +23 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/README.md +41 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/index.js +55 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/package.json +18 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/test.js +137 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/package.json +36 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/test/test.js +350 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/package.json +40 -0
- package/node_modules/@happier-dev/release-runtime/package.json +8 -3
- package/node_modules/@happier-dev/release-runtime/releaseRings.cjs +204 -0
- package/package.json +5 -3
- package/scripts/auth.mjs +219 -230
- package/scripts/auth_copy_from_runCapture.integration.test.mjs +39 -20
- package/scripts/auth_login_force_cleans_server_scoped_credentials.integration.test.mjs +41 -8
- package/scripts/auth_login_guided_server_no_expo.test.mjs +543 -25
- package/scripts/auth_login_print_includes_configure_links.test.mjs +23 -4
- package/scripts/auth_login_respects_pinned_stack_port.test.mjs +68 -17
- package/scripts/build/build_server_artifact.mjs +1 -0
- package/scripts/build/collect_build_source_metadata.mjs +6 -5
- package/scripts/build/collect_build_source_metadata.test.mjs +21 -0
- package/scripts/build/runtime_build_lock.mjs +3 -1
- package/scripts/build/runtime_build_lock.test.mjs +18 -0
- package/scripts/build.mjs +8 -0
- package/scripts/bundleWorkspaceDeps.mjs +427 -16
- package/scripts/bundleWorkspaceDeps.test.mjs +419 -11
- package/scripts/claude_hooks.test.mjs +50 -0
- package/scripts/daemon.getDaemonEnv.test.mjs +106 -2
- package/scripts/daemon.mjs +1195 -292
- package/scripts/daemon.status_scope.test.mjs +2 -1
- package/scripts/daemon_dist_guard.test.mjs +2800 -97
- package/scripts/daemon_invalid_auth_reseed_stack_name.integration.test.mjs +64 -2
- package/scripts/daemon_server_scope_commands.test.mjs +158 -49
- package/scripts/daemon_server_scoped_state.test.mjs +59 -12
- package/scripts/daemon_start_verification.integration.test.mjs +856 -65
- package/scripts/daemon_stop_expected_pid.test.mjs +336 -12
- package/scripts/dev.mjs +590 -93
- package/scripts/dev_cli_build_ownership.test.mjs +193 -0
- package/scripts/dev_external_server_flags.test.mjs +165 -7
- package/scripts/dev_preserve_daemon_shutdown.integration.test.mjs +238 -0
- package/scripts/dev_reload_composition.integration.test.mjs +392 -0
- package/scripts/dev_target_placement.test.mjs +97 -0
- package/scripts/dev_targets.mjs +159 -0
- package/scripts/dev_targets_cmd.test.mjs +81 -0
- package/scripts/direct_start_cleanup_dry_run.test.mjs +66 -0
- package/scripts/doctor_runtime_snapshot.test.mjs +3 -2
- package/scripts/eas.mjs +3 -2
- package/scripts/eas_platform_parsing.test.mjs +9 -0
- package/scripts/ghops.test.mjs +483 -6
- package/scripts/happier.mjs +1 -429
- package/scripts/happier_defaults_from_settings.test.mjs +56 -83
- package/scripts/happier_main.mjs +433 -0
- package/scripts/happier_runtime_snapshot.test.mjs +186 -14
- package/scripts/happier_server_url_scope.test.mjs +3 -1
- package/scripts/happier_tsx_fallback.test.mjs +5 -4
- package/scripts/happier_wrapper_bootstrap.test.mjs +208 -0
- package/scripts/hstack_wrapper_bundled_workspace_sync.test.mjs +351 -0
- package/scripts/init_shim_invoked_cwd.test.mjs +10 -2
- package/scripts/lifecycle_authority_inventory.test.mjs +40 -0
- package/scripts/lint.mjs +3 -2
- package/scripts/localBundledWorkspacePreflight.test.mjs +330 -0
- package/scripts/migrate.mjs +30 -5
- package/scripts/migrate_effective_db_provider.test.mjs +68 -0
- package/scripts/mobile.mjs +59 -13
- package/scripts/mobile_dev_client.mjs +12 -7
- package/scripts/mobile_dev_client_android_falls_back_to_pipeline_in_test_stub.test.mjs +30 -1
- package/scripts/mobile_dev_client_android_reuse_existing_apk_in_test_stub.test.mjs +62 -1
- package/scripts/mobile_dev_client_android_reuse_falls_back_to_cached_apk_in_test_stub.test.mjs +1 -1
- package/scripts/mobile_dev_client_help_smoke.test.mjs +2 -0
- package/scripts/mobile_memory_profiling_prebuild_patches_podfile_autolinking.test.mjs +94 -0
- package/scripts/mobile_profiling_runtime_uses_simulator_selection.test.mjs +116 -0
- package/scripts/mobile_run_android_passes_port.test.mjs +120 -2
- package/scripts/orchestrated_stack_auth_flow.test.mjs +40 -4
- package/scripts/orchestrated_stack_auth_flow_webapp_url.test.mjs +76 -4
- package/scripts/pack.mjs +53 -8
- package/scripts/pack.test.mjs +113 -2
- package/scripts/pglite_lock.integration.test.mjs +46 -2
- package/scripts/profile_mobile_scenario.mjs +235 -0
- package/scripts/profile_processes.mjs +138 -0
- package/scripts/profiling/ios_xctrace_memory_diagnostics.mjs +91 -0
- package/scripts/profiling/ios_xctrace_memory_diagnostics.test.mjs +72 -0
- package/scripts/profiling/mobile_profile_scenarios.mjs +830 -0
- package/scripts/profiling/mobile_profile_scenarios.test.mjs +379 -0
- package/scripts/profiling/process_profiler.mjs +424 -0
- package/scripts/profiling/process_profiler.test.mjs +214 -0
- package/scripts/provider_projection_owners.test.mjs +29 -0
- package/scripts/provision/linux-ubuntu-provision.sh +38 -0
- package/scripts/provision/linux-ubuntu-provision.test.mjs +21 -1
- package/scripts/release_binary_smoke.integration.test.mjs +24 -12
- package/scripts/remote_cmd.mjs +56 -13
- package/scripts/remote_cmd.test.mjs +84 -1
- package/scripts/repo_local.mjs +82 -130
- package/scripts/repo_local_effective_db_provider.test.mjs +161 -0
- package/scripts/repo_local_wrapper.test.mjs +75 -1
- package/scripts/review_pr.mjs +8 -17
- package/scripts/review_pr.warm_base_deps.test.mjs +8 -1
- package/scripts/review_pr.workspace_cache.test.mjs +16 -0
- package/scripts/root_package_repo_local_scripts.test.mjs +1 -0
- package/scripts/run.mjs +281 -80
- package/scripts/run_effective_db_provider.test.mjs +79 -0
- package/scripts/run_script_with_stack_env.restart_port_reuse.test.mjs +80 -0
- package/scripts/run_source_server_workspace_deps.test.mjs +18 -0
- package/scripts/run_startup_topology_side_effects.test.mjs +196 -0
- package/scripts/runtime/launch/inspectActiveRuntimeSnapshot.mjs +40 -13
- package/scripts/runtime/launch/resolveActiveRuntimeSnapshot.test.mjs +119 -0
- package/scripts/runtime/launch/resolveCliRuntimeLaunchSpec.mjs +51 -0
- package/scripts/runtime/launch/resolveLaunchSpecs.test.mjs +153 -9
- package/scripts/runtime/launch/resolveServerRuntimeLaunchSpec.mjs +61 -4
- package/scripts/runtime/launch/resolveStackRuntimeLaunchContext.mjs +2 -2
- package/scripts/runtime/launch/runServerRuntimeMigration.mjs +116 -0
- package/scripts/runtime/launch/runServerRuntimeMigration.test.mjs +211 -0
- package/scripts/runtime/launch/runtimeProvenanceConsumerInventory.test.mjs +36 -0
- package/scripts/runtime/shared/runtime_mode.mjs +10 -1
- package/scripts/runtime/shared/runtime_mode.test.mjs +22 -0
- package/scripts/self_host/install_companion_cli.mjs +3 -17
- package/scripts/self_host_launchd.real.integration.test.mjs +5 -3
- package/scripts/self_host_runtime.mjs +472 -488
- package/scripts/self_host_runtime.test.mjs +661 -35
- package/scripts/self_host_schtasks.real.integration.test.mjs +2 -1
- package/scripts/self_host_service_e2e_harness.mjs +7 -1
- package/scripts/self_host_systemd.real.integration.test.mjs +31 -5
- package/scripts/self_host_systemd_harness.test.mjs +33 -0
- package/scripts/server_flavor.mjs +39 -17
- package/scripts/server_flavor_provider.test.mjs +126 -0
- package/scripts/service.mjs +76 -85
- package/scripts/service.post_start_diagnostics_scope.test.mjs +97 -0
- package/scripts/service_cleanup_ownership.test.mjs +41 -0
- package/scripts/setup.mjs +26 -1
- package/scripts/setup_dev_child_env.test.mjs +23 -2
- package/scripts/sqlite_snapshot.mjs +86 -0
- package/scripts/sqlite_snapshot.test.mjs +1032 -0
- package/scripts/stack/help_text.mjs +5 -3
- package/scripts/stack/run_script_with_stack_env.mjs +396 -189
- package/scripts/stack/run_script_with_stack_env.test.mjs +368 -0
- package/scripts/stack/stack_daemon_command.mjs +74 -48
- package/scripts/stack/stack_daemon_runtime_provenance.test.mjs +40 -0
- package/scripts/stack/stack_environment.mjs +57 -19
- package/scripts/stack/stack_environment.sanitization.test.mjs +64 -0
- package/scripts/stack/stack_happier_passthrough_command.mjs +21 -1
- package/scripts/stack/stack_info_snapshot.mjs +317 -68
- package/scripts/stack/stack_install_command.mjs +295 -0
- package/scripts/stack/stack_mobile_install_command.mjs +19 -5
- package/scripts/stack/stack_mobile_install_command.test.mjs +44 -0
- package/scripts/stack/stack_stop_command.mjs +12 -4
- package/scripts/stack/stack_stop_command.test.mjs +16 -0
- package/scripts/stack.mjs +244 -94
- package/scripts/stack_archive_cmd.integration.test.mjs +29 -1
- package/scripts/stack_audit_fix_light_env.test.mjs +10 -7
- package/scripts/stack_audit_mysql_provider.test.mjs +194 -0
- package/scripts/stack_background_pinned_stack_json.test.mjs +59 -1
- package/scripts/stack_copy_auth_server_scoped.test.mjs +30 -15
- package/scripts/stack_daemon_cmd.integration.test.mjs +112 -5
- package/scripts/stack_guided_login_inner_invocation.test.mjs +17 -7
- package/scripts/stack_happy_cmd.integration.test.mjs +70 -15
- package/scripts/stack_info_snapshot_running_status.test.mjs +789 -25
- package/scripts/stack_install_command.test.mjs +125 -0
- package/scripts/stack_new_name_normalize_cmd.test.mjs +31 -0
- package/scripts/stack_new_port_policy.test.mjs +128 -0
- package/scripts/stack_owner_death_watchdog.integration.test.mjs +227 -4
- package/scripts/stack_package_scripts.test.mjs +3 -1
- package/scripts/stack_runtime_start.integration.test.mjs +435 -12
- package/scripts/stack_runtime_start_listener_proof.integration.test.mjs +119 -0
- package/scripts/stack_server_flavors_defaults.test.mjs +126 -0
- package/scripts/stack_stop_sweeps_legacy_infra_without_kind.integration.test.mjs +2 -0
- package/scripts/stackless_startup_topology.test.mjs +111 -0
- package/scripts/start_proxy_runtime_state.test.mjs +686 -0
- package/scripts/start_runtime_mode_json.test.mjs +6 -3
- package/scripts/stopStackWithEnv_daemonControlToken.integration.test.mjs +123 -6
- package/scripts/stopStackWithEnv_daemonPidSet.integration.test.mjs +1008 -0
- package/scripts/stopStackWithEnv_home_relative_env_file.integration.test.mjs +94 -0
- package/scripts/stopStackWithEnv_kills_ephemeral_runtime_pids_without_env_markers.integration.test.mjs +346 -8
- package/scripts/stopStackWithEnv_sweeps_repo_local_stack_by_stackName_when_runtime_missing.integration.test.mjs +280 -15
- package/scripts/tauri_dev.mjs +46 -5
- package/scripts/tauri_dev.test.mjs +111 -30
- package/scripts/test_ci.mjs +14 -1
- package/scripts/test_cmd.mjs +4 -3
- package/scripts/test_integration.mjs +13 -2
- package/scripts/testkit/core/env_scope.mjs +5 -1
- package/scripts/testkit/core/expo_command_shims.mjs +29 -0
- package/scripts/testkit/core/minimal_monorepo_layout.mjs +2 -0
- package/scripts/testkit/core/owner_death_watchdog_fixture.mjs +36 -0
- package/scripts/testkit/core/owner_death_watchdog_fixture.test.mjs +43 -0
- package/scripts/testkit/core/runtime_snapshot_layout.mjs +11 -0
- package/scripts/testkit/core/spawn_daemon_like_process.mjs +193 -0
- package/scripts/testkit/core/spawn_daemon_like_process.test.mjs +85 -0
- package/scripts/testkit/core/spawn_test_process.mjs +30 -0
- package/scripts/testkit/core/spawn_test_process.test.mjs +38 -1
- package/scripts/testkit/core/stub_happier_cli_files.mjs +13 -0
- package/scripts/testkit/core/workspace_package_build_owner.mjs +29 -0
- package/scripts/testkit/runtime_snapshot_start_testkit.mjs +128 -31
- package/scripts/testkit/runtime_snapshot_testkit.mjs +3 -0
- package/scripts/testkit/stack_happier_cli_command_testkit.mjs +4 -0
- package/scripts/tools.mjs +20 -1
- package/scripts/tools_profile_processes_help.test.mjs +131 -0
- package/scripts/tui.mjs +245 -280
- package/scripts/tui_restart_delegation.test.mjs +257 -0
- package/scripts/tui_stopStackForTuiExit_no_autosweep.integration.test.mjs +57 -1
- package/scripts/typecheck.mjs +3 -2
- package/scripts/ui_gateway.mjs +2 -2
- package/scripts/ui_gateway.test.mjs +119 -0
- package/scripts/utils/auth/clearStackForceLoginCredentialPaths.mjs +11 -1
- package/scripts/utils/auth/credentials_paths.mjs +110 -36
- package/scripts/utils/auth/credentials_paths.test.mjs +283 -26
- package/scripts/utils/auth/daemon_gate.test.mjs +3 -2
- package/scripts/utils/auth/ensure_active_access_key_valid.mjs +31 -8
- package/scripts/utils/auth/ensure_active_access_key_valid.test.mjs +115 -1
- package/scripts/utils/auth/orchestrated_stack_auth_flow.mjs +34 -3
- package/scripts/utils/auth/stable_scope_id.mjs +11 -0
- package/scripts/utils/auth/stable_scope_id.test.mjs +16 -0
- package/scripts/utils/auth/stack_guided_login.mjs +32 -15
- package/scripts/utils/cli/args.mjs +33 -7
- package/scripts/utils/cli/args.test.mjs +51 -0
- package/scripts/utils/cli/cli.mjs +3 -4
- package/scripts/utils/cli/cliDistIntegrity.mjs +130 -53
- package/scripts/utils/cli/cliDistIntegrity.test.mjs +157 -0
- package/scripts/utils/cli/cli_registry.mjs +107 -11
- package/scripts/utils/cli/prereqs.test.mjs +2 -2
- package/scripts/utils/dev/daemon.mjs +395 -151
- package/scripts/utils/dev/daemonLifecycleReconciler.mjs +98 -0
- package/scripts/utils/dev/daemonLifecycleReconciler.test.mjs +187 -0
- package/scripts/utils/dev/daemon_watch_resilience.test.mjs +817 -166
- package/scripts/utils/dev/devProxy.mjs +310 -0
- package/scripts/utils/dev/devProxy.test.mjs +406 -0
- package/scripts/utils/dev/devProxyLifecycle.mjs +27 -0
- package/scripts/utils/dev/devProxyLifecycle.test.mjs +32 -0
- package/scripts/utils/dev/devProxyRuntime.mjs +96 -0
- package/scripts/utils/dev/devReloadComposition.mjs +50 -0
- package/scripts/utils/dev/devReloadCoordinator.mjs +557 -0
- package/scripts/utils/dev/devReloadCoordinator.test.mjs +1685 -0
- package/scripts/utils/dev/devReloadTargets.mjs +11 -0
- package/scripts/utils/dev/devRuntimeInputPolicy.mjs +31 -0
- package/scripts/utils/dev/devStartupTopology.mjs +131 -0
- package/scripts/utils/dev/devStartupTopology.test.mjs +181 -0
- package/scripts/utils/dev/expo_dev.buildEnv.test.mjs +35 -0
- package/scripts/utils/dev/expo_dev.ensure_workspace_built.test.mjs +169 -3
- package/scripts/utils/dev/expo_dev.mjs +758 -259
- package/scripts/utils/dev/expo_dev.tailscale.test.mjs +415 -0
- package/scripts/utils/dev/expo_dev.test.mjs +72 -1
- package/scripts/utils/dev/expo_dev_crash_supervision.test.mjs +341 -0
- package/scripts/utils/dev/expo_dev_restart_port_reservation.test.mjs +521 -64
- package/scripts/utils/dev/expo_dev_runtime_metadata.test.mjs +142 -4
- package/scripts/utils/dev/expo_dev_supervision.mjs +116 -0
- package/scripts/utils/dev/expo_dev_tailscale.mjs +153 -0
- package/scripts/utils/dev/expo_dev_verbose_logs.test.mjs +24 -3
- package/scripts/utils/dev/reloadPollInterval.mjs +18 -0
- package/scripts/utils/dev/resolveDevServerConnection.mjs +5 -2
- package/scripts/utils/dev/resolveDevServerConnection.test.mjs +20 -3
- package/scripts/utils/dev/server.mjs +2251 -81
- package/scripts/utils/dev/server_watch.exclusive.test.mjs +1986 -0
- package/scripts/utils/dev/server_watch.test.mjs +1254 -0
- package/scripts/utils/dev/tauri_dev.mjs +2 -1
- package/scripts/utils/dev/tauri_dev.test.mjs +23 -18
- package/scripts/utils/dev/watchSignature.mjs +95 -0
- package/scripts/utils/dev_targets/config.mjs +266 -0
- package/scripts/utils/dev_targets/config.test.mjs +224 -0
- package/scripts/utils/dev_targets/doctor.mjs +61 -0
- package/scripts/utils/dev_targets/doctor.test.mjs +67 -0
- package/scripts/utils/dev_targets/mutagen_project.mjs +128 -0
- package/scripts/utils/dev_targets/mutagen_project.test.mjs +122 -0
- package/scripts/utils/dev_targets/remote_commands.mjs +481 -0
- package/scripts/utils/dev_targets/remote_commands.test.mjs +392 -0
- package/scripts/utils/dev_targets/remote_dependency_bootstrap.mjs +103 -0
- package/scripts/utils/dev_targets/remote_dependency_bootstrap.test.mjs +38 -0
- package/scripts/utils/dev_targets/service_placement.mjs +45 -0
- package/scripts/utils/dev_targets/service_placement.test.mjs +61 -0
- package/scripts/utils/dev_targets/supervisor.mjs +864 -0
- package/scripts/utils/dev_targets/supervisor.test.mjs +1387 -0
- package/scripts/utils/env/env_file.mjs +88 -16
- package/scripts/utils/env/env_file.test.mjs +46 -1
- package/scripts/utils/env/env_local.mjs +6 -6
- package/scripts/utils/env/scrub_env.mjs +2 -0
- package/scripts/utils/env/scrub_env.test.mjs +4 -0
- package/scripts/utils/execution_host_adapter.mjs +87 -0
- package/scripts/utils/execution_host_adapter.test.mjs +69 -0
- package/scripts/utils/expo/command.mjs +6 -0
- package/scripts/utils/expo/command_export_max_workers.test.mjs +2 -0
- package/scripts/utils/expo/command_heap_limit_env.test.mjs +87 -25
- package/scripts/utils/expo/command_workspace_deps_built.test.mjs +75 -29
- package/scripts/utils/expo/expo.mjs +340 -14
- package/scripts/utils/expo/expo_state_running.test.mjs +104 -2
- package/scripts/utils/expo/expo_wait_for_metro.test.mjs +187 -0
- package/scripts/utils/expo/metro_ports.mjs +160 -1
- package/scripts/utils/expo/metro_ports.test.mjs +198 -1
- package/scripts/utils/fs/atomic_dir_swap.mjs +44 -31
- package/scripts/utils/fs/atomic_dir_swap.test.mjs +69 -0
- package/scripts/utils/fs/atomic_rename.mjs +33 -0
- package/scripts/utils/fs/json.mjs +5 -4
- package/scripts/utils/fs/json.test.mjs +33 -0
- package/scripts/utils/fs/tail.mjs +4 -0
- package/scripts/utils/fs/tail.test.mjs +32 -0
- package/scripts/utils/mobile/android_generated_build_state.mjs +87 -0
- package/scripts/utils/mobile/config.mjs +14 -0
- package/scripts/utils/mobile/dev_client_install_invocation.android.test.mjs +21 -0
- package/scripts/utils/mobile/dev_client_install_invocation.mjs +39 -2
- package/scripts/utils/mobile/dev_client_install_invocation.test.mjs +34 -0
- package/scripts/utils/mobile/identifiers.mjs +29 -8
- package/scripts/utils/mobile/identifiers.test.mjs +17 -1
- package/scripts/utils/mobile/ios_podfile_autolinking.mjs +74 -0
- package/scripts/utils/mobile/ios_podfile_autolinking.test.mjs +79 -0
- package/scripts/utils/mobile/ios_podfile_properties.mjs +50 -0
- package/scripts/utils/mobile/ios_podfile_properties.test.mjs +88 -0
- package/scripts/utils/mobile/ios_profiling_runtime.mjs +171 -0
- package/scripts/utils/mobile/ios_profiling_runtime.test.mjs +145 -0
- package/scripts/utils/mobile/ios_xcodeproj_patch.mjs +6 -1
- package/scripts/utils/mobile/ios_xcodeproj_patch.test.mjs +41 -0
- package/scripts/utils/mobile/profiling_runtime_mode.mjs +35 -0
- package/scripts/utils/mobile/profiling_runtime_mode.test.mjs +28 -0
- package/scripts/utils/net/ports.mjs +419 -40
- package/scripts/utils/net/ports.test.mjs +639 -1
- package/scripts/utils/net/tcp_forward.mjs +117 -9
- package/scripts/utils/net/tcp_forward.test.mjs +255 -0
- package/scripts/utils/pglite_lock.mjs +84 -3
- package/scripts/utils/proc/cliDistBuildLock.mjs +62 -81
- package/scripts/utils/proc/cliDistBuildLock.test.mjs +400 -0
- package/scripts/utils/proc/cli_runtime_inputs.mjs +109 -0
- package/scripts/utils/proc/command_dependency_admission.test.mjs +54 -0
- package/scripts/utils/proc/dependency_refresh.mjs +263 -0
- package/scripts/utils/proc/dependency_refresh.test.mjs +125 -0
- package/scripts/utils/proc/ensureWorkspacePackagesBuilt.test.mjs +569 -18
- package/scripts/utils/proc/exit_cleanup.mjs +2 -2
- package/scripts/utils/proc/jsonOwnerFileLock.mjs +194 -0
- package/scripts/utils/proc/jsonOwnerFileLock.test.mjs +428 -0
- package/scripts/utils/proc/ownership.mjs +411 -52
- package/scripts/utils/proc/ownership_killProcessGroupOwnedByStack.test.mjs +348 -1
- package/scripts/utils/proc/ownership_listPidsWithEnvNeedles.test.mjs +196 -1
- package/scripts/utils/proc/pids.mjs +11 -6
- package/scripts/utils/proc/pids.test.mjs +29 -0
- package/scripts/utils/proc/pm.mjs +406 -368
- package/scripts/utils/proc/pm_stack_cache_env.test.mjs +1295 -121
- package/scripts/utils/proc/proc.mjs +342 -89
- package/scripts/utils/proc/proc.test.mjs +362 -3
- package/scripts/utils/proc/pruneLogsByCount.mjs +49 -0
- package/scripts/utils/proc/pruneLogsByCount.test.mjs +132 -0
- package/scripts/utils/proc/terminate.mjs +203 -20
- package/scripts/utils/proc/terminate.test.mjs +207 -1
- package/scripts/utils/proc/watch.mjs +139 -19
- package/scripts/utils/proc/watch.test.mjs +230 -0
- package/scripts/utils/proc/workspace_dependencies.mjs +21 -0
- package/scripts/utils/proc/workspace_package_manifests.mjs +108 -0
- package/scripts/utils/remote/install_remote_first_party_component.mjs +112 -43
- package/scripts/utils/remote/install_remote_first_party_component.test.mjs +46 -35
- package/scripts/utils/review/augment_runner_integration.test.mjs +10 -3
- package/scripts/utils/server/apply_runtime_server_sqlite_env.mjs +36 -0
- package/scripts/utils/server/apply_runtime_server_sqlite_env.test.mjs +46 -0
- package/scripts/utils/server/apply_server_preset_env_defaults.mjs +32 -0
- package/scripts/utils/server/apply_server_preset_env_defaults.test.mjs +95 -0
- package/scripts/utils/server/effective_db_provider.mjs +138 -0
- package/scripts/utils/server/effective_db_provider.test.mjs +249 -0
- package/scripts/utils/server/flavor_scripts.mjs +12 -78
- package/scripts/utils/server/flavor_scripts.test.mjs +39 -47
- package/scripts/utils/server/infra/happy_server_infra.mjs +92 -39
- package/scripts/utils/server/infra/happy_server_infra_provider.test.mjs +290 -0
- package/scripts/utils/server/listener_ownership.mjs +488 -0
- package/scripts/utils/server/listener_ownership.test.mjs +473 -0
- package/scripts/utils/server/logging_env.mjs +20 -0
- package/scripts/utils/server/logging_env.test.mjs +29 -0
- package/scripts/utils/server/mobile_api_url.mjs +17 -3
- package/scripts/utils/server/mobile_api_url.test.mjs +21 -1
- package/scripts/utils/server/prisma_client_import.mjs +18 -0
- package/scripts/utils/server/prisma_import.mjs +0 -15
- package/scripts/utils/server/prisma_import.test.mjs +0 -37
- package/scripts/utils/server/resolve_stack_server_port.mjs +131 -43
- package/scripts/utils/server/resolve_stack_server_port.test.mjs +696 -5
- package/scripts/utils/server/server.mjs +146 -39
- package/scripts/utils/server/server.test.mjs +252 -4
- package/scripts/utils/server/server_migrations.mjs +17 -0
- package/scripts/utils/server/shutdown_grace.mjs +14 -0
- package/scripts/utils/server/shutdown_grace.test.mjs +29 -0
- package/scripts/utils/server/source_server_workspace_deps.mjs +27 -0
- package/scripts/utils/server/source_server_workspace_deps.test.mjs +71 -0
- package/scripts/utils/server/validate.mjs +4 -43
- package/scripts/utils/server/validate.test.mjs +4 -4
- package/scripts/utils/service/archive_service_lifecycle.mjs +59 -0
- package/scripts/utils/service/archive_service_lifecycle.test.mjs +88 -0
- package/scripts/utils/service/daemon_autostart.mjs +1 -1
- package/scripts/utils/service/daemon_autostart.test.mjs +34 -0
- package/scripts/utils/service/service_manager.mjs +26 -1
- package/scripts/utils/service/service_manager.plan.test.mjs +187 -1
- package/scripts/utils/sqlite/sqlite_snapshot.mjs +820 -0
- package/scripts/utils/stack/daemonControlClient.mjs +426 -0
- package/scripts/utils/stack/daemonControlClient.test.mjs +567 -0
- package/scripts/utils/stack/daemon_lifecycle_lock.mjs +49 -0
- package/scripts/utils/stack/daemon_lifecycle_lock.test.mjs +220 -0
- package/scripts/utils/stack/dirs.mjs +6 -2
- package/scripts/utils/stack/owner_death_watchdog.mjs +6 -1
- package/scripts/utils/stack/owner_death_watchdog_runner.mjs +130 -2
- package/scripts/utils/stack/repo_stack_identity.mjs +113 -0
- package/scripts/utils/stack/repo_stack_identity.test.mjs +23 -0
- package/scripts/utils/stack/restart_args.mjs +22 -0
- package/scripts/utils/stack/runtime_daemon_state.mjs +474 -23
- package/scripts/utils/stack/runtime_daemon_state.test.mjs +838 -0
- package/scripts/utils/stack/runtime_owner_incarnation.mjs +9 -0
- package/scripts/utils/stack/runtime_state.mjs +896 -37
- package/scripts/utils/stack/runtime_state.test.mjs +1152 -2
- package/scripts/utils/stack/server_profile_reconciliation.mjs +92 -0
- package/scripts/utils/stack/startup.mjs +75 -81
- package/scripts/utils/stack/startup_runtime_probe.test.mjs +115 -0
- package/scripts/utils/stack/startup_server_light_dirs.test.mjs +10 -3
- package/scripts/utils/stack/startup_server_light_generate.test.mjs +115 -4
- package/scripts/utils/stack/startup_server_light_legacy.test.mjs +17 -15
- package/scripts/utils/stack/startup_server_light_testkit.mjs +8 -1
- package/scripts/utils/stack/stop.mjs +641 -144
- package/scripts/utils/stack/stop_lock_timeout.test.mjs +13 -0
- package/scripts/utils/tauri/desktop_install.mjs +81 -0
- package/scripts/utils/tauri/desktop_install.test.mjs +43 -0
- package/scripts/utils/tauri/dev_runtime.mjs +10 -1
- package/scripts/utils/tauri/dev_runtime.test.mjs +2 -1
- package/scripts/utils/tauri/stack_overrides.mjs +28 -4
- package/scripts/utils/tauri/stack_overrides.test.mjs +26 -0
- package/scripts/utils/test/test_env.mjs +44 -0
- package/scripts/utils/test/test_env.test.mjs +99 -0
- package/scripts/utils/tui/actions.mjs +4 -13
- package/scripts/utils/tui/actions.test.mjs +5 -16
- package/scripts/utils/tui/args.mjs +8 -2
- package/scripts/utils/tui/args.test.mjs +14 -1
- package/scripts/utils/tui/cleanup.mjs +16 -1
- package/scripts/utils/tui/daemon_pane_reconcile.mjs +27 -1
- package/scripts/utils/tui/daemon_pane_reconcile.test.mjs +18 -0
- package/scripts/utils/tui/dev_target_panes.mjs +22 -0
- package/scripts/utils/tui/dev_target_panes.test.mjs +26 -0
- package/scripts/utils/tui/rescue_priority.mjs +37 -0
- package/scripts/utils/tui/rescue_priority.test.mjs +24 -0
- package/scripts/utils/tui/restart_operation.mjs +151 -0
- package/scripts/utils/tui/stack_scope_env.mjs +8 -3
- package/scripts/utils/tui/stack_scope_env.test.mjs +7 -2
- package/scripts/utils/tui/stdin_handoff.mjs +13 -40
- package/scripts/utils/tui/stdin_handoff.test.mjs +36 -1
- package/scripts/utils/tui/tauri_mode.mjs +178 -6
- package/scripts/utils/tui/tauri_mode.test.mjs +222 -4
- package/scripts/utils/workspaces/workspaceBundleLock.mjs +39 -0
- package/scripts/utils/worktrees/yarn_install_guard.mjs +7 -49
- package/scripts/utils/worktrees/yarn_install_guard.test.mjs +139 -4
- package/scripts/worktrees.mjs +16 -16
- package/node_modules/@happier-dev/agents/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/cli-common/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.js +0 -51
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.js +0 -76
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.js +0 -151
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.js +0 -184
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.js +0 -96
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.test.js +0 -64
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.d.ts +0 -9
- package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.js +0 -72
- package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.js +0 -178
- package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.js +0 -176
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.js +0 -138
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.js +0 -44
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.js +0 -20
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.js +0 -25
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.js +0 -177
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.js +0 -173
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.js +0 -98
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.js +0 -549
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.js +0 -37
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.js +0 -243
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.js +0 -204
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.js +0 -58
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.js +0 -29
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.js +0 -94
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.js.map +0 -1
- package/node_modules/@happier-dev/protocol/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/_cjs/releaseRings.js +0 -134
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts +0 -14
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts.map +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js +0 -48
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js.map +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.cjs +0 -134
- package/scripts/daemon_cleanup_lsof_unavailable.test.mjs +0 -112
- package/scripts/ghops.mjs +0 -83
- package/scripts/stack_guided_login_does_not_preopen_browser.test.mjs +0 -17
- package/scripts/utils/auth/guided_stack_web_login.mjs +0 -56
- package/scripts/utils/auth/login_ux.mjs +0 -113
- package/scripts/utils/cli/smoke_help.mjs +0 -44
- package/scripts/utils/dev_auth_key.mjs +0 -7
- package/scripts/utils/server/apply_runtime_server_light_sqlite_env.mjs +0 -25
- package/scripts/utils/server/apply_server_light_env_defaults.mjs +0 -15
- package/scripts/utils/server/apply_server_light_env_defaults.test.mjs +0 -25
- package/scripts/utils/stack_context.mjs +0 -1
- package/scripts/utils/stack_runtime_state.mjs +0 -1
- package/scripts/utils/tui/daemon_autostart.mjs +0 -36
- package/scripts/utils/tui/daemon_autostart.test.mjs +0 -173
|
@@ -1,15 +1,810 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import {
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { join, resolve } from 'node:path';
|
|
3
|
+
|
|
4
|
+
import { ensureDepsInstalled, pmExecBin, pmSpawnScript } from '../proc/pm.mjs';
|
|
5
|
+
import { killProcessTree, markSpawnedProcessPlannedExit } from '../proc/proc.mjs';
|
|
6
|
+
import {
|
|
7
|
+
isDevRuntimeReloadIgnoredPath,
|
|
8
|
+
readDevReloadWatchChangeSignature,
|
|
9
|
+
readDevReloadWatchChangeSignatureAsync,
|
|
10
|
+
} from './devReloadCoordinator.mjs';
|
|
11
|
+
import { ensureHappyServerManagedInfra } from '../server/infra/happy_server_infra.mjs';
|
|
12
|
+
import { applyServerMigrations } from '../server/server_migrations.mjs';
|
|
13
|
+
import { applyServerPresetEnvDefaults } from '../server/apply_server_preset_env_defaults.mjs';
|
|
14
|
+
import { applyEffectiveDbProviderEnv, resolveEffectiveDbProvider } from '../server/effective_db_provider.mjs';
|
|
15
|
+
import { applyServerComponentFlavorEnv, resolveServerDevScript } from '../server/flavor_scripts.mjs';
|
|
16
|
+
import { applyStackServerLoggingDefaults } from '../server/logging_env.mjs';
|
|
17
|
+
import { DEV_SERVER_SHARED_RUNTIME_PACKAGE_IDS } from './devReloadTargets.mjs';
|
|
18
|
+
import { resolveServerShutdownGraceMs } from '../server/shutdown_grace.mjs';
|
|
19
|
+
import { ensureSourceServerWorkspacePackagesBuilt } from '../server/source_server_workspace_deps.mjs';
|
|
20
|
+
import {
|
|
21
|
+
createListenerOwnershipObservationScope,
|
|
22
|
+
resolveSpawnedProcessGroupListenPid,
|
|
23
|
+
resolveStackOwnedListenPid,
|
|
24
|
+
} from '../server/listener_ownership.mjs';
|
|
25
|
+
import {
|
|
26
|
+
createServerReadinessDeadline,
|
|
27
|
+
resolveServerMigrationTimeoutMs,
|
|
28
|
+
resolveServerReadyTimeoutMs,
|
|
29
|
+
waitForServerReady,
|
|
30
|
+
} from '../server/server.mjs';
|
|
31
|
+
import { listListenPids, listListenPidsWithStatus, pickNextFreeTcpPort, probeTcpPortBinding, waitForTcpPortFree } from '../net/ports.mjs';
|
|
32
|
+
import {
|
|
33
|
+
isPidAlive,
|
|
34
|
+
readStackRuntimeStateFile,
|
|
35
|
+
recordStackRuntimeServerActivation,
|
|
36
|
+
recordStackRuntimeServerLifecycle,
|
|
37
|
+
recordStackRuntimeUpdate,
|
|
38
|
+
} from '../stack/runtime_state.mjs';
|
|
39
|
+
import { getProcessGroupId, isPidOwnedByStack, killProcessGroupOwnedByStack } from '../proc/ownership.mjs';
|
|
12
40
|
import { pickMetroPort, resolveStablePortStart } from '../expo/metro_ports.mjs';
|
|
41
|
+
import { waitForPgliteDirLockRelease } from '../pglite_lock.mjs';
|
|
42
|
+
|
|
43
|
+
const DEFAULT_LISTENER_OWNERSHIP_TIMEOUT_MS = 3000;
|
|
44
|
+
const POST_STOP_RELEASE_RETRY_MS = 250;
|
|
45
|
+
|
|
46
|
+
function readPackageScripts(dir) {
|
|
47
|
+
try {
|
|
48
|
+
const pkg = JSON.parse(readFileSync(join(dir, 'package.json'), 'utf-8'));
|
|
49
|
+
return pkg?.scripts && typeof pkg.scripts === 'object' ? pkg.scripts : {};
|
|
50
|
+
} catch {
|
|
51
|
+
return {};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function getDbProviderFromServerEnv(serverEnv = {}, serverComponentName = 'happier-server-light') {
|
|
56
|
+
const effective = resolveEffectiveDbProvider({ serverComponentName, env: serverEnv });
|
|
57
|
+
return effective.ok ? effective.provider : '';
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function getPgliteDbDirFromServerEnv(serverEnv = {}) {
|
|
61
|
+
return String(serverEnv.HAPPIER_SERVER_LIGHT_DB_DIR ?? serverEnv.HAPPY_SERVER_LIGHT_DB_DIR ?? '').trim();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function createDevServerReloadPlan({
|
|
65
|
+
changedDescriptors,
|
|
66
|
+
descriptorEvidenceConclusive,
|
|
67
|
+
generation,
|
|
68
|
+
} = {}) {
|
|
69
|
+
const hasGenerationEvidence = Number.isInteger(generation) && generation >= 0;
|
|
70
|
+
// The reload coordinator can carry daemon/build descriptors alongside a shared server change.
|
|
71
|
+
// Prisma inputs have one canonical descriptor; every other known descriptor leaves them unchanged.
|
|
72
|
+
const isKnownReloadDescriptor = (descriptor) => (
|
|
73
|
+
descriptor === 'server:app'
|
|
74
|
+
|| descriptor === 'server:prisma'
|
|
75
|
+
|| ['shared:', 'daemon:', 'build:'].some((prefix) => (
|
|
76
|
+
descriptor.startsWith(prefix) && descriptor.length > prefix.length
|
|
77
|
+
))
|
|
78
|
+
);
|
|
79
|
+
const hasDescriptorEvidence = Array.isArray(changedDescriptors)
|
|
80
|
+
&& changedDescriptors.length > 0
|
|
81
|
+
&& descriptorEvidenceConclusive !== false
|
|
82
|
+
&& changedDescriptors.every((descriptor) => (
|
|
83
|
+
typeof descriptor === 'string' && isKnownReloadDescriptor(descriptor)
|
|
84
|
+
));
|
|
85
|
+
const prismaChanged = hasDescriptorEvidence && changedDescriptors.includes('server:prisma');
|
|
86
|
+
const migrationInputsUnchanged = hasGenerationEvidence
|
|
87
|
+
&& hasDescriptorEvidence
|
|
88
|
+
&& !prismaChanged;
|
|
89
|
+
const mode = 'exclusiveDb';
|
|
90
|
+
const reason = prismaChanged
|
|
91
|
+
? 'prisma_changed'
|
|
92
|
+
: migrationInputsUnchanged
|
|
93
|
+
? 'app_only_descriptor_unchanged'
|
|
94
|
+
: 'migration_evidence_inconclusive';
|
|
95
|
+
return {
|
|
96
|
+
generation: Number.isInteger(generation) && generation >= 0 ? generation : null,
|
|
97
|
+
mode,
|
|
98
|
+
migrationMode: migrationInputsUnchanged ? 'skip' : 'apply',
|
|
99
|
+
reason,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const DEFAULT_SERVER_RESTART_FAILURE_POLICY = {
|
|
104
|
+
maxFailures: 3,
|
|
105
|
+
windowMs: 60_000,
|
|
106
|
+
backoffMs: 30_000,
|
|
107
|
+
recentLineLimit: 8,
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
function normalizeServerRestartFailurePolicy(policy = {}) {
|
|
111
|
+
const readPositive = (name) => {
|
|
112
|
+
const value = Number(policy?.[name] ?? DEFAULT_SERVER_RESTART_FAILURE_POLICY[name]);
|
|
113
|
+
return Number.isFinite(value) && value > 0 ? Math.trunc(value) : DEFAULT_SERVER_RESTART_FAILURE_POLICY[name];
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
maxFailures: readPositive('maxFailures'),
|
|
118
|
+
windowMs: readPositive('windowMs'),
|
|
119
|
+
backoffMs: readPositive('backoffMs'),
|
|
120
|
+
recentLineLimit: readPositive('recentLineLimit'),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function createRecentLineBuffer(limit) {
|
|
125
|
+
const max = Math.max(0, Number(limit) || 0);
|
|
126
|
+
const lines = [];
|
|
127
|
+
return {
|
|
128
|
+
onLine({ stream, line } = {}) {
|
|
129
|
+
if (max <= 0) return;
|
|
130
|
+
const normalizedLine = String(line ?? '').trimEnd();
|
|
131
|
+
if (!normalizedLine) return;
|
|
132
|
+
lines.push({ stream: stream === 'stdout' ? 'stdout' : 'stderr', line: normalizedLine });
|
|
133
|
+
while (lines.length > max) lines.shift();
|
|
134
|
+
},
|
|
135
|
+
snapshot() {
|
|
136
|
+
return lines.slice();
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function formatRecentServerOutput(lines) {
|
|
142
|
+
if (!Array.isArray(lines) || lines.length === 0) return '';
|
|
143
|
+
return [
|
|
144
|
+
'[local] recent server output:',
|
|
145
|
+
...lines.map((entry) => `[local] [${entry.stream}] ${entry.line}`),
|
|
146
|
+
].join('\n');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function createServerRestartFailureTracker({ policy, nowImpl }) {
|
|
150
|
+
const normalizedPolicy = normalizeServerRestartFailurePolicy(policy);
|
|
151
|
+
let failures = [];
|
|
152
|
+
let backoffUntilMs = 0;
|
|
153
|
+
|
|
154
|
+
const now = () => {
|
|
155
|
+
const value = Number(nowImpl?.());
|
|
156
|
+
return Number.isFinite(value) ? value : Date.now();
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
policy: normalizedPolicy,
|
|
161
|
+
getBackoffRemainingMs() {
|
|
162
|
+
return Math.max(0, backoffUntilMs - now());
|
|
163
|
+
},
|
|
164
|
+
reset() {
|
|
165
|
+
failures = [];
|
|
166
|
+
backoffUntilMs = 0;
|
|
167
|
+
},
|
|
168
|
+
record(failure) {
|
|
169
|
+
if (!failure?.countsTowardBackoff) {
|
|
170
|
+
return { count: failures.length, thresholdReached: false, backoffMs: 0 };
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const currentTime = now();
|
|
174
|
+
const windowStart = currentTime - normalizedPolicy.windowMs;
|
|
175
|
+
failures = failures.filter((timestamp) => timestamp >= windowStart);
|
|
176
|
+
failures.push(currentTime);
|
|
177
|
+
|
|
178
|
+
if (failures.length < normalizedPolicy.maxFailures) {
|
|
179
|
+
return { count: failures.length, thresholdReached: false, backoffMs: 0 };
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
backoffUntilMs = currentTime + normalizedPolicy.backoffMs;
|
|
183
|
+
failures = [];
|
|
184
|
+
return {
|
|
185
|
+
count: normalizedPolicy.maxFailures,
|
|
186
|
+
thresholdReached: true,
|
|
187
|
+
backoffMs: normalizedPolicy.backoffMs,
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function classifyServerRestartFailure({
|
|
194
|
+
error,
|
|
195
|
+
stage,
|
|
196
|
+
child,
|
|
197
|
+
oldServerStopped,
|
|
198
|
+
recentLines,
|
|
199
|
+
transportCommitted = false,
|
|
200
|
+
serviceRestored = false,
|
|
201
|
+
}) {
|
|
202
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
203
|
+
const exitCode = child?.exitCode;
|
|
204
|
+
const signalCode = child?.signalCode;
|
|
205
|
+
let kind = stage || 'restart';
|
|
206
|
+
if (exitCode === 1) {
|
|
207
|
+
kind = 'early_exit';
|
|
208
|
+
} else if (stage === 'spawn') {
|
|
209
|
+
kind = 'spawn';
|
|
210
|
+
} else if (stage === 'readiness' || stage === 'ownership') {
|
|
211
|
+
kind = 'readiness';
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return {
|
|
215
|
+
kind,
|
|
216
|
+
message,
|
|
217
|
+
oldServerStopped: Boolean(oldServerStopped),
|
|
218
|
+
exitCode,
|
|
219
|
+
signalCode,
|
|
220
|
+
recentLines: Array.isArray(recentLines) ? recentLines : [],
|
|
221
|
+
countsTowardBackoff: kind === 'spawn' || kind === 'readiness' || kind === 'early_exit',
|
|
222
|
+
transportCommitted: Boolean(transportCommitted),
|
|
223
|
+
serviceRestored: Boolean(serviceRestored),
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function annotateServerRestartError(error, failure) {
|
|
228
|
+
const annotated = error instanceof Error ? error : new Error(String(error));
|
|
229
|
+
Object.defineProperty(annotated, 'serverRestartFailure', {
|
|
230
|
+
value: failure,
|
|
231
|
+
enumerable: false,
|
|
232
|
+
configurable: true,
|
|
233
|
+
});
|
|
234
|
+
return annotated;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function requestTransientListenerDiscoveryRetry(error) {
|
|
238
|
+
const observation = error?.observation;
|
|
239
|
+
if (
|
|
240
|
+
error?.code !== 'ELISTENERDISCOVERYINCONCLUSIVE'
|
|
241
|
+
|| observation?.supported !== true
|
|
242
|
+
|| (observation.status !== 'timeout' && observation.status !== 'error')
|
|
243
|
+
) return error;
|
|
244
|
+
if (error.reloadRetryAfterMs == null) {
|
|
245
|
+
error.reloadRetryAfterMs = POST_STOP_RELEASE_RETRY_MS;
|
|
246
|
+
}
|
|
247
|
+
return error;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
async function waitForProviderDbReleaseIfNeeded(serverEnv, { waitForPgliteDirLockReleaseImpl = waitForPgliteDirLockRelease } = {}) {
|
|
251
|
+
if (getDbProviderFromServerEnv(serverEnv) !== 'pglite') return;
|
|
252
|
+
const dbDir = getPgliteDbDirFromServerEnv(serverEnv);
|
|
253
|
+
if (!dbDir) return;
|
|
254
|
+
const released = await waitForPgliteDirLockReleaseImpl(dbDir, { timeoutMs: 5_000, intervalMs: 100 });
|
|
255
|
+
if (released === false) {
|
|
256
|
+
throw new Error(`[local] restart refused: pglite DB lock did not release for ${dbDir}.`);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function hasPackageScript(dir, scriptName) {
|
|
261
|
+
const script = readPackageScripts(dir)?.[scriptName];
|
|
262
|
+
return typeof script === 'string' && script.trim().length > 0;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function createDevServerReloadDescriptors({ serverDir, existsSyncImpl = existsSync } = {}) {
|
|
266
|
+
const repoRoot = resolve(serverDir, '..', '..');
|
|
267
|
+
const serverAppPaths = [
|
|
268
|
+
join(serverDir, 'sources'),
|
|
269
|
+
join(serverDir, 'scripts'),
|
|
270
|
+
join(serverDir, 'package.json'),
|
|
271
|
+
join(serverDir, 'tsconfig.json'),
|
|
272
|
+
join(serverDir, 'tsconfig.runtime.json'),
|
|
273
|
+
];
|
|
274
|
+
const serverPrismaPaths = [
|
|
275
|
+
join(serverDir, 'prisma'),
|
|
276
|
+
];
|
|
277
|
+
const makeDescriptor = (id, target, paths) => {
|
|
278
|
+
const existingPaths = paths.filter((p) => existsSyncImpl(p));
|
|
279
|
+
return {
|
|
280
|
+
id,
|
|
281
|
+
target,
|
|
282
|
+
paths: existingPaths,
|
|
283
|
+
readSignature: () => readDevServerWatchChangeSignature(existingPaths),
|
|
284
|
+
readSignatureAsync: () => readDevServerWatchChangeSignatureAsync(existingPaths),
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
return [
|
|
289
|
+
makeDescriptor('server:app', 'server', serverAppPaths),
|
|
290
|
+
makeDescriptor('server:prisma', 'server', serverPrismaPaths),
|
|
291
|
+
...DEV_SERVER_SHARED_RUNTIME_PACKAGE_IDS.map((pkg) => makeDescriptor(
|
|
292
|
+
`shared:${pkg}`,
|
|
293
|
+
'shared',
|
|
294
|
+
[
|
|
295
|
+
join(repoRoot, 'packages', pkg, 'src'),
|
|
296
|
+
join(repoRoot, 'packages', pkg, 'package.json'),
|
|
297
|
+
join(repoRoot, 'packages', pkg, 'tsconfig.json'),
|
|
298
|
+
join(repoRoot, 'packages', pkg, 'tsconfig.build.json'),
|
|
299
|
+
],
|
|
300
|
+
)),
|
|
301
|
+
].filter((descriptor) => descriptor.paths.length > 0);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function readDevServerWatchChangeSignature(paths) {
|
|
305
|
+
return readDevReloadWatchChangeSignature(paths, { ignorePath: isDevRuntimeReloadIgnoredPath });
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function readDevServerWatchChangeSignatureAsync(paths) {
|
|
309
|
+
return readDevReloadWatchChangeSignatureAsync(paths, { ignorePath: isDevRuntimeReloadIgnoredPath });
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export async function resolveStackOwnedServerListenPid(
|
|
313
|
+
{ serverPort, stackName, envPath },
|
|
314
|
+
{
|
|
315
|
+
listListenPidsImpl = listListenPids,
|
|
316
|
+
listListenPidsWithStatusImpl = listListenPidsWithStatus,
|
|
317
|
+
isPidOwnedByStackImpl = isPidOwnedByStack,
|
|
318
|
+
getProcessGroupIdImpl = getProcessGroupId,
|
|
319
|
+
observationScope,
|
|
320
|
+
} = {},
|
|
321
|
+
) {
|
|
322
|
+
return await resolveStackOwnedListenPid(
|
|
323
|
+
{ port: serverPort, stackName, envPath },
|
|
324
|
+
{ listListenPidsImpl, listListenPidsWithStatusImpl, isPidOwnedByStackImpl, getProcessGroupIdImpl, observationScope },
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
async function assertServerPortOwnedBySpawnedProcessGroup({
|
|
329
|
+
serverPort,
|
|
330
|
+
spawnedPid,
|
|
331
|
+
listenerObservationScope,
|
|
332
|
+
...options
|
|
333
|
+
}) {
|
|
334
|
+
return await resolveSpawnedProcessGroupListenPid(
|
|
335
|
+
{ port: serverPort, spawnedPid },
|
|
336
|
+
{ ...options, observationScope: listenerObservationScope },
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
async function resolveServerPortListenerPidInProcessGroup({
|
|
341
|
+
serverPort,
|
|
342
|
+
rootPid,
|
|
343
|
+
listListenPidsImpl = listListenPids,
|
|
344
|
+
listListenPidsWithStatusImpl = listListenPidsWithStatus,
|
|
345
|
+
getProcessGroupIdImpl = getProcessGroupId,
|
|
346
|
+
listenerObservationScope,
|
|
347
|
+
listenerOwnershipTimeoutMs,
|
|
348
|
+
listenerOwnershipRetryDelayMs,
|
|
349
|
+
}) {
|
|
350
|
+
try {
|
|
351
|
+
return await assertServerPortOwnedBySpawnedProcessGroup({
|
|
352
|
+
serverPort,
|
|
353
|
+
spawnedPid: rootPid,
|
|
354
|
+
listListenPidsImpl,
|
|
355
|
+
listListenPidsWithStatusImpl,
|
|
356
|
+
getProcessGroupIdImpl,
|
|
357
|
+
listenerObservationScope,
|
|
358
|
+
listenerOwnershipTimeoutMs,
|
|
359
|
+
listenerOwnershipRetryDelayMs,
|
|
360
|
+
});
|
|
361
|
+
} catch (error) {
|
|
362
|
+
if (error?.code === 'ELISTENERDISCOVERYINCONCLUSIVE') throw error;
|
|
363
|
+
return null;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
async function isServerPortProvenFree({ serverPort, listenerObservationScope }) {
|
|
368
|
+
const availability = await listenerObservationScope.checkPortFree(serverPort, { host: '127.0.0.1' });
|
|
369
|
+
if (availability.status === 'inconclusive') {
|
|
370
|
+
const reason = availability.binding?.reason
|
|
371
|
+
?? availability.observation?.reason
|
|
372
|
+
?? 'port-availability-inconclusive';
|
|
373
|
+
const error = new Error(`[local] server port ${serverPort} availability is inconclusive: ${reason}`);
|
|
374
|
+
error.code = 'ELISTENERDISCOVERYINCONCLUSIVE';
|
|
375
|
+
error.observation = availability.observation;
|
|
376
|
+
error.binding = availability.binding;
|
|
377
|
+
throw error;
|
|
378
|
+
}
|
|
379
|
+
return availability.status === 'free';
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export async function resolveStackOwnedServerRuntimePid(
|
|
383
|
+
{ runtimeStatePath, serverPort, stackName, envPath },
|
|
384
|
+
{
|
|
385
|
+
readStackRuntimeStateFileImpl = readStackRuntimeStateFile,
|
|
386
|
+
isPidAliveImpl = isPidAlive,
|
|
387
|
+
isPidOwnedByStackImpl = isPidOwnedByStack,
|
|
388
|
+
resolveStackOwnedServerListenPidImpl = resolveStackOwnedServerListenPid,
|
|
389
|
+
listListenPidsImpl = listListenPids,
|
|
390
|
+
listListenPidsWithStatusImpl = listListenPidsWithStatus,
|
|
391
|
+
getProcessGroupIdImpl = getProcessGroupId,
|
|
392
|
+
observationScope,
|
|
393
|
+
} = {}
|
|
394
|
+
) {
|
|
395
|
+
const suppliedScopeRemainingMs = typeof observationScope?.remainingMs === 'function'
|
|
396
|
+
? Number(observationScope.remainingMs())
|
|
397
|
+
: null;
|
|
398
|
+
const ownershipScope = observationScope && (suppliedScopeRemainingMs == null || suppliedScopeRemainingMs > 0)
|
|
399
|
+
? observationScope
|
|
400
|
+
: createListenerOwnershipObservationScope({
|
|
401
|
+
listListenPidsImpl,
|
|
402
|
+
listListenPidsWithStatusImpl,
|
|
403
|
+
});
|
|
404
|
+
const state = await readStackRuntimeStateFileImpl(runtimeStatePath);
|
|
405
|
+
const runtimePid = Number(state?.processes?.serverPid);
|
|
406
|
+
if (Number.isFinite(runtimePid) && runtimePid > 1 && isPidAliveImpl(runtimePid)) {
|
|
407
|
+
const owned = await isPidOwnedByStackImpl(runtimePid, { stackName, envPath }).catch(() => false);
|
|
408
|
+
if (owned) {
|
|
409
|
+
try {
|
|
410
|
+
const listenerPid = await assertServerPortOwnedBySpawnedProcessGroup({
|
|
411
|
+
serverPort,
|
|
412
|
+
spawnedPid: runtimePid,
|
|
413
|
+
listListenPidsImpl,
|
|
414
|
+
listListenPidsWithStatusImpl,
|
|
415
|
+
getProcessGroupIdImpl,
|
|
416
|
+
listenerObservationScope: ownershipScope,
|
|
417
|
+
});
|
|
418
|
+
if (Number.isFinite(Number(listenerPid)) && Number(listenerPid) > 1) {
|
|
419
|
+
return Number(listenerPid);
|
|
420
|
+
}
|
|
421
|
+
} catch (error) {
|
|
422
|
+
if (error?.code === 'ELISTENERDISCOVERYINCONCLUSIVE') throw error;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const listenPid = await resolveStackOwnedServerListenPidImpl(
|
|
428
|
+
{ serverPort, stackName, envPath },
|
|
429
|
+
{
|
|
430
|
+
listListenPidsImpl,
|
|
431
|
+
listListenPidsWithStatusImpl,
|
|
432
|
+
isPidOwnedByStackImpl,
|
|
433
|
+
getProcessGroupIdImpl,
|
|
434
|
+
observationScope: ownershipScope,
|
|
435
|
+
},
|
|
436
|
+
);
|
|
437
|
+
return Number.isFinite(Number(listenPid)) && Number(listenPid) > 1 ? Number(listenPid) : null;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export async function stopStackOwnedServerForRestart(
|
|
441
|
+
{ serverPort, runtimeStatePath, stackName, envPath, serverEnv = {} },
|
|
442
|
+
{
|
|
443
|
+
readStackRuntimeStateFileImpl = readStackRuntimeStateFile,
|
|
444
|
+
killProcessGroupOwnedByStackImpl = killProcessGroupOwnedByStack,
|
|
445
|
+
isPidAliveImpl = isPidAlive,
|
|
446
|
+
isPidOwnedByStackImpl = isPidOwnedByStack,
|
|
447
|
+
resolveStackOwnedServerListenPidImpl = resolveStackOwnedServerListenPid,
|
|
448
|
+
recordStackRuntimeUpdateImpl = recordStackRuntimeUpdate,
|
|
449
|
+
waitForTcpPortFreeImpl = waitForTcpPortFree,
|
|
450
|
+
listListenPidsImpl = listListenPids,
|
|
451
|
+
listListenPidsWithStatusImpl = listListenPidsWithStatus,
|
|
452
|
+
getProcessGroupIdImpl = getProcessGroupId,
|
|
453
|
+
probeTcpPortBindingImpl = probeTcpPortBinding,
|
|
454
|
+
listenerObservationScope,
|
|
455
|
+
} = {}
|
|
456
|
+
) {
|
|
457
|
+
const observationScope = listenerObservationScope ?? createListenerOwnershipObservationScope({
|
|
458
|
+
listListenPidsImpl,
|
|
459
|
+
listListenPidsWithStatusImpl,
|
|
460
|
+
probeTcpPortBindingImpl,
|
|
461
|
+
});
|
|
462
|
+
const st = await readStackRuntimeStateFileImpl(runtimeStatePath);
|
|
463
|
+
const pid = Number(st?.processes?.serverPid);
|
|
464
|
+
let stopPid = null;
|
|
465
|
+
let recordedPidAliveAndOwned = false;
|
|
466
|
+
|
|
467
|
+
if (pid > 1 && isPidAliveImpl(pid)) {
|
|
468
|
+
const owned = await isPidOwnedByStackImpl(pid, { stackName, envPath }).catch(() => false);
|
|
469
|
+
recordedPidAliveAndOwned = owned;
|
|
470
|
+
if (owned) {
|
|
471
|
+
const listenerPid = await resolveServerPortListenerPidInProcessGroup({
|
|
472
|
+
serverPort,
|
|
473
|
+
rootPid: pid,
|
|
474
|
+
listListenPidsImpl,
|
|
475
|
+
listListenPidsWithStatusImpl,
|
|
476
|
+
getProcessGroupIdImpl,
|
|
477
|
+
listenerObservationScope: observationScope,
|
|
478
|
+
});
|
|
479
|
+
if (Number.isFinite(Number(listenerPid)) && Number(listenerPid) > 1) {
|
|
480
|
+
stopPid = Number(listenerPid);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
if (!stopPid) {
|
|
486
|
+
const free = await isServerPortProvenFree({
|
|
487
|
+
serverPort,
|
|
488
|
+
listenerObservationScope: observationScope,
|
|
489
|
+
});
|
|
490
|
+
if (!free) {
|
|
491
|
+
const listenPid = await resolveStackOwnedServerListenPidImpl(
|
|
492
|
+
{ serverPort, stackName, envPath },
|
|
493
|
+
{
|
|
494
|
+
listListenPidsImpl,
|
|
495
|
+
listListenPidsWithStatusImpl,
|
|
496
|
+
isPidOwnedByStackImpl,
|
|
497
|
+
getProcessGroupIdImpl,
|
|
498
|
+
observationScope,
|
|
499
|
+
}
|
|
500
|
+
);
|
|
501
|
+
if (!(Number.isFinite(Number(listenPid)) && Number(listenPid) > 1)) {
|
|
502
|
+
throw new Error(
|
|
503
|
+
`[local] restart refused: server port ${serverPort} is occupied and the PID is not provably stack-owned.\n` +
|
|
504
|
+
`[local] Fix: run 'hstack stack stop ${stackName}' then re-run, or re-run without --restart.`
|
|
505
|
+
);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
stopPid = Number(listenPid);
|
|
509
|
+
await recordStackRuntimeServerActivation(
|
|
510
|
+
runtimeStatePath,
|
|
511
|
+
{
|
|
512
|
+
listenerPid: Number(listenPid),
|
|
513
|
+
wrapperPid: null,
|
|
514
|
+
stablePort: serverPort,
|
|
515
|
+
mode: 'direct',
|
|
516
|
+
clearProxyState: true,
|
|
517
|
+
},
|
|
518
|
+
{ recordStackRuntimeUpdateImpl },
|
|
519
|
+
);
|
|
520
|
+
} else if (recordedPidAliveAndOwned) {
|
|
521
|
+
throw new Error(
|
|
522
|
+
`[local] restart refused: recorded server pid ${pid} is still alive, but server port ${serverPort} has no listener proof for it.\n` +
|
|
523
|
+
`[local] Fix: run 'hstack stack stop ${stackName}' then re-run, or re-run without --restart.`
|
|
524
|
+
);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
if (stopPid) {
|
|
529
|
+
const res = await killProcessGroupOwnedByStackImpl(Number(stopPid), {
|
|
530
|
+
stackName,
|
|
531
|
+
envPath,
|
|
532
|
+
label: 'server',
|
|
533
|
+
json: true,
|
|
534
|
+
graceMs: resolveServerShutdownGraceMs(serverEnv),
|
|
535
|
+
});
|
|
536
|
+
if (!res?.killed) {
|
|
537
|
+
throw new Error(
|
|
538
|
+
`[local] restart refused: server port ${serverPort} is occupied by a process that could not be stopped safely.\n` +
|
|
539
|
+
`[local] Fix: run 'hstack stack stop ${stackName}' then re-run, or re-run without --restart.`
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
const availability = await waitForTcpPortFreeImpl(serverPort, {
|
|
545
|
+
host: '127.0.0.1',
|
|
546
|
+
timeoutMs: 5_000,
|
|
547
|
+
intervalMs: 100,
|
|
548
|
+
});
|
|
549
|
+
assertTcpPortReleased(availability, {
|
|
550
|
+
port: serverPort,
|
|
551
|
+
pid: stopPid,
|
|
552
|
+
scope: 'server port',
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
function removeChildFromChildren(children, child) {
|
|
557
|
+
const index = children.indexOf(child);
|
|
558
|
+
if (index >= 0) {
|
|
559
|
+
children.splice(index, 1);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
function hasChildExited(child) {
|
|
564
|
+
return (
|
|
565
|
+
(child?.exitCode !== null && child?.exitCode !== undefined) ||
|
|
566
|
+
(child?.signalCode !== null && child?.signalCode !== undefined)
|
|
567
|
+
);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export function updateUnresolvedChildRetention(current, child, {
|
|
571
|
+
oldServerStopped = false,
|
|
572
|
+
transportCommitted = false,
|
|
573
|
+
serviceRestored = false,
|
|
574
|
+
activationCommitUnknown = false,
|
|
575
|
+
} = {}) {
|
|
576
|
+
const previous = current?.child === child ? current : null;
|
|
577
|
+
return {
|
|
578
|
+
child,
|
|
579
|
+
oldServerStopped: Boolean(previous?.oldServerStopped || oldServerStopped),
|
|
580
|
+
transportCommitted: Boolean(previous?.transportCommitted || transportCommitted),
|
|
581
|
+
serviceRestored: Boolean(previous?.serviceRestored || serviceRestored),
|
|
582
|
+
activationCommitUnknown: Boolean(previous?.activationCommitUnknown || activationCommitUnknown),
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
function localServerUrlForPort(port) {
|
|
587
|
+
return `http://127.0.0.1:${Number(port)}`;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
function serverReloadMigrationEnv(reloadPlan) {
|
|
591
|
+
return {
|
|
592
|
+
HAPPIER_STACK_MIGRATE_MODE: reloadPlan.migrationMode === 'skip' ? 'skip' : 'always',
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
function resolveDevProxyDrainMs(serverEnv = {}) {
|
|
597
|
+
const rawValue = serverEnv.HAPPIER_STACK_DEV_PROXY_DRAIN_MS;
|
|
598
|
+
if (rawValue === undefined || rawValue === null || String(rawValue).trim() === '') {
|
|
599
|
+
return 2000;
|
|
600
|
+
}
|
|
601
|
+
const raw = Number(rawValue);
|
|
602
|
+
return Number.isFinite(raw) && raw >= 0 ? Math.trunc(raw) : 2000;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
function sleepMs(ms) {
|
|
606
|
+
const delayMs = Math.max(0, Number(ms) || 0);
|
|
607
|
+
if (delayMs <= 0) return Promise.resolve();
|
|
608
|
+
return new Promise((resolvePromise) => setTimeout(resolvePromise, delayMs));
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
async function waitForChildExit(child, timeoutMs) {
|
|
612
|
+
if (hasChildExited(child)) return true;
|
|
613
|
+
if (!child || typeof child.once !== 'function') return false;
|
|
614
|
+
|
|
615
|
+
return await new Promise((resolvePromise) => {
|
|
616
|
+
let settled = false;
|
|
617
|
+
let timeout = null;
|
|
618
|
+
const done = (value) => {
|
|
619
|
+
if (settled) return;
|
|
620
|
+
settled = true;
|
|
621
|
+
if (timeout) clearTimeout(timeout);
|
|
622
|
+
resolvePromise(value);
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
timeout = setTimeout(() => done(false), timeoutMs);
|
|
626
|
+
child.once('exit', () => done(true));
|
|
627
|
+
child.once('close', () => done(true));
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
async function killServerProcessGroupForPlannedReload({
|
|
632
|
+
child,
|
|
633
|
+
pid,
|
|
634
|
+
terminationPid = pid,
|
|
635
|
+
stackName,
|
|
636
|
+
envPath,
|
|
637
|
+
serverEnv,
|
|
638
|
+
killProcessGroupOwnedByStackImpl,
|
|
639
|
+
onTerminationRequested,
|
|
640
|
+
}) {
|
|
641
|
+
const clearPlannedExit = markSpawnedProcessPlannedExit(child, 'dev-reload');
|
|
642
|
+
let result = null;
|
|
643
|
+
try {
|
|
644
|
+
onTerminationRequested?.();
|
|
645
|
+
result = await killProcessGroupOwnedByStackImpl(terminationPid, {
|
|
646
|
+
stackName,
|
|
647
|
+
envPath,
|
|
648
|
+
label: 'server',
|
|
649
|
+
json: false,
|
|
650
|
+
graceMs: resolveServerShutdownGraceMs(serverEnv),
|
|
651
|
+
});
|
|
652
|
+
} catch (error) {
|
|
653
|
+
clearPlannedExit();
|
|
654
|
+
throw error;
|
|
655
|
+
}
|
|
656
|
+
if (!result?.killed) {
|
|
657
|
+
clearPlannedExit();
|
|
658
|
+
}
|
|
659
|
+
return result;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
function assertTcpPortReleased(availability, { port, pid, scope = 'server port' } = {}) {
|
|
663
|
+
if (availability?.status === 'free') return;
|
|
664
|
+
|
|
665
|
+
const inconclusive = availability?.status === 'inconclusive';
|
|
666
|
+
const reason = String(availability?.reason ?? 'unknown');
|
|
667
|
+
const error = new Error(
|
|
668
|
+
`[local] watch restart refused: ${scope} ${port} release is ` +
|
|
669
|
+
`${inconclusive ? 'inconclusive' : 'still occupied'} after stopping pid=${pid} (${reason}).`,
|
|
670
|
+
);
|
|
671
|
+
error.code = inconclusive
|
|
672
|
+
? 'ESERVERBACKENDPORTRELEASEINCONCLUSIVE'
|
|
673
|
+
: 'ESERVERBACKENDPORTOCCUPIED';
|
|
674
|
+
if (inconclusive) {
|
|
675
|
+
error.reloadRetryAfterMs = POST_STOP_RELEASE_RETRY_MS;
|
|
676
|
+
}
|
|
677
|
+
throw error;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
export async function terminateSpawnedChildForCleanup(
|
|
681
|
+
child,
|
|
682
|
+
{
|
|
683
|
+
killSpawnedChildImpl = killProcessTree,
|
|
684
|
+
env = process.env,
|
|
685
|
+
gracefulMs = resolveServerShutdownGraceMs(env),
|
|
686
|
+
forceMs = 300,
|
|
687
|
+
} = {}
|
|
688
|
+
) {
|
|
689
|
+
if (!child) return true;
|
|
690
|
+
|
|
691
|
+
let gracefulResult = null;
|
|
692
|
+
try {
|
|
693
|
+
gracefulResult = await killSpawnedChildImpl(child, 'SIGTERM', { graceMs: gracefulMs });
|
|
694
|
+
} catch {
|
|
695
|
+
gracefulResult = null;
|
|
696
|
+
}
|
|
697
|
+
if (gracefulResult?.ok === true && hasChildExited(child)) return true;
|
|
698
|
+
if (gracefulResult?.ok === true && await waitForChildExit(child, gracefulMs)) return true;
|
|
699
|
+
|
|
700
|
+
let forceResult = null;
|
|
701
|
+
try {
|
|
702
|
+
forceResult = await killSpawnedChildImpl(child, 'SIGKILL', { graceMs: forceMs });
|
|
703
|
+
} catch {
|
|
704
|
+
forceResult = null;
|
|
705
|
+
}
|
|
706
|
+
if (forceResult?.ok !== true) return false;
|
|
707
|
+
return hasChildExited(child) || await waitForChildExit(child, forceMs);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
async function cleanupStackSpawnedChild({
|
|
711
|
+
child,
|
|
712
|
+
children,
|
|
713
|
+
authoritativeChild = null,
|
|
714
|
+
killProcessGroupOwnedByStackImpl = killProcessGroupOwnedByStack,
|
|
715
|
+
killSpawnedChildImpl = killProcessTree,
|
|
716
|
+
terminateSpawnedChildImpl,
|
|
717
|
+
stackName,
|
|
718
|
+
envPath,
|
|
719
|
+
env = process.env,
|
|
720
|
+
}) {
|
|
721
|
+
if (!child || authoritativeChild === child) return true;
|
|
722
|
+
const pid = Number(child?.pid);
|
|
723
|
+
if (!Number.isFinite(pid) || pid <= 1) {
|
|
724
|
+
const terminated = await (terminateSpawnedChildImpl
|
|
725
|
+
? terminateSpawnedChildImpl(child)
|
|
726
|
+
: terminateSpawnedChildForCleanup(child, { killSpawnedChildImpl, env }));
|
|
727
|
+
if (terminated) {
|
|
728
|
+
removeChildFromChildren(children, child);
|
|
729
|
+
}
|
|
730
|
+
return Boolean(terminated);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
const res = await killProcessGroupOwnedByStackImpl(pid, {
|
|
734
|
+
stackName,
|
|
735
|
+
envPath,
|
|
736
|
+
label: 'server',
|
|
737
|
+
json: false,
|
|
738
|
+
graceMs: resolveServerShutdownGraceMs(env),
|
|
739
|
+
}).catch(() => ({ killed: false }));
|
|
740
|
+
if (!res?.killed || res?.reason === 'killed_pid_only') {
|
|
741
|
+
const terminated = await (terminateSpawnedChildImpl
|
|
742
|
+
? terminateSpawnedChildImpl(child)
|
|
743
|
+
: terminateSpawnedChildForCleanup(child, { killSpawnedChildImpl, env }));
|
|
744
|
+
if (!terminated) return false;
|
|
745
|
+
}
|
|
746
|
+
removeChildFromChildren(children, child);
|
|
747
|
+
return true;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
function createServerProvisioningCleanupIncompleteError(error, child) {
|
|
751
|
+
const cleanupError = new Error(
|
|
752
|
+
`[local] server provisioning failed and termination of provisional pid=${child?.pid ?? 'unknown'} remains unconfirmed.`,
|
|
753
|
+
{ cause: error },
|
|
754
|
+
);
|
|
755
|
+
cleanupError.code = 'ESERVERPROVISIONINGCLEANUPINCOMPLETE';
|
|
756
|
+
cleanupError.provisionalPid = Number(child?.pid) || null;
|
|
757
|
+
return cleanupError;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export async function preflightDevServerRestart(
|
|
761
|
+
{ serverDir, serverEnv = {}, reloadMigrationMode = null, logger = console },
|
|
762
|
+
{ pmExecBinImpl = pmExecBin } = {},
|
|
763
|
+
) {
|
|
764
|
+
const parentPreflightAlreadyDone = String(
|
|
765
|
+
serverEnv.HAPPIER_STACK_SERVER_RESTART_PREFLIGHT_ALREADY_DONE ?? '',
|
|
766
|
+
).trim() === '1';
|
|
767
|
+
delete serverEnv.HAPPIER_STACK_SERVER_RESTART_PREFLIGHT_ALREADY_DONE;
|
|
768
|
+
const enabled = String(serverEnv.HAPPIER_STACK_SERVER_RESTART_PREFLIGHT ?? '').trim() !== '0';
|
|
769
|
+
if (!enabled) return { ran: false, reason: 'disabled' };
|
|
770
|
+
if (parentPreflightAlreadyDone) {
|
|
771
|
+
return { ran: false, reason: 'already-done' };
|
|
772
|
+
}
|
|
773
|
+
const runtimeTypecheckScript = hasPackageScript(serverDir, 'typecheck:runtime')
|
|
774
|
+
? 'typecheck:runtime'
|
|
775
|
+
: hasPackageScript(serverDir, 'build')
|
|
776
|
+
? 'build'
|
|
777
|
+
: null;
|
|
778
|
+
if (!runtimeTypecheckScript) return { ran: false, reason: 'missing-build-script' };
|
|
779
|
+
|
|
780
|
+
logger.log('[local] watch: server changed → preflight build...');
|
|
781
|
+
if (reloadMigrationMode === 'apply' && hasPackageScript(serverDir, 'generate:providers')) {
|
|
782
|
+
await pmExecBinImpl({
|
|
783
|
+
dir: serverDir,
|
|
784
|
+
bin: 'generate:providers',
|
|
785
|
+
args: [],
|
|
786
|
+
env: {
|
|
787
|
+
...serverEnv,
|
|
788
|
+
HAPPIER_STACK_SKIP_REFRESH_DEPS: serverEnv.HAPPIER_STACK_SKIP_REFRESH_DEPS ?? '1',
|
|
789
|
+
},
|
|
790
|
+
quiet: false,
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
await pmExecBinImpl({
|
|
794
|
+
dir: serverDir,
|
|
795
|
+
bin: runtimeTypecheckScript,
|
|
796
|
+
args: [],
|
|
797
|
+
env: {
|
|
798
|
+
...serverEnv,
|
|
799
|
+
HAPPIER_STACK_SKIP_REFRESH_DEPS: serverEnv.HAPPIER_STACK_SKIP_REFRESH_DEPS ?? '1',
|
|
800
|
+
},
|
|
801
|
+
quiet: false,
|
|
802
|
+
});
|
|
803
|
+
return {
|
|
804
|
+
ran: true,
|
|
805
|
+
reason: runtimeTypecheckScript === 'typecheck:runtime' ? 'runtime-typecheck-ok' : 'build-ok',
|
|
806
|
+
};
|
|
807
|
+
}
|
|
13
808
|
|
|
14
809
|
export function resolveStackUiDevPortStart({ env = process.env, stackName }) {
|
|
15
810
|
return resolveStablePortStart({
|
|
@@ -37,6 +832,7 @@ export async function startDevServer({
|
|
|
37
832
|
autostart,
|
|
38
833
|
baseEnv,
|
|
39
834
|
serverPort,
|
|
835
|
+
serverBindPort = serverPort,
|
|
40
836
|
internalServerUrl,
|
|
41
837
|
publicServerUrl,
|
|
42
838
|
envPath,
|
|
@@ -47,93 +843,216 @@ export async function startDevServer({
|
|
|
47
843
|
children,
|
|
48
844
|
spawnOptions = {},
|
|
49
845
|
quiet = false,
|
|
50
|
-
|
|
846
|
+
serverProxyRuntime = null,
|
|
847
|
+
}, {
|
|
848
|
+
ensureDepsInstalledImpl = ensureDepsInstalled,
|
|
849
|
+
ensureSourceServerWorkspacePackagesBuiltImpl = ensureSourceServerWorkspacePackagesBuilt,
|
|
850
|
+
ensureHappyServerManagedInfraImpl = ensureHappyServerManagedInfra,
|
|
851
|
+
applyServerMigrationsImpl = applyServerMigrations,
|
|
852
|
+
preflightDevServerRestartImpl = preflightDevServerRestart,
|
|
853
|
+
stopStackOwnedServerForRestartImpl = stopStackOwnedServerForRestart,
|
|
854
|
+
pmSpawnScriptImpl = pmSpawnScript,
|
|
855
|
+
waitForServerReadyImpl = waitForServerReady,
|
|
856
|
+
listListenPidsImpl = listListenPids,
|
|
857
|
+
listListenPidsWithStatusImpl = listListenPidsWithStatus,
|
|
858
|
+
getProcessGroupIdImpl = getProcessGroupId,
|
|
859
|
+
recordStackRuntimeUpdateImpl = recordStackRuntimeUpdate,
|
|
860
|
+
recordStackRuntimeServerActivationImpl = recordStackRuntimeServerActivation,
|
|
861
|
+
killProcessGroupOwnedByStackImpl = killProcessGroupOwnedByStack,
|
|
862
|
+
killSpawnedChildImpl = killProcessTree,
|
|
863
|
+
terminateSpawnedChildImpl,
|
|
864
|
+
waitForPgliteDirLockReleaseImpl = waitForPgliteDirLockRelease,
|
|
865
|
+
listenerOwnershipTimeoutMs = DEFAULT_LISTENER_OWNERSHIP_TIMEOUT_MS,
|
|
866
|
+
listenerOwnershipRetryDelayMs = 25,
|
|
867
|
+
} = {}) {
|
|
868
|
+
const bindPort = Number(serverBindPort || serverPort);
|
|
869
|
+
const serverReadyUrl = localServerUrlForPort(bindPort);
|
|
51
870
|
const serverEnv = {
|
|
52
871
|
...baseEnv,
|
|
53
|
-
PORT: String(
|
|
872
|
+
PORT: String(bindPort),
|
|
54
873
|
PUBLIC_URL: publicServerUrl,
|
|
55
874
|
// Avoid noisy failures if a previous run left the metrics port busy.
|
|
56
875
|
METRICS_ENABLED: baseEnv.METRICS_ENABLED ?? 'false',
|
|
57
876
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
877
|
+
applyServerComponentFlavorEnv({ serverComponentName, targetEnv: serverEnv });
|
|
878
|
+
delete baseEnv.HAPPIER_STACK_SERVER_RESTART_PREFLIGHT_ALREADY_DONE;
|
|
879
|
+
const dbProvider = applyEffectiveDbProviderEnv({ serverComponentName, env: baseEnv, targetEnv: serverEnv });
|
|
880
|
+
const explicitDatabaseUrl = serverEnv.DATABASE_URL;
|
|
881
|
+
if (dbProvider === 'mysql' && !String(explicitDatabaseUrl ?? '').trim()) {
|
|
882
|
+
throw new Error('[local] mysql requires an explicit DATABASE_URL before managed infra startup');
|
|
883
|
+
}
|
|
884
|
+
const usesFullManagedInfra = serverComponentName === 'happier-server'
|
|
885
|
+
&& (baseEnv.HAPPIER_STACK_MANAGED_INFRA ?? '1') !== '0';
|
|
886
|
+
if (dbProvider === 'postgres' && !usesFullManagedInfra && !String(explicitDatabaseUrl ?? '').trim()) {
|
|
887
|
+
throw new Error('[local] postgres requires DATABASE_URL when the selected preset does not manage Postgres');
|
|
61
888
|
}
|
|
889
|
+
applyStackServerLoggingDefaults({ baseEnv, serverEnv });
|
|
890
|
+
|
|
891
|
+
applyServerPresetEnvDefaults({ serverComponentName, baseEnv, serverEnv, baseDir: autostart.baseDir });
|
|
892
|
+
|
|
893
|
+
// Dependency preparation owns the tools used by infrastructure and migrations.
|
|
894
|
+
// Keep it after provider/topology admission so invalid configurations remain side-effect free.
|
|
895
|
+
await ensureDepsInstalledImpl(serverDir, serverComponentName, { quiet, env: serverEnv });
|
|
62
896
|
|
|
63
897
|
if (serverComponentName === 'happier-server') {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const infra = await ensureHappyServerManagedInfra({
|
|
898
|
+
if (usesFullManagedInfra) {
|
|
899
|
+
const infra = await ensureHappyServerManagedInfraImpl({
|
|
67
900
|
stackName: autostart.stackName,
|
|
68
901
|
baseDir: autostart.baseDir,
|
|
69
902
|
serverPort,
|
|
70
903
|
publicServerUrl,
|
|
71
904
|
envPath,
|
|
72
|
-
env:
|
|
905
|
+
env: serverEnv,
|
|
906
|
+
dbProvider,
|
|
73
907
|
});
|
|
74
908
|
Object.assign(serverEnv, infra.env);
|
|
909
|
+
if (dbProvider === 'mysql') serverEnv.DATABASE_URL = explicitDatabaseUrl;
|
|
75
910
|
}
|
|
76
911
|
|
|
77
|
-
const autoMigrate = (baseEnv.HAPPIER_STACK_PRISMA_MIGRATE ?? '1') !== '0';
|
|
78
|
-
if (autoMigrate) {
|
|
79
|
-
await applyHappyServerMigrations({ serverDir, env: serverEnv });
|
|
80
|
-
}
|
|
81
912
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
913
|
+
const autoMigrate = (baseEnv.HAPPIER_STACK_PRISMA_MIGRATE ?? '1') !== '0';
|
|
914
|
+
if (autoMigrate) {
|
|
915
|
+
await applyServerMigrationsImpl({ serverDir, env: serverEnv, dbProvider });
|
|
916
|
+
}
|
|
85
917
|
|
|
86
918
|
const prismaPush = (baseEnv.HAPPIER_STACK_PRISMA_PUSH ?? '1').toString().trim() !== '0';
|
|
87
919
|
const serverScript = resolveServerDevScript({ serverComponentName, serverDir, prismaPush });
|
|
88
920
|
|
|
921
|
+
const ensureWorkspacePackagesBuiltBeforeSpawn = async () => {
|
|
922
|
+
await ensureSourceServerWorkspacePackagesBuiltImpl({
|
|
923
|
+
runtimeBackedStart: false,
|
|
924
|
+
serverDir,
|
|
925
|
+
quiet,
|
|
926
|
+
env: serverEnv,
|
|
927
|
+
});
|
|
928
|
+
};
|
|
929
|
+
|
|
89
930
|
// Restart behavior (stack-safe): only kill when we can prove ownership via runtime state.
|
|
90
|
-
if (restart && stackMode && runtimeStatePath
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const res = await killProcessGroupOwnedByStack(pid, { stackName: autostart.stackName, envPath, label: 'server', json: true });
|
|
95
|
-
if (!res.killed) {
|
|
96
|
-
// Fail-closed if the port is still occupied.
|
|
97
|
-
const free = await isTcpPortFree(serverPort, { host: '127.0.0.1' });
|
|
98
|
-
if (!free) {
|
|
99
|
-
throw new Error(
|
|
100
|
-
`[local] restart refused: server port ${serverPort} is occupied and the PID is not provably stack-owned.\n` +
|
|
101
|
-
`[local] Fix: run 'hstack stack stop ${autostart.stackName}' then re-run, or re-run without --restart.`
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
931
|
+
if (restart && stackMode && runtimeStatePath) {
|
|
932
|
+
const preflightResult = await preflightDevServerRestartImpl({ serverDir, serverComponentName, serverEnv, logger: console });
|
|
933
|
+
if (preflightResult?.ran !== true) {
|
|
934
|
+
await ensureWorkspacePackagesBuiltBeforeSpawn();
|
|
105
935
|
}
|
|
106
936
|
}
|
|
107
937
|
|
|
938
|
+
if (restart && stackMode && runtimeStatePath && serverAlreadyRunning) {
|
|
939
|
+
await stopStackOwnedServerForRestartImpl(
|
|
940
|
+
{
|
|
941
|
+
serverPort,
|
|
942
|
+
runtimeStatePath,
|
|
943
|
+
stackName: autostart.stackName,
|
|
944
|
+
envPath,
|
|
945
|
+
serverEnv,
|
|
946
|
+
},
|
|
947
|
+
{ killProcessGroupOwnedByStackImpl, recordStackRuntimeUpdateImpl }
|
|
948
|
+
);
|
|
949
|
+
await waitForProviderDbReleaseIfNeeded(serverEnv, { waitForPgliteDirLockReleaseImpl });
|
|
950
|
+
}
|
|
951
|
+
|
|
108
952
|
if (serverAlreadyRunning && !restart) {
|
|
109
953
|
return { serverEnv, serverScript, serverProc: null };
|
|
110
954
|
}
|
|
111
955
|
|
|
112
|
-
|
|
956
|
+
if (!(restart && stackMode && runtimeStatePath)) {
|
|
957
|
+
await ensureWorkspacePackagesBuiltBeforeSpawn();
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
const readinessTimeoutMs = resolveServerReadyTimeoutMs({ serverComponentName, env: serverEnv });
|
|
961
|
+
const startupDeadline = createServerReadinessDeadline({
|
|
962
|
+
readinessTimeoutMs,
|
|
963
|
+
migrationTimeoutMs: resolveServerMigrationTimeoutMs({ env: serverEnv }),
|
|
964
|
+
});
|
|
965
|
+
const existingOnLine = spawnOptions?.onLine;
|
|
966
|
+
const server = await pmSpawnScriptImpl({
|
|
113
967
|
label: 'server',
|
|
114
968
|
dir: serverDir,
|
|
115
969
|
script: serverScript,
|
|
116
970
|
env: serverEnv,
|
|
117
|
-
options:
|
|
971
|
+
options: {
|
|
972
|
+
...spawnOptions,
|
|
973
|
+
onLine(lineEvent) {
|
|
974
|
+
startupDeadline.observeLine(lineEvent);
|
|
975
|
+
existingOnLine?.(lineEvent);
|
|
976
|
+
},
|
|
977
|
+
},
|
|
118
978
|
quiet,
|
|
119
979
|
});
|
|
120
980
|
children.push(server);
|
|
981
|
+
let listenerPid = null;
|
|
982
|
+
try {
|
|
983
|
+
startupDeadline.startReadiness();
|
|
984
|
+
await waitForServerReadyImpl(internalServerUrl, {
|
|
985
|
+
timeoutMs: readinessTimeoutMs,
|
|
986
|
+
childProcess: server,
|
|
987
|
+
startupDeadline,
|
|
988
|
+
});
|
|
989
|
+
if (serverReadyUrl !== internalServerUrl) {
|
|
990
|
+
await waitForServerReadyImpl(serverReadyUrl, {
|
|
991
|
+
timeoutMs: readinessTimeoutMs,
|
|
992
|
+
childProcess: server,
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
listenerPid = await assertServerPortOwnedBySpawnedProcessGroup({
|
|
996
|
+
serverPort: bindPort,
|
|
997
|
+
spawnedPid: server.pid,
|
|
998
|
+
listListenPidsImpl,
|
|
999
|
+
listListenPidsWithStatusImpl,
|
|
1000
|
+
getProcessGroupIdImpl,
|
|
1001
|
+
listenerOwnershipTimeoutMs,
|
|
1002
|
+
listenerOwnershipRetryDelayMs,
|
|
1003
|
+
});
|
|
1004
|
+
if (hasChildExited(server)) {
|
|
1005
|
+
throw new Error(
|
|
1006
|
+
`[local] server process exited after readiness check ` +
|
|
1007
|
+
`(pid=${server.pid}, code=${server.exitCode ?? 'null'}, signal=${server.signalCode ?? 'null'})`
|
|
1008
|
+
);
|
|
1009
|
+
}
|
|
1010
|
+
} catch (error) {
|
|
1011
|
+
const cleanupConfirmed = await cleanupStackSpawnedChild({
|
|
1012
|
+
child: server,
|
|
1013
|
+
children,
|
|
1014
|
+
killProcessGroupOwnedByStackImpl,
|
|
1015
|
+
killSpawnedChildImpl,
|
|
1016
|
+
terminateSpawnedChildImpl,
|
|
1017
|
+
stackName: autostart.stackName,
|
|
1018
|
+
envPath,
|
|
1019
|
+
env: serverEnv,
|
|
1020
|
+
});
|
|
1021
|
+
if (!cleanupConfirmed) {
|
|
1022
|
+
throw createServerProvisioningCleanupIncompleteError(error, server);
|
|
1023
|
+
}
|
|
1024
|
+
throw error;
|
|
1025
|
+
}
|
|
121
1026
|
if (stackMode && runtimeStatePath) {
|
|
122
|
-
|
|
1027
|
+
const activationMode = serverProxyRuntime?.mode === 'proxy'
|
|
1028
|
+
? 'proxy'
|
|
1029
|
+
: serverProxyRuntime?.mode === 'directFallback'
|
|
1030
|
+
? 'directFallback'
|
|
1031
|
+
: 'direct';
|
|
1032
|
+
await recordStackRuntimeServerActivationImpl(
|
|
1033
|
+
runtimeStatePath,
|
|
1034
|
+
{
|
|
1035
|
+
listenerPid,
|
|
1036
|
+
wrapperPid: server.pid,
|
|
1037
|
+
stablePort: serverPort,
|
|
1038
|
+
backendPort: activationMode === 'proxy' ? bindPort : null,
|
|
1039
|
+
proxyPid: activationMode === 'proxy' ? serverProxyRuntime?.proxyPid : null,
|
|
1040
|
+
mode: activationMode,
|
|
1041
|
+
fallbackReason: serverProxyRuntime?.fallbackReason,
|
|
1042
|
+
},
|
|
1043
|
+
{ recordStackRuntimeUpdateImpl },
|
|
1044
|
+
);
|
|
123
1045
|
}
|
|
124
|
-
await waitForServerReady(internalServerUrl, {
|
|
125
|
-
timeoutMs: resolveServerReadyTimeoutMs({ serverComponentName, env: serverEnv }),
|
|
126
|
-
childProcess: server,
|
|
127
|
-
});
|
|
128
1046
|
return { serverEnv, serverScript, serverProc: server };
|
|
129
1047
|
}
|
|
130
1048
|
|
|
131
|
-
export function
|
|
1049
|
+
export function createDevServerReloadExecutor({
|
|
132
1050
|
enabled,
|
|
133
1051
|
stackMode,
|
|
134
1052
|
serverComponentName,
|
|
135
1053
|
serverDir,
|
|
136
1054
|
serverPort,
|
|
1055
|
+
serverBindPort = serverPort,
|
|
137
1056
|
internalServerUrl,
|
|
138
1057
|
serverScript,
|
|
139
1058
|
serverEnv,
|
|
@@ -143,44 +1062,1295 @@ export function watchDevServerAndRestart({
|
|
|
143
1062
|
children,
|
|
144
1063
|
serverProcRef,
|
|
145
1064
|
isShuttingDown,
|
|
146
|
-
|
|
147
|
-
|
|
1065
|
+
proxyController = null,
|
|
1066
|
+
}, {
|
|
1067
|
+
killProcessGroupOwnedByStackImpl = killProcessGroupOwnedByStack,
|
|
1068
|
+
waitForTcpPortFreeImpl = waitForTcpPortFree,
|
|
1069
|
+
pmSpawnScriptImpl = pmSpawnScript,
|
|
1070
|
+
recordStackRuntimeUpdateImpl = recordStackRuntimeUpdate,
|
|
1071
|
+
recordStackRuntimeServerActivationImpl = recordStackRuntimeServerActivation,
|
|
1072
|
+
recordStackRuntimeServerLifecycleImpl = recordStackRuntimeServerLifecycle,
|
|
1073
|
+
waitForServerReadyImpl = waitForServerReady,
|
|
1074
|
+
listListenPidsImpl = listListenPids,
|
|
1075
|
+
listListenPidsWithStatusImpl = listListenPidsWithStatus,
|
|
1076
|
+
probeTcpPortBindingImpl = probeTcpPortBinding,
|
|
1077
|
+
getProcessGroupIdImpl = getProcessGroupId,
|
|
1078
|
+
isPidAliveImpl = isPidAlive,
|
|
1079
|
+
killSpawnedChildImpl = killProcessTree,
|
|
1080
|
+
terminateSpawnedChildImpl,
|
|
1081
|
+
preflightDevServerRestartImpl = preflightDevServerRestart,
|
|
1082
|
+
waitForPgliteDirLockReleaseImpl = waitForPgliteDirLockRelease,
|
|
1083
|
+
pickNextFreeTcpPortImpl = pickNextFreeTcpPort,
|
|
1084
|
+
nowImpl = Date.now,
|
|
1085
|
+
monotonicNowImpl = () => performance.now(),
|
|
1086
|
+
restartFailurePolicy,
|
|
1087
|
+
logger = console,
|
|
1088
|
+
sleepImpl = sleepMs,
|
|
1089
|
+
listenerOwnershipTimeoutMs = DEFAULT_LISTENER_OWNERSHIP_TIMEOUT_MS,
|
|
1090
|
+
listenerOwnershipRetryDelayMs = 25,
|
|
1091
|
+
} = {}) {
|
|
1092
|
+
let activeBackendPort = Number(serverBindPort || serverPort);
|
|
1093
|
+
let unresolvedProvisional = null;
|
|
1094
|
+
const restartFailureTracker = createServerRestartFailureTracker({
|
|
1095
|
+
policy: restartFailurePolicy,
|
|
1096
|
+
nowImpl,
|
|
1097
|
+
});
|
|
1098
|
+
let unexpectedExitHandler = null;
|
|
1099
|
+
let observedActiveChild = null;
|
|
1100
|
+
let observedActiveExitListener = null;
|
|
1101
|
+
const disarmActiveChildExit = (child = observedActiveChild) => {
|
|
1102
|
+
if (!child || child !== observedActiveChild) return;
|
|
1103
|
+
if (observedActiveExitListener) {
|
|
1104
|
+
child.off?.('exit', observedActiveExitListener);
|
|
1105
|
+
child.removeListener?.('exit', observedActiveExitListener);
|
|
1106
|
+
}
|
|
1107
|
+
observedActiveChild = null;
|
|
1108
|
+
observedActiveExitListener = null;
|
|
1109
|
+
};
|
|
1110
|
+
const reportUnexpectedActiveExit = (child, code, signal) => {
|
|
1111
|
+
const handler = unexpectedExitHandler;
|
|
1112
|
+
if (typeof handler !== 'function' || isShuttingDown?.()) return;
|
|
1113
|
+
Promise.resolve(handler({
|
|
1114
|
+
child,
|
|
1115
|
+
pid: Number(child?.pid) || null,
|
|
1116
|
+
code: code ?? child?.exitCode ?? null,
|
|
1117
|
+
signal: signal ?? child?.signalCode ?? null,
|
|
1118
|
+
})).catch((error) => {
|
|
1119
|
+
logger.error?.(`[local] watch: active server exit recovery request failed: ${formatError(error)}`);
|
|
1120
|
+
});
|
|
1121
|
+
};
|
|
1122
|
+
const observeActiveChildExit = (child) => {
|
|
1123
|
+
disarmActiveChildExit();
|
|
1124
|
+
if (!child || typeof unexpectedExitHandler !== 'function') return;
|
|
1125
|
+
observedActiveChild = child;
|
|
1126
|
+
observedActiveExitListener = (code, signal) => {
|
|
1127
|
+
if (observedActiveChild !== child) return;
|
|
1128
|
+
observedActiveChild = null;
|
|
1129
|
+
observedActiveExitListener = null;
|
|
1130
|
+
reportUnexpectedActiveExit(child, code, signal);
|
|
1131
|
+
};
|
|
1132
|
+
if (hasChildExited(child)) {
|
|
1133
|
+
queueMicrotask(() => observedActiveExitListener?.(child.exitCode, child.signalCode));
|
|
1134
|
+
return;
|
|
1135
|
+
}
|
|
1136
|
+
child.once?.('exit', observedActiveExitListener);
|
|
1137
|
+
};
|
|
1138
|
+
const publishLifecycle = async (transition) => {
|
|
1139
|
+
if (!stackMode || !runtimeStatePath) return null;
|
|
1140
|
+
if (
|
|
1141
|
+
transition?.phase !== 'idle'
|
|
1142
|
+
&& (!Number.isInteger(transition?.plan?.generation) || transition.plan.generation < 0)
|
|
1143
|
+
) return null;
|
|
1144
|
+
return await recordStackRuntimeServerLifecycleImpl(runtimeStatePath, transition);
|
|
1145
|
+
};
|
|
1146
|
+
const activeBackendIsProvablyUnavailable = async () => {
|
|
1147
|
+
const activeChild = serverProcRef?.current;
|
|
1148
|
+
const activePid = Number(activeChild?.pid);
|
|
1149
|
+
if (!Number.isInteger(activePid) || activePid <= 1) return false;
|
|
1150
|
+
if (!hasChildExited(activeChild) && isPidAliveImpl(activePid)) return false;
|
|
1151
|
+
try {
|
|
1152
|
+
const observation = await listListenPidsWithStatusImpl(
|
|
1153
|
+
proxyController ? activeBackendPort : serverPort,
|
|
1154
|
+
{ timeoutMs: 1_000 },
|
|
1155
|
+
);
|
|
1156
|
+
return observation?.status === 'ok' && observation.pids.length === 0;
|
|
1157
|
+
} catch {
|
|
1158
|
+
return false;
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1161
|
+
const publishFailureDisposition = async ({ error, plan, retryScheduled, retryAfterMs }) => {
|
|
1162
|
+
const failure = error?.serverRestartFailure;
|
|
1163
|
+
const annotatedUnavailable = failure?.oldServerStopped === true
|
|
1164
|
+
&& failure?.serviceRestored !== true
|
|
1165
|
+
&& failure?.transportCommitted !== true
|
|
1166
|
+
&& failure?.activationCommitUnknown !== true
|
|
1167
|
+
&& failure?.kind !== 'cleanup_incomplete'
|
|
1168
|
+
&& error?.code !== 'ESERVERPROVISIONALCLEANUPINCOMPLETE';
|
|
1169
|
+
const observedUnavailable = failure?.serviceRestored !== true
|
|
1170
|
+
&& failure?.transportCommitted !== true
|
|
1171
|
+
&& failure?.activationCommitUnknown !== true
|
|
1172
|
+
&& failure?.kind !== 'cleanup_incomplete'
|
|
1173
|
+
&& error?.code !== 'ESERVERPROVISIONALCLEANUPINCOMPLETE'
|
|
1174
|
+
&& await activeBackendIsProvablyUnavailable();
|
|
1175
|
+
const unavailable = annotatedUnavailable || observedUnavailable;
|
|
1176
|
+
const transition = {
|
|
1177
|
+
phase: retryScheduled ? 'retry-scheduled' : unavailable ? 'unavailable' : 'blocked',
|
|
1178
|
+
plan,
|
|
1179
|
+
...(retryScheduled ? { retryAfterMs } : {
|
|
1180
|
+
disposition: { code: String(failure?.stage ?? failure?.kind ?? error?.code ?? 'restart_failed') },
|
|
1181
|
+
}),
|
|
1182
|
+
};
|
|
1183
|
+
let projectionError = null;
|
|
1184
|
+
try {
|
|
1185
|
+
await publishLifecycle(transition);
|
|
1186
|
+
} catch (caught) {
|
|
1187
|
+
projectionError = caught;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
const activationAmbiguous = failure?.activationCommitUnknown === true
|
|
1191
|
+
&& failure?.activationTargetObserved === 'other';
|
|
1192
|
+
if (proxyController && (unavailable || activationAmbiguous)) {
|
|
1193
|
+
try {
|
|
1194
|
+
await proxyController.enterMaintenance?.(retryScheduled ? {
|
|
1195
|
+
retryAfterMs,
|
|
1196
|
+
retryable: true,
|
|
1197
|
+
message: 'Server reload recovery pending',
|
|
1198
|
+
} : {
|
|
1199
|
+
retryAfterMs: 0,
|
|
1200
|
+
retryable: false,
|
|
1201
|
+
message: activationAmbiguous
|
|
1202
|
+
? 'Server activation outcome is unresolved; operator attention is required.'
|
|
1203
|
+
: 'Server unavailable; edit or restart the stack.',
|
|
1204
|
+
});
|
|
1205
|
+
} catch (caught) {
|
|
1206
|
+
if (!projectionError) projectionError = caught;
|
|
1207
|
+
else projectionError.message += `; proxy maintenance projection failed: ${formatError(caught)}`;
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
if (projectionError) throw projectionError;
|
|
1211
|
+
return transition;
|
|
1212
|
+
};
|
|
1213
|
+
const emitTransitionEvent = (event, details = {}) => {
|
|
1214
|
+
try {
|
|
1215
|
+
const nowMs = Number(nowImpl?.());
|
|
1216
|
+
const monotonicMs = Number(monotonicNowImpl?.());
|
|
1217
|
+
const timestamp = new Date(Number.isFinite(nowMs) ? nowMs : Date.now()).toISOString();
|
|
1218
|
+
const payload = Object.fromEntries(Object.entries({
|
|
1219
|
+
event,
|
|
1220
|
+
timestamp,
|
|
1221
|
+
monotonicMs: Number.isFinite(monotonicMs) ? monotonicMs : null,
|
|
1222
|
+
...details,
|
|
1223
|
+
}).filter(([, value]) => value !== null && value !== undefined));
|
|
1224
|
+
logger.log(JSON.stringify(payload));
|
|
1225
|
+
} catch {
|
|
1226
|
+
// Observability must not become lifecycle authority.
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
const cleanupProvisionalChild = async (child) => {
|
|
1231
|
+
return await cleanupStackSpawnedChild({
|
|
1232
|
+
child,
|
|
1233
|
+
children,
|
|
1234
|
+
authoritativeChild: serverProcRef.current,
|
|
1235
|
+
killProcessGroupOwnedByStackImpl,
|
|
1236
|
+
killSpawnedChildImpl,
|
|
1237
|
+
terminateSpawnedChildImpl,
|
|
1238
|
+
stackName,
|
|
1239
|
+
envPath,
|
|
1240
|
+
env: serverEnv,
|
|
1241
|
+
});
|
|
1242
|
+
};
|
|
148
1243
|
|
|
149
|
-
|
|
150
|
-
|
|
1244
|
+
const retainUnresolvedChild = (child, {
|
|
1245
|
+
oldServerStopped = false,
|
|
1246
|
+
transportCommitted = false,
|
|
1247
|
+
serviceRestored = false,
|
|
1248
|
+
activationCommitUnknown = false,
|
|
1249
|
+
} = {}) => {
|
|
1250
|
+
unresolvedProvisional = updateUnresolvedChildRetention(unresolvedProvisional, child, {
|
|
1251
|
+
oldServerStopped,
|
|
1252
|
+
transportCommitted,
|
|
1253
|
+
serviceRestored,
|
|
1254
|
+
activationCommitUnknown,
|
|
1255
|
+
});
|
|
1256
|
+
};
|
|
151
1257
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
1258
|
+
const spawnServerBackend = async ({
|
|
1259
|
+
port,
|
|
1260
|
+
recentLineBuffer,
|
|
1261
|
+
envOverrides = {},
|
|
1262
|
+
reloadPlan,
|
|
1263
|
+
purpose = 'replacement',
|
|
1264
|
+
}) => {
|
|
1265
|
+
const nextEnv = { ...serverEnv, ...envOverrides, PORT: String(port) };
|
|
1266
|
+
let next = null;
|
|
1267
|
+
const transition = {
|
|
1268
|
+
generation: reloadPlan?.generation,
|
|
1269
|
+
mode: reloadPlan?.mode,
|
|
1270
|
+
migrationMode: reloadPlan?.migrationMode,
|
|
1271
|
+
targetPort: port,
|
|
1272
|
+
purpose,
|
|
1273
|
+
};
|
|
1274
|
+
let migrationStarted = false;
|
|
1275
|
+
let migrationCompleted = false;
|
|
1276
|
+
const startupDeadline = createServerReadinessDeadline({
|
|
1277
|
+
readinessTimeoutMs: resolveServerReadyTimeoutMs({ serverComponentName, env: nextEnv }),
|
|
1278
|
+
migrationTimeoutMs: resolveServerMigrationTimeoutMs({ env: nextEnv }),
|
|
1279
|
+
});
|
|
1280
|
+
if (reloadPlan?.migrationMode === 'skip') emitTransitionEvent('migration_skipped', transition);
|
|
1281
|
+
const onLine = (lineEvent) => {
|
|
1282
|
+
recentLineBuffer.onLine(lineEvent);
|
|
1283
|
+
const signal = startupDeadline.observeLine(lineEvent);
|
|
1284
|
+
if (reloadPlan?.migrationMode === 'skip') return;
|
|
1285
|
+
if (signal === 'migration_started' && !migrationStarted) {
|
|
1286
|
+
migrationStarted = true;
|
|
1287
|
+
emitTransitionEvent('migration_started', transition);
|
|
1288
|
+
} else if (signal === 'migration_completed' && migrationStarted && !migrationCompleted) {
|
|
1289
|
+
migrationCompleted = true;
|
|
1290
|
+
emitTransitionEvent('migration_completed', { ...transition, disposition: 'succeeded' });
|
|
1291
|
+
}
|
|
1292
|
+
};
|
|
1293
|
+
try {
|
|
1294
|
+
next = await pmSpawnScriptImpl({
|
|
1295
|
+
label: 'server',
|
|
1296
|
+
dir: serverDir,
|
|
1297
|
+
script: serverScript,
|
|
1298
|
+
env: nextEnv,
|
|
1299
|
+
options: { onLine },
|
|
1300
|
+
});
|
|
1301
|
+
children.push(next);
|
|
1302
|
+
emitTransitionEvent('replacement_spawned', { ...transition, pid: next.pid });
|
|
1303
|
+
const readyUrl = localServerUrlForPort(port);
|
|
1304
|
+
startupDeadline.startReadiness();
|
|
1305
|
+
await waitForServerReadyImpl(readyUrl, {
|
|
1306
|
+
timeoutMs: resolveServerReadyTimeoutMs({ serverComponentName, env: nextEnv }),
|
|
1307
|
+
childProcess: next,
|
|
1308
|
+
startupDeadline,
|
|
1309
|
+
});
|
|
1310
|
+
const listenerPid = await assertServerPortOwnedBySpawnedProcessGroup({
|
|
1311
|
+
serverPort: port,
|
|
1312
|
+
spawnedPid: next.pid,
|
|
1313
|
+
listListenPidsImpl,
|
|
1314
|
+
listListenPidsWithStatusImpl,
|
|
1315
|
+
getProcessGroupIdImpl,
|
|
1316
|
+
listenerOwnershipTimeoutMs,
|
|
1317
|
+
listenerOwnershipRetryDelayMs,
|
|
1318
|
+
});
|
|
1319
|
+
if (hasChildExited(next)) {
|
|
1320
|
+
throw new Error(
|
|
1321
|
+
`[local] server process exited after readiness check ` +
|
|
1322
|
+
`(pid=${next.pid}, code=${next.exitCode ?? 'null'}, signal=${next.signalCode ?? 'null'})`
|
|
1323
|
+
);
|
|
1324
|
+
}
|
|
1325
|
+
emitTransitionEvent('replacement_ready', { ...transition, pid: next.pid, listenerPid });
|
|
1326
|
+
return { child: next, listenerPid, readyUrl };
|
|
1327
|
+
} catch (error) {
|
|
1328
|
+
if (migrationStarted && !migrationCompleted) {
|
|
1329
|
+
emitTransitionEvent('migration_completed', { ...transition, pid: next?.pid, disposition: 'failed' });
|
|
1330
|
+
}
|
|
1331
|
+
if (next) {
|
|
1332
|
+
emitTransitionEvent('replacement_readiness_failed', { ...transition, pid: next.pid });
|
|
1333
|
+
}
|
|
1334
|
+
const cleaned = await cleanupProvisionalChild(next);
|
|
1335
|
+
if (!cleaned) {
|
|
1336
|
+
retainUnresolvedChild(next);
|
|
1337
|
+
const cleanupError = new Error(
|
|
1338
|
+
`[local] provisional server termination was not confirmed after startup failure ` +
|
|
1339
|
+
`(pid=${next?.pid ?? 'unknown'}, port=${port}): ${error instanceof Error ? error.message : String(error)}`,
|
|
1340
|
+
{ cause: error },
|
|
1341
|
+
);
|
|
1342
|
+
cleanupError.code = 'ESERVERPROVISIONALCLEANUPINCOMPLETE';
|
|
1343
|
+
cleanupError.provisionalChild = next;
|
|
1344
|
+
cleanupError.provisionalPort = port;
|
|
1345
|
+
throw cleanupError;
|
|
1346
|
+
}
|
|
1347
|
+
throw error;
|
|
1348
|
+
}
|
|
1349
|
+
};
|
|
159
1350
|
|
|
1351
|
+
const observePortAndDatabaseRelease = async ({ port, pid, scope, reloadPlan }) => {
|
|
1352
|
+
const transition = {
|
|
1353
|
+
generation: reloadPlan?.generation,
|
|
1354
|
+
mode: reloadPlan?.mode,
|
|
1355
|
+
currentPort: port,
|
|
1356
|
+
purpose: 'replacement',
|
|
1357
|
+
};
|
|
1358
|
+
let portDisposition = 'inconclusive';
|
|
1359
|
+
let databaseDisposition = getDbProviderFromServerEnv(serverEnv) === 'pglite'
|
|
1360
|
+
? 'pending'
|
|
1361
|
+
: 'not_applicable';
|
|
1362
|
+
try {
|
|
1363
|
+
const availability = await waitForTcpPortFreeImpl(port, {
|
|
1364
|
+
host: '127.0.0.1',
|
|
1365
|
+
timeoutMs: 5_000,
|
|
1366
|
+
intervalMs: 100,
|
|
1367
|
+
});
|
|
1368
|
+
portDisposition = availability?.status === 'free' ? 'free' : String(availability?.status ?? 'inconclusive');
|
|
1369
|
+
assertTcpPortReleased(availability, { port, pid, scope });
|
|
1370
|
+
await waitForProviderDbReleaseIfNeeded(serverEnv, { waitForPgliteDirLockReleaseImpl });
|
|
1371
|
+
if (databaseDisposition === 'pending') databaseDisposition = 'released';
|
|
1372
|
+
emitTransitionEvent('port_database_release_result', {
|
|
1373
|
+
...transition,
|
|
1374
|
+
disposition: 'released',
|
|
1375
|
+
portDisposition,
|
|
1376
|
+
databaseDisposition,
|
|
1377
|
+
});
|
|
1378
|
+
} catch (error) {
|
|
1379
|
+
if (error?.code === 'ESERVERBACKENDPORTOCCUPIED') portDisposition = 'occupied';
|
|
1380
|
+
if (error?.code === 'ESERVERBACKENDPORTRELEASEINCONCLUSIVE') portDisposition = 'inconclusive';
|
|
1381
|
+
if (portDisposition === 'free' && databaseDisposition === 'pending') databaseDisposition = 'blocked';
|
|
1382
|
+
const disposition = portDisposition === 'occupied'
|
|
1383
|
+
? 'occupied'
|
|
1384
|
+
: portDisposition === 'inconclusive'
|
|
1385
|
+
? 'inconclusive'
|
|
1386
|
+
: 'blocked';
|
|
1387
|
+
emitTransitionEvent('port_database_release_result', {
|
|
1388
|
+
...transition,
|
|
1389
|
+
disposition,
|
|
1390
|
+
portDisposition,
|
|
1391
|
+
databaseDisposition,
|
|
1392
|
+
});
|
|
1393
|
+
throw error;
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
const backendDrainTarget = (targetPort) => ({
|
|
1398
|
+
targetHost: '127.0.0.1',
|
|
1399
|
+
targetPort: Number(targetPort),
|
|
1400
|
+
});
|
|
1401
|
+
|
|
1402
|
+
const normalizeDrainTarget = (target) => {
|
|
1403
|
+
const targetPort = Number(target?.targetPort ?? target?.port);
|
|
1404
|
+
if (!Number.isInteger(targetPort) || targetPort <= 0 || targetPort > 65535) return null;
|
|
1405
|
+
const targetHost = String(target?.targetHost ?? target?.host ?? '127.0.0.1').trim();
|
|
1406
|
+
return {
|
|
1407
|
+
targetHost: targetHost || '127.0.0.1',
|
|
1408
|
+
targetPort,
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
const drainProxyTargets = async (targets, { graceMs = 0 } = {}) => {
|
|
1413
|
+
const seen = new Set();
|
|
1414
|
+
for (const target of targets) {
|
|
1415
|
+
const normalized = normalizeDrainTarget(target);
|
|
1416
|
+
if (!normalized) continue;
|
|
1417
|
+
const key = `${normalized.targetHost}:${normalized.targetPort}`;
|
|
1418
|
+
if (seen.has(key)) continue;
|
|
1419
|
+
seen.add(key);
|
|
1420
|
+
await proxyController.drainConnections?.({
|
|
1421
|
+
graceMs,
|
|
1422
|
+
targetHost: normalized.targetHost,
|
|
1423
|
+
targetPort: normalized.targetPort,
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1428
|
+
const flipProxyUpstreamAndDrainTargets = async ({
|
|
1429
|
+
targetPort,
|
|
1430
|
+
drainTargets = [],
|
|
1431
|
+
graceMs = resolveDevProxyDrainMs(serverEnv),
|
|
1432
|
+
transition = {},
|
|
1433
|
+
}) => {
|
|
1434
|
+
emitTransitionEvent('backend_activation_requested', { targetPort, ...transition });
|
|
1435
|
+
await proxyController.flipUpstream?.({ targetPort });
|
|
1436
|
+
emitTransitionEvent('backend_activation_acknowledged', { targetPort, ...transition });
|
|
1437
|
+
emitTransitionEvent('maintenance_exited', { targetPort, ...transition });
|
|
1438
|
+
await drainProxyTargets(drainTargets, { graceMs });
|
|
1439
|
+
};
|
|
1440
|
+
|
|
1441
|
+
const restartWithExclusiveDbProxy = async (reloadPlan, context = {}) => {
|
|
1442
|
+
const currentServerProc = serverProcRef?.current;
|
|
1443
|
+
const pid = Number(currentServerProc?.pid);
|
|
1444
|
+
if (!Number.isFinite(pid) || pid <= 1) return false;
|
|
1445
|
+
|
|
1446
|
+
const recentLineBuffer = createRecentLineBuffer(restartFailureTracker.policy.recentLineLimit);
|
|
1447
|
+
const oldBackendPort = activeBackendPort;
|
|
1448
|
+
let oldServerStopped = false;
|
|
1449
|
+
let replacement = null;
|
|
1450
|
+
let maintenanceEntered = false;
|
|
1451
|
+
let maintenanceTarget = null;
|
|
1452
|
+
let attemptedReplacementBackendPort = null;
|
|
1453
|
+
let replacementTransportCommitted = false;
|
|
1454
|
+
|
|
1455
|
+
const enterMaintenance = async () => {
|
|
1456
|
+
if (maintenanceEntered) return;
|
|
1457
|
+
maintenanceTarget = await proxyController.enterMaintenance?.({
|
|
1458
|
+
retryAfterMs: Math.max(1, resolveDevProxyDrainMs(serverEnv)),
|
|
1459
|
+
message: 'Server reload in progress',
|
|
1460
|
+
});
|
|
1461
|
+
maintenanceEntered = true;
|
|
1462
|
+
emitTransitionEvent('maintenance_entered', {
|
|
1463
|
+
generation: reloadPlan.generation,
|
|
1464
|
+
pid,
|
|
1465
|
+
currentPort: oldBackendPort,
|
|
1466
|
+
mode: reloadPlan.mode,
|
|
1467
|
+
purpose: 'replacement',
|
|
1468
|
+
});
|
|
160
1469
|
try {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
await
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
1470
|
+
await publishLifecycle({ phase: 'maintenance', plan: reloadPlan });
|
|
1471
|
+
} catch (error) {
|
|
1472
|
+
await flipProxyUpstreamAndDrainTargets({
|
|
1473
|
+
targetPort: oldBackendPort,
|
|
1474
|
+
drainTargets: [maintenanceTarget],
|
|
1475
|
+
transition: {
|
|
1476
|
+
generation: reloadPlan.generation,
|
|
1477
|
+
pid,
|
|
1478
|
+
mode: reloadPlan.mode,
|
|
1479
|
+
purpose: 'maintenance_restore',
|
|
1480
|
+
},
|
|
1481
|
+
});
|
|
1482
|
+
throw error;
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1486
|
+
const precheckObservationScope = createListenerOwnershipObservationScope({
|
|
1487
|
+
totalTimeoutMs: listenerOwnershipTimeoutMs,
|
|
1488
|
+
retryDelayMs: listenerOwnershipRetryDelayMs,
|
|
1489
|
+
listListenPidsImpl,
|
|
1490
|
+
listListenPidsWithStatusImpl,
|
|
1491
|
+
probeTcpPortBindingImpl,
|
|
1492
|
+
});
|
|
1493
|
+
const currentListenerPid = await resolveServerPortListenerPidInProcessGroup({
|
|
1494
|
+
serverPort: oldBackendPort,
|
|
1495
|
+
rootPid: pid,
|
|
1496
|
+
listListenPidsImpl,
|
|
1497
|
+
listListenPidsWithStatusImpl,
|
|
1498
|
+
getProcessGroupIdImpl,
|
|
1499
|
+
listenerObservationScope: precheckObservationScope,
|
|
1500
|
+
});
|
|
1501
|
+
const ownsCurrentListener = Number.isFinite(Number(currentListenerPid)) && Number(currentListenerPid) > 1;
|
|
1502
|
+
if (!ownsCurrentListener) {
|
|
1503
|
+
const free = await isServerPortProvenFree({
|
|
1504
|
+
serverPort: oldBackendPort,
|
|
1505
|
+
listenerObservationScope: precheckObservationScope,
|
|
1506
|
+
});
|
|
1507
|
+
const currentPidStillAlive = !hasChildExited(currentServerProc) && isPidAliveImpl(pid);
|
|
1508
|
+
if (currentPidStillAlive || !free) {
|
|
1509
|
+
throw new Error(
|
|
1510
|
+
`[local] watch restart refused: server backend port ${oldBackendPort} is not provably stack-owned.\n` +
|
|
1511
|
+
`[local] Fix: run 'hstack stack stop ${stackName}' then re-run.`
|
|
1512
|
+
);
|
|
1513
|
+
}
|
|
1514
|
+
if (typeof context.revalidateGeneration === 'function' && !await context.revalidateGeneration()) return false;
|
|
1515
|
+
oldServerStopped = true;
|
|
1516
|
+
await enterMaintenance();
|
|
1517
|
+
emitTransitionEvent('old_server_exited', {
|
|
1518
|
+
generation: reloadPlan.generation,
|
|
1519
|
+
pid,
|
|
1520
|
+
currentPort: oldBackendPort,
|
|
1521
|
+
mode: reloadPlan.mode,
|
|
1522
|
+
purpose: 'replacement',
|
|
1523
|
+
disposition: 'already_exited',
|
|
1524
|
+
});
|
|
1525
|
+
} else {
|
|
1526
|
+
if (typeof context.revalidateGeneration === 'function' && !await context.revalidateGeneration()) return false;
|
|
1527
|
+
await enterMaintenance();
|
|
1528
|
+
if (typeof context.revalidateGeneration === 'function' && !await context.revalidateGeneration()) {
|
|
1529
|
+
await flipProxyUpstreamAndDrainTargets({
|
|
1530
|
+
targetPort: oldBackendPort,
|
|
1531
|
+
drainTargets: [maintenanceTarget],
|
|
1532
|
+
transition: {
|
|
1533
|
+
generation: reloadPlan.generation,
|
|
1534
|
+
pid,
|
|
1535
|
+
mode: reloadPlan.mode,
|
|
1536
|
+
purpose: 'maintenance_restore',
|
|
1537
|
+
},
|
|
1538
|
+
});
|
|
1539
|
+
return false;
|
|
1540
|
+
}
|
|
1541
|
+
disarmActiveChildExit(currentServerProc);
|
|
1542
|
+
const killResult = await killServerProcessGroupForPlannedReload({
|
|
1543
|
+
child: currentServerProc,
|
|
1544
|
+
pid,
|
|
1545
|
+
terminationPid: Number(currentListenerPid),
|
|
1546
|
+
stackName,
|
|
1547
|
+
envPath,
|
|
1548
|
+
serverEnv,
|
|
1549
|
+
killProcessGroupOwnedByStackImpl,
|
|
1550
|
+
onTerminationRequested: () => emitTransitionEvent('old_server_shutdown_requested', {
|
|
1551
|
+
generation: reloadPlan.generation,
|
|
1552
|
+
pid,
|
|
1553
|
+
currentPort: oldBackendPort,
|
|
1554
|
+
mode: reloadPlan.mode,
|
|
1555
|
+
purpose: 'replacement',
|
|
1556
|
+
}),
|
|
1557
|
+
});
|
|
1558
|
+
if (!killResult.killed) {
|
|
1559
|
+
observeActiveChildExit(currentServerProc);
|
|
1560
|
+
await flipProxyUpstreamAndDrainTargets({
|
|
1561
|
+
targetPort: oldBackendPort,
|
|
1562
|
+
drainTargets: [maintenanceTarget],
|
|
1563
|
+
transition: {
|
|
1564
|
+
generation: reloadPlan.generation,
|
|
1565
|
+
pid,
|
|
1566
|
+
mode: reloadPlan.mode,
|
|
1567
|
+
purpose: 'maintenance_restore',
|
|
1568
|
+
},
|
|
1569
|
+
});
|
|
1570
|
+
throw new Error(
|
|
1571
|
+
`[local] watch restart refused: server pid ${pid} owns backend port ${oldBackendPort} but could not be stopped safely.\n` +
|
|
1572
|
+
`[local] Fix: run 'hstack stack stop ${stackName}' then re-run.`
|
|
1573
|
+
);
|
|
1574
|
+
}
|
|
1575
|
+
oldServerStopped = true;
|
|
1576
|
+
emitTransitionEvent('old_server_exited', {
|
|
1577
|
+
generation: reloadPlan.generation,
|
|
1578
|
+
pid,
|
|
1579
|
+
currentPort: oldBackendPort,
|
|
1580
|
+
mode: reloadPlan.mode,
|
|
1581
|
+
purpose: 'replacement',
|
|
1582
|
+
disposition: 'exited',
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
try {
|
|
1587
|
+
await observePortAndDatabaseRelease({
|
|
1588
|
+
port: oldBackendPort,
|
|
1589
|
+
pid,
|
|
1590
|
+
scope: 'server backend port',
|
|
1591
|
+
reloadPlan,
|
|
1592
|
+
});
|
|
1593
|
+
|
|
1594
|
+
const nextBackendPort = await pickNextFreeTcpPortImpl(oldBackendPort + 1, {
|
|
1595
|
+
host: '127.0.0.1',
|
|
1596
|
+
reservedPorts: new Set([Number(serverPort), oldBackendPort]),
|
|
1597
|
+
});
|
|
1598
|
+
attemptedReplacementBackendPort = nextBackendPort;
|
|
1599
|
+
|
|
1600
|
+
replacement = await spawnServerBackend({
|
|
1601
|
+
port: nextBackendPort,
|
|
1602
|
+
recentLineBuffer,
|
|
1603
|
+
envOverrides: serverReloadMigrationEnv(reloadPlan),
|
|
1604
|
+
reloadPlan,
|
|
1605
|
+
purpose: 'replacement',
|
|
1606
|
+
});
|
|
1607
|
+
emitTransitionEvent('backend_activation_requested', {
|
|
1608
|
+
generation: reloadPlan.generation,
|
|
1609
|
+
pid: replacement.child.pid,
|
|
1610
|
+
currentPort: oldBackendPort,
|
|
1611
|
+
targetPort: nextBackendPort,
|
|
1612
|
+
mode: reloadPlan.mode,
|
|
1613
|
+
purpose: 'replacement',
|
|
1614
|
+
});
|
|
1615
|
+
await proxyController.flipUpstream?.({ targetPort: nextBackendPort });
|
|
1616
|
+
emitTransitionEvent('backend_activation_acknowledged', {
|
|
1617
|
+
generation: reloadPlan.generation,
|
|
1618
|
+
pid: replacement.child.pid,
|
|
1619
|
+
currentPort: oldBackendPort,
|
|
1620
|
+
targetPort: nextBackendPort,
|
|
1621
|
+
mode: reloadPlan.mode,
|
|
1622
|
+
purpose: 'replacement',
|
|
1623
|
+
});
|
|
1624
|
+
emitTransitionEvent('maintenance_exited', {
|
|
1625
|
+
generation: reloadPlan.generation,
|
|
1626
|
+
pid: replacement.child.pid,
|
|
1627
|
+
targetPort: nextBackendPort,
|
|
1628
|
+
mode: reloadPlan.mode,
|
|
1629
|
+
purpose: 'replacement',
|
|
1630
|
+
});
|
|
1631
|
+
replacementTransportCommitted = true;
|
|
1632
|
+
serverProcRef.current = replacement.child;
|
|
1633
|
+
observeActiveChildExit(replacement.child);
|
|
1634
|
+
activeBackendPort = nextBackendPort;
|
|
1635
|
+
await drainProxyTargets([maintenanceTarget, backendDrainTarget(oldBackendPort)], {
|
|
1636
|
+
graceMs: resolveDevProxyDrainMs(serverEnv),
|
|
1637
|
+
});
|
|
1638
|
+
if (stackMode && runtimeStatePath) {
|
|
1639
|
+
await recordStackRuntimeServerActivationImpl(runtimeStatePath, {
|
|
1640
|
+
stablePort: serverPort,
|
|
1641
|
+
backendPort: nextBackendPort,
|
|
1642
|
+
proxyPid: proxyController?.pid,
|
|
1643
|
+
listenerPid: replacement.listenerPid,
|
|
1644
|
+
wrapperPid: replacement.child.pid,
|
|
1645
|
+
mode: 'proxy',
|
|
1646
|
+
restartMode: reloadPlan.mode,
|
|
1647
|
+
reloadGeneration: reloadPlan.generation,
|
|
1648
|
+
}, { recordStackRuntimeUpdateImpl });
|
|
1649
|
+
}
|
|
1650
|
+
logger.log(`[local] watch: server restarted behind proxy (pid=${replacement.child.pid}, backendPort=${nextBackendPort})`);
|
|
1651
|
+
return true;
|
|
1652
|
+
} catch (error) {
|
|
1653
|
+
if (error?.code === 'ESERVERPROVISIONALCLEANUPINCOMPLETE') {
|
|
1654
|
+
if (unresolvedProvisional?.child === error.provisionalChild) {
|
|
1655
|
+
retainUnresolvedChild(error.provisionalChild, { oldServerStopped });
|
|
1656
|
+
}
|
|
1657
|
+
if (stackMode && runtimeStatePath && Number(error?.provisionalChild?.pid) > 1) {
|
|
1658
|
+
try {
|
|
1659
|
+
await recordStackRuntimeUpdateImpl(runtimeStatePath, {
|
|
1660
|
+
processes: { serverDrainingPid: Number(error.provisionalChild.pid) },
|
|
1661
|
+
});
|
|
1662
|
+
} catch (projectionError) {
|
|
1663
|
+
error.message += `; failed to record provisional cleanup attention: ${projectionError instanceof Error ? projectionError.message : String(projectionError)}`;
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
throw annotateServerRestartError(error, classifyServerRestartFailure({
|
|
1667
|
+
error,
|
|
1668
|
+
stage: 'cleanup_incomplete',
|
|
1669
|
+
child: error.provisionalChild ?? null,
|
|
1670
|
+
oldServerStopped,
|
|
1671
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1672
|
+
}));
|
|
1673
|
+
}
|
|
1674
|
+
if (replacement) {
|
|
1675
|
+
let observedUpstream = null;
|
|
1676
|
+
let upstreamObservation = 'unavailable';
|
|
1677
|
+
if (!replacementTransportCommitted) {
|
|
1678
|
+
try {
|
|
1679
|
+
observedUpstream = await proxyController?.getUpstream?.();
|
|
1680
|
+
if (Number(observedUpstream?.targetPort) === Number(attemptedReplacementBackendPort)) {
|
|
1681
|
+
replacementTransportCommitted = true;
|
|
1682
|
+
upstreamObservation = 'candidate';
|
|
1683
|
+
} else {
|
|
1684
|
+
upstreamObservation = 'known_non_candidate';
|
|
1685
|
+
}
|
|
1686
|
+
} catch {
|
|
1687
|
+
observedUpstream = null;
|
|
1688
|
+
upstreamObservation = 'unavailable';
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
if (replacementTransportCommitted) {
|
|
1692
|
+
serverProcRef.current = replacement.child;
|
|
1693
|
+
observeActiveChildExit(replacement.child);
|
|
1694
|
+
activeBackendPort = attemptedReplacementBackendPort;
|
|
1695
|
+
try {
|
|
1696
|
+
if (stackMode && runtimeStatePath) {
|
|
1697
|
+
await recordStackRuntimeServerActivationImpl(runtimeStatePath, {
|
|
1698
|
+
stablePort: serverPort,
|
|
1699
|
+
backendPort: attemptedReplacementBackendPort,
|
|
1700
|
+
proxyPid: proxyController?.pid,
|
|
1701
|
+
listenerPid: replacement.listenerPid,
|
|
1702
|
+
wrapperPid: replacement.child.pid,
|
|
1703
|
+
mode: 'proxy',
|
|
1704
|
+
restartMode: reloadPlan.mode,
|
|
1705
|
+
reloadGeneration: reloadPlan.generation,
|
|
1706
|
+
}, { recordStackRuntimeUpdateImpl });
|
|
1707
|
+
}
|
|
1708
|
+
} catch (projectionError) {
|
|
1709
|
+
error.message += `; failed to record transport-committed replacement: ${projectionError instanceof Error ? projectionError.message : String(projectionError)}`;
|
|
1710
|
+
}
|
|
1711
|
+
throw annotateServerRestartError(error, classifyServerRestartFailure({
|
|
1712
|
+
error,
|
|
1713
|
+
stage: 'post_commit',
|
|
1714
|
+
child: replacement.child,
|
|
1715
|
+
oldServerStopped: true,
|
|
1716
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1717
|
+
transportCommitted: true,
|
|
1718
|
+
serviceRestored: true,
|
|
1719
|
+
}));
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
if (upstreamObservation === 'known_non_candidate') {
|
|
1723
|
+
const staleChild = replacement.child;
|
|
1724
|
+
replacement = null;
|
|
1725
|
+
if (!await cleanupProvisionalChild(staleChild)) {
|
|
1726
|
+
retainUnresolvedChild(staleChild, { oldServerStopped: true });
|
|
1727
|
+
const cleanupError = new Error(
|
|
1728
|
+
`[local] non-activated replacement termination was not confirmed (pid=${staleChild?.pid ?? 'unknown'}).`,
|
|
1729
|
+
);
|
|
1730
|
+
cleanupError.code = 'ESERVERPROVISIONALCLEANUPINCOMPLETE';
|
|
1731
|
+
cleanupError.provisionalChild = staleChild;
|
|
1732
|
+
throw cleanupError;
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
if (replacement) {
|
|
1736
|
+
retainUnresolvedChild(replacement.child, {
|
|
1737
|
+
oldServerStopped: true,
|
|
1738
|
+
activationCommitUnknown: true,
|
|
1739
|
+
});
|
|
1740
|
+
try {
|
|
1741
|
+
if (stackMode && runtimeStatePath) {
|
|
1742
|
+
await recordStackRuntimeServerActivationImpl(runtimeStatePath, {
|
|
1743
|
+
stablePort: serverPort,
|
|
1744
|
+
backendPort: oldBackendPort,
|
|
1745
|
+
proxyPid: proxyController?.pid,
|
|
1746
|
+
listenerPid: null,
|
|
1747
|
+
wrapperPid: null,
|
|
1748
|
+
drainingPid: replacement.listenerPid ?? replacement.child.pid,
|
|
1749
|
+
mode: 'proxy',
|
|
1750
|
+
restartMode: reloadPlan.mode,
|
|
1751
|
+
reloadGeneration: reloadPlan.generation,
|
|
1752
|
+
preserveReloadCompletion: true,
|
|
1753
|
+
}, { recordStackRuntimeUpdateImpl });
|
|
1754
|
+
}
|
|
1755
|
+
} catch (projectionError) {
|
|
1756
|
+
error.message += `; failed to record activation-ambiguous replacement: ${projectionError instanceof Error ? projectionError.message : String(projectionError)}`;
|
|
1757
|
+
}
|
|
1758
|
+
const ambiguousActivationError = annotateServerRestartError(error, classifyServerRestartFailure({
|
|
1759
|
+
error,
|
|
1760
|
+
stage: 'activation_commit_unknown',
|
|
1761
|
+
child: replacement.child,
|
|
1762
|
+
oldServerStopped: true,
|
|
1763
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1764
|
+
}));
|
|
1765
|
+
ambiguousActivationError.serverRestartFailure.activationCommitUnknown = true;
|
|
1766
|
+
ambiguousActivationError.serverRestartFailure.activationTargetObserved = 'inconclusive';
|
|
1767
|
+
throw ambiguousActivationError;
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
if (
|
|
1771
|
+
error?.code === 'ESERVERBACKENDPORTRELEASEINCONCLUSIVE'
|
|
1772
|
+
|| error?.code === 'ESERVERBACKENDPORTOCCUPIED'
|
|
1773
|
+
) {
|
|
1774
|
+
throw annotateServerRestartError(error, classifyServerRestartFailure({
|
|
1775
|
+
error,
|
|
1776
|
+
stage: 'post-stop',
|
|
1777
|
+
child: null,
|
|
1778
|
+
oldServerStopped,
|
|
1779
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1780
|
+
}));
|
|
1781
|
+
}
|
|
1782
|
+
if (oldServerStopped) {
|
|
1783
|
+
let recoveryTransportCommitted = false;
|
|
1784
|
+
let recoveryActivationAttempted = false;
|
|
1785
|
+
let recovery = null;
|
|
1786
|
+
try {
|
|
1787
|
+
recovery = await spawnServerBackend({
|
|
1788
|
+
port: oldBackendPort,
|
|
1789
|
+
recentLineBuffer,
|
|
1790
|
+
envOverrides: serverReloadMigrationEnv(reloadPlan),
|
|
1791
|
+
reloadPlan,
|
|
1792
|
+
purpose: 'recovery',
|
|
1793
|
+
});
|
|
1794
|
+
serverProcRef.current = recovery.child;
|
|
1795
|
+
observeActiveChildExit(recovery.child);
|
|
1796
|
+
activeBackendPort = oldBackendPort;
|
|
1797
|
+
recoveryActivationAttempted = true;
|
|
1798
|
+
emitTransitionEvent('backend_activation_requested', {
|
|
1799
|
+
generation: reloadPlan.generation,
|
|
1800
|
+
pid: recovery.child.pid,
|
|
1801
|
+
targetPort: oldBackendPort,
|
|
1802
|
+
mode: reloadPlan.mode,
|
|
1803
|
+
purpose: 'recovery',
|
|
1804
|
+
});
|
|
1805
|
+
await proxyController.flipUpstream?.({ targetPort: oldBackendPort });
|
|
1806
|
+
emitTransitionEvent('backend_activation_acknowledged', {
|
|
1807
|
+
generation: reloadPlan.generation,
|
|
1808
|
+
pid: recovery.child.pid,
|
|
1809
|
+
targetPort: oldBackendPort,
|
|
1810
|
+
mode: reloadPlan.mode,
|
|
1811
|
+
purpose: 'recovery',
|
|
1812
|
+
});
|
|
1813
|
+
emitTransitionEvent('maintenance_exited', {
|
|
1814
|
+
generation: reloadPlan.generation,
|
|
1815
|
+
pid: recovery.child.pid,
|
|
1816
|
+
targetPort: oldBackendPort,
|
|
1817
|
+
mode: reloadPlan.mode,
|
|
1818
|
+
purpose: 'recovery',
|
|
1819
|
+
});
|
|
1820
|
+
recoveryTransportCommitted = true;
|
|
1821
|
+
await drainProxyTargets([
|
|
1822
|
+
maintenanceTarget,
|
|
1823
|
+
attemptedReplacementBackendPort ? backendDrainTarget(attemptedReplacementBackendPort) : null,
|
|
1824
|
+
], { graceMs: resolveDevProxyDrainMs(serverEnv) });
|
|
1825
|
+
if (stackMode && runtimeStatePath) {
|
|
1826
|
+
await recordStackRuntimeServerActivationImpl(runtimeStatePath, {
|
|
1827
|
+
stablePort: serverPort,
|
|
1828
|
+
backendPort: oldBackendPort,
|
|
1829
|
+
proxyPid: proxyController?.pid,
|
|
1830
|
+
listenerPid: recovery.listenerPid,
|
|
1831
|
+
wrapperPid: recovery.child.pid,
|
|
1832
|
+
mode: 'proxy',
|
|
1833
|
+
restartMode: reloadPlan.mode,
|
|
1834
|
+
reloadGeneration: reloadPlan.generation,
|
|
1835
|
+
}, { recordStackRuntimeUpdateImpl });
|
|
1836
|
+
}
|
|
1837
|
+
} catch (recoveryError) {
|
|
1838
|
+
const recoveryMessage = recoveryError instanceof Error ? recoveryError.message : String(recoveryError);
|
|
1839
|
+
if (recoveryError?.code === 'ESERVERPROVISIONALCLEANUPINCOMPLETE') {
|
|
1840
|
+
if (unresolvedProvisional?.child === recoveryError.provisionalChild) {
|
|
1841
|
+
retainUnresolvedChild(recoveryError.provisionalChild, { oldServerStopped: true });
|
|
1842
|
+
}
|
|
1843
|
+
if (stackMode && runtimeStatePath && Number(recoveryError?.provisionalChild?.pid) > 1) {
|
|
1844
|
+
try {
|
|
1845
|
+
await recordStackRuntimeUpdateImpl(runtimeStatePath, {
|
|
1846
|
+
processes: { serverDrainingPid: Number(recoveryError.provisionalChild.pid) },
|
|
1847
|
+
});
|
|
1848
|
+
} catch (projectionError) {
|
|
1849
|
+
recoveryError.message += `; failed to record recovery cleanup attention: ${projectionError instanceof Error ? projectionError.message : String(projectionError)}`;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
throw annotateServerRestartError(recoveryError, classifyServerRestartFailure({
|
|
1853
|
+
error: recoveryError,
|
|
1854
|
+
stage: 'cleanup_incomplete',
|
|
1855
|
+
child: recoveryError.provisionalChild ?? null,
|
|
1856
|
+
oldServerStopped: true,
|
|
1857
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1858
|
+
}));
|
|
1859
|
+
}
|
|
1860
|
+
if (recovery && recoveryActivationAttempted && !recoveryTransportCommitted) {
|
|
1861
|
+
retainUnresolvedChild(recovery.child, {
|
|
1862
|
+
oldServerStopped: true,
|
|
1863
|
+
activationCommitUnknown: true,
|
|
1864
|
+
});
|
|
1865
|
+
try {
|
|
1866
|
+
if (stackMode && runtimeStatePath) {
|
|
1867
|
+
await recordStackRuntimeServerActivationImpl(runtimeStatePath, {
|
|
1868
|
+
stablePort: serverPort,
|
|
1869
|
+
backendPort: oldBackendPort,
|
|
1870
|
+
proxyPid: proxyController?.pid,
|
|
1871
|
+
listenerPid: null,
|
|
1872
|
+
wrapperPid: null,
|
|
1873
|
+
drainingPid: recovery.listenerPid ?? recovery.child.pid,
|
|
1874
|
+
mode: 'proxy',
|
|
1875
|
+
restartMode: reloadPlan.mode,
|
|
1876
|
+
reloadGeneration: reloadPlan.generation,
|
|
1877
|
+
preserveReloadCompletion: true,
|
|
1878
|
+
}, { recordStackRuntimeUpdateImpl });
|
|
1879
|
+
}
|
|
1880
|
+
} catch (projectionError) {
|
|
1881
|
+
recoveryError.message += `; failed to record activation-ambiguous current-code recovery: ${projectionError instanceof Error ? projectionError.message : String(projectionError)}`;
|
|
1882
|
+
}
|
|
1883
|
+
const ambiguousRecoveryError = annotateServerRestartError(recoveryError, classifyServerRestartFailure({
|
|
1884
|
+
error: recoveryError,
|
|
1885
|
+
stage: 'activation_commit_unknown',
|
|
1886
|
+
child: recovery.child,
|
|
1887
|
+
oldServerStopped: true,
|
|
1888
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1889
|
+
}));
|
|
1890
|
+
ambiguousRecoveryError.serverRestartFailure.activationCommitUnknown = true;
|
|
1891
|
+
throw ambiguousRecoveryError;
|
|
1892
|
+
}
|
|
1893
|
+
if (recoveryTransportCommitted) {
|
|
1894
|
+
try {
|
|
1895
|
+
if (stackMode && runtimeStatePath) {
|
|
1896
|
+
await recordStackRuntimeServerActivationImpl(runtimeStatePath, {
|
|
1897
|
+
stablePort: serverPort,
|
|
1898
|
+
backendPort: oldBackendPort,
|
|
1899
|
+
proxyPid: proxyController?.pid,
|
|
1900
|
+
listenerPid: recovery?.listenerPid ?? null,
|
|
1901
|
+
wrapperPid: recovery?.child?.pid ?? null,
|
|
1902
|
+
mode: 'proxy',
|
|
1903
|
+
restartMode: reloadPlan.mode,
|
|
1904
|
+
reloadGeneration: reloadPlan.generation,
|
|
1905
|
+
}, { recordStackRuntimeUpdateImpl });
|
|
1906
|
+
}
|
|
1907
|
+
} catch (projectionError) {
|
|
1908
|
+
recoveryError.message += `; failed to record transport-committed current-code recovery: ${projectionError instanceof Error ? projectionError.message : String(projectionError)}`;
|
|
1909
|
+
}
|
|
1910
|
+
const committedRecoveryError = annotateServerRestartError(recoveryError, classifyServerRestartFailure({
|
|
1911
|
+
error: recoveryError,
|
|
1912
|
+
stage: 'recovery_projection',
|
|
1913
|
+
child: serverProcRef.current,
|
|
1914
|
+
oldServerStopped: true,
|
|
1915
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1916
|
+
transportCommitted: true,
|
|
1917
|
+
serviceRestored: true,
|
|
1918
|
+
}));
|
|
1919
|
+
committedRecoveryError.serverRestartFailure.currentCodeRecoveryActive = true;
|
|
1920
|
+
throw committedRecoveryError;
|
|
1921
|
+
}
|
|
1922
|
+
throw annotateServerRestartError(
|
|
1923
|
+
error,
|
|
1924
|
+
classifyServerRestartFailure({
|
|
1925
|
+
error: new Error(`${error instanceof Error ? error.message : String(error)}; recovery failed: ${recoveryMessage}`),
|
|
1926
|
+
stage: 'recovery',
|
|
1927
|
+
child: null,
|
|
1928
|
+
oldServerStopped: true,
|
|
1929
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1930
|
+
})
|
|
1931
|
+
);
|
|
170
1932
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
1933
|
+
}
|
|
1934
|
+
throw annotateServerRestartError(
|
|
1935
|
+
error,
|
|
1936
|
+
classifyServerRestartFailure({
|
|
1937
|
+
error,
|
|
1938
|
+
stage: 'readiness',
|
|
1939
|
+
child: replacement?.child ?? null,
|
|
1940
|
+
oldServerStopped,
|
|
1941
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
1942
|
+
serviceRestored: oldServerStopped,
|
|
1943
|
+
})
|
|
1944
|
+
);
|
|
1945
|
+
}
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
const createReloadPlanForContext = (context = {}) => context.reloadPlans?.server ?? createDevServerReloadPlan({
|
|
1949
|
+
changedDescriptors: context.changedDescriptors,
|
|
1950
|
+
descriptorEvidenceConclusive: context.descriptorEvidenceConclusive,
|
|
1951
|
+
generation: context.generation,
|
|
1952
|
+
});
|
|
1953
|
+
|
|
1954
|
+
const restartOnce = async (context = {}) => {
|
|
1955
|
+
if (unresolvedProvisional?.child) {
|
|
1956
|
+
if (hasChildExited(unresolvedProvisional.child)) {
|
|
1957
|
+
removeChildFromChildren(children, unresolvedProvisional.child);
|
|
1958
|
+
unresolvedProvisional = null;
|
|
1959
|
+
} else {
|
|
1960
|
+
const error = new Error(
|
|
1961
|
+
`[local] watch restart refused: provisional or draining server termination was not confirmed and remains unresolved ` +
|
|
1962
|
+
`(pid=${unresolvedProvisional.child.pid ?? 'unknown'}); no competing server will be started.`,
|
|
1963
|
+
);
|
|
1964
|
+
error.code = 'ESERVERPROVISIONALCLEANUPINCOMPLETE';
|
|
1965
|
+
error.provisionalChild = unresolvedProvisional.child;
|
|
1966
|
+
const annotated = annotateServerRestartError(error, classifyServerRestartFailure({
|
|
1967
|
+
error,
|
|
1968
|
+
stage: 'cleanup_incomplete',
|
|
1969
|
+
child: unresolvedProvisional.child,
|
|
1970
|
+
oldServerStopped: unresolvedProvisional.oldServerStopped,
|
|
1971
|
+
recentLines: [],
|
|
1972
|
+
transportCommitted: unresolvedProvisional.transportCommitted,
|
|
1973
|
+
serviceRestored: unresolvedProvisional.serviceRestored,
|
|
1974
|
+
}));
|
|
1975
|
+
annotated.serverRestartFailure.activationCommitUnknown = unresolvedProvisional.activationCommitUnknown;
|
|
1976
|
+
throw annotated;
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
const reloadPlan = createReloadPlanForContext(context);
|
|
1980
|
+
if (proxyController) {
|
|
1981
|
+
return await restartWithExclusiveDbProxy(reloadPlan, context);
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
const currentServerProc = serverProcRef?.current;
|
|
1985
|
+
const pid = Number(currentServerProc?.pid);
|
|
1986
|
+
if (!Number.isFinite(pid) || pid <= 1) return false;
|
|
1987
|
+
|
|
1988
|
+
let restartStage = 'stopping-old';
|
|
1989
|
+
let oldServerStopped = false;
|
|
1990
|
+
const recentLineBuffer = createRecentLineBuffer(restartFailureTracker.policy.recentLineLimit);
|
|
1991
|
+
|
|
1992
|
+
logger.log('[local] watch: server preflight passed → restarting...');
|
|
1993
|
+
const precheckObservationScope = createListenerOwnershipObservationScope({
|
|
1994
|
+
totalTimeoutMs: listenerOwnershipTimeoutMs,
|
|
1995
|
+
retryDelayMs: listenerOwnershipRetryDelayMs,
|
|
1996
|
+
listListenPidsImpl,
|
|
1997
|
+
listListenPidsWithStatusImpl,
|
|
1998
|
+
probeTcpPortBindingImpl,
|
|
1999
|
+
});
|
|
2000
|
+
const currentListenerPid = await resolveServerPortListenerPidInProcessGroup({
|
|
2001
|
+
serverPort,
|
|
2002
|
+
rootPid: pid,
|
|
2003
|
+
listListenPidsImpl,
|
|
2004
|
+
listListenPidsWithStatusImpl,
|
|
2005
|
+
getProcessGroupIdImpl,
|
|
2006
|
+
listenerOwnershipTimeoutMs,
|
|
2007
|
+
listenerOwnershipRetryDelayMs,
|
|
2008
|
+
listenerObservationScope: precheckObservationScope,
|
|
2009
|
+
});
|
|
2010
|
+
const ownsCurrentListener = Number.isFinite(Number(currentListenerPid)) && Number(currentListenerPid) > 1;
|
|
2011
|
+
if (typeof context.revalidateGeneration === 'function' && !await context.revalidateGeneration()) return false;
|
|
2012
|
+
if (ownsCurrentListener) {
|
|
2013
|
+
disarmActiveChildExit(currentServerProc);
|
|
2014
|
+
const killResult = await killServerProcessGroupForPlannedReload({
|
|
2015
|
+
child: currentServerProc,
|
|
2016
|
+
pid,
|
|
2017
|
+
terminationPid: Number(currentListenerPid),
|
|
2018
|
+
stackName,
|
|
2019
|
+
envPath,
|
|
2020
|
+
serverEnv,
|
|
2021
|
+
killProcessGroupOwnedByStackImpl,
|
|
2022
|
+
onTerminationRequested: () => emitTransitionEvent('old_server_shutdown_requested', {
|
|
2023
|
+
generation: reloadPlan.generation,
|
|
2024
|
+
pid,
|
|
2025
|
+
currentPort: serverPort,
|
|
2026
|
+
mode: reloadPlan.mode,
|
|
2027
|
+
purpose: 'replacement',
|
|
2028
|
+
}),
|
|
2029
|
+
});
|
|
2030
|
+
if (!killResult.killed) {
|
|
2031
|
+
observeActiveChildExit(currentServerProc);
|
|
2032
|
+
throw new Error(
|
|
2033
|
+
`[local] watch restart refused: server pid ${pid} owns port ${serverPort} but could not be stopped safely.\n` +
|
|
2034
|
+
`[local] Fix: run 'hstack stack stop ${stackName}' then re-run.`
|
|
2035
|
+
);
|
|
2036
|
+
}
|
|
2037
|
+
oldServerStopped = true;
|
|
2038
|
+
emitTransitionEvent('old_server_exited', {
|
|
2039
|
+
generation: reloadPlan.generation,
|
|
2040
|
+
pid,
|
|
2041
|
+
currentPort: serverPort,
|
|
2042
|
+
mode: reloadPlan.mode,
|
|
2043
|
+
purpose: 'replacement',
|
|
2044
|
+
disposition: 'exited',
|
|
2045
|
+
});
|
|
2046
|
+
} else {
|
|
2047
|
+
const free = await isServerPortProvenFree({
|
|
2048
|
+
serverPort,
|
|
2049
|
+
listenerObservationScope: precheckObservationScope,
|
|
2050
|
+
});
|
|
2051
|
+
const currentPidStillAlive = !hasChildExited(currentServerProc) && isPidAliveImpl(pid);
|
|
2052
|
+
if (currentPidStillAlive) {
|
|
2053
|
+
throw new Error(
|
|
2054
|
+
`[local] watch restart refused: server pid ${pid} is still alive, but port ${serverPort} has no listener proof for it.\n` +
|
|
2055
|
+
`[local] Fix: run 'hstack stack stop ${stackName}' then re-run.`
|
|
2056
|
+
);
|
|
2057
|
+
}
|
|
2058
|
+
if (!free) {
|
|
2059
|
+
throw new Error(
|
|
2060
|
+
`[local] watch restart refused: server port ${serverPort} is occupied and the running PID does not own it.\n` +
|
|
2061
|
+
`[local] Fix: run 'hstack stack stop ${stackName}' then re-run.`
|
|
2062
|
+
);
|
|
2063
|
+
}
|
|
2064
|
+
oldServerStopped = true;
|
|
2065
|
+
emitTransitionEvent('old_server_exited', {
|
|
2066
|
+
generation: reloadPlan.generation,
|
|
2067
|
+
pid,
|
|
2068
|
+
currentPort: serverPort,
|
|
2069
|
+
mode: reloadPlan.mode,
|
|
2070
|
+
purpose: 'replacement',
|
|
2071
|
+
disposition: 'already_exited',
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2074
|
+
try {
|
|
2075
|
+
await observePortAndDatabaseRelease({
|
|
2076
|
+
port: serverPort,
|
|
2077
|
+
pid,
|
|
2078
|
+
scope: 'server port',
|
|
2079
|
+
reloadPlan,
|
|
2080
|
+
});
|
|
2081
|
+
} catch (error) {
|
|
2082
|
+
throw annotateServerRestartError(
|
|
2083
|
+
error,
|
|
2084
|
+
classifyServerRestartFailure({
|
|
2085
|
+
error,
|
|
2086
|
+
stage: 'post-stop',
|
|
2087
|
+
child: null,
|
|
2088
|
+
oldServerStopped,
|
|
2089
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
2090
|
+
})
|
|
2091
|
+
);
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
let next = null;
|
|
2095
|
+
let listenerPid = null;
|
|
2096
|
+
const spawnTransition = {
|
|
2097
|
+
generation: reloadPlan.generation,
|
|
2098
|
+
mode: reloadPlan.mode,
|
|
2099
|
+
migrationMode: reloadPlan.migrationMode,
|
|
2100
|
+
targetPort: serverPort,
|
|
2101
|
+
purpose: 'replacement',
|
|
2102
|
+
};
|
|
2103
|
+
let migrationStarted = false;
|
|
2104
|
+
let migrationCompleted = false;
|
|
2105
|
+
const startupDeadline = createServerReadinessDeadline({
|
|
2106
|
+
readinessTimeoutMs: resolveServerReadyTimeoutMs({ serverComponentName, env: serverEnv }),
|
|
2107
|
+
migrationTimeoutMs: resolveServerMigrationTimeoutMs({ env: serverEnv }),
|
|
2108
|
+
});
|
|
2109
|
+
if (reloadPlan.migrationMode === 'skip') emitTransitionEvent('migration_skipped', spawnTransition);
|
|
2110
|
+
const onLine = (lineEvent) => {
|
|
2111
|
+
recentLineBuffer.onLine(lineEvent);
|
|
2112
|
+
const signal = startupDeadline.observeLine(lineEvent);
|
|
2113
|
+
if (reloadPlan.migrationMode === 'skip') return;
|
|
2114
|
+
if (signal === 'migration_started' && !migrationStarted) {
|
|
2115
|
+
migrationStarted = true;
|
|
2116
|
+
emitTransitionEvent('migration_started', spawnTransition);
|
|
2117
|
+
} else if (signal === 'migration_completed' && migrationStarted && !migrationCompleted) {
|
|
2118
|
+
migrationCompleted = true;
|
|
2119
|
+
emitTransitionEvent('migration_completed', { ...spawnTransition, disposition: 'succeeded' });
|
|
2120
|
+
}
|
|
2121
|
+
};
|
|
2122
|
+
try {
|
|
2123
|
+
restartStage = 'spawn';
|
|
2124
|
+
next = await pmSpawnScriptImpl({
|
|
2125
|
+
label: 'server',
|
|
2126
|
+
dir: serverDir,
|
|
2127
|
+
script: serverScript,
|
|
2128
|
+
env: { ...serverEnv, ...serverReloadMigrationEnv(reloadPlan) },
|
|
2129
|
+
options: { onLine },
|
|
2130
|
+
});
|
|
2131
|
+
children.push(next);
|
|
2132
|
+
emitTransitionEvent('replacement_spawned', { ...spawnTransition, pid: next.pid });
|
|
2133
|
+
restartStage = 'readiness';
|
|
2134
|
+
startupDeadline.startReadiness();
|
|
2135
|
+
await waitForServerReadyImpl(internalServerUrl, {
|
|
2136
|
+
timeoutMs: resolveServerReadyTimeoutMs({ serverComponentName, env: serverEnv }),
|
|
2137
|
+
childProcess: next,
|
|
2138
|
+
startupDeadline,
|
|
2139
|
+
});
|
|
2140
|
+
restartStage = 'ownership';
|
|
2141
|
+
listenerPid = await assertServerPortOwnedBySpawnedProcessGroup({
|
|
2142
|
+
serverPort,
|
|
2143
|
+
spawnedPid: next.pid,
|
|
2144
|
+
listListenPidsImpl,
|
|
2145
|
+
listListenPidsWithStatusImpl,
|
|
2146
|
+
getProcessGroupIdImpl,
|
|
2147
|
+
listenerOwnershipTimeoutMs,
|
|
2148
|
+
listenerOwnershipRetryDelayMs,
|
|
2149
|
+
});
|
|
2150
|
+
if (hasChildExited(next)) {
|
|
2151
|
+
throw new Error(
|
|
2152
|
+
`[local] server process exited after readiness check ` +
|
|
2153
|
+
`(pid=${next.pid}, code=${next.exitCode ?? 'null'}, signal=${next.signalCode ?? 'null'})`
|
|
2154
|
+
);
|
|
2155
|
+
}
|
|
2156
|
+
emitTransitionEvent('replacement_ready', { ...spawnTransition, pid: next.pid, listenerPid });
|
|
2157
|
+
} catch (error) {
|
|
2158
|
+
if (migrationStarted && !migrationCompleted) {
|
|
2159
|
+
emitTransitionEvent('migration_completed', { ...spawnTransition, pid: next?.pid, disposition: 'failed' });
|
|
2160
|
+
}
|
|
2161
|
+
if (next) emitTransitionEvent('replacement_readiness_failed', { ...spawnTransition, pid: next.pid });
|
|
2162
|
+
const cleaned = await cleanupProvisionalChild(next);
|
|
2163
|
+
if (!cleaned) {
|
|
2164
|
+
retainUnresolvedChild(next, { oldServerStopped });
|
|
2165
|
+
const cleanupError = new Error(
|
|
2166
|
+
`[local] provisional server termination was not confirmed after direct reload startup failure ` +
|
|
2167
|
+
`(pid=${next?.pid ?? 'unknown'}, port=${serverPort}): ${error instanceof Error ? error.message : String(error)}`,
|
|
2168
|
+
{ cause: error },
|
|
2169
|
+
);
|
|
2170
|
+
cleanupError.code = 'ESERVERPROVISIONALCLEANUPINCOMPLETE';
|
|
2171
|
+
if (stackMode && runtimeStatePath && Number(next?.pid) > 1) {
|
|
2172
|
+
try {
|
|
2173
|
+
await recordStackRuntimeUpdateImpl(runtimeStatePath, {
|
|
2174
|
+
processes: { serverDrainingPid: Number(next.pid) },
|
|
2175
|
+
});
|
|
2176
|
+
} catch (projectionError) {
|
|
2177
|
+
cleanupError.message += `; failed to record provisional cleanup attention: ${projectionError instanceof Error ? projectionError.message : String(projectionError)}`;
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
throw annotateServerRestartError(
|
|
2181
|
+
cleanupError,
|
|
2182
|
+
classifyServerRestartFailure({
|
|
2183
|
+
error: cleanupError,
|
|
2184
|
+
stage: 'cleanup_incomplete',
|
|
2185
|
+
child: next,
|
|
2186
|
+
oldServerStopped,
|
|
2187
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
2188
|
+
}),
|
|
2189
|
+
);
|
|
2190
|
+
}
|
|
2191
|
+
throw annotateServerRestartError(
|
|
2192
|
+
error,
|
|
2193
|
+
classifyServerRestartFailure({
|
|
2194
|
+
error,
|
|
2195
|
+
stage: restartStage,
|
|
2196
|
+
child: next,
|
|
2197
|
+
oldServerStopped,
|
|
2198
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
2199
|
+
})
|
|
2200
|
+
);
|
|
2201
|
+
}
|
|
2202
|
+
serverProcRef.current = next;
|
|
2203
|
+
observeActiveChildExit(next);
|
|
2204
|
+
if (stackMode && runtimeStatePath) {
|
|
2205
|
+
try {
|
|
2206
|
+
await recordStackRuntimeServerActivationImpl(runtimeStatePath, {
|
|
2207
|
+
listenerPid,
|
|
2208
|
+
wrapperPid: next.pid,
|
|
2209
|
+
stablePort: serverPort,
|
|
2210
|
+
mode: 'direct',
|
|
2211
|
+
clearProxyState: true,
|
|
2212
|
+
restartMode: reloadPlan.mode,
|
|
2213
|
+
reloadGeneration: reloadPlan.generation,
|
|
2214
|
+
}, { recordStackRuntimeUpdateImpl });
|
|
2215
|
+
} catch (projectionError) {
|
|
2216
|
+
const error = new Error(
|
|
2217
|
+
`[local] direct replacement server is active, but runtime projection failed: ` +
|
|
2218
|
+
`${projectionError instanceof Error ? projectionError.message : String(projectionError)}`,
|
|
2219
|
+
{ cause: projectionError },
|
|
2220
|
+
);
|
|
2221
|
+
const annotated = annotateServerRestartError(error, classifyServerRestartFailure({
|
|
2222
|
+
error,
|
|
2223
|
+
stage: 'post_commit',
|
|
2224
|
+
child: next,
|
|
2225
|
+
oldServerStopped,
|
|
2226
|
+
recentLines: recentLineBuffer.snapshot(),
|
|
2227
|
+
serviceRestored: true,
|
|
2228
|
+
}));
|
|
2229
|
+
annotated.serverRestartFailure.directReplacementActive = true;
|
|
2230
|
+
throw annotated;
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
logger.log(`[local] watch: server restarted (pid=${next.pid}, port=${serverPort})`);
|
|
2234
|
+
return true;
|
|
2235
|
+
};
|
|
2236
|
+
|
|
2237
|
+
return {
|
|
2238
|
+
target: 'server',
|
|
2239
|
+
setUnexpectedExitHandler(handler) {
|
|
2240
|
+
disarmActiveChildExit();
|
|
2241
|
+
unexpectedExitHandler = typeof handler === 'function' ? handler : null;
|
|
2242
|
+
if (unexpectedExitHandler) observeActiveChildExit(serverProcRef?.current);
|
|
2243
|
+
},
|
|
2244
|
+
createPlan(context = {}) {
|
|
2245
|
+
return createReloadPlanForContext(context);
|
|
2246
|
+
},
|
|
2247
|
+
emitTransitionEvent(event, details) {
|
|
2248
|
+
emitTransitionEvent(event, details);
|
|
2249
|
+
},
|
|
2250
|
+
getBackoffRemainingMs() {
|
|
2251
|
+
return restartFailureTracker.getBackoffRemainingMs();
|
|
2252
|
+
},
|
|
2253
|
+
recordFailure(failure) {
|
|
2254
|
+
return restartFailureTracker.record(failure);
|
|
2255
|
+
},
|
|
2256
|
+
resetFailureBackoff() {
|
|
2257
|
+
restartFailureTracker.reset();
|
|
2258
|
+
},
|
|
2259
|
+
async build(context = {}) {
|
|
2260
|
+
if (!enabled || isShuttingDown?.()) return { skipped: true };
|
|
2261
|
+
const reloadPlan = createReloadPlanForContext(context);
|
|
2262
|
+
const transition = {
|
|
2263
|
+
generation: reloadPlan.generation,
|
|
2264
|
+
mode: reloadPlan.mode,
|
|
2265
|
+
migrationMode: reloadPlan.migrationMode,
|
|
2266
|
+
purpose: 'replacement',
|
|
2267
|
+
};
|
|
2268
|
+
emitTransitionEvent('preflight_started', transition);
|
|
2269
|
+
try {
|
|
2270
|
+
await preflightDevServerRestartImpl({
|
|
2271
|
+
serverDir,
|
|
2272
|
+
serverComponentName,
|
|
2273
|
+
serverEnv,
|
|
2274
|
+
reloadMigrationMode: reloadPlan.migrationMode,
|
|
2275
|
+
logger,
|
|
2276
|
+
});
|
|
2277
|
+
emitTransitionEvent('preflight_completed', { ...transition, disposition: 'succeeded' });
|
|
2278
|
+
return { ok: true };
|
|
2279
|
+
} catch (error) {
|
|
2280
|
+
emitTransitionEvent('preflight_completed', { ...transition, disposition: 'failed' });
|
|
2281
|
+
throw error;
|
|
2282
|
+
}
|
|
2283
|
+
},
|
|
2284
|
+
async publishLifecycle(transition) {
|
|
2285
|
+
return await publishLifecycle(transition);
|
|
2286
|
+
},
|
|
2287
|
+
async publishFailureDisposition(disposition) {
|
|
2288
|
+
return await publishFailureDisposition(disposition);
|
|
2289
|
+
},
|
|
2290
|
+
async restart(context = {}) {
|
|
2291
|
+
if (!enabled || isShuttingDown?.()) return { skipped: true };
|
|
2292
|
+
const backoffRemainingMs = restartFailureTracker.getBackoffRemainingMs();
|
|
2293
|
+
if (backoffRemainingMs > 0) {
|
|
2294
|
+
logger.error(
|
|
2295
|
+
`[local] watch: server restart suppressed; backing off for ${backoffRemainingMs}ms after repeated startup failures.`
|
|
2296
|
+
);
|
|
2297
|
+
return {
|
|
2298
|
+
skipped: true,
|
|
2299
|
+
reason: 'backoff',
|
|
2300
|
+
retryAfterMs: Math.ceil(backoffRemainingMs) + 1,
|
|
2301
|
+
};
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
const reloadPlan = createReloadPlanForContext(context);
|
|
2305
|
+
try {
|
|
2306
|
+
await publishLifecycle({
|
|
2307
|
+
phase: 'replacing',
|
|
2308
|
+
plan: reloadPlan,
|
|
174
2309
|
});
|
|
175
|
-
|
|
176
|
-
|
|
2310
|
+
const restarted = await restartOnce(context);
|
|
2311
|
+
if (restarted) restartFailureTracker.reset();
|
|
2312
|
+
return { restarted };
|
|
177
2313
|
} catch (e) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
2314
|
+
requestTransientListenerDiscoveryRetry(e);
|
|
2315
|
+
const failure = e?.serverRestartFailure;
|
|
2316
|
+
if (failure?.activationCommitUnknown) {
|
|
2317
|
+
logger.error(
|
|
2318
|
+
'[local] watch: exclusive proxy activation outcome is unresolved; the provisional server remains tracked and no competing recovery was started.'
|
|
2319
|
+
);
|
|
2320
|
+
} else if (failure?.directReplacementActive) {
|
|
2321
|
+
logger.error(
|
|
2322
|
+
'[local] watch: direct replacement server is active, but runtime projection needs attention.'
|
|
2323
|
+
);
|
|
2324
|
+
} else if (failure?.currentCodeRecoveryActive) {
|
|
2325
|
+
logger.error(
|
|
2326
|
+
'[local] watch: current-code recovery server is active at the proxy, but post-activation cleanup or runtime projection needs attention.'
|
|
2327
|
+
);
|
|
2328
|
+
} else if (failure?.transportCommitted) {
|
|
2329
|
+
logger.error(
|
|
2330
|
+
'[local] watch: server restart committed at the proxy; replacement remains active, but post-activation cleanup or runtime projection needs attention.'
|
|
2331
|
+
);
|
|
2332
|
+
} else if (failure?.serviceRestored) {
|
|
2333
|
+
logger.error(
|
|
2334
|
+
'[local] watch: replacement startup failed after the old server was stopped; a current-code recovery server is active, and the original reload failure is reported for attention.'
|
|
2335
|
+
);
|
|
2336
|
+
} else if (failure?.oldServerStopped) {
|
|
2337
|
+
logger.error(
|
|
2338
|
+
'[local] watch: server restart failed after the old server was stopped; service has not been restored and the proxy remains in maintenance.'
|
|
2339
|
+
);
|
|
2340
|
+
} else {
|
|
2341
|
+
logger.error('[local] watch: server restart failed; keeping existing process as-is (will retry on next change).');
|
|
2342
|
+
}
|
|
2343
|
+
const recentOutput = formatRecentServerOutput(failure?.recentLines);
|
|
2344
|
+
if (recentOutput) logger.error(recentOutput);
|
|
2345
|
+
const backoff = restartFailureTracker.record(failure);
|
|
2346
|
+
if (backoff.thresholdReached) {
|
|
2347
|
+
logger.error(
|
|
2348
|
+
`[local] watch: server failed to start ${backoff.count} times within ` +
|
|
2349
|
+
`${restartFailureTracker.policy.windowMs}ms; backing off for ${backoff.backoffMs}ms.`
|
|
2350
|
+
);
|
|
2351
|
+
}
|
|
2352
|
+
throw e;
|
|
183
2353
|
}
|
|
184
2354
|
},
|
|
185
|
-
}
|
|
2355
|
+
};
|
|
186
2356
|
}
|