@happier-dev/stack 0.2.0 → 0.2.11
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 +16 -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 +56 -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 +419 -162
- package/node_modules/@happier-dev/agents/dist/manifest.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/manifest.js +221 -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 +38 -1
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.js +145 -26
- 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 +16 -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 +62 -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 +162 -72
- 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 +71 -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 +84 -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 +216 -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 +12 -3
- 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 -2
- 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 +12 -0
- 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 +81 -22
- 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 +285 -36
- 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 +32 -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 +93 -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 +2 -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 +2 -0
- package/node_modules/@happier-dev/cli-common/dist/output/index.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/output/progress.d.ts +28 -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 +126 -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 +2 -1
- 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 +2 -1
- 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 +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 +58 -12
- 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/index.d.ts +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/index.js +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/index.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 +554 -79
- 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 +13 -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 -1
- 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 +197 -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 +18 -4
- 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 +1442 -365
- 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 +8 -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 +33 -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 +167 -0
- 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/package.json +57 -0
- 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 +419 -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 +249 -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 +180 -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 +35 -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 +21 -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 +1200 -130
- 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 +1373 -135
- 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 +121 -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/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/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 +18 -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 +45 -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/accountUsage.d.ts +382 -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 +264 -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 +1331 -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 +534 -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/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 +12 -12
- 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 +1016 -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 +152 -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 +37 -12
- package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.js +33 -3
- package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts +85 -27
- package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/executionRuns.js +24 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts +288 -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 +128 -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 +91 -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 +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/embeddedFeaturePolicies.generated.js +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.d.ts +6 -6
- 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 +71 -6
- 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 +36 -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 +40 -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 +107 -6
- 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 +111 -36
- package/node_modules/@happier-dev/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/index.js +109 -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 +7 -2
- 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 +15 -15
- 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 +555 -173
- package/node_modules/@happier-dev/protocol/dist/scm.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/scm.js +232 -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 +878 -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 +2723 -359
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js +190 -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/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 +258 -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 +67 -3
- package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.js +290 -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 +1574 -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 +397 -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 +91 -14
- package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/spawnSession.js +233 -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/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 +813 -24
- package/node_modules/@happier-dev/protocol/dist/updates.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/updates.js +148 -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 +191 -0
- package/scripts/dev_external_server_flags.test.mjs +142 -2
- 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.mjs +10 -2
- 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/env.mjs +2 -5
- package/scripts/env_cmd.test.mjs +32 -0
- package/scripts/ghops.test.mjs +515 -3
- 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/menubar.mjs +2 -2
- 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 +33 -0
- package/scripts/provision/linux-ubuntu-provision.test.mjs +19 -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 +283 -82
- 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_runtime.mjs +470 -484
- package/scripts/self_host_runtime.test.mjs +709 -36
- 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 +85 -87
- 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 +247 -96
- 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/tailscale.mjs +2 -2
- 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 +21 -0
- package/scripts/utils/dev/expo_dev.ensure_workspace_built.test.mjs +169 -3
- package/scripts/utils/dev/expo_dev.mjs +735 -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 +125 -0
- package/scripts/utils/dev_targets/mutagen_project.test.mjs +121 -0
- package/scripts/utils/dev_targets/remote_commands.mjs +478 -0
- package/scripts/utils/dev_targets/remote_commands.test.mjs +389 -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 +863 -0
- package/scripts/utils/dev_targets/supervisor.test.mjs +1382 -0
- package/scripts/utils/env/config.mjs +2 -7
- package/scripts/utils/env/env.mjs +9 -5
- 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 +8 -7
- 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/paths/canonical_home.mjs +11 -3
- package/scripts/utils/paths/canonical_home.test.mjs +11 -3
- package/scripts/utils/paths/paths.mjs +17 -5
- package/scripts/utils/paths/paths_home_env.test.mjs +43 -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 +415 -372
- package/scripts/utils/proc/pm_stack_cache_env.test.mjs +1299 -97
- 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/review/targets.mjs +2 -2
- 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/urls.mjs +3 -5
- package/scripts/utils/server/urls.test.mjs +22 -1
- 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/service/stack_autostart_resolution.mjs +6 -2
- package/scripts/utils/service/stack_autostart_resolution.test.mjs +13 -1
- package/scripts/utils/sqlite/sqlite_snapshot.mjs +820 -0
- package/scripts/utils/stack/context.mjs +2 -3
- package/scripts/utils/stack/context.test.mjs +18 -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 +10 -6
- package/scripts/utils/stack/dirs.test.mjs +33 -0
- 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 +643 -146
- 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/where.mjs +15 -4
- package/scripts/worktrees.mjs +18 -17
- 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 -29
- 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 -145
- 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/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 -119
- 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 -19
- 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 -80
- 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 -14
- 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,14 +1,19 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
1
2
|
import { existsSync } from 'node:fs';
|
|
2
3
|
import { spawnSync } from 'node:child_process';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { resolveRelayRuntimeDefaults } from '../firstPartyRuntime/relayRuntime.js';
|
|
10
|
-
import { installOrUpdateRelayRuntimeLocal } from '../firstPartyRuntime/relayRuntimeInstall.js';
|
|
11
|
-
import {
|
|
4
|
+
import { rm, readFile } from 'node:fs/promises';
|
|
5
|
+
import { createConnection } from 'node:net';
|
|
6
|
+
import { homedir } from 'node:os';
|
|
7
|
+
import { join, posix as posixPath } from 'node:path';
|
|
8
|
+
import { normalizePublicReleaseRingId } from '@happier-dev/release-runtime/releaseRings';
|
|
9
|
+
import { applyServicePlan, buildServiceCommandEnv, buildReadWindowsScheduledTaskStatusPowerShellCommand, buildServiceDefinition, parseWindowsScheduledTaskStatusPowerShellJson, planServiceAction, resolveServiceBackend, } from '../service/index.js';
|
|
10
|
+
import { checkRelayRuntimeHealth, resolveRelayRuntimeDefaults } from '../firstPartyRuntime/relayRuntime.js';
|
|
11
|
+
import { installOrUpdateRelayRuntimeLocal, shouldMigrateLegacyUnsuffixedRelayRuntimeInstallRoot, } from '../firstPartyRuntime/relayRuntimeInstall.js';
|
|
12
|
+
import { resolveNonCollidingRelayPort } from '../firstPartyRuntime/resolveNonCollidingRelayPort.js';
|
|
13
|
+
import { mergeSelfHostServerEnvText, parseEnvText, resolveSelfHostSqliteAutoMigrateValue, renderSelfHostServerEnvTextFromResolvedValues, resolveConfiguredSelfHostBaseUrl, renderPrismaCompatibleSqliteDatabaseUrl, resolveServerLightSqliteDatabaseUrlOptionsFromEnv, } from '../firstPartyRuntime/selfHostServerEnv.js';
|
|
14
|
+
import { buildRelayRuntimeHealthProbeCommand, RELAY_RUNTIME_HEALTH_OK_TOKEN } from './buildRelayRuntimeHealthProbeCommand.js';
|
|
15
|
+
import { buildRemoteRelayRuntimeInstallCommand } from './remoteRelayRuntimeInstallCommand.js';
|
|
16
|
+
const RELAY_RUNTIME_CHANNELS = ['stable', 'preview', 'publicdev'];
|
|
12
17
|
function quoteRemoteShellArg(value) {
|
|
13
18
|
const raw = String(value ?? '');
|
|
14
19
|
if (raw === '')
|
|
@@ -25,22 +30,43 @@ function sanitizeRemotePathSegment(value) {
|
|
|
25
30
|
return sanitized || 'payload';
|
|
26
31
|
}
|
|
27
32
|
function normalizeChannel(raw) {
|
|
28
|
-
|
|
29
|
-
if (normalized === 'preview')
|
|
30
|
-
return 'preview';
|
|
31
|
-
if (normalized === 'dev' || normalized === 'publicdev')
|
|
32
|
-
return 'publicdev';
|
|
33
|
-
return 'stable';
|
|
33
|
+
return normalizePublicReleaseRingId(raw) || 'stable';
|
|
34
34
|
}
|
|
35
35
|
function normalizeMode(raw) {
|
|
36
36
|
return String(raw ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
|
|
37
37
|
}
|
|
38
|
+
function formatRelayChannelLabel(channel) {
|
|
39
|
+
return channel === 'publicdev' ? 'dev' : channel;
|
|
40
|
+
}
|
|
41
|
+
function listOtherRelayChannels(channel) {
|
|
42
|
+
return RELAY_RUNTIME_CHANNELS.filter((candidate) => candidate !== channel);
|
|
43
|
+
}
|
|
38
44
|
function resolveRemoteHomeDirForRuntime() {
|
|
39
45
|
return '$HOME';
|
|
40
46
|
}
|
|
41
47
|
function resolveRemoteHomeDirForComponents() {
|
|
42
48
|
return '$HOME/.happier';
|
|
43
49
|
}
|
|
50
|
+
function buildRelayRuntimeServiceSpec(params) {
|
|
51
|
+
return {
|
|
52
|
+
label: params.label,
|
|
53
|
+
description: `Happier Relay Runtime (${params.label})`,
|
|
54
|
+
programArgs: [params.serverBinaryPath],
|
|
55
|
+
workingDirectory: params.installRoot,
|
|
56
|
+
env: params.env,
|
|
57
|
+
stdoutPath: params.stdoutPath,
|
|
58
|
+
stderrPath: params.stderrPath,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
async function resolveRemoteUserHomeDir(deps, params) {
|
|
62
|
+
const result = await deps.runRemoteText({
|
|
63
|
+
ssh: params.ssh,
|
|
64
|
+
knownHostsMode: params.knownHostsMode,
|
|
65
|
+
remoteCommand: `printf '%s\\n' \"$HOME\"`,
|
|
66
|
+
}).catch(() => ({ status: 1, stdout: '', stderr: '' }));
|
|
67
|
+
const candidate = result.status === 0 ? String(result.stdout ?? '').trim() : '';
|
|
68
|
+
return candidate.startsWith('/') ? candidate : null;
|
|
69
|
+
}
|
|
44
70
|
function resolveRemotePlatform(params) {
|
|
45
71
|
return params.target.os;
|
|
46
72
|
}
|
|
@@ -53,130 +79,146 @@ function resolveRelayDefaultsForRemote(params) {
|
|
|
53
79
|
homeDir,
|
|
54
80
|
});
|
|
55
81
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (params.platform === 'darwin' && params.arch === 'arm64') {
|
|
72
|
-
return [
|
|
73
|
-
posixPath.join(params.serverBinDir, 'node_modules', '.prisma', 'client', 'libquery_engine-darwin-arm64.dylib.node'),
|
|
74
|
-
posixPath.join(params.serverBinDir, 'generated', 'sqlite-client', 'libquery_engine-darwin-arm64.dylib.node'),
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
if (params.platform === 'linux' && params.arch === 'arm64') {
|
|
78
|
-
return [
|
|
79
|
-
posixPath.join(params.serverBinDir, 'node_modules', '.prisma', 'client', 'libquery_engine-linux-arm64-openssl-3.0.x.so.node'),
|
|
80
|
-
posixPath.join(params.serverBinDir, 'generated', 'sqlite-client', 'libquery_engine-linux-arm64-openssl-3.0.x.so.node'),
|
|
81
|
-
];
|
|
82
|
-
}
|
|
83
|
-
if (params.platform === 'linux' && params.arch === 'x64') {
|
|
84
|
-
return [
|
|
85
|
-
posixPath.join(params.serverBinDir, 'node_modules', '.prisma', 'client', 'libquery_engine-debian-openssl-3.0.x.so.node'),
|
|
86
|
-
posixPath.join(params.serverBinDir, 'generated', 'sqlite-client', 'libquery_engine-debian-openssl-3.0.x.so.node'),
|
|
87
|
-
];
|
|
88
|
-
}
|
|
89
|
-
return [];
|
|
90
|
-
}
|
|
91
|
-
async function resolveFirstRemoteExistingPath(deps, params) {
|
|
92
|
-
if (params.candidates.length === 0)
|
|
93
|
-
return '';
|
|
94
|
-
const chain = params.candidates
|
|
95
|
-
.map((candidate) => `if [ -f ${quoteRemoteShellArg(candidate)} ]; then echo ${quoteRemoteShellArg(candidate)}; exit 0; fi`)
|
|
96
|
-
.join('; ');
|
|
97
|
-
const cmd = ['set -eu', chain, 'echo ""'].join('; ');
|
|
98
|
-
const result = await deps.runRemoteText({
|
|
99
|
-
ssh: params.ssh,
|
|
100
|
-
knownHostsMode: params.knownHostsMode,
|
|
101
|
-
remoteCommand: cmd,
|
|
82
|
+
async function probeLocalPortOpen(params) {
|
|
83
|
+
return await new Promise((resolve) => {
|
|
84
|
+
const socket = createConnection({
|
|
85
|
+
host: params.host,
|
|
86
|
+
port: params.port,
|
|
87
|
+
});
|
|
88
|
+
const finish = (value) => {
|
|
89
|
+
socket.removeAllListeners();
|
|
90
|
+
socket.destroy();
|
|
91
|
+
resolve(value);
|
|
92
|
+
};
|
|
93
|
+
socket.setTimeout(params.timeoutMs);
|
|
94
|
+
socket.once('connect', () => finish(true));
|
|
95
|
+
socket.once('timeout', () => finish(false));
|
|
96
|
+
socket.once('error', () => finish(false));
|
|
102
97
|
});
|
|
103
|
-
return String(result.stdout ?? '').trim();
|
|
104
|
-
}
|
|
105
|
-
function buildRemoteRelayRuntimeEnvText(params) {
|
|
106
|
-
const normalizedDataDir = String(params.defaults.dataDir ?? '').replace(/\/+$/, '') || String(params.defaults.dataDir ?? '');
|
|
107
|
-
const migrationsDir = `${normalizedDataDir}/migrations/sqlite`;
|
|
108
|
-
const dbPath = `${normalizedDataDir}/happier-server-light.sqlite`;
|
|
109
|
-
const databaseUrl = `file:${dbPath}`;
|
|
110
|
-
const filesDir = `${params.defaults.dataDir}/files`;
|
|
111
|
-
const dbDir = `${params.defaults.dataDir}/pglite`;
|
|
112
|
-
const baseLines = [
|
|
113
|
-
`PORT=${params.defaults.serverPort}`,
|
|
114
|
-
`HAPPIER_SERVER_HOST=${params.defaults.serverHost}`,
|
|
115
|
-
'METRICS_ENABLED=false',
|
|
116
|
-
'HAPPIER_DB_PROVIDER=sqlite',
|
|
117
|
-
`DATABASE_URL=${databaseUrl}`,
|
|
118
|
-
'HAPPIER_FILES_BACKEND=local',
|
|
119
|
-
...(params.nodeModulesPath ? [`NODE_PATH=${params.nodeModulesPath}`] : []),
|
|
120
|
-
...(params.prismaEnginePath
|
|
121
|
-
? [
|
|
122
|
-
'PRISMA_CLIENT_ENGINE_TYPE=library',
|
|
123
|
-
`PRISMA_QUERY_ENGINE_LIBRARY=${params.prismaEnginePath}`,
|
|
124
|
-
]
|
|
125
|
-
: []),
|
|
126
|
-
`HAPPIER_SQLITE_AUTO_MIGRATE=${params.platform === 'darwin' ? '0' : '1'}`,
|
|
127
|
-
`HAPPIER_SQLITE_MIGRATIONS_DIR=${migrationsDir}`,
|
|
128
|
-
`HAPPIER_SERVER_LIGHT_DATA_DIR=${params.defaults.dataDir}`,
|
|
129
|
-
`HAPPIER_SERVER_LIGHT_FILES_DIR=${filesDir}`,
|
|
130
|
-
`HAPPIER_SERVER_LIGHT_DB_DIR=${dbDir}`,
|
|
131
|
-
'',
|
|
132
|
-
];
|
|
133
|
-
const baseText = `${baseLines.join('\n')}\n`;
|
|
134
|
-
const envText = params.envOverrides && Object.keys(params.envOverrides).length > 0
|
|
135
|
-
? applyEnvOverridesToEnvText(baseText, params.envOverrides)
|
|
136
|
-
: baseText;
|
|
137
|
-
return {
|
|
138
|
-
envText,
|
|
139
|
-
parsed: parseEnvText(envText),
|
|
140
|
-
};
|
|
141
98
|
}
|
|
142
|
-
async function
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
throw new Error('remoteStageParent is required');
|
|
146
|
-
}
|
|
147
|
-
const localRoot = await mkdtemp(join(tmpdir(), 'happier-relayhost-stage-'));
|
|
99
|
+
async function fetchLocalJson(params) {
|
|
100
|
+
const controller = new AbortController();
|
|
101
|
+
const timeout = setTimeout(() => controller.abort(), params.timeoutMs);
|
|
148
102
|
try {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
await params.deps.runRemoteText({
|
|
156
|
-
ssh: params.ssh,
|
|
157
|
-
knownHostsMode: params.knownHostsMode,
|
|
158
|
-
remoteCommand: `mkdir -p ${quoteRemoteShellArg(stageParent)}`,
|
|
103
|
+
const response = await fetch(params.url, {
|
|
104
|
+
signal: controller.signal,
|
|
105
|
+
headers: {
|
|
106
|
+
accept: 'application/json',
|
|
107
|
+
},
|
|
159
108
|
});
|
|
160
|
-
await params.deps.copyLocalDirectoryToRemote({
|
|
161
|
-
ssh: params.ssh,
|
|
162
|
-
knownHostsMode: params.knownHostsMode,
|
|
163
|
-
localPath: localRoot,
|
|
164
|
-
remotePath: stageParent,
|
|
165
|
-
});
|
|
166
|
-
const remoteRoot = `${stageParent}/${sanitizeRemotePathSegment(basename(localRoot))}`;
|
|
167
109
|
return {
|
|
168
|
-
|
|
169
|
-
|
|
110
|
+
ok: response.ok,
|
|
111
|
+
status: response.status,
|
|
112
|
+
body: await response.json().catch(() => ({})),
|
|
170
113
|
};
|
|
171
114
|
}
|
|
172
115
|
finally {
|
|
173
|
-
|
|
116
|
+
clearTimeout(timeout);
|
|
174
117
|
}
|
|
175
118
|
}
|
|
119
|
+
async function resolveLocalRelayHealth(params) {
|
|
120
|
+
const parsedUrl = new URL(params.baseUrl);
|
|
121
|
+
const port = Number.parseInt(parsedUrl.port, 10);
|
|
122
|
+
const result = await checkRelayRuntimeHealth({
|
|
123
|
+
host: parsedUrl.hostname,
|
|
124
|
+
port: Number.isInteger(port) && port > 0 ? port : 80,
|
|
125
|
+
path: params.healthPath,
|
|
126
|
+
timeoutMs: params.timeoutMs,
|
|
127
|
+
probePortOpen: async ({ host, port: localPort, timeoutMs }) => await probeLocalPortOpen({ host, port: localPort, timeoutMs }),
|
|
128
|
+
fetchJson: async ({ url, timeoutMs }) => await fetchLocalJson({ url, timeoutMs }),
|
|
129
|
+
});
|
|
130
|
+
return result.reachable;
|
|
131
|
+
}
|
|
132
|
+
async function resolveLocalDesiredRelayUrl(params) {
|
|
133
|
+
const defaults = resolveRelayRuntimeDefaults({
|
|
134
|
+
platform: process.platform,
|
|
135
|
+
mode: params.mode,
|
|
136
|
+
channel: params.channel,
|
|
137
|
+
homeDir: homedir(),
|
|
138
|
+
});
|
|
139
|
+
const envPath = join(defaults.configDir, 'server.env');
|
|
140
|
+
const existingEnvText = existsSync(envPath) ? await readFile(envPath, 'utf8').catch(() => '') : '';
|
|
141
|
+
// Resolve the port we'll advertise for this channel. When there's no
|
|
142
|
+
// existing server.env for this channel AND the user didn't explicitly pass
|
|
143
|
+
// a PORT override, avoid colliding with another channel's relay on the
|
|
144
|
+
// same machine: each channel stores independent data, so two relays on
|
|
145
|
+
// the same URL would share a profile id and cross-wire daemon state.
|
|
146
|
+
const existingPortRaw = existingEnvText ? String(parseEnvText(existingEnvText).PORT ?? '').trim() : '';
|
|
147
|
+
const overridePortRaw = String((params.envOverrides ?? {}).PORT ?? '').trim();
|
|
148
|
+
const configuredPortRaw = overridePortRaw || existingPortRaw;
|
|
149
|
+
const configuredPort = configuredPortRaw && Number.isInteger(Number.parseInt(configuredPortRaw, 10))
|
|
150
|
+
? Number.parseInt(configuredPortRaw, 10)
|
|
151
|
+
: null;
|
|
152
|
+
const resolvedPort = await resolveNonCollidingRelayPort({
|
|
153
|
+
platform: process.platform,
|
|
154
|
+
mode: params.mode,
|
|
155
|
+
channel: params.channel,
|
|
156
|
+
homeDir: homedir(),
|
|
157
|
+
defaultPort: defaults.serverPort,
|
|
158
|
+
configuredPort,
|
|
159
|
+
});
|
|
160
|
+
const sqliteEnv = {
|
|
161
|
+
...process.env,
|
|
162
|
+
...(existingEnvText ? parseEnvText(existingEnvText) : {}),
|
|
163
|
+
...(params.envOverrides ?? {}),
|
|
164
|
+
};
|
|
165
|
+
const baseEnvText = renderSelfHostServerEnvTextFromResolvedValues({
|
|
166
|
+
port: resolvedPort,
|
|
167
|
+
host: defaults.serverHost,
|
|
168
|
+
dataDir: defaults.dataDir,
|
|
169
|
+
filesDir: join(defaults.dataDir, 'files'),
|
|
170
|
+
dbDir: join(defaults.dataDir, 'pglite'),
|
|
171
|
+
databaseUrl: renderPrismaCompatibleSqliteDatabaseUrl({
|
|
172
|
+
dbPath: join(defaults.dataDir, 'happier-server-light.sqlite'),
|
|
173
|
+
platform: process.platform,
|
|
174
|
+
sqlite: resolveServerLightSqliteDatabaseUrlOptionsFromEnv(sqliteEnv),
|
|
175
|
+
}),
|
|
176
|
+
sqliteAutoMigrate: resolveSelfHostSqliteAutoMigrateValue(),
|
|
177
|
+
sqliteMigrationsDir: join(defaults.dataDir, 'migrations', 'sqlite'),
|
|
178
|
+
});
|
|
179
|
+
const envText = mergeSelfHostServerEnvText({
|
|
180
|
+
baseEnvText,
|
|
181
|
+
existingEnvText,
|
|
182
|
+
overrides: params.envOverrides,
|
|
183
|
+
});
|
|
184
|
+
return resolveConfiguredSelfHostBaseUrl({
|
|
185
|
+
fallbackBaseUrl: `http://${defaults.serverHost}:${resolvedPort}`,
|
|
186
|
+
envText,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function createRelayLaneConflictError(params) {
|
|
190
|
+
return new Error(`A ${formatRelayChannelLabel(params.conflictingChannel)} relay is already installed at ${params.relayUrl}. `
|
|
191
|
+
+ 'Relay lanes keep separate data and are not replaced automatically. '
|
|
192
|
+
+ `Use --channel ${formatRelayChannelLabel(params.conflictingChannel)} to manage that relay, choose a different PORT, or uninstall it before installing ${formatRelayChannelLabel(params.requestedChannel)}.`);
|
|
193
|
+
}
|
|
194
|
+
async function resolveRemoteRelayHealth(params) {
|
|
195
|
+
const probeResult = await params.deps.runRemoteText({
|
|
196
|
+
ssh: params.ssh,
|
|
197
|
+
knownHostsMode: params.knownHostsMode,
|
|
198
|
+
remoteCommand: buildRelayRuntimeHealthProbeCommand({
|
|
199
|
+
baseUrl: params.relayUrl,
|
|
200
|
+
path: params.healthPath,
|
|
201
|
+
maxAttempts: params.maxAttempts ?? 1,
|
|
202
|
+
sleepSeconds: params.sleepSeconds ?? 0,
|
|
203
|
+
}),
|
|
204
|
+
}).catch(() => ({ status: 1, stdout: '', stderr: '' }));
|
|
205
|
+
const probeStdout = String(probeResult.stdout ?? '');
|
|
206
|
+
return probeResult.status === 0 || probeStdout.includes(RELAY_RUNTIME_HEALTH_OK_TOKEN);
|
|
207
|
+
}
|
|
208
|
+
function buildRemoteProbeExistsCommand(params) {
|
|
209
|
+
const flag = params.kind === 'dir' ? '-d' : '-f';
|
|
210
|
+
return `if [ ${flag} ${quoteRemoteShellArg(params.path)} ]; then echo yes; else echo no; fi`;
|
|
211
|
+
}
|
|
176
212
|
function buildRemoteReadJsonFileCommand(path) {
|
|
177
213
|
const quoted = quoteRemoteShellArg(path);
|
|
178
214
|
return `if [ -f ${quoted} ]; then cat ${quoted}; else echo ''; fi`;
|
|
179
215
|
}
|
|
216
|
+
function buildRemoteReadTextFileCommand(params) {
|
|
217
|
+
const quoted = quoteRemoteShellArg(params.path);
|
|
218
|
+
const prefix = String(params.privilegedPrefix ?? '').trim();
|
|
219
|
+
const cat = prefix ? `${prefix}cat` : 'cat';
|
|
220
|
+
return `if [ -f ${quoted} ]; then ${cat} ${quoted} 2>/dev/null || true; else echo ''; fi`;
|
|
221
|
+
}
|
|
180
222
|
function tryParseJsonObject(text) {
|
|
181
223
|
const raw = String(text ?? '').trim();
|
|
182
224
|
if (!raw)
|
|
@@ -191,22 +233,234 @@ function tryParseJsonObject(text) {
|
|
|
191
233
|
return null;
|
|
192
234
|
}
|
|
193
235
|
}
|
|
236
|
+
function parseLastJsonLineObject(text) {
|
|
237
|
+
const lines = String(text ?? '').split(/\r?\n/u).map((line) => line.trim()).filter(Boolean);
|
|
238
|
+
for (let index = lines.length - 1; index >= 0; index -= 1) {
|
|
239
|
+
const parsed = tryParseJsonObject(lines[index]);
|
|
240
|
+
if (parsed)
|
|
241
|
+
return parsed;
|
|
242
|
+
}
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
194
245
|
function buildRemoteServiceStatusCommand(params) {
|
|
195
246
|
const svc = `${params.serviceName}.service`;
|
|
196
247
|
if (params.backend === 'systemd-user') {
|
|
197
|
-
return `systemctl --user show ${quoteRemoteShellArg(svc)} --property=UnitFileState,ActiveState,SubState
|
|
248
|
+
return wrapRemoteSystemdUserCommand(`systemctl --user show ${quoteRemoteShellArg(svc)} --property=UnitFileState,ActiveState,SubState`);
|
|
198
249
|
}
|
|
199
250
|
if (params.backend === 'systemd-system') {
|
|
200
|
-
return `systemctl show ${quoteRemoteShellArg(svc)} --property=UnitFileState,ActiveState,SubState
|
|
251
|
+
return `systemctl show ${quoteRemoteShellArg(svc)} --property=UnitFileState,ActiveState,SubState`;
|
|
201
252
|
}
|
|
202
253
|
if (params.backend === 'launchd-user' || params.backend === 'launchd-system') {
|
|
203
254
|
return `launchctl list ${quoteRemoteShellArg(params.serviceName)}`;
|
|
204
255
|
}
|
|
205
256
|
throw new Error(`Unsupported remote backend: ${params.backend}`);
|
|
206
257
|
}
|
|
258
|
+
function wrapRemoteSystemdUserCommand(command) {
|
|
259
|
+
return `XDG_RUNTIME_DIR="\${XDG_RUNTIME_DIR:-/run/user/$(id -u)}" DBUS_SESSION_BUS_ADDRESS="\${DBUS_SESSION_BUS_ADDRESS:-unix:path=\${XDG_RUNTIME_DIR}/bus}" ${command}`;
|
|
260
|
+
}
|
|
261
|
+
function parseSystemctlShowOutput(stdout) {
|
|
262
|
+
const lines = String(stdout ?? '').split(/\r?\n/u).map((line) => line.trim()).filter(Boolean);
|
|
263
|
+
const map = new Map();
|
|
264
|
+
const rawValues = [];
|
|
265
|
+
for (const line of lines) {
|
|
266
|
+
const eqIndex = line.indexOf('=');
|
|
267
|
+
if (eqIndex > 0) {
|
|
268
|
+
const key = line.slice(0, eqIndex).trim().toLowerCase();
|
|
269
|
+
const value = line.slice(eqIndex + 1).trim();
|
|
270
|
+
if (key) {
|
|
271
|
+
map.set(key, value);
|
|
272
|
+
}
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
rawValues.push(line);
|
|
276
|
+
}
|
|
277
|
+
const unitFileState = map.get('unitfilestate') ?? rawValues[0] ?? '';
|
|
278
|
+
const activeState = map.get('activestate') ?? rawValues[1] ?? '';
|
|
279
|
+
const subState = map.get('substate') ?? rawValues[2] ?? '';
|
|
280
|
+
const loadState = map.get('loadstate') ?? '';
|
|
281
|
+
return { unitFileState, activeState, subState, loadState };
|
|
282
|
+
}
|
|
283
|
+
function normalizeComparablePathKey(value) {
|
|
284
|
+
const trimmed = String(value ?? '').trim().replace(/[\\/]+$/, '');
|
|
285
|
+
return trimmed || null;
|
|
286
|
+
}
|
|
287
|
+
function resolveSystemdUnitDefinitionPath(params) {
|
|
288
|
+
const filename = `${params.unitName}.service`;
|
|
289
|
+
if (params.backend === 'systemd-system') {
|
|
290
|
+
return join('/etc/systemd/system', filename);
|
|
291
|
+
}
|
|
292
|
+
return join(params.homeDir, '.config', 'systemd', 'user', filename);
|
|
293
|
+
}
|
|
294
|
+
function resolveLaunchdPlistDefinitionPath(params) {
|
|
295
|
+
const filename = `${params.label}.plist`;
|
|
296
|
+
if (params.backend === 'launchd-system') {
|
|
297
|
+
return join('/Library/LaunchDaemons', filename);
|
|
298
|
+
}
|
|
299
|
+
return join(params.homeDir, 'Library', 'LaunchAgents', filename);
|
|
300
|
+
}
|
|
301
|
+
function resolveWindowsWrapperDefinitionPath(params) {
|
|
302
|
+
if (params.backend === 'schtasks-system') {
|
|
303
|
+
return `C:\\ProgramData\\happier\\services\\${params.label}.ps1`;
|
|
304
|
+
}
|
|
305
|
+
return `${params.homeDir}\\.happier\\services\\${params.label}.ps1`;
|
|
306
|
+
}
|
|
307
|
+
function parseSystemdUnitWorkingDirectory(unitText) {
|
|
308
|
+
const lines = String(unitText ?? '').split(/\r?\n/u);
|
|
309
|
+
for (const line of lines) {
|
|
310
|
+
const trimmed = line.trim();
|
|
311
|
+
if (!trimmed || trimmed.startsWith('#') || trimmed.startsWith(';'))
|
|
312
|
+
continue;
|
|
313
|
+
if (!trimmed.toLowerCase().startsWith('workingdirectory='))
|
|
314
|
+
continue;
|
|
315
|
+
const value = trimmed.slice('WorkingDirectory='.length).trim();
|
|
316
|
+
return value || null;
|
|
317
|
+
}
|
|
318
|
+
return null;
|
|
319
|
+
}
|
|
320
|
+
function parseSystemdUnitEnvironmentText(unitText) {
|
|
321
|
+
const entries = [];
|
|
322
|
+
for (const line of String(unitText ?? '').split(/\r?\n/u)) {
|
|
323
|
+
const trimmed = line.trim();
|
|
324
|
+
if (!trimmed || trimmed.startsWith('#') || trimmed.startsWith(';'))
|
|
325
|
+
continue;
|
|
326
|
+
if (!trimmed.toLowerCase().startsWith('environment='))
|
|
327
|
+
continue;
|
|
328
|
+
const raw = trimmed.slice('Environment='.length).trim();
|
|
329
|
+
if (!raw)
|
|
330
|
+
continue;
|
|
331
|
+
const unquoted = raw.length >= 2 && raw.startsWith('"') && raw.endsWith('"')
|
|
332
|
+
? raw.slice(1, -1)
|
|
333
|
+
: raw;
|
|
334
|
+
if (!/^[A-Za-z_][A-Za-z0-9_]*=/u.test(unquoted))
|
|
335
|
+
continue;
|
|
336
|
+
entries.push(unquoted);
|
|
337
|
+
}
|
|
338
|
+
return entries.join('\n');
|
|
339
|
+
}
|
|
340
|
+
function xmlUnescape(value) {
|
|
341
|
+
return String(value ?? '')
|
|
342
|
+
.replaceAll('"', '"')
|
|
343
|
+
.replaceAll(''', "'")
|
|
344
|
+
.replaceAll('>', '>')
|
|
345
|
+
.replaceAll('<', '<')
|
|
346
|
+
.replaceAll('&', '&');
|
|
347
|
+
}
|
|
348
|
+
function parseLaunchdPlistWorkingDirectory(plistText) {
|
|
349
|
+
const match = String(plistText ?? '').match(/<key>\s*WorkingDirectory\s*<\/key>\s*<string>([\s\S]*?)<\/string>/iu);
|
|
350
|
+
const value = match?.[1]?.trim();
|
|
351
|
+
return value ? xmlUnescape(value) : null;
|
|
352
|
+
}
|
|
353
|
+
function parseWindowsWrapperWorkingDirectory(wrapperText) {
|
|
354
|
+
const match = String(wrapperText ?? '').match(/Set-Location\s+-LiteralPath\s+"((?:`.|[^"])*)"/iu);
|
|
355
|
+
const raw = match?.[1]?.trim();
|
|
356
|
+
if (!raw)
|
|
357
|
+
return null;
|
|
358
|
+
return raw.replace(/`(["`])/gu, '$1') || null;
|
|
359
|
+
}
|
|
360
|
+
function parseServiceDefinitionWorkingDirectory(params) {
|
|
361
|
+
if (params.backend === 'systemd-user' || params.backend === 'systemd-system') {
|
|
362
|
+
return parseSystemdUnitWorkingDirectory(params.definitionText);
|
|
363
|
+
}
|
|
364
|
+
if (params.backend === 'launchd-user' || params.backend === 'launchd-system') {
|
|
365
|
+
return parseLaunchdPlistWorkingDirectory(params.definitionText);
|
|
366
|
+
}
|
|
367
|
+
if (params.backend === 'schtasks-user' || params.backend === 'schtasks-system') {
|
|
368
|
+
return parseWindowsWrapperWorkingDirectory(params.definitionText);
|
|
369
|
+
}
|
|
370
|
+
return null;
|
|
371
|
+
}
|
|
372
|
+
function resolveServiceDefinitionBaseUrl(params) {
|
|
373
|
+
if (params.backend !== 'systemd-user' && params.backend !== 'systemd-system') {
|
|
374
|
+
return null;
|
|
375
|
+
}
|
|
376
|
+
const envText = parseSystemdUnitEnvironmentText(params.definitionText);
|
|
377
|
+
if (!envText.trim())
|
|
378
|
+
return null;
|
|
379
|
+
return resolveConfiguredSelfHostBaseUrl({
|
|
380
|
+
fallbackBaseUrl: params.fallbackBaseUrl,
|
|
381
|
+
envText,
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
async function readComparableFileHash(path) {
|
|
385
|
+
if (!existsSync(path))
|
|
386
|
+
return null;
|
|
387
|
+
const contents = await readFile(path).catch(() => null);
|
|
388
|
+
if (!contents)
|
|
389
|
+
return null;
|
|
390
|
+
return createHash('sha256').update(contents).digest('hex');
|
|
391
|
+
}
|
|
392
|
+
function renderLocalRelayStrandedLegacyStateMessage(params) {
|
|
393
|
+
return `Detected older ${formatRelayChannelLabel(params.channel)} relay state at ${params.legacyInstallRoot} beside the current relay root ${params.currentInstallRoot}. `
|
|
394
|
+
+ 'The two roots use different data secrets, so auth/session data may be split between them. '
|
|
395
|
+
+ 'Automatic recovery is unsafe once both roots exist; inspect or restore the older root before reinstalling or reauthenticating this relay.';
|
|
396
|
+
}
|
|
397
|
+
function relayRuntimeStateMatchesRequestedLane(params) {
|
|
398
|
+
const stateChannel = String(params.state.channel ?? '').trim();
|
|
399
|
+
const stateMode = String(params.state.mode ?? '').trim();
|
|
400
|
+
const channelMatches = stateChannel === params.channel
|
|
401
|
+
|| (params.channel === 'publicdev' && stateChannel === 'dev');
|
|
402
|
+
const modeMatches = !stateMode || stateMode === params.mode;
|
|
403
|
+
return channelMatches && modeMatches;
|
|
404
|
+
}
|
|
405
|
+
async function detectLocalRelayStrandedLegacyState(params) {
|
|
406
|
+
if (params.channel === 'stable')
|
|
407
|
+
return null;
|
|
408
|
+
if (params.backend !== 'systemd-user' && params.backend !== 'systemd-system')
|
|
409
|
+
return null;
|
|
410
|
+
const legacyDefinitionPath = resolveSystemdUnitDefinitionPath({
|
|
411
|
+
backend: params.backend,
|
|
412
|
+
unitName: 'happier-server',
|
|
413
|
+
homeDir: homedir(),
|
|
414
|
+
});
|
|
415
|
+
if (!existsSync(legacyDefinitionPath))
|
|
416
|
+
return null;
|
|
417
|
+
const legacyText = await readFile(legacyDefinitionPath, 'utf8').catch(() => '');
|
|
418
|
+
if (!legacyText.trim())
|
|
419
|
+
return null;
|
|
420
|
+
const legacyInstallRoot = parseSystemdUnitWorkingDirectory(legacyText);
|
|
421
|
+
const legacyKey = normalizeComparablePathKey(legacyInstallRoot);
|
|
422
|
+
const currentKey = normalizeComparablePathKey(params.defaults.installRoot);
|
|
423
|
+
if (!legacyKey || !currentKey || legacyKey === currentKey)
|
|
424
|
+
return null;
|
|
425
|
+
const resolvedLegacyInstallRoot = legacyKey;
|
|
426
|
+
const legacyBaseUrl = resolveServiceDefinitionBaseUrl({
|
|
427
|
+
backend: params.backend,
|
|
428
|
+
definitionText: legacyText,
|
|
429
|
+
fallbackBaseUrl: params.currentBaseUrl,
|
|
430
|
+
});
|
|
431
|
+
if (legacyBaseUrl !== params.currentBaseUrl)
|
|
432
|
+
return null;
|
|
433
|
+
const legacyStatePath = join(resolvedLegacyInstallRoot, 'self-host-state.json');
|
|
434
|
+
if (existsSync(legacyStatePath)) {
|
|
435
|
+
const legacyStateText = await readFile(legacyStatePath, 'utf8').catch(() => '');
|
|
436
|
+
const legacyState = tryParseJsonObject(legacyStateText);
|
|
437
|
+
if (legacyState && !relayRuntimeStateMatchesRequestedLane({
|
|
438
|
+
state: legacyState,
|
|
439
|
+
channel: params.channel,
|
|
440
|
+
mode: params.defaults.mode,
|
|
441
|
+
})) {
|
|
442
|
+
return null;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
const legacyDbPath = join(resolvedLegacyInstallRoot, 'data', 'happier-server-light.sqlite');
|
|
446
|
+
const currentDbPath = join(params.defaults.dataDir, 'happier-server-light.sqlite');
|
|
447
|
+
if (!existsSync(legacyDbPath) || !existsSync(currentDbPath))
|
|
448
|
+
return null;
|
|
449
|
+
const legacySecretHash = await readComparableFileHash(join(resolvedLegacyInstallRoot, 'data', 'handy-master-secret.txt'));
|
|
450
|
+
const currentSecretHash = await readComparableFileHash(join(params.defaults.dataDir, 'handy-master-secret.txt'));
|
|
451
|
+
if (!legacySecretHash || !currentSecretHash || legacySecretHash === currentSecretHash)
|
|
452
|
+
return null;
|
|
453
|
+
return {
|
|
454
|
+
legacyInstallRoot: resolvedLegacyInstallRoot,
|
|
455
|
+
currentInstallRoot: params.defaults.installRoot,
|
|
456
|
+
};
|
|
457
|
+
}
|
|
207
458
|
function normalizeRemoteServiceSnapshot(params) {
|
|
208
459
|
if (params.backend === 'systemd-user' || params.backend === 'systemd-system') {
|
|
209
|
-
|
|
460
|
+
if (params.commandResult.status !== 0) {
|
|
461
|
+
return { enabled: null, active: null };
|
|
462
|
+
}
|
|
463
|
+
const { unitFileState, activeState } = parseSystemctlShowOutput(params.commandResult.stdout);
|
|
210
464
|
return {
|
|
211
465
|
enabled: unitFileState.trim().toLowerCase() === 'enabled',
|
|
212
466
|
active: activeState.trim().toLowerCase() === 'active',
|
|
@@ -225,20 +479,33 @@ function normalizeRemoteServiceSnapshot(params) {
|
|
|
225
479
|
function buildRemoteControlCommand(params) {
|
|
226
480
|
const svc = `${params.serviceName}.service`;
|
|
227
481
|
if (params.backend === 'systemd-user') {
|
|
228
|
-
|
|
482
|
+
if (params.action === 'uninstall') {
|
|
483
|
+
return `${wrapRemoteSystemdUserCommand(`systemctl --user disable --now ${quoteRemoteShellArg(svc)}`)} 2>/dev/null || true; ${wrapRemoteSystemdUserCommand('systemctl --user daemon-reload')}`;
|
|
484
|
+
}
|
|
485
|
+
return wrapRemoteSystemdUserCommand(`systemctl --user ${params.action} ${quoteRemoteShellArg(svc)}`);
|
|
229
486
|
}
|
|
230
487
|
if (params.backend === 'systemd-system') {
|
|
231
|
-
|
|
488
|
+
const sudoSetup = "SUDO_PREFIX=''; if [ \"$(id -u)\" -ne 0 ]; then SUDO_PREFIX=\"sudo -n \"; fi; ";
|
|
489
|
+
if (params.action === 'uninstall') {
|
|
490
|
+
return `${sudoSetup}${'${SUDO_PREFIX}'}systemctl disable --now ${quoteRemoteShellArg(svc)} 2>/dev/null || true; ${'${SUDO_PREFIX}'}systemctl daemon-reload`;
|
|
491
|
+
}
|
|
492
|
+
return `${sudoSetup}${'${SUDO_PREFIX}'}systemctl ${params.action} ${quoteRemoteShellArg(svc)}`;
|
|
232
493
|
}
|
|
233
494
|
if (params.backend === 'launchd-user' || params.backend === 'launchd-system') {
|
|
234
|
-
|
|
235
|
-
|
|
495
|
+
const sudoSetup = params.backend === 'launchd-system'
|
|
496
|
+
? "SUDO_PREFIX=''; if [ \"$(id -u)\" -ne 0 ]; then SUDO_PREFIX=\"sudo -n \"; fi; "
|
|
497
|
+
: '';
|
|
498
|
+
const privilegedPrefix = params.backend === 'launchd-system' ? '${SUDO_PREFIX}' : '';
|
|
499
|
+
if (params.action === 'uninstall') {
|
|
500
|
+
return `${sudoSetup}${privilegedPrefix}launchctl unload -w ${quoteRemoteShellArg(resolveLaunchdPlistPath(params.serviceName, params.backend === 'launchd-system'))} 2>/dev/null || true; ${privilegedPrefix}launchctl remove ${quoteRemoteShellArg(params.serviceName)} 2>/dev/null || true`;
|
|
236
501
|
}
|
|
237
|
-
if (params.action === '
|
|
238
|
-
|
|
239
|
-
return `launchctl unload -w ${quoteRemoteShellArg(plistPath)} 2>/dev/null || true; launchctl load -w ${quoteRemoteShellArg(plistPath)}`;
|
|
502
|
+
if (params.action === 'stop') {
|
|
503
|
+
return `${sudoSetup}${privilegedPrefix}launchctl unload -w ${quoteRemoteShellArg(resolveLaunchdPlistPath(params.serviceName, params.backend === 'launchd-system'))}`;
|
|
240
504
|
}
|
|
241
|
-
|
|
505
|
+
const plistPath = resolveLaunchdPlistPath(params.serviceName, params.backend === 'launchd-system');
|
|
506
|
+
const launchdDomain = params.backend === 'launchd-system' ? 'system' : 'gui/$(id -u)';
|
|
507
|
+
const serviceDomain = `${launchdDomain}/${params.serviceName}`;
|
|
508
|
+
return `${sudoSetup}${privilegedPrefix}launchctl bootout -w ${quoteRemoteShellArg(plistPath)} 2>/dev/null || true; ${privilegedPrefix}launchctl bootstrap ${launchdDomain} ${quoteRemoteShellArg(plistPath)}; ${privilegedPrefix}launchctl enable ${quoteRemoteShellArg(serviceDomain)}; ${privilegedPrefix}launchctl kickstart -k ${quoteRemoteShellArg(serviceDomain)}`;
|
|
242
509
|
}
|
|
243
510
|
throw new Error(`Unsupported remote backend: ${params.backend}`);
|
|
244
511
|
}
|
|
@@ -262,95 +529,30 @@ function resolveRemoteServiceDefinitionPath(params) {
|
|
|
262
529
|
}
|
|
263
530
|
throw new Error(`Unsupported backend: ${params.backend}`);
|
|
264
531
|
}
|
|
265
|
-
function
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
if (params.backend === 'launchd-user' || params.backend === 'launchd-system') {
|
|
285
|
-
const stdoutPath = params.spec.stdoutPath
|
|
286
|
-
? params.spec.stdoutPath
|
|
287
|
-
: params.backend === 'launchd-system'
|
|
288
|
-
? `/var/log/${params.spec.label}.out.log`
|
|
289
|
-
: `${params.remoteHomeDir}/.happier/logs/${params.spec.label}.out.log`;
|
|
290
|
-
const stderrPath = params.spec.stderrPath
|
|
291
|
-
? params.spec.stderrPath
|
|
292
|
-
: params.backend === 'launchd-system'
|
|
293
|
-
? `/var/log/${params.spec.label}.err.log`
|
|
294
|
-
: `${params.remoteHomeDir}/.happier/logs/${params.spec.label}.err.log`;
|
|
295
|
-
return buildLaunchdPlistXml({
|
|
296
|
-
label: params.spec.label,
|
|
297
|
-
programArgs: [...params.spec.programArgs],
|
|
298
|
-
env,
|
|
299
|
-
stdoutPath,
|
|
300
|
-
stderrPath,
|
|
301
|
-
workingDirectory: params.spec.workingDirectory,
|
|
302
|
-
keepAliveOnFailure: true,
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
throw new Error(`Unsupported backend: ${params.backend}`);
|
|
306
|
-
}
|
|
307
|
-
async function resolveRemotePathEnv(deps, params) {
|
|
308
|
-
const result = await deps.runRemoteText({
|
|
309
|
-
ssh: params.ssh,
|
|
310
|
-
knownHostsMode: params.knownHostsMode,
|
|
311
|
-
remoteCommand: `printf '%s\\n' \"$PATH\"`,
|
|
312
|
-
}).catch(() => ({ status: 1, stdout: '', stderr: '' }));
|
|
313
|
-
return result.status === 0 ? String(result.stdout ?? '').trim() : '';
|
|
532
|
+
function buildRemoteRelayRuntimeCleanupCommand(params) {
|
|
533
|
+
const privilegedPrefix = params.useSudo ? '${SUDO_PREFIX}' : '';
|
|
534
|
+
return [
|
|
535
|
+
'set -eu',
|
|
536
|
+
...(params.useSudo
|
|
537
|
+
? [
|
|
538
|
+
"SUDO_PREFIX=''",
|
|
539
|
+
'if [ "$(id -u)" -ne 0 ]; then SUDO_PREFIX="sudo -n "; fi',
|
|
540
|
+
]
|
|
541
|
+
: []),
|
|
542
|
+
`${privilegedPrefix}rm -f ${quoteRemoteShellArg(params.definitionPath)}`,
|
|
543
|
+
`${privilegedPrefix}rm -f ${quoteRemoteShellArg(posixPath.join(params.binDir, 'happier-server'))}`,
|
|
544
|
+
`${privilegedPrefix}rm -rf ${quoteRemoteShellArg(params.installRoot)}`,
|
|
545
|
+
`${privilegedPrefix}rm -rf ${quoteRemoteShellArg(params.configDir)}`,
|
|
546
|
+
`${privilegedPrefix}rm -rf ${quoteRemoteShellArg(params.dataDir)}`,
|
|
547
|
+
`${privilegedPrefix}rm -rf ${quoteRemoteShellArg(params.logDir)}`,
|
|
548
|
+
].join('; ');
|
|
314
549
|
}
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
ssh: params.ssh,
|
|
320
|
-
knownHostsMode: params.knownHostsMode,
|
|
321
|
-
remoteStageParent: stageParent,
|
|
322
|
-
files: [
|
|
323
|
-
{ relativePath: 'service-definition', contents: params.definitionContents },
|
|
324
|
-
],
|
|
325
|
-
});
|
|
326
|
-
const remoteDefinitionPath = params.definitionPath;
|
|
327
|
-
const remoteStagedDefinitionPath = `${staged.remoteRoot}/service-definition`;
|
|
328
|
-
const installCommands = [];
|
|
329
|
-
installCommands.push('set -eu');
|
|
330
|
-
installCommands.push(`mkdir -p ${quoteRemoteShellArg(dirname(remoteDefinitionPath))}`);
|
|
331
|
-
installCommands.push(`cp ${quoteRemoteShellArg(remoteStagedDefinitionPath)} ${quoteRemoteShellArg(remoteDefinitionPath)}`);
|
|
332
|
-
if (params.backend === 'systemd-user' || params.backend === 'systemd-system') {
|
|
333
|
-
const prefix = params.backend === 'systemd-user' ? '--user ' : '';
|
|
334
|
-
installCommands.push(`systemctl ${prefix}daemon-reload`);
|
|
335
|
-
installCommands.push(`systemctl ${prefix}enable --now ${quoteRemoteShellArg(`${params.serviceName}.service`)}`);
|
|
336
|
-
}
|
|
337
|
-
else if (params.backend === 'launchd-user' || params.backend === 'launchd-system') {
|
|
338
|
-
const plist = quoteRemoteShellArg(remoteDefinitionPath);
|
|
339
|
-
installCommands.push(`launchctl unload -w ${plist} 2>/dev/null || true`);
|
|
340
|
-
installCommands.push(`launchctl load -w ${plist}`);
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
throw new Error(`Unsupported remote backend: ${params.backend}`);
|
|
344
|
-
}
|
|
345
|
-
installCommands.push(staged.cleanupRemoteCommand);
|
|
346
|
-
const result = await params.deps.runRemoteText({
|
|
347
|
-
ssh: params.ssh,
|
|
348
|
-
knownHostsMode: params.knownHostsMode,
|
|
349
|
-
remoteCommand: installCommands.join('; '),
|
|
350
|
-
});
|
|
351
|
-
if (result.status !== 0) {
|
|
352
|
-
throw new Error(result.stderr.trim() || 'Failed to install relay service');
|
|
550
|
+
function mapRelayRuntimeServiceControlError(params) {
|
|
551
|
+
const stderr = String(params.stderr ?? '').trim();
|
|
552
|
+
if (params.backend === 'systemd-user' && /failed to connect to bus/i.test(stderr)) {
|
|
553
|
+
return new Error('Systemd user service is unavailable. Ensure the host has a user systemd session (e.g. enable lingering) or use system mode.');
|
|
353
554
|
}
|
|
555
|
+
return new Error(stderr || params.fallbackMessage);
|
|
354
556
|
}
|
|
355
557
|
export function createRelayHostEngine(deps) {
|
|
356
558
|
const now = deps.now ?? (() => Date.now());
|
|
@@ -358,6 +560,7 @@ export function createRelayHostEngine(deps) {
|
|
|
358
560
|
const res = spawnSync(cmd, [...args], {
|
|
359
561
|
encoding: 'utf8',
|
|
360
562
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
563
|
+
env: buildServiceCommandEnv({ cmd, args, env: process.env }),
|
|
361
564
|
});
|
|
362
565
|
return {
|
|
363
566
|
status: typeof res.status === 'number' ? res.status : 1,
|
|
@@ -365,6 +568,346 @@ export function createRelayHostEngine(deps) {
|
|
|
365
568
|
stderr: `${String(res.stderr ?? '')}${res.error instanceof Error ? `\n${res.error.message}` : ''}`.trim(),
|
|
366
569
|
};
|
|
367
570
|
};
|
|
571
|
+
const resolveSystemdUnitExists = (params) => {
|
|
572
|
+
if (params.backend !== 'systemd-user' && params.backend !== 'systemd-system') {
|
|
573
|
+
return false;
|
|
574
|
+
}
|
|
575
|
+
const prefix = params.backend === 'systemd-user' ? ['--user'] : [];
|
|
576
|
+
const result = runLocalText('systemctl', [...prefix, 'show', `${params.unitName}.service`, '--property=LoadState']);
|
|
577
|
+
if (result.status !== 0) {
|
|
578
|
+
return false;
|
|
579
|
+
}
|
|
580
|
+
const loadState = parseSystemctlShowOutput(result.stdout).loadState.trim().toLowerCase();
|
|
581
|
+
return Boolean(loadState && loadState !== 'not-found');
|
|
582
|
+
};
|
|
583
|
+
const resolveLocalSystemdUnitOwnedByInstallRoot = async (params) => {
|
|
584
|
+
const unitPath = resolveSystemdUnitDefinitionPath({
|
|
585
|
+
backend: params.backend,
|
|
586
|
+
unitName: params.unitName,
|
|
587
|
+
homeDir: homedir(),
|
|
588
|
+
});
|
|
589
|
+
const unitText = existsSync(unitPath) ? await readFile(unitPath, 'utf8').catch(() => '') : '';
|
|
590
|
+
const workingDir = parseSystemdUnitWorkingDirectory(unitText);
|
|
591
|
+
const workingDirKey = normalizeComparablePathKey(workingDir);
|
|
592
|
+
const installRootKey = normalizeComparablePathKey(params.installRoot);
|
|
593
|
+
return Boolean(workingDirKey && installRootKey && workingDirKey === installRootKey);
|
|
594
|
+
};
|
|
595
|
+
const resolveLocalLaunchdPlistOwnedByInstallRoot = async (params) => {
|
|
596
|
+
const plistPath = resolveLaunchdPlistDefinitionPath({
|
|
597
|
+
backend: params.backend,
|
|
598
|
+
label: params.label,
|
|
599
|
+
homeDir: homedir(),
|
|
600
|
+
});
|
|
601
|
+
const plistText = existsSync(plistPath) ? await readFile(plistPath, 'utf8').catch(() => '') : '';
|
|
602
|
+
const workingDir = parseLaunchdPlistWorkingDirectory(plistText);
|
|
603
|
+
const workingDirKey = normalizeComparablePathKey(workingDir);
|
|
604
|
+
const installRootKey = normalizeComparablePathKey(params.installRoot);
|
|
605
|
+
return Boolean(workingDirKey && installRootKey && workingDirKey === installRootKey);
|
|
606
|
+
};
|
|
607
|
+
const resolveLocalSystemdUnitState = (params) => {
|
|
608
|
+
const prefix = params.backend === 'systemd-user' ? ['--user'] : [];
|
|
609
|
+
const result = runLocalText('systemctl', [
|
|
610
|
+
...prefix,
|
|
611
|
+
'show',
|
|
612
|
+
`${params.unitName}.service`,
|
|
613
|
+
'--property=UnitFileState,ActiveState,SubState,LoadState',
|
|
614
|
+
]);
|
|
615
|
+
if (result.status !== 0) {
|
|
616
|
+
return { loadState: 'not-found', activeState: '', enabledState: '' };
|
|
617
|
+
}
|
|
618
|
+
const parsed = parseSystemctlShowOutput(result.stdout);
|
|
619
|
+
return {
|
|
620
|
+
loadState: parsed.loadState.trim().toLowerCase() || 'not-found',
|
|
621
|
+
activeState: parsed.activeState.trim().toLowerCase(),
|
|
622
|
+
enabledState: parsed.unitFileState.trim().toLowerCase(),
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
const resolveLocalLaunchdServiceState = (params) => {
|
|
626
|
+
const result = runLocalText('launchctl', ['list', params.label]);
|
|
627
|
+
return result.status === 0
|
|
628
|
+
? { loadState: 'loaded', activeState: 'active', enabledState: 'enabled' }
|
|
629
|
+
: { loadState: 'not-found', activeState: '', enabledState: '' };
|
|
630
|
+
};
|
|
631
|
+
const resolveLocalWindowsScheduledTaskState = (params) => {
|
|
632
|
+
const result = runLocalText('schtasks', ['/Query', '/TN', `Happier\\${params.label}`, '/FO', 'LIST', '/V']);
|
|
633
|
+
const powerShellStatus = runLocalText('powershell.exe', [
|
|
634
|
+
'-NoProfile',
|
|
635
|
+
'-Command',
|
|
636
|
+
buildReadWindowsScheduledTaskStatusPowerShellCommand({
|
|
637
|
+
taskName: params.label,
|
|
638
|
+
}),
|
|
639
|
+
]);
|
|
640
|
+
const parsedPowerShellStatus = powerShellStatus.status === 0
|
|
641
|
+
? parseWindowsScheduledTaskStatusPowerShellJson(powerShellStatus.stdout)
|
|
642
|
+
: null;
|
|
643
|
+
if (parsedPowerShellStatus) {
|
|
644
|
+
return parsedPowerShellStatus.exists
|
|
645
|
+
? {
|
|
646
|
+
loadState: 'loaded',
|
|
647
|
+
activeState: parsedPowerShellStatus.active ? 'active' : 'inactive',
|
|
648
|
+
enabledState: parsedPowerShellStatus.enabled ? 'enabled' : 'disabled',
|
|
649
|
+
}
|
|
650
|
+
: { loadState: 'not-found', activeState: '', enabledState: '' };
|
|
651
|
+
}
|
|
652
|
+
if (result.status !== 0) {
|
|
653
|
+
return { loadState: 'not-found', activeState: '', enabledState: '' };
|
|
654
|
+
}
|
|
655
|
+
const output = `${result.stdout}\n${result.stderr}`;
|
|
656
|
+
return {
|
|
657
|
+
loadState: 'loaded',
|
|
658
|
+
activeState: /Status:\s*Running/i.test(output) ? 'active' : 'inactive',
|
|
659
|
+
enabledState: /Scheduled Task State:\s*Enabled/i.test(output) ? 'enabled' : 'disabled',
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
const resolveLocalServiceOwnedByInstallRoot = async (params) => {
|
|
663
|
+
if (params.backend === 'systemd-user' || params.backend === 'systemd-system') {
|
|
664
|
+
return resolveLocalSystemdUnitOwnedByInstallRoot({
|
|
665
|
+
backend: params.backend,
|
|
666
|
+
unitName: params.label,
|
|
667
|
+
installRoot: params.installRoot,
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
if (params.backend === 'launchd-user' || params.backend === 'launchd-system') {
|
|
671
|
+
return resolveLocalLaunchdPlistOwnedByInstallRoot({
|
|
672
|
+
backend: params.backend,
|
|
673
|
+
label: params.label,
|
|
674
|
+
installRoot: params.installRoot,
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
if (params.backend === 'schtasks-user' || params.backend === 'schtasks-system') {
|
|
678
|
+
const definitionPath = resolveWindowsWrapperDefinitionPath({
|
|
679
|
+
backend: params.backend,
|
|
680
|
+
label: params.label,
|
|
681
|
+
homeDir: homedir(),
|
|
682
|
+
});
|
|
683
|
+
const definitionText = existsSync(definitionPath) ? await readFile(definitionPath, 'utf8').catch(() => '') : '';
|
|
684
|
+
const workingDir = parseWindowsWrapperWorkingDirectory(definitionText);
|
|
685
|
+
const workingDirKey = normalizeComparablePathKey(workingDir);
|
|
686
|
+
const installRootKey = normalizeComparablePathKey(params.installRoot);
|
|
687
|
+
return Boolean(workingDirKey && installRootKey && workingDirKey === installRootKey);
|
|
688
|
+
}
|
|
689
|
+
return false;
|
|
690
|
+
};
|
|
691
|
+
const resolveLocalEffectiveServiceName = async (params) => {
|
|
692
|
+
if (params.channel === 'stable') {
|
|
693
|
+
return params.defaults.serviceName;
|
|
694
|
+
}
|
|
695
|
+
if (params.backend !== 'systemd-user'
|
|
696
|
+
&& params.backend !== 'systemd-system'
|
|
697
|
+
&& params.backend !== 'launchd-user'
|
|
698
|
+
&& params.backend !== 'launchd-system'
|
|
699
|
+
&& params.backend !== 'schtasks-user'
|
|
700
|
+
&& params.backend !== 'schtasks-system') {
|
|
701
|
+
return params.defaults.serviceName;
|
|
702
|
+
}
|
|
703
|
+
const legacyUnitName = 'happier-server';
|
|
704
|
+
const legacyOwnedByInstallRoot = await resolveLocalServiceOwnedByInstallRoot({
|
|
705
|
+
backend: params.backend,
|
|
706
|
+
label: legacyUnitName,
|
|
707
|
+
installRoot: params.defaults.installRoot,
|
|
708
|
+
}).catch(() => false);
|
|
709
|
+
if (!legacyOwnedByInstallRoot) {
|
|
710
|
+
return params.defaults.serviceName;
|
|
711
|
+
}
|
|
712
|
+
const readState = (label) => {
|
|
713
|
+
if (params.backend === 'systemd-user' || params.backend === 'systemd-system') {
|
|
714
|
+
return resolveLocalSystemdUnitState({
|
|
715
|
+
backend: params.backend,
|
|
716
|
+
unitName: label,
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
if (params.backend === 'launchd-user' || params.backend === 'launchd-system') {
|
|
720
|
+
return resolveLocalLaunchdServiceState({
|
|
721
|
+
backend: params.backend,
|
|
722
|
+
label,
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
return resolveLocalWindowsScheduledTaskState({ label });
|
|
726
|
+
};
|
|
727
|
+
const canonicalState = readState(params.defaults.serviceName);
|
|
728
|
+
if (canonicalState.loadState === 'not-found') {
|
|
729
|
+
return legacyUnitName;
|
|
730
|
+
}
|
|
731
|
+
const canonicalOwnedByInstallRoot = await resolveLocalServiceOwnedByInstallRoot({
|
|
732
|
+
backend: params.backend,
|
|
733
|
+
label: params.defaults.serviceName,
|
|
734
|
+
installRoot: params.defaults.installRoot,
|
|
735
|
+
}).catch(() => false);
|
|
736
|
+
if (!canonicalOwnedByInstallRoot) {
|
|
737
|
+
return legacyUnitName;
|
|
738
|
+
}
|
|
739
|
+
const legacyState = readState(legacyUnitName);
|
|
740
|
+
const canonicalActive = canonicalState.activeState === 'active';
|
|
741
|
+
const legacyActive = legacyState.activeState === 'active';
|
|
742
|
+
if (canonicalActive !== legacyActive) {
|
|
743
|
+
return legacyActive ? legacyUnitName : params.defaults.serviceName;
|
|
744
|
+
}
|
|
745
|
+
return params.defaults.serviceName;
|
|
746
|
+
};
|
|
747
|
+
const materializeRemoteHomeDir = (remoteHomeDir, value) => {
|
|
748
|
+
const raw = String(value ?? '');
|
|
749
|
+
if (!raw)
|
|
750
|
+
return raw;
|
|
751
|
+
if (remoteHomeDir.startsWith('/') && raw.includes('$HOME')) {
|
|
752
|
+
return raw.replaceAll('$HOME', remoteHomeDir);
|
|
753
|
+
}
|
|
754
|
+
return raw;
|
|
755
|
+
};
|
|
756
|
+
const resolveRemoteSystemdUnitState = async (params) => {
|
|
757
|
+
const svc = `${params.unitName}.service`;
|
|
758
|
+
const remoteCommand = params.backend === 'systemd-user'
|
|
759
|
+
? wrapRemoteSystemdUserCommand(`systemctl --user show ${quoteRemoteShellArg(svc)} --property=LoadState,ActiveState`)
|
|
760
|
+
: `systemctl show ${quoteRemoteShellArg(svc)} --property=LoadState,ActiveState`;
|
|
761
|
+
const result = await deps.runRemoteText({
|
|
762
|
+
ssh: params.ssh,
|
|
763
|
+
knownHostsMode: params.knownHostsMode,
|
|
764
|
+
remoteCommand,
|
|
765
|
+
}).catch(() => ({ status: 1, stdout: '', stderr: '' }));
|
|
766
|
+
if (result.status !== 0)
|
|
767
|
+
return { loadState: 'not-found', activeState: '' };
|
|
768
|
+
const parsed = parseSystemctlShowOutput(String(result.stdout ?? ''));
|
|
769
|
+
const loadState = parsed.loadState.trim().toLowerCase();
|
|
770
|
+
const activeState = parsed.activeState.trim().toLowerCase();
|
|
771
|
+
return { loadState: loadState || 'not-found', activeState };
|
|
772
|
+
};
|
|
773
|
+
const resolveRemoteSystemdUnitLoadState = async (params) => {
|
|
774
|
+
return (await resolveRemoteSystemdUnitState(params)).loadState;
|
|
775
|
+
};
|
|
776
|
+
const resolveRemoteSystemdUnitOwnedByInstallRoot = async (params) => {
|
|
777
|
+
const unitPath = resolveRemoteServiceDefinitionPath({
|
|
778
|
+
backend: params.backend,
|
|
779
|
+
label: params.unitName,
|
|
780
|
+
remoteHomeDir: params.remoteHomeDir,
|
|
781
|
+
});
|
|
782
|
+
const privilegedPrefix = params.backend === 'systemd-system' ? 'sudo -n ' : '';
|
|
783
|
+
const unitText = await deps.runRemoteText({
|
|
784
|
+
ssh: params.ssh,
|
|
785
|
+
knownHostsMode: params.knownHostsMode,
|
|
786
|
+
remoteCommand: buildRemoteReadTextFileCommand({ path: unitPath, privilegedPrefix }),
|
|
787
|
+
}).then((result) => String(result.stdout ?? '')).catch(() => '');
|
|
788
|
+
const workingDir = parseSystemdUnitWorkingDirectory(unitText);
|
|
789
|
+
const workingDirKey = normalizeComparablePathKey(materializeRemoteHomeDir(params.remoteHomeDir, String(workingDir ?? '')));
|
|
790
|
+
const installRootKey = normalizeComparablePathKey(materializeRemoteHomeDir(params.remoteHomeDir, params.installRoot));
|
|
791
|
+
return Boolean(workingDirKey && installRootKey && workingDirKey === installRootKey);
|
|
792
|
+
};
|
|
793
|
+
const resolveRemoteLaunchdServiceState = async (params) => {
|
|
794
|
+
const sudoSetup = params.backend === 'launchd-system'
|
|
795
|
+
? "SUDO_PREFIX=''; if [ \"$(id -u)\" -ne 0 ]; then SUDO_PREFIX=\"sudo -n \"; fi; "
|
|
796
|
+
: '';
|
|
797
|
+
const privilegedPrefix = params.backend === 'launchd-system' ? '${SUDO_PREFIX}' : '';
|
|
798
|
+
const result = await deps.runRemoteText({
|
|
799
|
+
ssh: params.ssh,
|
|
800
|
+
knownHostsMode: params.knownHostsMode,
|
|
801
|
+
remoteCommand: `${sudoSetup}${privilegedPrefix}launchctl list ${quoteRemoteShellArg(params.label)}`,
|
|
802
|
+
}).catch(() => ({ status: 1, stdout: '', stderr: '' }));
|
|
803
|
+
return result.status === 0
|
|
804
|
+
? { loadState: 'loaded', activeState: 'active' }
|
|
805
|
+
: { loadState: 'not-found', activeState: '' };
|
|
806
|
+
};
|
|
807
|
+
const resolveRemoteLaunchdPlistOwnedByInstallRoot = async (params) => {
|
|
808
|
+
const plistPath = resolveRemoteServiceDefinitionPath({
|
|
809
|
+
backend: params.backend,
|
|
810
|
+
label: params.label,
|
|
811
|
+
remoteHomeDir: params.remoteHomeDir,
|
|
812
|
+
});
|
|
813
|
+
const privilegedPrefix = params.backend === 'launchd-system' ? 'sudo -n ' : '';
|
|
814
|
+
const plistText = await deps.runRemoteText({
|
|
815
|
+
ssh: params.ssh,
|
|
816
|
+
knownHostsMode: params.knownHostsMode,
|
|
817
|
+
remoteCommand: buildRemoteReadTextFileCommand({ path: plistPath, privilegedPrefix }),
|
|
818
|
+
}).then((result) => String(result.stdout ?? '')).catch(() => '');
|
|
819
|
+
const workingDir = parseLaunchdPlistWorkingDirectory(plistText);
|
|
820
|
+
const workingDirKey = normalizeComparablePathKey(materializeRemoteHomeDir(params.remoteHomeDir, String(workingDir ?? '')));
|
|
821
|
+
const installRootKey = normalizeComparablePathKey(materializeRemoteHomeDir(params.remoteHomeDir, params.installRoot));
|
|
822
|
+
return Boolean(workingDirKey && installRootKey && workingDirKey === installRootKey);
|
|
823
|
+
};
|
|
824
|
+
const resolveRemoteEffectiveServiceName = async (params) => {
|
|
825
|
+
if (params.backend !== 'systemd-user'
|
|
826
|
+
&& params.backend !== 'systemd-system'
|
|
827
|
+
&& params.backend !== 'launchd-user'
|
|
828
|
+
&& params.backend !== 'launchd-system') {
|
|
829
|
+
return params.defaults.serviceName;
|
|
830
|
+
}
|
|
831
|
+
if (params.channel === 'stable') {
|
|
832
|
+
return params.defaults.serviceName;
|
|
833
|
+
}
|
|
834
|
+
const legacyUnitName = 'happier-server';
|
|
835
|
+
const legacyOwnedByInstallRoot = params.backend === 'systemd-user' || params.backend === 'systemd-system'
|
|
836
|
+
? await resolveRemoteSystemdUnitOwnedByInstallRoot({
|
|
837
|
+
ssh: params.ssh,
|
|
838
|
+
knownHostsMode: params.knownHostsMode,
|
|
839
|
+
backend: params.backend,
|
|
840
|
+
unitName: legacyUnitName,
|
|
841
|
+
remoteHomeDir: params.remoteHomeDir,
|
|
842
|
+
installRoot: params.defaults.installRoot,
|
|
843
|
+
}).catch(() => false)
|
|
844
|
+
: await resolveRemoteLaunchdPlistOwnedByInstallRoot({
|
|
845
|
+
ssh: params.ssh,
|
|
846
|
+
knownHostsMode: params.knownHostsMode,
|
|
847
|
+
backend: params.backend,
|
|
848
|
+
label: legacyUnitName,
|
|
849
|
+
remoteHomeDir: params.remoteHomeDir,
|
|
850
|
+
installRoot: params.defaults.installRoot,
|
|
851
|
+
}).catch(() => false);
|
|
852
|
+
if (!legacyOwnedByInstallRoot) {
|
|
853
|
+
return params.defaults.serviceName;
|
|
854
|
+
}
|
|
855
|
+
const canonicalState = params.backend === 'systemd-user' || params.backend === 'systemd-system'
|
|
856
|
+
? await resolveRemoteSystemdUnitState({
|
|
857
|
+
ssh: params.ssh,
|
|
858
|
+
knownHostsMode: params.knownHostsMode,
|
|
859
|
+
backend: params.backend,
|
|
860
|
+
unitName: params.defaults.serviceName,
|
|
861
|
+
}).catch(() => ({ loadState: 'not-found', activeState: '' }))
|
|
862
|
+
: await resolveRemoteLaunchdServiceState({
|
|
863
|
+
ssh: params.ssh,
|
|
864
|
+
knownHostsMode: params.knownHostsMode,
|
|
865
|
+
backend: params.backend,
|
|
866
|
+
label: params.defaults.serviceName,
|
|
867
|
+
}).catch(() => ({ loadState: 'not-found', activeState: '' }));
|
|
868
|
+
if (canonicalState.loadState === 'not-found') {
|
|
869
|
+
return legacyUnitName;
|
|
870
|
+
}
|
|
871
|
+
const canonicalOwnedByInstallRoot = params.backend === 'systemd-user' || params.backend === 'systemd-system'
|
|
872
|
+
? await resolveRemoteSystemdUnitOwnedByInstallRoot({
|
|
873
|
+
ssh: params.ssh,
|
|
874
|
+
knownHostsMode: params.knownHostsMode,
|
|
875
|
+
backend: params.backend,
|
|
876
|
+
unitName: params.defaults.serviceName,
|
|
877
|
+
remoteHomeDir: params.remoteHomeDir,
|
|
878
|
+
installRoot: params.defaults.installRoot,
|
|
879
|
+
}).catch(() => false)
|
|
880
|
+
: await resolveRemoteLaunchdPlistOwnedByInstallRoot({
|
|
881
|
+
ssh: params.ssh,
|
|
882
|
+
knownHostsMode: params.knownHostsMode,
|
|
883
|
+
backend: params.backend,
|
|
884
|
+
label: params.defaults.serviceName,
|
|
885
|
+
remoteHomeDir: params.remoteHomeDir,
|
|
886
|
+
installRoot: params.defaults.installRoot,
|
|
887
|
+
}).catch(() => false);
|
|
888
|
+
if (!canonicalOwnedByInstallRoot) {
|
|
889
|
+
return legacyUnitName;
|
|
890
|
+
}
|
|
891
|
+
const legacyState = params.backend === 'systemd-user' || params.backend === 'systemd-system'
|
|
892
|
+
? await resolveRemoteSystemdUnitState({
|
|
893
|
+
ssh: params.ssh,
|
|
894
|
+
knownHostsMode: params.knownHostsMode,
|
|
895
|
+
backend: params.backend,
|
|
896
|
+
unitName: legacyUnitName,
|
|
897
|
+
}).catch(() => ({ loadState: 'not-found', activeState: '' }))
|
|
898
|
+
: await resolveRemoteLaunchdServiceState({
|
|
899
|
+
ssh: params.ssh,
|
|
900
|
+
knownHostsMode: params.knownHostsMode,
|
|
901
|
+
backend: params.backend,
|
|
902
|
+
label: legacyUnitName,
|
|
903
|
+
}).catch(() => ({ loadState: 'not-found', activeState: '' }));
|
|
904
|
+
const canonicalActive = canonicalState.activeState === 'active';
|
|
905
|
+
const legacyActive = legacyState.activeState === 'active';
|
|
906
|
+
if (canonicalActive !== legacyActive) {
|
|
907
|
+
return legacyActive ? legacyUnitName : params.defaults.serviceName;
|
|
908
|
+
}
|
|
909
|
+
return params.defaults.serviceName;
|
|
910
|
+
};
|
|
368
911
|
async function readLocalStatus(parsed) {
|
|
369
912
|
const mode = normalizeMode(parsed.mode);
|
|
370
913
|
const channel = normalizeChannel(parsed.channel);
|
|
@@ -384,48 +927,275 @@ export function createRelayHostEngine(deps) {
|
|
|
384
927
|
platform: process.platform,
|
|
385
928
|
mode,
|
|
386
929
|
});
|
|
387
|
-
const
|
|
930
|
+
const effectiveServiceName = await resolveLocalEffectiveServiceName({
|
|
931
|
+
backend,
|
|
932
|
+
channel,
|
|
933
|
+
defaults,
|
|
934
|
+
});
|
|
935
|
+
const service = await (async () => {
|
|
388
936
|
if (backend === 'systemd-user' || backend === 'systemd-system') {
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
|
|
937
|
+
const snapshot = resolveLocalSystemdUnitState({
|
|
938
|
+
backend,
|
|
939
|
+
unitName: effectiveServiceName,
|
|
940
|
+
});
|
|
941
|
+
if (snapshot.loadState === 'not-found')
|
|
392
942
|
return { enabled: null, active: null };
|
|
393
|
-
}
|
|
394
|
-
const [unitFileState = '', activeState = ''] = String(result.stdout ?? '').split(/\r?\n/u);
|
|
395
943
|
return {
|
|
396
|
-
enabled:
|
|
397
|
-
active: activeState
|
|
944
|
+
enabled: snapshot.enabledState === 'enabled',
|
|
945
|
+
active: snapshot.activeState === 'active',
|
|
398
946
|
};
|
|
399
947
|
}
|
|
400
948
|
if (backend === 'launchd-user' || backend === 'launchd-system') {
|
|
401
|
-
const
|
|
402
|
-
|
|
949
|
+
const snapshot = resolveLocalLaunchdServiceState({
|
|
950
|
+
backend,
|
|
951
|
+
label: effectiveServiceName,
|
|
952
|
+
});
|
|
953
|
+
if (snapshot.loadState === 'not-found') {
|
|
403
954
|
return { enabled: null, active: null };
|
|
404
955
|
}
|
|
405
956
|
return { enabled: true, active: true };
|
|
406
957
|
}
|
|
407
|
-
const
|
|
408
|
-
|
|
958
|
+
const snapshot = resolveLocalWindowsScheduledTaskState({
|
|
959
|
+
label: effectiveServiceName,
|
|
960
|
+
});
|
|
961
|
+
if (snapshot.loadState === 'not-found') {
|
|
409
962
|
return { enabled: null, active: null };
|
|
410
963
|
}
|
|
411
|
-
const output = `${result.stdout}\n${result.stderr}`;
|
|
412
964
|
return {
|
|
413
|
-
enabled:
|
|
414
|
-
active:
|
|
965
|
+
enabled: snapshot.enabledState === 'enabled',
|
|
966
|
+
active: snapshot.activeState === 'active',
|
|
415
967
|
};
|
|
416
968
|
})();
|
|
417
969
|
const installed = Boolean(version) || existsSync(installBinaryPath);
|
|
970
|
+
const envPath = join(defaults.configDir, 'server.env');
|
|
971
|
+
const envText = existsSync(envPath) ? await readFile(envPath, 'utf8').catch(() => '') : '';
|
|
972
|
+
const baseUrl = resolveConfiguredSelfHostBaseUrl({
|
|
973
|
+
fallbackBaseUrl: `http://${defaults.serverHost}:${defaults.serverPort}`,
|
|
974
|
+
envText,
|
|
975
|
+
});
|
|
976
|
+
const healthy = service.active === true
|
|
977
|
+
? await resolveLocalRelayHealth({
|
|
978
|
+
baseUrl,
|
|
979
|
+
healthPath: defaults.healthPath,
|
|
980
|
+
timeoutMs: 1_500,
|
|
981
|
+
}).catch(() => false)
|
|
982
|
+
: service.active === null
|
|
983
|
+
? null
|
|
984
|
+
: false;
|
|
985
|
+
const strandedLegacyState = await detectLocalRelayStrandedLegacyState({
|
|
986
|
+
backend,
|
|
987
|
+
channel,
|
|
988
|
+
defaults,
|
|
989
|
+
currentBaseUrl: baseUrl,
|
|
990
|
+
});
|
|
418
991
|
return {
|
|
419
992
|
installed,
|
|
420
993
|
version,
|
|
421
994
|
service,
|
|
422
|
-
baseUrl
|
|
423
|
-
healthy
|
|
995
|
+
baseUrl,
|
|
996
|
+
healthy,
|
|
997
|
+
...(strandedLegacyState ? {
|
|
998
|
+
warnings: [renderLocalRelayStrandedLegacyStateMessage({
|
|
999
|
+
channel,
|
|
1000
|
+
legacyInstallRoot: strandedLegacyState.legacyInstallRoot,
|
|
1001
|
+
currentInstallRoot: strandedLegacyState.currentInstallRoot,
|
|
1002
|
+
})],
|
|
1003
|
+
} : {}),
|
|
424
1004
|
};
|
|
425
1005
|
}
|
|
426
1006
|
async function installLocal(parsed) {
|
|
427
1007
|
const mode = normalizeMode(parsed.mode);
|
|
428
1008
|
const channel = normalizeChannel(parsed.channel);
|
|
1009
|
+
const defaults = resolveRelayRuntimeDefaults({
|
|
1010
|
+
platform: process.platform,
|
|
1011
|
+
mode,
|
|
1012
|
+
channel,
|
|
1013
|
+
homeDir: homedir(),
|
|
1014
|
+
});
|
|
1015
|
+
const backend = resolveServiceBackend({ platform: process.platform, mode });
|
|
1016
|
+
const desiredRelayUrl = await resolveLocalDesiredRelayUrl({
|
|
1017
|
+
mode,
|
|
1018
|
+
channel,
|
|
1019
|
+
envOverrides: parsed.env,
|
|
1020
|
+
});
|
|
1021
|
+
// Surface port reassignment so users aren't surprised that dev landed on
|
|
1022
|
+
// an ephemeral port instead of the default 3005. The reassignment happens
|
|
1023
|
+
// transparently in resolveLocalDesiredRelayUrl when another channel
|
|
1024
|
+
// already owns the default port. Writes to stderr so it doesn't pollute
|
|
1025
|
+
// the JSON output envelope.
|
|
1026
|
+
try {
|
|
1027
|
+
const desiredPort = Number.parseInt(new URL(desiredRelayUrl).port, 10);
|
|
1028
|
+
if (Number.isInteger(desiredPort) && desiredPort !== defaults.serverPort) {
|
|
1029
|
+
const configuredEnvPath = join(defaults.configDir, 'server.env');
|
|
1030
|
+
const hadExistingEnv = existsSync(configuredEnvPath);
|
|
1031
|
+
const hadPortOverride = Boolean(String((parsed.env ?? {}).PORT ?? '').trim());
|
|
1032
|
+
if (!hadExistingEnv && !hadPortOverride) {
|
|
1033
|
+
process.stderr.write(`[relay-host] Port ${defaults.serverPort} is already used by another channel's relay; `
|
|
1034
|
+
+ `installing ${formatRelayChannelLabel(channel)} on port ${desiredPort} (data is independent per channel).\n`);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
catch {
|
|
1039
|
+
// Best-effort notice; don't block install on URL parsing.
|
|
1040
|
+
}
|
|
1041
|
+
const shouldTreatStableLaneAsLegacyUnsuffixedInstall = await (async () => {
|
|
1042
|
+
return await shouldMigrateLegacyUnsuffixedRelayRuntimeInstallRoot({
|
|
1043
|
+
platform: process.platform,
|
|
1044
|
+
mode,
|
|
1045
|
+
channel,
|
|
1046
|
+
homeDir: homedir(),
|
|
1047
|
+
});
|
|
1048
|
+
})();
|
|
1049
|
+
const ignoreStableLaneConflict = await (async () => {
|
|
1050
|
+
if (channel === 'stable')
|
|
1051
|
+
return false;
|
|
1052
|
+
const legacyUnitName = 'happier-server';
|
|
1053
|
+
const legacyDefinitionPath = backend === 'systemd-user' || backend === 'systemd-system'
|
|
1054
|
+
? resolveSystemdUnitDefinitionPath({ backend, unitName: legacyUnitName, homeDir: homedir() })
|
|
1055
|
+
: backend === 'launchd-user' || backend === 'launchd-system'
|
|
1056
|
+
? resolveLaunchdPlistDefinitionPath({ backend, label: legacyUnitName, homeDir: homedir() })
|
|
1057
|
+
: backend === 'schtasks-user' || backend === 'schtasks-system'
|
|
1058
|
+
? resolveWindowsWrapperDefinitionPath({ backend, label: legacyUnitName, homeDir: homedir() })
|
|
1059
|
+
: '';
|
|
1060
|
+
if (!legacyDefinitionPath)
|
|
1061
|
+
return false;
|
|
1062
|
+
const legacyText = existsSync(legacyDefinitionPath) ? await readFile(legacyDefinitionPath, 'utf8').catch(() => '') : '';
|
|
1063
|
+
if (!legacyText.trim())
|
|
1064
|
+
return false;
|
|
1065
|
+
const legacyWorkingDir = parseServiceDefinitionWorkingDirectory({ backend, definitionText: legacyText });
|
|
1066
|
+
const legacyKey = normalizeComparablePathKey(legacyWorkingDir);
|
|
1067
|
+
const installRootKey = normalizeComparablePathKey(defaults.installRoot);
|
|
1068
|
+
return Boolean(legacyKey && installRootKey && legacyKey === installRootKey);
|
|
1069
|
+
})();
|
|
1070
|
+
let legacyInstallRootToMigrate;
|
|
1071
|
+
await (async () => {
|
|
1072
|
+
if (channel === 'stable')
|
|
1073
|
+
return;
|
|
1074
|
+
if (backend !== 'systemd-user' && backend !== 'systemd-system')
|
|
1075
|
+
return;
|
|
1076
|
+
const legacyUnitName = 'happier-server';
|
|
1077
|
+
const legacyDefinitionPath = resolveSystemdUnitDefinitionPath({
|
|
1078
|
+
backend,
|
|
1079
|
+
unitName: legacyUnitName,
|
|
1080
|
+
homeDir: homedir(),
|
|
1081
|
+
});
|
|
1082
|
+
if (!existsSync(legacyDefinitionPath))
|
|
1083
|
+
return;
|
|
1084
|
+
const legacyText = await readFile(legacyDefinitionPath, 'utf8').catch(() => '');
|
|
1085
|
+
if (!legacyText.trim())
|
|
1086
|
+
return;
|
|
1087
|
+
const legacyWorkingDir = parseServiceDefinitionWorkingDirectory({ backend, definitionText: legacyText });
|
|
1088
|
+
const legacyKey = normalizeComparablePathKey(legacyWorkingDir);
|
|
1089
|
+
const installRootKey = normalizeComparablePathKey(defaults.installRoot);
|
|
1090
|
+
if (legacyKey && installRootKey && legacyKey === installRootKey)
|
|
1091
|
+
return;
|
|
1092
|
+
const prefix = backend === 'systemd-user' ? ['--user'] : [];
|
|
1093
|
+
const legacyShow = runLocalText('systemctl', [
|
|
1094
|
+
...prefix,
|
|
1095
|
+
'show',
|
|
1096
|
+
`${legacyUnitName}.service`,
|
|
1097
|
+
'--property=ActiveState,SubState,LoadState',
|
|
1098
|
+
]);
|
|
1099
|
+
const legacyState = legacyShow.status === 0
|
|
1100
|
+
? parseSystemctlShowOutput(legacyShow.stdout)
|
|
1101
|
+
: null;
|
|
1102
|
+
const legacyLoaded = legacyState?.loadState.trim().toLowerCase() === 'loaded';
|
|
1103
|
+
const legacyActive = legacyState?.activeState.trim().toLowerCase() === 'active';
|
|
1104
|
+
if (!legacyLoaded || !legacyActive)
|
|
1105
|
+
return;
|
|
1106
|
+
const legacyBaseUrl = resolveServiceDefinitionBaseUrl({
|
|
1107
|
+
backend,
|
|
1108
|
+
definitionText: legacyText,
|
|
1109
|
+
fallbackBaseUrl: `http://${defaults.serverHost}:${defaults.serverPort}`,
|
|
1110
|
+
});
|
|
1111
|
+
if (legacyBaseUrl !== desiredRelayUrl)
|
|
1112
|
+
return;
|
|
1113
|
+
if (!legacyWorkingDir) {
|
|
1114
|
+
throw new Error(`An active legacy happier-server.service is already using ${desiredRelayUrl} from an unknown root. `
|
|
1115
|
+
+ `Stop or uninstall that legacy service before installing the ${formatRelayChannelLabel(channel)} relay.`);
|
|
1116
|
+
}
|
|
1117
|
+
legacyInstallRootToMigrate = legacyWorkingDir;
|
|
1118
|
+
})();
|
|
1119
|
+
await (async () => {
|
|
1120
|
+
if (channel === 'stable')
|
|
1121
|
+
return;
|
|
1122
|
+
if (legacyInstallRootToMigrate)
|
|
1123
|
+
return;
|
|
1124
|
+
const canonicalDefinitionPath = backend === 'systemd-user' || backend === 'systemd-system'
|
|
1125
|
+
? resolveSystemdUnitDefinitionPath({ backend, unitName: defaults.serviceName, homeDir: homedir() })
|
|
1126
|
+
: backend === 'launchd-user' || backend === 'launchd-system'
|
|
1127
|
+
? resolveLaunchdPlistDefinitionPath({ backend, label: defaults.serviceName, homeDir: homedir() })
|
|
1128
|
+
: backend === 'schtasks-user' || backend === 'schtasks-system'
|
|
1129
|
+
? resolveWindowsWrapperDefinitionPath({ backend, label: defaults.serviceName, homeDir: homedir() })
|
|
1130
|
+
: '';
|
|
1131
|
+
if (!canonicalDefinitionPath || !existsSync(canonicalDefinitionPath))
|
|
1132
|
+
return;
|
|
1133
|
+
const canonicalText = await readFile(canonicalDefinitionPath, 'utf8').catch(() => '');
|
|
1134
|
+
if (!canonicalText.trim())
|
|
1135
|
+
return;
|
|
1136
|
+
const canonicalBaseUrl = resolveServiceDefinitionBaseUrl({
|
|
1137
|
+
backend,
|
|
1138
|
+
definitionText: canonicalText,
|
|
1139
|
+
fallbackBaseUrl: `http://${defaults.serverHost}:${defaults.serverPort}`,
|
|
1140
|
+
});
|
|
1141
|
+
if (canonicalBaseUrl !== desiredRelayUrl)
|
|
1142
|
+
return;
|
|
1143
|
+
const canonicalWorkingDir = parseServiceDefinitionWorkingDirectory({ backend, definitionText: canonicalText });
|
|
1144
|
+
if (!canonicalWorkingDir) {
|
|
1145
|
+
throw new Error(`An installed ${defaults.serviceName} service is already using ${desiredRelayUrl} from an unknown root. `
|
|
1146
|
+
+ `Stop or uninstall that service before reinstalling the ${formatRelayChannelLabel(channel)} relay.`);
|
|
1147
|
+
}
|
|
1148
|
+
const canonicalKey = normalizeComparablePathKey(canonicalWorkingDir);
|
|
1149
|
+
const installRootKey = normalizeComparablePathKey(defaults.installRoot);
|
|
1150
|
+
if (canonicalKey && installRootKey && canonicalKey === installRootKey)
|
|
1151
|
+
return;
|
|
1152
|
+
const shouldMigrateCanonicalCustomRoot = await shouldMigrateLegacyUnsuffixedRelayRuntimeInstallRoot({
|
|
1153
|
+
platform: process.platform,
|
|
1154
|
+
mode,
|
|
1155
|
+
channel,
|
|
1156
|
+
homeDir: homedir(),
|
|
1157
|
+
legacyInstallRoot: canonicalWorkingDir,
|
|
1158
|
+
});
|
|
1159
|
+
if (!shouldMigrateCanonicalCustomRoot)
|
|
1160
|
+
return;
|
|
1161
|
+
legacyInstallRootToMigrate = canonicalWorkingDir;
|
|
1162
|
+
})();
|
|
1163
|
+
const strandedLegacyState = await detectLocalRelayStrandedLegacyState({
|
|
1164
|
+
backend,
|
|
1165
|
+
channel,
|
|
1166
|
+
defaults,
|
|
1167
|
+
currentBaseUrl: desiredRelayUrl,
|
|
1168
|
+
});
|
|
1169
|
+
if (strandedLegacyState) {
|
|
1170
|
+
throw new Error(renderLocalRelayStrandedLegacyStateMessage({
|
|
1171
|
+
channel,
|
|
1172
|
+
legacyInstallRoot: strandedLegacyState.legacyInstallRoot,
|
|
1173
|
+
currentInstallRoot: strandedLegacyState.currentInstallRoot,
|
|
1174
|
+
}));
|
|
1175
|
+
}
|
|
1176
|
+
for (const otherChannel of listOtherRelayChannels(channel)) {
|
|
1177
|
+
if (otherChannel === 'stable'
|
|
1178
|
+
&& (shouldTreatStableLaneAsLegacyUnsuffixedInstall
|
|
1179
|
+
|| ignoreStableLaneConflict
|
|
1180
|
+
|| Boolean(legacyInstallRootToMigrate))) {
|
|
1181
|
+
continue;
|
|
1182
|
+
}
|
|
1183
|
+
const otherStatus = await readLocalStatus({
|
|
1184
|
+
...parsed,
|
|
1185
|
+
channel: formatRelayChannelLabel(otherChannel),
|
|
1186
|
+
});
|
|
1187
|
+
const otherLaneOccupiesDesiredUrl = otherStatus.baseUrl === desiredRelayUrl
|
|
1188
|
+
&& (otherStatus.installed
|
|
1189
|
+
|| otherStatus.service.active === true
|
|
1190
|
+
|| otherStatus.service.enabled === true);
|
|
1191
|
+
if (otherLaneOccupiesDesiredUrl) {
|
|
1192
|
+
throw createRelayLaneConflictError({
|
|
1193
|
+
requestedChannel: channel,
|
|
1194
|
+
conflictingChannel: otherChannel,
|
|
1195
|
+
relayUrl: desiredRelayUrl,
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
429
1199
|
const serverBinaryPath = typeof parsed.selfHostRelayBinaryOverride === 'string'
|
|
430
1200
|
? parsed.selfHostRelayBinaryOverride.trim()
|
|
431
1201
|
: '';
|
|
@@ -436,20 +1206,150 @@ export function createRelayHostEngine(deps) {
|
|
|
436
1206
|
? await deps.resolveLocalInstallVersion({ channel, mode, serverBinaryPath })
|
|
437
1207
|
: null;
|
|
438
1208
|
const policy = deps.localInstallPolicy ?? {};
|
|
1209
|
+
await (async () => {
|
|
1210
|
+
if (channel === 'stable')
|
|
1211
|
+
return undefined;
|
|
1212
|
+
const legacyUnitName = 'happier-server';
|
|
1213
|
+
const legacyDefinitionPath = backend === 'systemd-user' || backend === 'systemd-system'
|
|
1214
|
+
? resolveSystemdUnitDefinitionPath({ backend, unitName: legacyUnitName, homeDir: homedir() })
|
|
1215
|
+
: backend === 'launchd-user' || backend === 'launchd-system'
|
|
1216
|
+
? resolveLaunchdPlistDefinitionPath({ backend, label: legacyUnitName, homeDir: homedir() })
|
|
1217
|
+
: backend === 'schtasks-user' || backend === 'schtasks-system'
|
|
1218
|
+
? resolveWindowsWrapperDefinitionPath({ backend, label: legacyUnitName, homeDir: homedir() })
|
|
1219
|
+
: '';
|
|
1220
|
+
if (!legacyDefinitionPath)
|
|
1221
|
+
return undefined;
|
|
1222
|
+
if (!existsSync(legacyDefinitionPath))
|
|
1223
|
+
return undefined;
|
|
1224
|
+
const legacyText = await readFile(legacyDefinitionPath, 'utf8').catch(() => '');
|
|
1225
|
+
const legacyWorkingDir = parseServiceDefinitionWorkingDirectory({ backend, definitionText: legacyText });
|
|
1226
|
+
const legacyOwnedByInstallRoot = normalizeComparablePathKey(legacyWorkingDir) !== null
|
|
1227
|
+
&& normalizeComparablePathKey(legacyWorkingDir) === normalizeComparablePathKey(defaults.installRoot);
|
|
1228
|
+
if (!legacyOwnedByInstallRoot)
|
|
1229
|
+
return undefined;
|
|
1230
|
+
if (backend === 'systemd-user' || backend === 'systemd-system') {
|
|
1231
|
+
const prefix = backend === 'systemd-user' ? ['--user'] : [];
|
|
1232
|
+
if (policy.runServiceCommands !== false) {
|
|
1233
|
+
runLocalText('systemctl', [...prefix, 'disable', '--now', `${legacyUnitName}.service`]);
|
|
1234
|
+
}
|
|
1235
|
+
await rm(legacyDefinitionPath, { force: true }).catch(() => undefined);
|
|
1236
|
+
if (policy.runServiceCommands !== false) {
|
|
1237
|
+
runLocalText('systemctl', [...prefix, 'daemon-reload']);
|
|
1238
|
+
}
|
|
1239
|
+
return undefined;
|
|
1240
|
+
}
|
|
1241
|
+
if (backend === 'schtasks-user' || backend === 'schtasks-system') {
|
|
1242
|
+
if (policy.runServiceCommands !== false) {
|
|
1243
|
+
runLocalText('schtasks', ['/End', '/TN', `Happier\\${legacyUnitName}`]);
|
|
1244
|
+
runLocalText('schtasks', ['/Delete', '/F', '/TN', `Happier\\${legacyUnitName}`]);
|
|
1245
|
+
}
|
|
1246
|
+
await rm(legacyDefinitionPath, { force: true }).catch(() => undefined);
|
|
1247
|
+
return undefined;
|
|
1248
|
+
}
|
|
1249
|
+
if (policy.runServiceCommands !== false) {
|
|
1250
|
+
runLocalText('launchctl', ['unload', '-w', legacyDefinitionPath]);
|
|
1251
|
+
runLocalText('launchctl', ['remove', legacyUnitName]);
|
|
1252
|
+
}
|
|
1253
|
+
await rm(legacyDefinitionPath, { force: true }).catch(() => undefined);
|
|
1254
|
+
return undefined;
|
|
1255
|
+
})();
|
|
1256
|
+
// Propagate the resolved port (from `desiredRelayUrl`) into the env we
|
|
1257
|
+
// pass to the lower-level installer. Otherwise the installer would call
|
|
1258
|
+
// its own port-resolution helper with no configured port and might pick a
|
|
1259
|
+
// different ephemeral port, causing the advertised URL (desiredRelayUrl)
|
|
1260
|
+
// to disagree with what we actually wrote to the plist/unit file.
|
|
1261
|
+
const resolvedPortFromDesiredUrl = (() => {
|
|
1262
|
+
try {
|
|
1263
|
+
const parsedUrl = new URL(desiredRelayUrl);
|
|
1264
|
+
const value = Number.parseInt(parsedUrl.port, 10);
|
|
1265
|
+
return Number.isInteger(value) && value > 0 && value <= 65_535 ? String(value) : null;
|
|
1266
|
+
}
|
|
1267
|
+
catch {
|
|
1268
|
+
return null;
|
|
1269
|
+
}
|
|
1270
|
+
})();
|
|
1271
|
+
const envForInstaller = {
|
|
1272
|
+
...(parsed.env ?? {}),
|
|
1273
|
+
...(resolvedPortFromDesiredUrl && !(parsed.env ?? {}).PORT ? { PORT: resolvedPortFromDesiredUrl } : {}),
|
|
1274
|
+
};
|
|
439
1275
|
const local = await installOrUpdateRelayRuntimeLocal({
|
|
440
1276
|
serverBinaryPath,
|
|
441
1277
|
channel,
|
|
442
1278
|
mode,
|
|
443
|
-
env:
|
|
1279
|
+
env: envForInstaller,
|
|
1280
|
+
legacyInstallRoot: legacyInstallRootToMigrate,
|
|
444
1281
|
version,
|
|
445
1282
|
runServiceCommands: policy.runServiceCommands !== false,
|
|
446
1283
|
skipHealthCheck: policy.skipHealthCheck === true,
|
|
447
1284
|
});
|
|
448
1285
|
return {
|
|
449
|
-
relayUrl: String(local.baseUrl ?? '').trim() || `http://127.0.0.1:${
|
|
1286
|
+
relayUrl: String(local.baseUrl ?? '').trim() || `http://127.0.0.1:${defaults.serverPort}`,
|
|
450
1287
|
mode,
|
|
451
1288
|
};
|
|
452
1289
|
}
|
|
1290
|
+
async function uninstallLocal(parsed) {
|
|
1291
|
+
const mode = normalizeMode(parsed.mode);
|
|
1292
|
+
const channel = normalizeChannel(parsed.channel);
|
|
1293
|
+
const defaults = resolveRelayRuntimeDefaults({
|
|
1294
|
+
platform: process.platform,
|
|
1295
|
+
mode,
|
|
1296
|
+
channel,
|
|
1297
|
+
homeDir: homedir(),
|
|
1298
|
+
});
|
|
1299
|
+
const serverBinaryName = process.platform === 'win32' ? 'happier-server.exe' : 'happier-server';
|
|
1300
|
+
const installServerBinaryPath = join(defaults.installRoot, 'bin', serverBinaryName);
|
|
1301
|
+
const statePath = join(defaults.installRoot, 'self-host-state.json');
|
|
1302
|
+
const stdoutPath = join(defaults.logDir, 'server.out.log');
|
|
1303
|
+
const stderrPath = join(defaults.logDir, 'server.err.log');
|
|
1304
|
+
const backend = resolveServiceBackend({ platform: process.platform, mode });
|
|
1305
|
+
const effectiveServiceName = await resolveLocalEffectiveServiceName({
|
|
1306
|
+
backend,
|
|
1307
|
+
channel,
|
|
1308
|
+
defaults,
|
|
1309
|
+
});
|
|
1310
|
+
const serviceSpec = buildRelayRuntimeServiceSpec({
|
|
1311
|
+
label: effectiveServiceName,
|
|
1312
|
+
installRoot: defaults.installRoot,
|
|
1313
|
+
serverBinaryPath: installServerBinaryPath,
|
|
1314
|
+
env: {},
|
|
1315
|
+
stdoutPath,
|
|
1316
|
+
stderrPath,
|
|
1317
|
+
});
|
|
1318
|
+
const definition = buildServiceDefinition({
|
|
1319
|
+
backend,
|
|
1320
|
+
homeDir: homedir(),
|
|
1321
|
+
spec: serviceSpec,
|
|
1322
|
+
});
|
|
1323
|
+
const plan = planServiceAction({
|
|
1324
|
+
backend,
|
|
1325
|
+
action: 'uninstall',
|
|
1326
|
+
label: serviceSpec.label,
|
|
1327
|
+
definitionPath: definition.path,
|
|
1328
|
+
persistent: true,
|
|
1329
|
+
});
|
|
1330
|
+
await applyServicePlan(plan, {
|
|
1331
|
+
runCommands: true,
|
|
1332
|
+
});
|
|
1333
|
+
const cleanupTargets = [
|
|
1334
|
+
definition.path,
|
|
1335
|
+
statePath,
|
|
1336
|
+
installServerBinaryPath,
|
|
1337
|
+
join(defaults.binDir, serverBinaryName),
|
|
1338
|
+
defaults.installRoot,
|
|
1339
|
+
defaults.configDir,
|
|
1340
|
+
defaults.dataDir,
|
|
1341
|
+
defaults.logDir,
|
|
1342
|
+
];
|
|
1343
|
+
for (const path of cleanupTargets) {
|
|
1344
|
+
await rm(path, { force: true, recursive: true }).catch(() => undefined);
|
|
1345
|
+
}
|
|
1346
|
+
if (existsSync(defaults.installRoot)) {
|
|
1347
|
+
await rm(defaults.installRoot, { force: true, recursive: true }).catch(() => undefined);
|
|
1348
|
+
}
|
|
1349
|
+
if (existsSync(statePath)) {
|
|
1350
|
+
throw new Error('Failed to remove relay runtime state file.');
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
453
1353
|
async function resolveRemoteTarget(ssh, knownHostsMode) {
|
|
454
1354
|
return await deps.resolveRemoteReleaseTarget({ ssh, knownHostsMode });
|
|
455
1355
|
}
|
|
@@ -460,7 +1360,10 @@ export function createRelayHostEngine(deps) {
|
|
|
460
1360
|
const mode = normalizeMode(params.parsed.mode);
|
|
461
1361
|
const channel = normalizeChannel(params.parsed.channel);
|
|
462
1362
|
const defaults = resolveRelayDefaultsForRemote({ platform, channel, mode });
|
|
1363
|
+
const remoteHomeDir = await resolveRemoteUserHomeDir(deps, { ssh: params.ssh, knownHostsMode })
|
|
1364
|
+
?? resolveRemoteHomeDirForRuntime();
|
|
463
1365
|
const statePath = `${defaults.installRoot}/self-host-state.json`;
|
|
1366
|
+
const envPath = `${defaults.configDir}/server.env`;
|
|
464
1367
|
const stateResult = await deps.runRemoteText({
|
|
465
1368
|
ssh: params.ssh,
|
|
466
1369
|
knownHostsMode,
|
|
@@ -469,10 +1372,18 @@ export function createRelayHostEngine(deps) {
|
|
|
469
1372
|
const state = tryParseJsonObject(stateResult.stdout);
|
|
470
1373
|
const version = typeof state?.version === 'string' ? state.version : null;
|
|
471
1374
|
const backend = resolveServiceBackend({ platform, mode });
|
|
1375
|
+
const serviceName = await resolveRemoteEffectiveServiceName({
|
|
1376
|
+
ssh: params.ssh,
|
|
1377
|
+
knownHostsMode,
|
|
1378
|
+
backend,
|
|
1379
|
+
channel,
|
|
1380
|
+
remoteHomeDir,
|
|
1381
|
+
defaults,
|
|
1382
|
+
});
|
|
472
1383
|
const serviceResult = await deps.runRemoteText({
|
|
473
1384
|
ssh: params.ssh,
|
|
474
1385
|
knownHostsMode,
|
|
475
|
-
remoteCommand: buildRemoteServiceStatusCommand({ backend, serviceName
|
|
1386
|
+
remoteCommand: buildRemoteServiceStatusCommand({ backend, serviceName }),
|
|
476
1387
|
}).catch((error) => ({
|
|
477
1388
|
status: 1,
|
|
478
1389
|
stdout: '',
|
|
@@ -488,153 +1399,211 @@ export function createRelayHostEngine(deps) {
|
|
|
488
1399
|
knownHostsMode,
|
|
489
1400
|
remoteCommand: buildRemoteProbeExistsCommand({ path: installBinaryPath, kind: 'file' }),
|
|
490
1401
|
}).then((result) => String(result.stdout ?? '').trim() === 'yes').catch(() => false);
|
|
1402
|
+
const privilegedPrefix = backend === 'systemd-system' || backend === 'launchd-system'
|
|
1403
|
+
? 'sudo -n '
|
|
1404
|
+
: '';
|
|
1405
|
+
const envText = await deps.runRemoteText({
|
|
1406
|
+
ssh: params.ssh,
|
|
1407
|
+
knownHostsMode,
|
|
1408
|
+
remoteCommand: buildRemoteReadTextFileCommand({ path: envPath, privilegedPrefix }),
|
|
1409
|
+
}).then((result) => String(result.stdout ?? '')).catch(() => '');
|
|
1410
|
+
const baseUrl = resolveConfiguredSelfHostBaseUrl({
|
|
1411
|
+
fallbackBaseUrl: `http://${defaults.serverHost}:${defaults.serverPort}`,
|
|
1412
|
+
envText,
|
|
1413
|
+
});
|
|
1414
|
+
const healthy = service.active === true
|
|
1415
|
+
? await resolveRemoteRelayHealth({
|
|
1416
|
+
deps,
|
|
1417
|
+
ssh: params.ssh,
|
|
1418
|
+
knownHostsMode,
|
|
1419
|
+
relayUrl: baseUrl,
|
|
1420
|
+
healthPath: defaults.healthPath,
|
|
1421
|
+
})
|
|
1422
|
+
: service.active === null
|
|
1423
|
+
? null
|
|
1424
|
+
: false;
|
|
491
1425
|
return {
|
|
492
1426
|
installed: Boolean(version) || binaryExists,
|
|
493
1427
|
version,
|
|
494
1428
|
service,
|
|
495
|
-
baseUrl
|
|
496
|
-
healthy
|
|
1429
|
+
baseUrl,
|
|
1430
|
+
healthy,
|
|
497
1431
|
};
|
|
498
1432
|
}
|
|
499
1433
|
async function installRemote(params) {
|
|
500
1434
|
const knownHostsMode = params.ssh.knownHostsPath ? 'app' : 'system';
|
|
501
|
-
const target = await resolveRemoteTarget(params.ssh, knownHostsMode);
|
|
502
|
-
const platform = resolveRemotePlatform({ target });
|
|
503
|
-
const mode = normalizeMode(params.parsed.mode);
|
|
504
1435
|
const channel = normalizeChannel(params.parsed.channel);
|
|
505
|
-
const
|
|
506
|
-
const
|
|
507
|
-
const
|
|
1436
|
+
const mode = normalizeMode(params.parsed.mode);
|
|
1437
|
+
const defaults = resolveRelayRuntimeDefaults({ channel, mode });
|
|
1438
|
+
const requestedRelayUrl = resolveConfiguredSelfHostBaseUrl({
|
|
1439
|
+
fallbackBaseUrl: `http://${defaults.serverHost}:${defaults.serverPort}`,
|
|
1440
|
+
envText: Object.entries(params.parsed.env ?? {})
|
|
1441
|
+
.map(([key, value]) => `${key}=${String(value ?? '')}`)
|
|
1442
|
+
.join('\n'),
|
|
1443
|
+
});
|
|
508
1444
|
const remoteCli = await deps.installRemoteComponent({
|
|
509
1445
|
componentId: 'happier-cli',
|
|
510
1446
|
channel,
|
|
511
1447
|
ssh: params.ssh,
|
|
512
1448
|
knownHostsMode,
|
|
513
|
-
remoteHomeDir:
|
|
1449
|
+
remoteHomeDir: resolveRemoteHomeDirForComponents(),
|
|
514
1450
|
});
|
|
515
|
-
const
|
|
1451
|
+
const localServerOverride = typeof params.parsed.selfHostRelayBinaryOverride === 'string'
|
|
516
1452
|
? params.parsed.selfHostRelayBinaryOverride.trim()
|
|
517
1453
|
: '';
|
|
518
|
-
const
|
|
519
|
-
? {
|
|
520
|
-
: await deps.installRemoteComponent({
|
|
1454
|
+
const uploadedServer = localServerOverride
|
|
1455
|
+
? await deps.installRemoteComponent({
|
|
521
1456
|
componentId: 'happier-server',
|
|
522
1457
|
channel,
|
|
523
1458
|
ssh: params.ssh,
|
|
524
1459
|
knownHostsMode,
|
|
525
|
-
remoteHomeDir:
|
|
526
|
-
|
|
527
|
-
})
|
|
528
|
-
|
|
529
|
-
const
|
|
530
|
-
const stdoutPath = `${defaults.logDir}/server.out.log`;
|
|
531
|
-
const stderrPath = `${defaults.logDir}/server.err.log`;
|
|
532
|
-
const configEnvPath = `${defaults.configDir}/server.env`;
|
|
533
|
-
const statePath = `${defaults.installRoot}/self-host-state.json`;
|
|
534
|
-
const filesDir = `${defaults.dataDir}/files`;
|
|
535
|
-
const dbDir = `${defaults.dataDir}/pglite`;
|
|
536
|
-
const serverBinDir = posixPath.dirname(remoteServer.binaryPath);
|
|
537
|
-
const nodeModulesPath = await deps.runRemoteText({
|
|
538
|
-
ssh: params.ssh,
|
|
539
|
-
knownHostsMode,
|
|
540
|
-
remoteCommand: buildRemoteProbeExistsCommand({ path: `${serverBinDir}/node_modules`, kind: 'dir' }),
|
|
541
|
-
}).then((result) => String(result.stdout ?? '').trim() === 'yes'
|
|
542
|
-
? `${serverBinDir}/node_modules`
|
|
543
|
-
: '').catch(() => '');
|
|
544
|
-
const prismaEnginePath = await resolveFirstRemoteExistingPath(deps, {
|
|
1460
|
+
remoteHomeDir: resolveRemoteHomeDirForComponents(),
|
|
1461
|
+
localBinaryPath: localServerOverride,
|
|
1462
|
+
})
|
|
1463
|
+
: null;
|
|
1464
|
+
const result = await deps.runRemoteText({
|
|
545
1465
|
ssh: params.ssh,
|
|
546
1466
|
knownHostsMode,
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
1467
|
+
remoteCommand: buildRemoteRelayRuntimeInstallCommand({
|
|
1468
|
+
cliBinaryPath: remoteCli.binaryPath,
|
|
1469
|
+
channel: formatRelayChannelLabel(channel),
|
|
1470
|
+
mode,
|
|
1471
|
+
env: params.parsed.env ?? {},
|
|
1472
|
+
...(uploadedServer ? { serverBinaryPath: uploadedServer.binaryPath } : {}),
|
|
551
1473
|
}),
|
|
552
1474
|
});
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
1475
|
+
const envelope = parseLastJsonLineObject(result.stdout);
|
|
1476
|
+
const envelopeData = envelope?.data && typeof envelope.data === 'object' && !Array.isArray(envelope.data)
|
|
1477
|
+
? envelope.data
|
|
1478
|
+
: null;
|
|
1479
|
+
const envelopeError = envelope?.error && typeof envelope.error === 'object' && !Array.isArray(envelope.error)
|
|
1480
|
+
? envelope.error
|
|
1481
|
+
: null;
|
|
1482
|
+
const remoteMessage = typeof envelopeError?.message === 'string' ? envelopeError.message.trim() : '';
|
|
1483
|
+
if (result.status !== 0 || envelope?.ok !== true || envelope.kind !== 'relay_host_install') {
|
|
1484
|
+
const legacyHealthMismatch = uploadedServer
|
|
1485
|
+
&& remoteMessage.includes('did not become healthy')
|
|
1486
|
+
&& requestedRelayUrl !== `http://${defaults.serverHost}:${defaults.serverPort}`
|
|
1487
|
+
&& await resolveRemoteRelayHealth({
|
|
1488
|
+
deps,
|
|
1489
|
+
ssh: params.ssh,
|
|
1490
|
+
knownHostsMode,
|
|
1491
|
+
relayUrl: requestedRelayUrl,
|
|
1492
|
+
healthPath: defaults.healthPath,
|
|
1493
|
+
maxAttempts: 30,
|
|
1494
|
+
sleepSeconds: 1,
|
|
1495
|
+
});
|
|
1496
|
+
if (legacyHealthMismatch) {
|
|
1497
|
+
return { relayUrl: requestedRelayUrl, mode };
|
|
1498
|
+
}
|
|
1499
|
+
throw new Error(remoteMessage || result.stderr.trim() || 'Remote canonical relay installer failed');
|
|
1500
|
+
}
|
|
1501
|
+
const relayUrl = typeof envelopeData?.relayUrl === 'string' ? envelopeData.relayUrl.trim() : '';
|
|
1502
|
+
const installedMode = envelopeData?.mode === 'system' ? 'system' : envelopeData?.mode === 'user' ? 'user' : null;
|
|
1503
|
+
if (!relayUrl || !installedMode) {
|
|
1504
|
+
throw new Error('Remote canonical relay installer returned an unsupported response');
|
|
1505
|
+
}
|
|
1506
|
+
return {
|
|
1507
|
+
relayUrl: requestedRelayUrl !== `http://${defaults.serverHost}:${defaults.serverPort}`
|
|
1508
|
+
? requestedRelayUrl
|
|
1509
|
+
: relayUrl,
|
|
1510
|
+
mode: installedMode,
|
|
570
1511
|
};
|
|
1512
|
+
}
|
|
1513
|
+
async function assertRemoteRelayRuntimeHealthy(params) {
|
|
1514
|
+
const privilegedPrefix = params.backend === 'systemd-system' || params.backend === 'launchd-system'
|
|
1515
|
+
? 'sudo -n '
|
|
1516
|
+
: '';
|
|
1517
|
+
const probeCommand = buildRelayRuntimeHealthProbeCommand({
|
|
1518
|
+
baseUrl: params.relayUrl,
|
|
1519
|
+
path: params.healthPath,
|
|
1520
|
+
maxAttempts: 120,
|
|
1521
|
+
sleepSeconds: 1,
|
|
1522
|
+
});
|
|
1523
|
+
const probeResult = await params.deps.runRemoteText({
|
|
1524
|
+
ssh: params.ssh,
|
|
1525
|
+
knownHostsMode: params.knownHostsMode,
|
|
1526
|
+
remoteCommand: probeCommand,
|
|
1527
|
+
});
|
|
1528
|
+
const probeStdout = String(probeResult.stdout ?? '');
|
|
1529
|
+
if (probeResult.status === 0 || probeStdout.includes(RELAY_RUNTIME_HEALTH_OK_TOKEN)) {
|
|
1530
|
+
return;
|
|
1531
|
+
}
|
|
1532
|
+
const tailResult = await params.deps.runRemoteText({
|
|
1533
|
+
ssh: params.ssh,
|
|
1534
|
+
knownHostsMode: params.knownHostsMode,
|
|
1535
|
+
remoteCommand: `${privilegedPrefix}tail -n 80 ${quoteRemoteShellArg(params.stderrPath)} 2>/dev/null || true`,
|
|
1536
|
+
}).catch(() => ({ status: 1, stdout: '', stderr: '' }));
|
|
1537
|
+
const tailText = String(tailResult.stdout ?? '').trim();
|
|
1538
|
+
const stderrDetail = probeResult.stderr.trim();
|
|
1539
|
+
const message = [
|
|
1540
|
+
`Remote relay runtime did not become healthy at ${params.relayUrl}.`,
|
|
1541
|
+
probeResult.status === 3 ? 'Missing curl/wget on the remote host (required for health checks).' : '',
|
|
1542
|
+
`Exit status: ${probeResult.status}`,
|
|
1543
|
+
stderrDetail ? `Probe error: ${stderrDetail}` : '',
|
|
1544
|
+
tailText ? `Recent stderr:\n${tailText}` : '',
|
|
1545
|
+
].filter(Boolean).join('\n');
|
|
1546
|
+
throw new Error(message);
|
|
1547
|
+
}
|
|
1548
|
+
async function uninstallRemote(params) {
|
|
1549
|
+
const knownHostsMode = params.ssh.knownHostsPath ? 'app' : 'system';
|
|
1550
|
+
const target = await resolveRemoteTarget(params.ssh, knownHostsMode);
|
|
1551
|
+
const platform = resolveRemotePlatform({ target });
|
|
1552
|
+
const mode = normalizeMode(params.parsed.mode);
|
|
1553
|
+
const channel = normalizeChannel(params.parsed.channel);
|
|
1554
|
+
const defaults = resolveRelayDefaultsForRemote({ platform, channel, mode });
|
|
1555
|
+
const remoteHomeDir = await resolveRemoteUserHomeDir(deps, { ssh: params.ssh, knownHostsMode }) ?? resolveRemoteHomeDirForRuntime();
|
|
571
1556
|
const backend = resolveServiceBackend({ platform, mode });
|
|
572
|
-
const
|
|
573
|
-
|
|
1557
|
+
const effectiveServiceName = await resolveRemoteEffectiveServiceName({
|
|
1558
|
+
ssh: params.ssh,
|
|
1559
|
+
knownHostsMode,
|
|
574
1560
|
backend,
|
|
575
|
-
|
|
1561
|
+
channel,
|
|
576
1562
|
remoteHomeDir,
|
|
1563
|
+
defaults,
|
|
1564
|
+
});
|
|
1565
|
+
const serviceSpec = buildRelayRuntimeServiceSpec({
|
|
1566
|
+
label: effectiveServiceName,
|
|
1567
|
+
installRoot: defaults.installRoot,
|
|
1568
|
+
serverBinaryPath: `${defaults.installRoot}/bin/happier-server`,
|
|
1569
|
+
env: {},
|
|
1570
|
+
stdoutPath: `${defaults.logDir}/server.out.log`,
|
|
1571
|
+
stderrPath: `${defaults.logDir}/server.err.log`,
|
|
577
1572
|
});
|
|
578
|
-
const
|
|
1573
|
+
const definitionPath = resolveRemoteServiceDefinitionPath({
|
|
579
1574
|
backend,
|
|
1575
|
+
label: serviceSpec.label,
|
|
580
1576
|
remoteHomeDir,
|
|
581
|
-
spec: serviceSpec,
|
|
582
|
-
defaultPathEnv: remotePathEnv,
|
|
583
1577
|
});
|
|
584
|
-
const
|
|
585
|
-
const staged = await writeRemoteFilesViaScp({
|
|
586
|
-
deps,
|
|
587
|
-
ssh: params.ssh,
|
|
588
|
-
knownHostsMode,
|
|
589
|
-
remoteStageParent: stageParent,
|
|
590
|
-
files: [
|
|
591
|
-
{ relativePath: 'server.env', contents: renderedEnv.envText },
|
|
592
|
-
{ relativePath: 'self-host-state.json', contents: `${JSON.stringify({
|
|
593
|
-
channel,
|
|
594
|
-
mode,
|
|
595
|
-
version: remoteServer.versionId || null,
|
|
596
|
-
updatedAt: new Date(now()).toISOString(),
|
|
597
|
-
}, null, 2)}\n` },
|
|
598
|
-
],
|
|
599
|
-
});
|
|
600
|
-
const remoteEnvPath = `${staged.remoteRoot}/server.env`;
|
|
601
|
-
const remoteStatePath = `${staged.remoteRoot}/self-host-state.json`;
|
|
602
|
-
const setupCommands = [
|
|
603
|
-
'set -eu',
|
|
604
|
-
`mkdir -p ${quoteRemoteShellArg(defaults.installRoot)}`,
|
|
605
|
-
`mkdir -p ${quoteRemoteShellArg(defaults.configDir)}`,
|
|
606
|
-
`mkdir -p ${quoteRemoteShellArg(defaults.dataDir)}`,
|
|
607
|
-
`mkdir -p ${quoteRemoteShellArg(filesDir)}`,
|
|
608
|
-
`mkdir -p ${quoteRemoteShellArg(dbDir)}`,
|
|
609
|
-
`mkdir -p ${quoteRemoteShellArg(defaults.logDir)}`,
|
|
610
|
-
`mkdir -p ${quoteRemoteShellArg(`${defaults.installRoot}/bin`)}`,
|
|
611
|
-
buildRemoteInstallBinaryShimCommand({ sourcePath: remoteServer.binaryPath, destPath: installServerBinaryPath }),
|
|
612
|
-
buildRemoteInstallBinaryShimCommand({ sourcePath: installServerBinaryPath, destPath: shimPath }),
|
|
613
|
-
`cp ${quoteRemoteShellArg(remoteEnvPath)} ${quoteRemoteShellArg(configEnvPath)}`,
|
|
614
|
-
`cp ${quoteRemoteShellArg(remoteStatePath)} ${quoteRemoteShellArg(statePath)}`,
|
|
615
|
-
staged.cleanupRemoteCommand,
|
|
616
|
-
].join('; ');
|
|
617
|
-
const setupResult = await deps.runRemoteText({
|
|
1578
|
+
const controlResult = await deps.runRemoteText({
|
|
618
1579
|
ssh: params.ssh,
|
|
619
1580
|
knownHostsMode,
|
|
620
|
-
remoteCommand:
|
|
1581
|
+
remoteCommand: buildRemoteControlCommand({
|
|
1582
|
+
backend,
|
|
1583
|
+
serviceName: effectiveServiceName,
|
|
1584
|
+
action: 'uninstall',
|
|
1585
|
+
}),
|
|
621
1586
|
});
|
|
622
|
-
if (
|
|
623
|
-
throw new Error(
|
|
1587
|
+
if (controlResult.status !== 0) {
|
|
1588
|
+
throw new Error(controlResult.stderr.trim() || 'Failed to uninstall relay runtime service');
|
|
624
1589
|
}
|
|
625
|
-
|
|
626
|
-
|
|
1590
|
+
const cleanupCommand = buildRemoteRelayRuntimeCleanupCommand({
|
|
1591
|
+
definitionPath,
|
|
1592
|
+
installRoot: defaults.installRoot,
|
|
1593
|
+
binDir: defaults.binDir,
|
|
1594
|
+
configDir: defaults.configDir,
|
|
1595
|
+
dataDir: defaults.dataDir,
|
|
1596
|
+
logDir: defaults.logDir,
|
|
1597
|
+
useSudo: backend === 'systemd-system' || backend === 'launchd-system',
|
|
1598
|
+
});
|
|
1599
|
+
const cleanupResult = await deps.runRemoteText({
|
|
627
1600
|
ssh: params.ssh,
|
|
628
1601
|
knownHostsMode,
|
|
629
|
-
|
|
630
|
-
definitionPath,
|
|
631
|
-
definitionContents,
|
|
632
|
-
serviceName: defaults.serviceName,
|
|
1602
|
+
remoteCommand: cleanupCommand,
|
|
633
1603
|
});
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
};
|
|
1604
|
+
if (cleanupResult.status !== 0) {
|
|
1605
|
+
throw new Error(cleanupResult.stderr.trim() || 'Failed to remove relay runtime files');
|
|
1606
|
+
}
|
|
638
1607
|
}
|
|
639
1608
|
return {
|
|
640
1609
|
async readStatus(params) {
|
|
@@ -654,6 +1623,10 @@ export function createRelayHostEngine(deps) {
|
|
|
654
1623
|
async control(params) {
|
|
655
1624
|
const parsed = params;
|
|
656
1625
|
if (parsed.target.kind !== 'ssh') {
|
|
1626
|
+
if (parsed.action === 'uninstall') {
|
|
1627
|
+
await uninstallLocal(parsed);
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
657
1630
|
const mode = normalizeMode(parsed.mode);
|
|
658
1631
|
const channel = normalizeChannel(parsed.channel);
|
|
659
1632
|
const defaults = resolveRelayRuntimeDefaults({
|
|
@@ -664,27 +1637,97 @@ export function createRelayHostEngine(deps) {
|
|
|
664
1637
|
});
|
|
665
1638
|
const backend = resolveServiceBackend({ platform: process.platform, mode });
|
|
666
1639
|
const serviceName = defaults.serviceName;
|
|
1640
|
+
const ensureLocalRelayHealthy = async () => {
|
|
1641
|
+
if (parsed.action !== 'start' && parsed.action !== 'restart') {
|
|
1642
|
+
return;
|
|
1643
|
+
}
|
|
1644
|
+
const resolveRelayStartHealthcheckTimeoutMs = () => {
|
|
1645
|
+
const raw = process.env.HAPPIER_RELAY_HOST_LOCAL_HEALTHCHECK_TIMEOUT_MS;
|
|
1646
|
+
if (typeof raw !== 'string' || raw.trim().length === 0)
|
|
1647
|
+
return 120_000;
|
|
1648
|
+
const parsedTimeout = Number.parseInt(raw, 10);
|
|
1649
|
+
if (!Number.isFinite(parsedTimeout))
|
|
1650
|
+
return 120_000;
|
|
1651
|
+
return Math.max(1, Math.min(120_000, Math.floor(parsedTimeout)));
|
|
1652
|
+
};
|
|
1653
|
+
const envPath = join(defaults.configDir, 'server.env');
|
|
1654
|
+
const envText = existsSync(envPath) ? await readFile(envPath, 'utf8').catch(() => '') : '';
|
|
1655
|
+
const baseUrl = resolveConfiguredSelfHostBaseUrl({
|
|
1656
|
+
fallbackBaseUrl: `http://${defaults.serverHost}:${defaults.serverPort}`,
|
|
1657
|
+
envText,
|
|
1658
|
+
});
|
|
1659
|
+
const healthy = await resolveLocalRelayHealth({
|
|
1660
|
+
baseUrl,
|
|
1661
|
+
healthPath: defaults.healthPath,
|
|
1662
|
+
timeoutMs: resolveRelayStartHealthcheckTimeoutMs(),
|
|
1663
|
+
}).catch(() => false);
|
|
1664
|
+
if (!healthy) {
|
|
1665
|
+
throw new Error(`Local relay runtime did not become healthy at ${baseUrl}.`);
|
|
1666
|
+
}
|
|
1667
|
+
};
|
|
1668
|
+
const effectiveServiceName = await resolveLocalEffectiveServiceName({
|
|
1669
|
+
backend,
|
|
1670
|
+
channel,
|
|
1671
|
+
defaults,
|
|
1672
|
+
});
|
|
667
1673
|
if (backend === 'systemd-user' || backend === 'systemd-system') {
|
|
668
1674
|
const prefix = backend === 'systemd-user' ? ['--user'] : [];
|
|
669
|
-
const result = runLocalText('systemctl', [...prefix, parsed.action, `${
|
|
1675
|
+
const result = runLocalText('systemctl', [...prefix, parsed.action, `${effectiveServiceName}.service`]);
|
|
670
1676
|
if (result.status !== 0) {
|
|
671
|
-
throw
|
|
1677
|
+
throw mapRelayRuntimeServiceControlError({
|
|
1678
|
+
backend,
|
|
1679
|
+
stderr: result.stderr,
|
|
1680
|
+
fallbackMessage: `Failed to ${parsed.action} relay runtime.`,
|
|
1681
|
+
});
|
|
672
1682
|
}
|
|
1683
|
+
await ensureLocalRelayHealthy();
|
|
673
1684
|
return;
|
|
674
1685
|
}
|
|
675
1686
|
if (backend === 'launchd-user' || backend === 'launchd-system') {
|
|
676
1687
|
const uid = typeof process.getuid === 'function' ? process.getuid() : 0;
|
|
677
|
-
const domain = backend === 'launchd-system' ? `system/${
|
|
678
|
-
const
|
|
679
|
-
?
|
|
680
|
-
:
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
|
|
1688
|
+
const domain = backend === 'launchd-system' ? `system/${effectiveServiceName}` : `gui/${uid}/${effectiveServiceName}`;
|
|
1689
|
+
const plistPath = backend === 'launchd-system'
|
|
1690
|
+
? `/Library/LaunchDaemons/${effectiveServiceName}.plist`
|
|
1691
|
+
: join(homedir(), 'Library', 'LaunchAgents', `${effectiveServiceName}.plist`);
|
|
1692
|
+
const runLaunchctl = (args, options = {}) => {
|
|
1693
|
+
const result = runLocalText('launchctl', args);
|
|
1694
|
+
if (result.status !== 0 && options.allowFail !== true) {
|
|
1695
|
+
throw new Error(result.stderr.trim() || `Failed to ${parsed.action} relay runtime.`);
|
|
1696
|
+
}
|
|
1697
|
+
return result;
|
|
1698
|
+
};
|
|
1699
|
+
if (parsed.action === 'stop') {
|
|
1700
|
+
runLaunchctl(['bootout', domain], { allowFail: true });
|
|
1701
|
+
return;
|
|
1702
|
+
}
|
|
1703
|
+
if (parsed.action === 'restart') {
|
|
1704
|
+
const kickstartResult = runLaunchctl(['kickstart', '-k', domain], { allowFail: true });
|
|
1705
|
+
if (kickstartResult.status === 0) {
|
|
1706
|
+
await ensureLocalRelayHealthy();
|
|
1707
|
+
return;
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
if (backend === 'launchd-user' && uid > 0) {
|
|
1711
|
+
runLaunchctl(['bootout', domain], { allowFail: true });
|
|
1712
|
+
runLaunchctl(['bootstrap', `gui/${uid}`, plistPath]);
|
|
1713
|
+
runLaunchctl(['enable', domain]);
|
|
1714
|
+
runLaunchctl(['kickstart', '-k', domain]);
|
|
1715
|
+
await ensureLocalRelayHealthy();
|
|
1716
|
+
return;
|
|
684
1717
|
}
|
|
1718
|
+
if (backend === 'launchd-system') {
|
|
1719
|
+
runLaunchctl(['bootout', domain], { allowFail: true });
|
|
1720
|
+
runLaunchctl(['bootstrap', 'system', plistPath]);
|
|
1721
|
+
runLaunchctl(['enable', domain]);
|
|
1722
|
+
runLaunchctl(['kickstart', '-k', domain]);
|
|
1723
|
+
await ensureLocalRelayHealthy();
|
|
1724
|
+
return;
|
|
1725
|
+
}
|
|
1726
|
+
runLaunchctl(['kickstart', '-k', domain]);
|
|
1727
|
+
await ensureLocalRelayHealthy();
|
|
685
1728
|
return;
|
|
686
1729
|
}
|
|
687
|
-
const taskName = `Happier\\${
|
|
1730
|
+
const taskName = `Happier\\${effectiveServiceName}`;
|
|
688
1731
|
const args = parsed.action === 'stop'
|
|
689
1732
|
? ['/End', '/TN', taskName]
|
|
690
1733
|
: ['/Run', '/TN', taskName];
|
|
@@ -692,26 +1735,60 @@ export function createRelayHostEngine(deps) {
|
|
|
692
1735
|
if (result.status !== 0) {
|
|
693
1736
|
throw new Error(result.stderr.trim() || `Failed to ${parsed.action} relay runtime.`);
|
|
694
1737
|
}
|
|
1738
|
+
await ensureLocalRelayHealthy();
|
|
695
1739
|
return;
|
|
696
1740
|
}
|
|
697
|
-
|
|
698
|
-
|
|
1741
|
+
if (parsed.target.kind !== 'ssh') {
|
|
1742
|
+
throw new Error('Remote relay runtime control requires an ssh target.');
|
|
1743
|
+
}
|
|
1744
|
+
const ssh = parsed.target.ssh;
|
|
1745
|
+
const knownHostsMode = ssh.knownHostsPath ? 'app' : 'system';
|
|
1746
|
+
const target = await resolveRemoteTarget(ssh, knownHostsMode);
|
|
699
1747
|
const platform = resolveRemotePlatform({ target });
|
|
700
1748
|
const mode = normalizeMode(parsed.mode);
|
|
701
1749
|
const channel = normalizeChannel(parsed.channel);
|
|
702
1750
|
const defaults = resolveRelayDefaultsForRemote({ platform, channel, mode });
|
|
1751
|
+
const remoteHomeDir = await resolveRemoteUserHomeDir(deps, { ssh, knownHostsMode }) ?? resolveRemoteHomeDirForRuntime();
|
|
703
1752
|
const backend = resolveServiceBackend({ platform, mode });
|
|
1753
|
+
if (parsed.action === 'uninstall') {
|
|
1754
|
+
await uninstallRemote({ parsed, ssh });
|
|
1755
|
+
return;
|
|
1756
|
+
}
|
|
1757
|
+
const effectiveServiceName = await resolveRemoteEffectiveServiceName({
|
|
1758
|
+
ssh,
|
|
1759
|
+
knownHostsMode,
|
|
1760
|
+
backend,
|
|
1761
|
+
channel,
|
|
1762
|
+
remoteHomeDir,
|
|
1763
|
+
defaults,
|
|
1764
|
+
});
|
|
704
1765
|
const result = await deps.runRemoteText({
|
|
705
|
-
ssh
|
|
1766
|
+
ssh,
|
|
706
1767
|
knownHostsMode,
|
|
707
1768
|
remoteCommand: buildRemoteControlCommand({
|
|
708
1769
|
backend,
|
|
709
|
-
serviceName:
|
|
1770
|
+
serviceName: effectiveServiceName,
|
|
710
1771
|
action: parsed.action,
|
|
711
1772
|
}),
|
|
712
1773
|
});
|
|
713
1774
|
if (result.status !== 0) {
|
|
714
|
-
throw
|
|
1775
|
+
throw mapRelayRuntimeServiceControlError({
|
|
1776
|
+
backend,
|
|
1777
|
+
stderr: result.stderr,
|
|
1778
|
+
fallbackMessage: `Failed to ${parsed.action} relay runtime.`,
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
if (parsed.action === 'start' || parsed.action === 'restart') {
|
|
1782
|
+
const status = await readRemoteStatus({ parsed, ssh });
|
|
1783
|
+
await assertRemoteRelayRuntimeHealthy({
|
|
1784
|
+
deps,
|
|
1785
|
+
ssh,
|
|
1786
|
+
knownHostsMode,
|
|
1787
|
+
backend,
|
|
1788
|
+
relayUrl: status.baseUrl,
|
|
1789
|
+
healthPath: defaults.healthPath,
|
|
1790
|
+
stderrPath: `${defaults.logDir}/server.err.log`,
|
|
1791
|
+
});
|
|
715
1792
|
}
|
|
716
1793
|
},
|
|
717
1794
|
};
|