@happier-dev/stack 0.2.1-preview.1775586714.26562 → 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 +24 -0
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.js +121 -15
- package/node_modules/@happier-dev/agents/dist/providers/providerCliRuntime.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/providers/readSessionMetadataConnectedServiceBindings.d.ts +3 -0
- package/node_modules/@happier-dev/agents/dist/providers/readSessionMetadataConnectedServiceBindings.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/readSessionMetadataConnectedServiceBindings.js +9 -0
- package/node_modules/@happier-dev/agents/dist/providers/readSessionMetadataConnectedServiceBindings.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.d.ts +26 -0
- package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.d.ts.map +1 -1
- package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.js +52 -10
- package/node_modules/@happier-dev/agents/dist/resolveAgentIdFromSessionMetadata.js.map +1 -1
- package/node_modules/@happier-dev/agents/dist/runtime/agentStateRequestCoverage.d.ts +16 -0
- package/node_modules/@happier-dev/agents/dist/runtime/agentStateRequestCoverage.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtime/agentStateRequestCoverage.js +120 -0
- package/node_modules/@happier-dev/agents/dist/runtime/agentStateRequestCoverage.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.d.ts +82 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.js +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 +161 -71
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildCliBinaryArtifactPayload.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.d.ts +6 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.js +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 +83 -9
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/compilePrismaMigrateBinary.d.ts +10 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/compilePrismaMigrateBinary.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/compilePrismaMigrateBinary.js +13 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/compilePrismaMigrateBinary.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.d.ts +9 -6
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.js +63 -9
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/finalizeRuntimeArtifactPayload.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/finalizeRuntimeArtifactPayload.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/finalizeRuntimeArtifactPayload.js +45 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/finalizeRuntimeArtifactPayload.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.js +2 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/refreshCliBinaryArtifactRuntimeAssetBuildManifest.d.ts +8 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/refreshCliBinaryArtifactRuntimeAssetBuildManifest.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/refreshCliBinaryArtifactRuntimeAssetBuildManifest.js +16 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/refreshCliBinaryArtifactRuntimeAssetBuildManifest.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverBuildDbProviders.d.ts +4 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverBuildDbProviders.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverBuildDbProviders.js +33 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverBuildDbProviders.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.d.ts +11 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.js +222 -12
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/serverSidecars.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/shouldReuseCliDistSnapshot.d.ts +6 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/shouldReuseCliDistSnapshot.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/shouldReuseCliDistSnapshot.js +48 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/shouldReuseCliDistSnapshot.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.d.ts +3 -0
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.js +7 -97
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/withCliDistBuildLock.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/componentCatalog.d.ts +31 -31
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/componentCatalog.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.d.ts +9 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.js +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 +10 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.js +7 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.js +7 -7
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installLayout.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.js +156 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/installVersionedPayload.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.js +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.js +13 -3
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/promoteVersionedPayload.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.d.ts +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.js +38 -4
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/pruneRetainedVersions.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.js +64 -23
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.d.ts +15 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.js +829 -76
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntimeInstall.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveDesiredShimTargets.d.ts +14 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveDesiredShimTargets.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveDesiredShimTargets.js +29 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveDesiredShimTargets.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.d.ts +32 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.js +21 -4
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveInstalledComponentPaths.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveJunctionFreeCurrentPath.d.ts +34 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveJunctionFreeCurrentPath.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveJunctionFreeCurrentPath.js +49 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveJunctionFreeCurrentPath.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveManagedCliReleaseChannel.d.ts +29 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveManagedCliReleaseChannel.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveManagedCliReleaseChannel.js +177 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveManagedCliReleaseChannel.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveNonCollidingRelayPort.d.ts +39 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveNonCollidingRelayPort.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveNonCollidingRelayPort.js +112 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/resolveNonCollidingRelayPort.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/runtimeKinds.d.ts +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/runtimeKinds.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.d.ts +53 -0
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.js +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 +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/process/index.js +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/process/runCommandStreaming.d.ts +9 -0
- package/node_modules/@happier-dev/cli-common/dist/process/runCommandStreaming.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/runCommandStreaming.js +64 -0
- package/node_modules/@happier-dev/cli-common/dist/process/runCommandStreaming.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.js +35 -7
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.js +42 -20
- package/node_modules/@happier-dev/cli-common/dist/providers/downloadGitHubReleaseAsset.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.d.ts +12 -0
- package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.js +86 -16
- package/node_modules/@happier-dev/cli-common/dist/providers/extractGitHubReleaseAsset.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/install.d.ts +3 -0
- package/node_modules/@happier-dev/cli-common/dist/providers/install.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/install.js +551 -78
- package/node_modules/@happier-dev/cli-common/dist/providers/install.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.js +4 -3
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.js +34 -3
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/nodeRelease.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.js +37 -12
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.d.ts +3 -3
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.js +109 -38
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.js +10 -5
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/relayHost/buildRelayRuntimeHealthProbeCommand.d.ts +8 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/buildRelayRuntimeHealthProbeCommand.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/buildRelayRuntimeHealthProbeCommand.js +40 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/buildRelayRuntimeHealthProbeCommand.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.d.ts +3 -2
- package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.js +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 +5 -5
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.d.ts +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.d.ts +70 -5
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/connectedServicesCapabilities.d.ts +19 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/connectedServicesCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/connectedServicesCapabilities.js +18 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/connectedServicesCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.d.ts +4 -4
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/petsCapabilities.d.ts +84 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/petsCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/petsCapabilities.js +56 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/petsCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverCapabilities.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverCapabilities.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverIdentityCapabilities.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverIdentityCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverIdentityCapabilities.js +18 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverIdentityCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.js +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/serverRetentionCapabilities.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sessionCapabilities.d.ts +50 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sessionCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sessionCapabilities.js +35 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sessionCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sharingCapabilities.d.ts +16 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sharingCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sharingCapabilities.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/sharingCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts +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 +106 -5
- package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/dist/features.d.ts.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/features.js +5 -0
- package/node_modules/@happier-dev/protocol/dist/features.js.map +1 -1
- package/node_modules/@happier-dev/protocol/dist/index.d.ts +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_runtime_snapshot.test.mjs +3 -2
- package/scripts/eas.mjs +3 -2
- package/scripts/eas_platform_parsing.test.mjs +9 -0
- package/scripts/ghops.test.mjs +477 -6
- package/scripts/happier.mjs +1 -429
- package/scripts/happier_defaults_from_settings.test.mjs +56 -83
- package/scripts/happier_main.mjs +433 -0
- package/scripts/happier_runtime_snapshot.test.mjs +186 -14
- package/scripts/happier_server_url_scope.test.mjs +3 -1
- package/scripts/happier_tsx_fallback.test.mjs +5 -4
- package/scripts/happier_wrapper_bootstrap.test.mjs +208 -0
- package/scripts/hstack_wrapper_bundled_workspace_sync.test.mjs +351 -0
- package/scripts/init_shim_invoked_cwd.test.mjs +10 -2
- package/scripts/lifecycle_authority_inventory.test.mjs +40 -0
- package/scripts/lint.mjs +3 -2
- package/scripts/localBundledWorkspacePreflight.test.mjs +330 -0
- package/scripts/migrate.mjs +30 -5
- package/scripts/migrate_effective_db_provider.test.mjs +68 -0
- package/scripts/mobile.mjs +59 -13
- package/scripts/mobile_dev_client.mjs +12 -7
- package/scripts/mobile_dev_client_android_falls_back_to_pipeline_in_test_stub.test.mjs +30 -1
- package/scripts/mobile_dev_client_android_reuse_existing_apk_in_test_stub.test.mjs +62 -1
- package/scripts/mobile_dev_client_android_reuse_falls_back_to_cached_apk_in_test_stub.test.mjs +1 -1
- package/scripts/mobile_dev_client_help_smoke.test.mjs +2 -0
- package/scripts/mobile_memory_profiling_prebuild_patches_podfile_autolinking.test.mjs +94 -0
- package/scripts/mobile_profiling_runtime_uses_simulator_selection.test.mjs +116 -0
- package/scripts/mobile_run_android_passes_port.test.mjs +120 -2
- package/scripts/orchestrated_stack_auth_flow.test.mjs +40 -4
- package/scripts/orchestrated_stack_auth_flow_webapp_url.test.mjs +76 -4
- package/scripts/pack.mjs +53 -8
- package/scripts/pack.test.mjs +113 -2
- package/scripts/pglite_lock.integration.test.mjs +46 -2
- package/scripts/profile_mobile_scenario.mjs +235 -0
- package/scripts/profile_processes.mjs +138 -0
- package/scripts/profiling/ios_xctrace_memory_diagnostics.mjs +91 -0
- package/scripts/profiling/ios_xctrace_memory_diagnostics.test.mjs +72 -0
- package/scripts/profiling/mobile_profile_scenarios.mjs +830 -0
- package/scripts/profiling/mobile_profile_scenarios.test.mjs +379 -0
- package/scripts/profiling/process_profiler.mjs +424 -0
- package/scripts/profiling/process_profiler.test.mjs +214 -0
- package/scripts/provider_projection_owners.test.mjs +29 -0
- package/scripts/provision/linux-ubuntu-provision.sh +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 +281 -80
- package/scripts/run_effective_db_provider.test.mjs +79 -0
- package/scripts/run_script_with_stack_env.restart_port_reuse.test.mjs +80 -0
- package/scripts/run_source_server_workspace_deps.test.mjs +18 -0
- package/scripts/run_startup_topology_side_effects.test.mjs +196 -0
- package/scripts/runtime/launch/inspectActiveRuntimeSnapshot.mjs +40 -13
- package/scripts/runtime/launch/resolveActiveRuntimeSnapshot.test.mjs +119 -0
- package/scripts/runtime/launch/resolveCliRuntimeLaunchSpec.mjs +51 -0
- package/scripts/runtime/launch/resolveLaunchSpecs.test.mjs +153 -9
- package/scripts/runtime/launch/resolveServerRuntimeLaunchSpec.mjs +61 -4
- package/scripts/runtime/launch/resolveStackRuntimeLaunchContext.mjs +2 -2
- package/scripts/runtime/launch/runServerRuntimeMigration.mjs +116 -0
- package/scripts/runtime/launch/runServerRuntimeMigration.test.mjs +211 -0
- package/scripts/runtime/launch/runtimeProvenanceConsumerInventory.test.mjs +36 -0
- package/scripts/runtime/shared/runtime_mode.mjs +10 -1
- package/scripts/runtime/shared/runtime_mode.test.mjs +22 -0
- package/scripts/self_host/install_companion_cli.mjs +3 -17
- package/scripts/self_host_runtime.mjs +462 -479
- package/scripts/self_host_runtime.test.mjs +662 -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 +76 -85
- package/scripts/service.post_start_diagnostics_scope.test.mjs +97 -0
- package/scripts/service_cleanup_ownership.test.mjs +41 -0
- package/scripts/setup.mjs +26 -1
- package/scripts/setup_dev_child_env.test.mjs +23 -2
- package/scripts/sqlite_snapshot.mjs +86 -0
- package/scripts/sqlite_snapshot.test.mjs +1032 -0
- package/scripts/stack/help_text.mjs +5 -3
- package/scripts/stack/run_script_with_stack_env.mjs +396 -189
- package/scripts/stack/run_script_with_stack_env.test.mjs +368 -0
- package/scripts/stack/stack_daemon_command.mjs +74 -48
- package/scripts/stack/stack_daemon_runtime_provenance.test.mjs +40 -0
- package/scripts/stack/stack_environment.mjs +57 -19
- package/scripts/stack/stack_environment.sanitization.test.mjs +64 -0
- package/scripts/stack/stack_happier_passthrough_command.mjs +21 -1
- package/scripts/stack/stack_info_snapshot.mjs +317 -68
- package/scripts/stack/stack_install_command.mjs +295 -0
- package/scripts/stack/stack_mobile_install_command.mjs +19 -5
- package/scripts/stack/stack_mobile_install_command.test.mjs +44 -0
- package/scripts/stack/stack_stop_command.mjs +12 -4
- package/scripts/stack/stack_stop_command.test.mjs +16 -0
- package/scripts/stack.mjs +244 -94
- package/scripts/stack_archive_cmd.integration.test.mjs +29 -1
- package/scripts/stack_audit_fix_light_env.test.mjs +10 -7
- package/scripts/stack_audit_mysql_provider.test.mjs +194 -0
- package/scripts/stack_background_pinned_stack_json.test.mjs +59 -1
- package/scripts/stack_copy_auth_server_scoped.test.mjs +30 -15
- package/scripts/stack_daemon_cmd.integration.test.mjs +112 -5
- package/scripts/stack_guided_login_inner_invocation.test.mjs +17 -7
- package/scripts/stack_happy_cmd.integration.test.mjs +70 -15
- package/scripts/stack_info_snapshot_running_status.test.mjs +789 -25
- package/scripts/stack_install_command.test.mjs +125 -0
- package/scripts/stack_new_name_normalize_cmd.test.mjs +31 -0
- package/scripts/stack_new_port_policy.test.mjs +128 -0
- package/scripts/stack_owner_death_watchdog.integration.test.mjs +227 -4
- package/scripts/stack_package_scripts.test.mjs +3 -1
- package/scripts/stack_runtime_start.integration.test.mjs +435 -12
- package/scripts/stack_runtime_start_listener_proof.integration.test.mjs +119 -0
- package/scripts/stack_server_flavors_defaults.test.mjs +126 -0
- package/scripts/stack_stop_sweeps_legacy_infra_without_kind.integration.test.mjs +2 -0
- package/scripts/stackless_startup_topology.test.mjs +111 -0
- package/scripts/start_proxy_runtime_state.test.mjs +686 -0
- package/scripts/start_runtime_mode_json.test.mjs +6 -3
- package/scripts/stopStackWithEnv_daemonControlToken.integration.test.mjs +123 -6
- package/scripts/stopStackWithEnv_daemonPidSet.integration.test.mjs +1008 -0
- package/scripts/stopStackWithEnv_home_relative_env_file.integration.test.mjs +94 -0
- package/scripts/stopStackWithEnv_kills_ephemeral_runtime_pids_without_env_markers.integration.test.mjs +346 -8
- package/scripts/stopStackWithEnv_sweeps_repo_local_stack_by_stackName_when_runtime_missing.integration.test.mjs +280 -15
- package/scripts/tauri_dev.mjs +46 -5
- package/scripts/tauri_dev.test.mjs +111 -30
- package/scripts/test_ci.mjs +14 -1
- package/scripts/test_cmd.mjs +4 -3
- package/scripts/test_integration.mjs +13 -2
- package/scripts/testkit/core/env_scope.mjs +5 -1
- package/scripts/testkit/core/expo_command_shims.mjs +29 -0
- package/scripts/testkit/core/minimal_monorepo_layout.mjs +2 -0
- package/scripts/testkit/core/owner_death_watchdog_fixture.mjs +36 -0
- package/scripts/testkit/core/owner_death_watchdog_fixture.test.mjs +43 -0
- package/scripts/testkit/core/runtime_snapshot_layout.mjs +11 -0
- package/scripts/testkit/core/spawn_daemon_like_process.mjs +193 -0
- package/scripts/testkit/core/spawn_daemon_like_process.test.mjs +85 -0
- package/scripts/testkit/core/spawn_test_process.mjs +30 -0
- package/scripts/testkit/core/spawn_test_process.test.mjs +38 -1
- package/scripts/testkit/core/stub_happier_cli_files.mjs +13 -0
- package/scripts/testkit/core/workspace_package_build_owner.mjs +29 -0
- package/scripts/testkit/runtime_snapshot_start_testkit.mjs +128 -31
- package/scripts/testkit/runtime_snapshot_testkit.mjs +3 -0
- package/scripts/testkit/stack_happier_cli_command_testkit.mjs +4 -0
- package/scripts/tools.mjs +20 -1
- package/scripts/tools_profile_processes_help.test.mjs +131 -0
- package/scripts/tui.mjs +245 -280
- package/scripts/tui_restart_delegation.test.mjs +257 -0
- package/scripts/tui_stopStackForTuiExit_no_autosweep.integration.test.mjs +57 -1
- package/scripts/typecheck.mjs +3 -2
- package/scripts/ui_gateway.mjs +2 -2
- package/scripts/ui_gateway.test.mjs +119 -0
- package/scripts/utils/auth/clearStackForceLoginCredentialPaths.mjs +11 -1
- package/scripts/utils/auth/credentials_paths.mjs +110 -36
- package/scripts/utils/auth/credentials_paths.test.mjs +283 -26
- package/scripts/utils/auth/daemon_gate.test.mjs +3 -2
- package/scripts/utils/auth/ensure_active_access_key_valid.mjs +31 -8
- package/scripts/utils/auth/ensure_active_access_key_valid.test.mjs +115 -1
- package/scripts/utils/auth/orchestrated_stack_auth_flow.mjs +34 -3
- package/scripts/utils/auth/stable_scope_id.mjs +11 -0
- package/scripts/utils/auth/stable_scope_id.test.mjs +16 -0
- package/scripts/utils/auth/stack_guided_login.mjs +32 -15
- package/scripts/utils/cli/args.mjs +33 -7
- package/scripts/utils/cli/args.test.mjs +51 -0
- package/scripts/utils/cli/cli.mjs +3 -4
- package/scripts/utils/cli/cliDistIntegrity.mjs +130 -53
- package/scripts/utils/cli/cliDistIntegrity.test.mjs +157 -0
- package/scripts/utils/cli/cli_registry.mjs +107 -11
- package/scripts/utils/cli/prereqs.test.mjs +2 -2
- package/scripts/utils/dev/daemon.mjs +395 -151
- package/scripts/utils/dev/daemonLifecycleReconciler.mjs +98 -0
- package/scripts/utils/dev/daemonLifecycleReconciler.test.mjs +187 -0
- package/scripts/utils/dev/daemon_watch_resilience.test.mjs +817 -166
- package/scripts/utils/dev/devProxy.mjs +310 -0
- package/scripts/utils/dev/devProxy.test.mjs +406 -0
- package/scripts/utils/dev/devProxyLifecycle.mjs +27 -0
- package/scripts/utils/dev/devProxyLifecycle.test.mjs +32 -0
- package/scripts/utils/dev/devProxyRuntime.mjs +96 -0
- package/scripts/utils/dev/devReloadComposition.mjs +50 -0
- package/scripts/utils/dev/devReloadCoordinator.mjs +557 -0
- package/scripts/utils/dev/devReloadCoordinator.test.mjs +1685 -0
- package/scripts/utils/dev/devReloadTargets.mjs +11 -0
- package/scripts/utils/dev/devRuntimeInputPolicy.mjs +31 -0
- package/scripts/utils/dev/devStartupTopology.mjs +131 -0
- package/scripts/utils/dev/devStartupTopology.test.mjs +181 -0
- package/scripts/utils/dev/expo_dev.buildEnv.test.mjs +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/env_file.mjs +88 -16
- package/scripts/utils/env/env_file.test.mjs +46 -1
- package/scripts/utils/env/env_local.mjs +6 -6
- package/scripts/utils/env/scrub_env.mjs +2 -0
- package/scripts/utils/env/scrub_env.test.mjs +4 -0
- package/scripts/utils/execution_host_adapter.mjs +87 -0
- package/scripts/utils/execution_host_adapter.test.mjs +69 -0
- package/scripts/utils/expo/command.mjs +6 -0
- package/scripts/utils/expo/command_export_max_workers.test.mjs +2 -0
- package/scripts/utils/expo/command_heap_limit_env.test.mjs +87 -25
- package/scripts/utils/expo/command_workspace_deps_built.test.mjs +75 -29
- package/scripts/utils/expo/expo.mjs +340 -14
- package/scripts/utils/expo/expo_state_running.test.mjs +104 -2
- package/scripts/utils/expo/expo_wait_for_metro.test.mjs +187 -0
- package/scripts/utils/expo/metro_ports.mjs +160 -1
- package/scripts/utils/expo/metro_ports.test.mjs +198 -1
- package/scripts/utils/fs/atomic_dir_swap.mjs +44 -31
- package/scripts/utils/fs/atomic_dir_swap.test.mjs +69 -0
- package/scripts/utils/fs/atomic_rename.mjs +33 -0
- package/scripts/utils/fs/json.mjs +5 -4
- package/scripts/utils/fs/json.test.mjs +33 -0
- package/scripts/utils/fs/tail.mjs +4 -0
- package/scripts/utils/fs/tail.test.mjs +32 -0
- package/scripts/utils/mobile/android_generated_build_state.mjs +87 -0
- package/scripts/utils/mobile/config.mjs +14 -0
- package/scripts/utils/mobile/dev_client_install_invocation.android.test.mjs +21 -0
- package/scripts/utils/mobile/dev_client_install_invocation.mjs +39 -2
- package/scripts/utils/mobile/dev_client_install_invocation.test.mjs +34 -0
- package/scripts/utils/mobile/identifiers.mjs +29 -8
- package/scripts/utils/mobile/identifiers.test.mjs +17 -1
- package/scripts/utils/mobile/ios_podfile_autolinking.mjs +74 -0
- package/scripts/utils/mobile/ios_podfile_autolinking.test.mjs +79 -0
- package/scripts/utils/mobile/ios_podfile_properties.mjs +50 -0
- package/scripts/utils/mobile/ios_podfile_properties.test.mjs +88 -0
- package/scripts/utils/mobile/ios_profiling_runtime.mjs +171 -0
- package/scripts/utils/mobile/ios_profiling_runtime.test.mjs +145 -0
- package/scripts/utils/mobile/ios_xcodeproj_patch.mjs +6 -1
- package/scripts/utils/mobile/ios_xcodeproj_patch.test.mjs +41 -0
- package/scripts/utils/mobile/profiling_runtime_mode.mjs +35 -0
- package/scripts/utils/mobile/profiling_runtime_mode.test.mjs +28 -0
- package/scripts/utils/net/ports.mjs +419 -40
- package/scripts/utils/net/ports.test.mjs +639 -1
- package/scripts/utils/net/tcp_forward.mjs +117 -9
- package/scripts/utils/net/tcp_forward.test.mjs +255 -0
- package/scripts/utils/pglite_lock.mjs +84 -3
- package/scripts/utils/proc/cliDistBuildLock.mjs +62 -81
- package/scripts/utils/proc/cliDistBuildLock.test.mjs +400 -0
- package/scripts/utils/proc/cli_runtime_inputs.mjs +109 -0
- package/scripts/utils/proc/command_dependency_admission.test.mjs +54 -0
- package/scripts/utils/proc/dependency_refresh.mjs +263 -0
- package/scripts/utils/proc/dependency_refresh.test.mjs +125 -0
- package/scripts/utils/proc/ensureWorkspacePackagesBuilt.test.mjs +569 -18
- package/scripts/utils/proc/exit_cleanup.mjs +2 -2
- package/scripts/utils/proc/jsonOwnerFileLock.mjs +194 -0
- package/scripts/utils/proc/jsonOwnerFileLock.test.mjs +428 -0
- package/scripts/utils/proc/ownership.mjs +411 -52
- package/scripts/utils/proc/ownership_killProcessGroupOwnedByStack.test.mjs +348 -1
- package/scripts/utils/proc/ownership_listPidsWithEnvNeedles.test.mjs +196 -1
- package/scripts/utils/proc/pids.mjs +11 -6
- package/scripts/utils/proc/pids.test.mjs +29 -0
- package/scripts/utils/proc/pm.mjs +406 -368
- package/scripts/utils/proc/pm_stack_cache_env.test.mjs +1295 -121
- package/scripts/utils/proc/proc.mjs +342 -89
- package/scripts/utils/proc/proc.test.mjs +362 -3
- package/scripts/utils/proc/pruneLogsByCount.mjs +49 -0
- package/scripts/utils/proc/pruneLogsByCount.test.mjs +132 -0
- package/scripts/utils/proc/terminate.mjs +203 -20
- package/scripts/utils/proc/terminate.test.mjs +207 -1
- package/scripts/utils/proc/watch.mjs +139 -19
- package/scripts/utils/proc/watch.test.mjs +230 -0
- package/scripts/utils/proc/workspace_dependencies.mjs +21 -0
- package/scripts/utils/proc/workspace_package_manifests.mjs +108 -0
- package/scripts/utils/remote/install_remote_first_party_component.mjs +112 -43
- package/scripts/utils/remote/install_remote_first_party_component.test.mjs +46 -35
- package/scripts/utils/review/augment_runner_integration.test.mjs +10 -3
- package/scripts/utils/server/apply_runtime_server_sqlite_env.mjs +36 -0
- package/scripts/utils/server/apply_runtime_server_sqlite_env.test.mjs +46 -0
- package/scripts/utils/server/apply_server_preset_env_defaults.mjs +32 -0
- package/scripts/utils/server/apply_server_preset_env_defaults.test.mjs +95 -0
- package/scripts/utils/server/effective_db_provider.mjs +138 -0
- package/scripts/utils/server/effective_db_provider.test.mjs +249 -0
- package/scripts/utils/server/flavor_scripts.mjs +12 -78
- package/scripts/utils/server/flavor_scripts.test.mjs +39 -47
- package/scripts/utils/server/infra/happy_server_infra.mjs +92 -39
- package/scripts/utils/server/infra/happy_server_infra_provider.test.mjs +290 -0
- package/scripts/utils/server/listener_ownership.mjs +488 -0
- package/scripts/utils/server/listener_ownership.test.mjs +473 -0
- package/scripts/utils/server/logging_env.mjs +20 -0
- package/scripts/utils/server/logging_env.test.mjs +29 -0
- package/scripts/utils/server/mobile_api_url.mjs +17 -3
- package/scripts/utils/server/mobile_api_url.test.mjs +21 -1
- package/scripts/utils/server/prisma_client_import.mjs +18 -0
- package/scripts/utils/server/prisma_import.mjs +0 -15
- package/scripts/utils/server/prisma_import.test.mjs +0 -37
- package/scripts/utils/server/resolve_stack_server_port.mjs +131 -43
- package/scripts/utils/server/resolve_stack_server_port.test.mjs +696 -5
- package/scripts/utils/server/server.mjs +146 -39
- package/scripts/utils/server/server.test.mjs +252 -4
- package/scripts/utils/server/server_migrations.mjs +17 -0
- package/scripts/utils/server/shutdown_grace.mjs +14 -0
- package/scripts/utils/server/shutdown_grace.test.mjs +29 -0
- package/scripts/utils/server/source_server_workspace_deps.mjs +27 -0
- package/scripts/utils/server/source_server_workspace_deps.test.mjs +71 -0
- package/scripts/utils/server/validate.mjs +4 -43
- package/scripts/utils/server/validate.test.mjs +4 -4
- package/scripts/utils/service/archive_service_lifecycle.mjs +59 -0
- package/scripts/utils/service/archive_service_lifecycle.test.mjs +88 -0
- package/scripts/utils/service/daemon_autostart.mjs +1 -1
- package/scripts/utils/service/daemon_autostart.test.mjs +34 -0
- package/scripts/utils/service/service_manager.mjs +26 -1
- package/scripts/utils/service/service_manager.plan.test.mjs +187 -1
- package/scripts/utils/sqlite/sqlite_snapshot.mjs +820 -0
- package/scripts/utils/stack/daemonControlClient.mjs +426 -0
- package/scripts/utils/stack/daemonControlClient.test.mjs +567 -0
- package/scripts/utils/stack/daemon_lifecycle_lock.mjs +49 -0
- package/scripts/utils/stack/daemon_lifecycle_lock.test.mjs +220 -0
- package/scripts/utils/stack/dirs.mjs +6 -2
- package/scripts/utils/stack/owner_death_watchdog.mjs +6 -1
- package/scripts/utils/stack/owner_death_watchdog_runner.mjs +130 -2
- package/scripts/utils/stack/repo_stack_identity.mjs +113 -0
- package/scripts/utils/stack/repo_stack_identity.test.mjs +23 -0
- package/scripts/utils/stack/restart_args.mjs +22 -0
- package/scripts/utils/stack/runtime_daemon_state.mjs +474 -23
- package/scripts/utils/stack/runtime_daemon_state.test.mjs +838 -0
- package/scripts/utils/stack/runtime_owner_incarnation.mjs +9 -0
- package/scripts/utils/stack/runtime_state.mjs +896 -37
- package/scripts/utils/stack/runtime_state.test.mjs +1152 -2
- package/scripts/utils/stack/server_profile_reconciliation.mjs +92 -0
- package/scripts/utils/stack/startup.mjs +75 -81
- package/scripts/utils/stack/startup_runtime_probe.test.mjs +115 -0
- package/scripts/utils/stack/startup_server_light_dirs.test.mjs +10 -3
- package/scripts/utils/stack/startup_server_light_generate.test.mjs +115 -4
- package/scripts/utils/stack/startup_server_light_legacy.test.mjs +17 -15
- package/scripts/utils/stack/startup_server_light_testkit.mjs +8 -1
- package/scripts/utils/stack/stop.mjs +641 -144
- package/scripts/utils/stack/stop_lock_timeout.test.mjs +13 -0
- package/scripts/utils/tauri/desktop_install.mjs +81 -0
- package/scripts/utils/tauri/desktop_install.test.mjs +43 -0
- package/scripts/utils/tauri/dev_runtime.mjs +10 -1
- package/scripts/utils/tauri/dev_runtime.test.mjs +2 -1
- package/scripts/utils/tauri/stack_overrides.mjs +28 -4
- package/scripts/utils/tauri/stack_overrides.test.mjs +26 -0
- package/scripts/utils/test/test_env.mjs +44 -0
- package/scripts/utils/test/test_env.test.mjs +99 -0
- package/scripts/utils/tui/actions.mjs +4 -13
- package/scripts/utils/tui/actions.test.mjs +5 -16
- package/scripts/utils/tui/args.mjs +8 -2
- package/scripts/utils/tui/args.test.mjs +14 -1
- package/scripts/utils/tui/cleanup.mjs +16 -1
- package/scripts/utils/tui/daemon_pane_reconcile.mjs +27 -1
- package/scripts/utils/tui/daemon_pane_reconcile.test.mjs +18 -0
- package/scripts/utils/tui/dev_target_panes.mjs +22 -0
- package/scripts/utils/tui/dev_target_panes.test.mjs +26 -0
- package/scripts/utils/tui/rescue_priority.mjs +37 -0
- package/scripts/utils/tui/rescue_priority.test.mjs +24 -0
- package/scripts/utils/tui/restart_operation.mjs +151 -0
- package/scripts/utils/tui/stack_scope_env.mjs +8 -3
- package/scripts/utils/tui/stack_scope_env.test.mjs +7 -2
- package/scripts/utils/tui/stdin_handoff.mjs +13 -40
- package/scripts/utils/tui/stdin_handoff.test.mjs +36 -1
- package/scripts/utils/tui/tauri_mode.mjs +178 -6
- package/scripts/utils/tui/tauri_mode.test.mjs +222 -4
- package/scripts/utils/workspaces/workspaceBundleLock.mjs +39 -0
- package/scripts/utils/worktrees/yarn_install_guard.mjs +7 -49
- package/scripts/utils/worktrees/yarn_install_guard.test.mjs +139 -4
- package/scripts/worktrees.mjs +16 -16
- package/node_modules/@happier-dev/agents/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/cli-common/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.js +0 -51
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/commands.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.js +0 -76
- package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/ensureBundledWorkspacePackagesBuilt.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.js +0 -151
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/prepareFirstPartyComponentPayloadFromGitHubRelease.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.js +0 -184
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/relayRuntime.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.js +0 -96
- package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/releaseAssetBundle.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.test.js +0 -64
- package/node_modules/@happier-dev/cli-common/dist/process/windows/resolveWindowsCommandInvocation.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.d.ts +0 -9
- package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.js +0 -72
- package/node_modules/@happier-dev/cli-common/dist/providers/codexRelease.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.js +0 -178
- package/node_modules/@happier-dev/cli-common/dist/providers/install.gating.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.js +0 -176
- package/node_modules/@happier-dev/cli-common/dist/providers/managedJavaScriptRuntime.systemNodeFallback.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.js +0 -138
- package/node_modules/@happier-dev/cli-common/dist/providers/managedPnpm.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.js +0 -44
- package/node_modules/@happier-dev/cli-common/dist/providers/pnpmRelease.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.js +0 -20
- package/node_modules/@happier-dev/cli-common/dist/providers/resolution.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.js +0 -25
- package/node_modules/@happier-dev/cli-common/dist/providers/resolveHappyHomeDir.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.js +0 -177
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/interactiveTaskKinds.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.js +0 -173
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/relayRuntimeKinds.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.js +0 -98
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteFirstPartyPayloadInstaller.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.js +0 -549
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/remoteSshBootstrapMachineKind.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.js +0 -37
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/kinds/sshHostTrust.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.js +0 -243
- package/node_modules/@happier-dev/cli-common/dist/systemTasks/runSystemTask.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.js +0 -204
- package/node_modules/@happier-dev/cli-common/dist/tailscale/commandRunner.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.js +0 -58
- package/node_modules/@happier-dev/cli-common/dist/tailscale/serveStatus.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.js +0 -29
- package/node_modules/@happier-dev/cli-common/dist/tailscale/taskContract.test.js.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.d.ts +0 -2
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.d.ts.map +0 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.js +0 -94
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.test.js.map +0 -1
- package/node_modules/@happier-dev/protocol/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/_cjs/releaseRings.js +0 -134
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts +0 -14
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts.map +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js +0 -48
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js.map +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.cjs +0 -134
- package/scripts/daemon_cleanup_lsof_unavailable.test.mjs +0 -112
- package/scripts/ghops.mjs +0 -83
- package/scripts/stack_guided_login_does_not_preopen_browser.test.mjs +0 -17
- package/scripts/utils/auth/guided_stack_web_login.mjs +0 -56
- package/scripts/utils/auth/login_ux.mjs +0 -113
- package/scripts/utils/cli/smoke_help.mjs +0 -44
- package/scripts/utils/dev_auth_key.mjs +0 -7
- package/scripts/utils/server/apply_runtime_server_light_sqlite_env.mjs +0 -25
- package/scripts/utils/server/apply_server_light_env_defaults.mjs +0 -15
- package/scripts/utils/server/apply_server_light_env_defaults.test.mjs +0 -25
- package/scripts/utils/stack_context.mjs +0 -1
- package/scripts/utils/stack_runtime_state.mjs +0 -1
- package/scripts/utils/tui/daemon_autostart.mjs +0 -36
- package/scripts/utils/tui/daemon_autostart.test.mjs +0 -173
package/scripts/daemon.mjs
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
1
|
import { spawnProc, run, runCapture } from './utils/proc/proc.mjs';
|
|
2
|
+
import { terminateProcessGroup } from './utils/proc/terminate.mjs';
|
|
3
|
+
import { killPidOwnedByStack } from './utils/proc/ownership.mjs';
|
|
2
4
|
import { resolveAuthSeedFromEnv, resolveAutoCopyFromMainEnabled } from './utils/stack/startup.mjs';
|
|
3
|
-
import { getStacksStorageRoot } from './utils/paths/paths.mjs';
|
|
4
|
-
import { runCaptureIfCommandExists } from './utils/proc/commands.mjs';
|
|
5
|
+
import { coerceHappyMonorepoRootFromPath, getStacksStorageRoot } from './utils/paths/paths.mjs';
|
|
5
6
|
import { readLastLines } from './utils/fs/tail.mjs';
|
|
6
|
-
import { ensureCliBuilt } from './utils/proc/pm.mjs';
|
|
7
|
+
import { ensureCliBuilt, isCliDistBuildLockActive } from './utils/proc/pm.mjs';
|
|
7
8
|
import { resolveJavaScriptRuntimeCommand } from '@happier-dev/cli-common/providers/managedJavaScriptRuntime';
|
|
8
9
|
import {
|
|
9
10
|
findAnyCredentialPathInCliHome,
|
|
10
11
|
findExistingStackCredentialPath,
|
|
11
|
-
resolvePreferredStackServerIdFromCliSettings,
|
|
12
12
|
resolvePreferredStackDaemonStatePaths,
|
|
13
|
-
resolveStackDaemonStatePaths,
|
|
14
13
|
resolveStackCredentialPaths,
|
|
15
14
|
} from './utils/auth/credentials_paths.mjs';
|
|
16
15
|
import { ensureActiveAccessKeyValid } from './utils/auth/ensure_active_access_key_valid.mjs';
|
|
17
16
|
import { decodeJwtPayloadUnsafe } from './utils/auth/decode_jwt_payload_unsafe.mjs';
|
|
18
17
|
import { formatDaemonAuthScopeDiagnostic, formatDaemonCredentialsTokenSubChangedWarning } from './utils/auth/format_daemon_auth_scope_diagnostic.mjs';
|
|
19
|
-
import { applyStackActiveServerScopeEnv } from './utils/auth/stable_scope_id.mjs';
|
|
20
|
-
import { existsSync, readdirSync, readFileSync,
|
|
21
|
-
import { chmod, copyFile, mkdir } from 'node:fs/promises';
|
|
22
|
-
import { dirname, join } from 'node:path';
|
|
18
|
+
import { applyStackActiveServerScopeEnv, applyStackDaemonLifecycleScopeEnv } from './utils/auth/stable_scope_id.mjs';
|
|
19
|
+
import { existsSync, readdirSync, readFileSync, realpathSync } from 'node:fs';
|
|
20
|
+
import { chmod, copyFile, mkdir, writeFile } from 'node:fs/promises';
|
|
21
|
+
import { dirname, join, relative, resolve } from 'node:path';
|
|
23
22
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
24
|
-
import { getRootDir, resolveStackEnvPath } from './utils/paths/paths.mjs';
|
|
23
|
+
import { getComponentDir, getRootDir, resolveStackEnvPath } from './utils/paths/paths.mjs';
|
|
25
24
|
import { parseEnvToObject } from './utils/env/dotenv.mjs';
|
|
26
25
|
import { ensureEnvFileUpdated } from './utils/env/env_file.mjs';
|
|
27
26
|
import { getCliHomeDirFromEnvOrDefault } from './utils/stack/dirs.mjs';
|
|
27
|
+
import { buildStackServerProfileSetArgs } from './utils/stack/server_profile_reconciliation.mjs';
|
|
28
28
|
import {
|
|
29
29
|
isCliDirectExecutableCommand,
|
|
30
|
+
probeCliDistRuntimeImport,
|
|
31
|
+
readCliDistBuildManifest,
|
|
30
32
|
readCliDistIntegrity,
|
|
31
33
|
resolveCliDistEntrypointFromBin,
|
|
32
34
|
} from './utils/cli/cliDistIntegrity.mjs';
|
|
33
|
-
import {
|
|
35
|
+
import { withStackDaemonLifecycleLock } from './utils/stack/daemon_lifecycle_lock.mjs';
|
|
36
|
+
import { syncStackRuntimeDaemonPidFromDaemonState } from './utils/stack/runtime_daemon_state.mjs';
|
|
37
|
+
import { pingDaemon, restartDaemonViaControlServer } from './utils/stack/daemonControlClient.mjs';
|
|
38
|
+
import { pruneLogsByCount } from './utils/proc/pruneLogsByCount.mjs';
|
|
34
39
|
|
|
35
40
|
/**
|
|
36
41
|
* Daemon lifecycle helpers for hstack.
|
|
@@ -64,6 +69,141 @@ function resolveEnvFromOptions(options) {
|
|
|
64
69
|
return process.env;
|
|
65
70
|
}
|
|
66
71
|
|
|
72
|
+
function resolveCliDistBuildLockPath(cliDir) {
|
|
73
|
+
const monorepoRoot = coerceHappyMonorepoRootFromPath(cliDir);
|
|
74
|
+
return monorepoRoot
|
|
75
|
+
? join(monorepoRoot, '.project', 'tmp', 'cli-dist-build.lock')
|
|
76
|
+
: join(cliDir, '.dist.hstack-build.lock');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function shouldGuardLocalCliDistRestart({ cliBin, cliEntrypoint = '', cliNodeEntrypoint = '', cliCommand = '', distEntrypoint = '' }) {
|
|
80
|
+
if (String(cliCommand ?? '').trim()) return false;
|
|
81
|
+
if (String(cliEntrypoint ?? '').trim()) return false;
|
|
82
|
+
if (String(cliNodeEntrypoint ?? '').trim()) return false;
|
|
83
|
+
if (isCliDirectExecutableCommand(cliBin)) return false;
|
|
84
|
+
return Boolean(String(distEntrypoint ?? resolveCliDistEntrypointFromBin(cliBin) ?? '').trim());
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function canonicalizePathForContainment(pathLike) {
|
|
88
|
+
const resolvedPath = resolve(String(pathLike ?? ''));
|
|
89
|
+
if (!resolvedPath) return '';
|
|
90
|
+
try {
|
|
91
|
+
return realpathSync.native(resolvedPath);
|
|
92
|
+
} catch {
|
|
93
|
+
return resolvedPath;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function isPathInsideDir(pathLike, dirLike) {
|
|
98
|
+
const target = canonicalizePathForContainment(pathLike);
|
|
99
|
+
const dir = canonicalizePathForContainment(dirLike);
|
|
100
|
+
if (!target || !dir) return false;
|
|
101
|
+
const rel = relative(dir, target);
|
|
102
|
+
return rel === '' || Boolean(rel && !rel.startsWith('..') && !rel.startsWith('/') && !rel.startsWith('\\'));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function resolveActiveCliDirForDaemonLaunch(env = process.env) {
|
|
106
|
+
const repoDir = String(env?.HAPPIER_STACK_REPO_DIR ?? '').trim();
|
|
107
|
+
const cliRootDir = String(env?.HAPPIER_STACK_CLI_ROOT_DIR ?? '').trim();
|
|
108
|
+
if (!repoDir && !cliRootDir) return null;
|
|
109
|
+
try {
|
|
110
|
+
const rootDir = getRootDir(import.meta.url);
|
|
111
|
+
if (repoDir) return getComponentDir(rootDir, 'happier-cli', env);
|
|
112
|
+
const monorepoRoot = coerceHappyMonorepoRootFromPath(cliRootDir);
|
|
113
|
+
if (!monorepoRoot) return null;
|
|
114
|
+
return getComponentDir(rootDir, 'happier-cli', {
|
|
115
|
+
...env,
|
|
116
|
+
HAPPIER_STACK_REPO_DIR: monorepoRoot,
|
|
117
|
+
});
|
|
118
|
+
} catch {
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function resolveGuardedLocalCliDistEntrypoint({
|
|
124
|
+
cliBin,
|
|
125
|
+
distEntrypoint = null,
|
|
126
|
+
activeCliDir = null,
|
|
127
|
+
} = {}) {
|
|
128
|
+
const resolvedDistEntrypoint = String(distEntrypoint ?? resolveCliDistEntrypointFromBin(cliBin) ?? '').trim();
|
|
129
|
+
if (!resolvedDistEntrypoint) {
|
|
130
|
+
return { ok: false, distEntrypoint: null, reason: 'unknown_cli_bin' };
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const activeDir = String(activeCliDir ?? '').trim();
|
|
134
|
+
if (activeDir && !isPathInsideDir(resolvedDistEntrypoint, activeDir)) {
|
|
135
|
+
return {
|
|
136
|
+
ok: false,
|
|
137
|
+
distEntrypoint: resolvedDistEntrypoint,
|
|
138
|
+
reason: `outside_active_cli_dir:${resolvedDistEntrypoint}:${activeDir}`,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return { ok: true, distEntrypoint: resolvedDistEntrypoint, reason: 'active_cli_dist' };
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function resolveActiveCliDistEntrypoint(activeCliDir) {
|
|
146
|
+
const activeDir = String(activeCliDir ?? '').trim();
|
|
147
|
+
if (!activeDir) return null;
|
|
148
|
+
return join(activeDir, 'dist', 'index.mjs');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function formatCliDistUnavailableForDaemonStart({ distEntrypoint, reason = '' }) {
|
|
152
|
+
const detail = String(reason ?? '').trim();
|
|
153
|
+
const missingModule = detail.startsWith('incomplete:') ? detail.slice('incomplete:'.length) : '';
|
|
154
|
+
return (
|
|
155
|
+
`[local] happier-cli dist entrypoint is missing or incomplete (${distEntrypoint}).\n` +
|
|
156
|
+
`[local] Refusing to start/restart daemon because it would crash with MODULE_NOT_FOUND.\n` +
|
|
157
|
+
(missingModule ? `[local] Missing module referenced by dist entrypoint: ${missingModule}\n` : '') +
|
|
158
|
+
(detail.startsWith('outside_active_cli_dir:')
|
|
159
|
+
? `[local] The resolved dist entrypoint is outside the active stack repo/worktree.\n`
|
|
160
|
+
: '') +
|
|
161
|
+
`[local] Fix: rebuild happier-cli in the active checkout/worktree.\n` +
|
|
162
|
+
(detail ? `[local] Detail: ${detail}\n` : '')
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
async function waitForConcurrentCliDistBuild({
|
|
167
|
+
cliDir,
|
|
168
|
+
readIntegrity,
|
|
169
|
+
timeoutMs = 30_000,
|
|
170
|
+
pollIntervalMs = 100,
|
|
171
|
+
}) {
|
|
172
|
+
const lockPath = resolveCliDistBuildLockPath(cliDir);
|
|
173
|
+
if (!isCliDistBuildLockActive(lockPath)) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const startedAt = Date.now();
|
|
178
|
+
while (isCliDistBuildLockActive(lockPath) && Date.now() - startedAt <= timeoutMs) {
|
|
179
|
+
await delay(pollIntervalMs);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (isCliDistBuildLockActive(lockPath)) return null;
|
|
183
|
+
|
|
184
|
+
const finalIntegrity = readIntegrity();
|
|
185
|
+
return finalIntegrity.ok ? finalIntegrity : null;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const parseNonNegativeInt = (value, fallback) => {
|
|
189
|
+
const n = Number(value);
|
|
190
|
+
return Number.isFinite(n) && n >= 0 ? Math.floor(n) : fallback;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export const DEFAULT_STACK_DAEMON_START_VERIFY_TIMEOUT_MS = 120_000;
|
|
194
|
+
const PRIOR_DIST_PUBLICATION_RETRY_DELAYS_MS = [25, 50, 100, 200];
|
|
195
|
+
|
|
196
|
+
function sleepMs(ms) {
|
|
197
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function resolveStackDaemonStartVerifyTimeoutMs(env = process.env) {
|
|
201
|
+
return parseNonNegativeInt(
|
|
202
|
+
env?.HAPPIER_STACK_DAEMON_START_VERIFY_TIMEOUT_MS,
|
|
203
|
+
DEFAULT_STACK_DAEMON_START_VERIFY_TIMEOUT_MS,
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
67
207
|
function hasExplicitServerContext({ serverUrl = '', env = process.env }) {
|
|
68
208
|
return String(serverUrl ?? '').trim() !== '' || String(env?.HAPPIER_ACTIVE_SERVER_ID ?? '').trim() !== '';
|
|
69
209
|
}
|
|
@@ -100,94 +240,6 @@ async function persistStackDaemonMachineTransferEnv({ stackName, env = process.e
|
|
|
100
240
|
return { ok: true, changed: true, envPath, updatedKeys: updates.map(({ key }) => key) };
|
|
101
241
|
}
|
|
102
242
|
|
|
103
|
-
export async function cleanupStaleDaemonState(homeDir, options = {}) {
|
|
104
|
-
const serverUrl = resolveServerUrlFromOptions(options);
|
|
105
|
-
const env = resolveEnvFromOptions(options);
|
|
106
|
-
const { statePath, lockPath } = resolvePreferredStackDaemonStatePaths({ cliHomeDir: homeDir, serverUrl, env });
|
|
107
|
-
|
|
108
|
-
if (!existsSync(lockPath)) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
const lsofHasPath = async (pid, pathNeedle) => {
|
|
113
|
-
try {
|
|
114
|
-
const out = await runCaptureIfCommandExists('lsof', ['-nP', '-p', String(pid)]);
|
|
115
|
-
return out.includes(pathNeedle);
|
|
116
|
-
} catch {
|
|
117
|
-
return false;
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const canProveLsofOwnership = async (pid, pathNeedle) => {
|
|
122
|
-
try {
|
|
123
|
-
const out = await runCaptureIfCommandExists('lsof', ['-nP', '-p', String(pid)], { env });
|
|
124
|
-
// runCaptureIfCommandExists returns '' when lsof is not found
|
|
125
|
-
if (out === '') {
|
|
126
|
-
return { available: false, owns: false };
|
|
127
|
-
}
|
|
128
|
-
return { available: true, owns: out.includes(pathNeedle) };
|
|
129
|
-
} catch {
|
|
130
|
-
return { available: false, owns: false };
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
// If lock PID exists and is running, keep lock/state ONLY if it still owns the lock file path.
|
|
135
|
-
try {
|
|
136
|
-
const raw = readFileSync(lockPath, 'utf-8').trim();
|
|
137
|
-
const pid = Number(raw);
|
|
138
|
-
if (Number.isFinite(pid) && pid > 0) {
|
|
139
|
-
try {
|
|
140
|
-
process.kill(pid, 0);
|
|
141
|
-
// If PID was recycled, refuse to trust it unless we can prove it's associated with this home dir.
|
|
142
|
-
// This prevents cross-stack daemon kills due to stale lock files.
|
|
143
|
-
const ownership = await canProveLsofOwnership(pid, lockPath);
|
|
144
|
-
if (ownership.owns) {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
// CRITICAL: If lsof is unavailable and the PID is running, fail-safe by keeping the files.
|
|
148
|
-
// This prevents a second daemon from starting while the first is still running.
|
|
149
|
-
if (!ownership.available) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
} catch {
|
|
153
|
-
// stale pid
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
} catch {
|
|
157
|
-
// ignore
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// If state PID exists and is running, keep lock/state.
|
|
161
|
-
if (existsSync(statePath)) {
|
|
162
|
-
try {
|
|
163
|
-
const state = JSON.parse(readFileSync(statePath, 'utf-8'));
|
|
164
|
-
const pid = typeof state?.pid === 'number' ? state.pid : null;
|
|
165
|
-
if (pid) {
|
|
166
|
-
try {
|
|
167
|
-
process.kill(pid, 0);
|
|
168
|
-
// Only keep if we can prove it still uses this home dir (via state path).
|
|
169
|
-
const ownership = await canProveLsofOwnership(pid, statePath);
|
|
170
|
-
if (ownership.owns) {
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
// CRITICAL: If lsof is unavailable and the PID is running, fail-safe by keeping the files.
|
|
174
|
-
// This prevents a second daemon from starting while the first is still running.
|
|
175
|
-
if (!ownership.available) {
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
} catch {
|
|
179
|
-
// stale pid
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
} catch {
|
|
183
|
-
// ignore
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
try { unlinkSync(lockPath); } catch { /* ignore */ }
|
|
188
|
-
try { unlinkSync(statePath); } catch { /* ignore */ }
|
|
189
|
-
}
|
|
190
|
-
|
|
191
243
|
export function checkDaemonState(cliHomeDir, options = {}) {
|
|
192
244
|
const serverUrl = resolveServerUrlFromOptions(options);
|
|
193
245
|
const env = resolveEnvFromOptions(options);
|
|
@@ -237,6 +289,46 @@ export function checkDaemonState(cliHomeDir, options = {}) {
|
|
|
237
289
|
return { status: 'stopped', pid: null };
|
|
238
290
|
}
|
|
239
291
|
|
|
292
|
+
export async function checkDaemonStatePingAware(cliHomeDir, options = {}) {
|
|
293
|
+
const state = checkDaemonState(cliHomeDir, options);
|
|
294
|
+
if (state.status !== 'running') return state;
|
|
295
|
+
|
|
296
|
+
const serverUrl = resolveServerUrlFromOptions(options);
|
|
297
|
+
const env = resolveEnvFromOptions(options);
|
|
298
|
+
const ping = await pingDaemon({
|
|
299
|
+
cliHomeDir,
|
|
300
|
+
serverUrl,
|
|
301
|
+
env,
|
|
302
|
+
stackName: options?.stackName ?? null,
|
|
303
|
+
timeoutMs: options.pingTimeoutMs ?? 1500,
|
|
304
|
+
});
|
|
305
|
+
if (ping.ok === true) {
|
|
306
|
+
return {
|
|
307
|
+
status: 'running',
|
|
308
|
+
pid: Number(ping.pid) || state.pid,
|
|
309
|
+
processInstanceFingerprint: ping.processInstanceFingerprint ?? null,
|
|
310
|
+
distClosureFingerprint: ping.distClosureFingerprint ?? null,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
return {
|
|
314
|
+
status: 'unreachable',
|
|
315
|
+
pid: Number(ping.pid) || state.pid,
|
|
316
|
+
reason: String(ping.reason ?? 'ping_failed'),
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export function daemonStateHasLiveProcess(state) {
|
|
321
|
+
return state?.status === 'running' || state?.status === 'starting' || state?.status === 'unreachable';
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export function shouldContinueAttendedDaemonStartVerification({ isTui, state } = {}) {
|
|
325
|
+
return isTui === true && daemonStateHasLiveProcess(state);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export function resolveAttendedStartupTimeoutMs({ isTui, timeoutMs } = {}) {
|
|
329
|
+
return isTui === true ? Number.POSITIVE_INFINITY : timeoutMs;
|
|
330
|
+
}
|
|
331
|
+
|
|
240
332
|
function resolveFallbackRunningDaemon(cliHomeDir, allowAnyRunningFallback, alive) {
|
|
241
333
|
if (!allowAnyRunningFallback) {
|
|
242
334
|
return null;
|
|
@@ -302,26 +394,140 @@ async function readDaemonPsEnv(pid) {
|
|
|
302
394
|
}
|
|
303
395
|
}
|
|
304
396
|
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
if (!
|
|
397
|
+
export function matchDaemonEnvLine({ line, cliHomeDir, internalServerUrl, publicServerUrl }) {
|
|
398
|
+
const raw = String(line ?? '');
|
|
399
|
+
if (!raw) return null;
|
|
308
400
|
const home = String(cliHomeDir ?? '').trim();
|
|
309
401
|
const server = String(internalServerUrl ?? '').trim();
|
|
310
402
|
const web = String(publicServerUrl ?? '').trim();
|
|
311
403
|
|
|
312
404
|
// Must be for the same stack home dir.
|
|
313
|
-
if (home && !
|
|
314
|
-
return false;
|
|
405
|
+
if (home && !raw.includes(`HAPPIER_HOME_DIR=${home}`)) {
|
|
406
|
+
return { matches: false, reason: 'home', key: 'HAPPIER_HOME_DIR', expected: home };
|
|
315
407
|
}
|
|
316
408
|
// If we have a desired server URL, require it (prevents ephemeral port mismatches).
|
|
317
|
-
if (server && !
|
|
318
|
-
return false;
|
|
409
|
+
if (server && !raw.includes(`HAPPIER_SERVER_URL=${server}`)) {
|
|
410
|
+
return { matches: false, reason: 'server', key: 'HAPPIER_SERVER_URL', expected: server };
|
|
319
411
|
}
|
|
320
412
|
// Public URL mismatch is less fatal, but prefer it stable too when provided.
|
|
321
|
-
if (web && !
|
|
322
|
-
return false;
|
|
413
|
+
if (web && !raw.includes(`HAPPIER_WEBAPP_URL=${web}`)) {
|
|
414
|
+
return { matches: false, reason: 'webapp', key: 'HAPPIER_WEBAPP_URL', expected: web };
|
|
415
|
+
}
|
|
416
|
+
return { matches: true };
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
async function readDaemonEnvMatch({ pid, cliHomeDir, internalServerUrl, publicServerUrl }) {
|
|
420
|
+
const line = await readDaemonPsEnv(pid);
|
|
421
|
+
if (!line) return null; // unknown
|
|
422
|
+
return matchDaemonEnvLine({ line, cliHomeDir, internalServerUrl, publicServerUrl });
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
async function daemonEnvMatches({ pid, cliHomeDir, internalServerUrl, publicServerUrl }) {
|
|
426
|
+
const match = await readDaemonEnvMatch({ pid, cliHomeDir, internalServerUrl, publicServerUrl });
|
|
427
|
+
return match ? match.matches === true : null;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export function resolveDaemonDistRestartReason({
|
|
431
|
+
distEntrypoint = '',
|
|
432
|
+
distClosure = null,
|
|
433
|
+
runtimeStatePath = '',
|
|
434
|
+
observedDaemonDistFingerprint = undefined,
|
|
435
|
+
runtimeBacked = false,
|
|
436
|
+
}) {
|
|
437
|
+
const entrypoint = String(distEntrypoint ?? '').trim();
|
|
438
|
+
if (!entrypoint || !distClosure?.ok || !distClosure?.fingerprint) {
|
|
439
|
+
return null;
|
|
440
|
+
}
|
|
441
|
+
const admittedFingerprint = String(distClosure.fingerprint).trim().toLowerCase();
|
|
442
|
+
const observedFingerprint = String(observedDaemonDistFingerprint ?? '').trim().toLowerCase();
|
|
443
|
+
if (runtimeBacked === true) {
|
|
444
|
+
if (!/^[a-f0-9]{16}$/.test(observedFingerprint)) {
|
|
445
|
+
return `runtime-backed daemon is missing a valid authenticated dist closure fingerprint (${entrypoint})`;
|
|
446
|
+
}
|
|
447
|
+
return observedFingerprint === admittedFingerprint
|
|
448
|
+
? null
|
|
449
|
+
: `runtime-backed daemon reports a different authenticated dist closure fingerprint (${entrypoint})`;
|
|
450
|
+
}
|
|
451
|
+
if (observedFingerprint) {
|
|
452
|
+
return observedFingerprint === admittedFingerprint
|
|
453
|
+
? null
|
|
454
|
+
: `source daemon reports a different dist closure fingerprint (${entrypoint})`;
|
|
455
|
+
}
|
|
456
|
+
try {
|
|
457
|
+
const runtimeState = JSON.parse(readFileSync(runtimeStatePath, 'utf-8'));
|
|
458
|
+
const recordedFingerprint = String(runtimeState?.daemon?.distClosureFingerprint ?? '').trim();
|
|
459
|
+
if (recordedFingerprint && recordedFingerprint !== distClosure.fingerprint) {
|
|
460
|
+
return `source dist closure fingerprint changed after daemon start (${entrypoint})`;
|
|
461
|
+
}
|
|
462
|
+
} catch {
|
|
463
|
+
// Older runtime state files do not record a dist fingerprint.
|
|
464
|
+
}
|
|
465
|
+
return null;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export function assertFinalSourceDaemonDistAdmission({
|
|
469
|
+
admittedDistClosureFingerprint = null,
|
|
470
|
+
fallbackFingerprint = null,
|
|
471
|
+
finalFingerprint = null,
|
|
472
|
+
} = {}) {
|
|
473
|
+
const explicitFingerprint = String(admittedDistClosureFingerprint ?? '').trim().toLowerCase();
|
|
474
|
+
const sourceGenerationFingerprint =
|
|
475
|
+
explicitFingerprint || String(fallbackFingerprint ?? '').trim().toLowerCase();
|
|
476
|
+
const observedFinalFingerprint = String(finalFingerprint ?? '').trim().toLowerCase();
|
|
477
|
+
if (
|
|
478
|
+
sourceGenerationFingerprint
|
|
479
|
+
&& (
|
|
480
|
+
!/^[a-f0-9]{16}$/.test(sourceGenerationFingerprint)
|
|
481
|
+
|| observedFinalFingerprint !== sourceGenerationFingerprint
|
|
482
|
+
)
|
|
483
|
+
) {
|
|
484
|
+
const error = new Error(
|
|
485
|
+
'[local] happier-cli dist changed after source generation admission; refusing to cold-start or restart the daemon from unadmitted output.',
|
|
486
|
+
);
|
|
487
|
+
error.code = 'ECLIDISTSTALECOLDSTART';
|
|
488
|
+
throw error;
|
|
323
489
|
}
|
|
324
|
-
return
|
|
490
|
+
return sourceGenerationFingerprint || null;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
function readAuthenticatedDaemonDistFingerprint(state) {
|
|
494
|
+
if (state?.status !== 'running') return null;
|
|
495
|
+
const fingerprint = String(state?.distClosureFingerprint ?? '').trim().toLowerCase();
|
|
496
|
+
return /^[a-f0-9]{16}$/.test(fingerprint) ? fingerprint : null;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export function applyDaemonDistClosureRuntimeEnv(
|
|
500
|
+
env,
|
|
501
|
+
{
|
|
502
|
+
runtimeStatePath = '',
|
|
503
|
+
distEntrypoint = '',
|
|
504
|
+
distClosureFingerprint = null,
|
|
505
|
+
runtimeBacked = false,
|
|
506
|
+
} = {},
|
|
507
|
+
) {
|
|
508
|
+
const fingerprint = String(distClosureFingerprint ?? '').trim();
|
|
509
|
+
const entrypoint = String(distEntrypoint ?? '').trim();
|
|
510
|
+
const statePath = String(runtimeStatePath ?? '').trim();
|
|
511
|
+
if (fingerprint && entrypoint) {
|
|
512
|
+
if (statePath) {
|
|
513
|
+
env.HAPPIER_CLI_SUBPROCESS_STACK_RUNTIME_STATE_PATH = statePath;
|
|
514
|
+
} else {
|
|
515
|
+
delete env.HAPPIER_CLI_SUBPROCESS_STACK_RUNTIME_STATE_PATH;
|
|
516
|
+
}
|
|
517
|
+
env.HAPPIER_CLI_SUBPROCESS_DIST_ENTRYPOINT = entrypoint;
|
|
518
|
+
env.HAPPIER_CLI_SUBPROCESS_DAEMON_DIST_CLOSURE_FINGERPRINT = fingerprint;
|
|
519
|
+
if (runtimeBacked === true) {
|
|
520
|
+
env.HAPPIER_CLI_SUBPROCESS_RUNTIME_BACKED = '1';
|
|
521
|
+
} else {
|
|
522
|
+
delete env.HAPPIER_CLI_SUBPROCESS_RUNTIME_BACKED;
|
|
523
|
+
}
|
|
524
|
+
} else {
|
|
525
|
+
delete env.HAPPIER_CLI_SUBPROCESS_STACK_RUNTIME_STATE_PATH;
|
|
526
|
+
delete env.HAPPIER_CLI_SUBPROCESS_DIST_ENTRYPOINT;
|
|
527
|
+
delete env.HAPPIER_CLI_SUBPROCESS_DAEMON_DIST_CLOSURE_FINGERPRINT;
|
|
528
|
+
delete env.HAPPIER_CLI_SUBPROCESS_RUNTIME_BACKED;
|
|
529
|
+
}
|
|
530
|
+
return env;
|
|
325
531
|
}
|
|
326
532
|
|
|
327
533
|
function getLatestDaemonLogPath(homeDir) {
|
|
@@ -335,6 +541,38 @@ function getLatestDaemonLogPath(homeDir) {
|
|
|
335
541
|
}
|
|
336
542
|
}
|
|
337
543
|
|
|
544
|
+
function formatTimestampForLogFilename(nowMs = Date.now()) {
|
|
545
|
+
return new Date(nowMs)
|
|
546
|
+
.toISOString()
|
|
547
|
+
.replace('T', '-')
|
|
548
|
+
.replace(/\.\d+Z$/, '')
|
|
549
|
+
.replace(/:/g, '-');
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
function resolveLogKeepCount(rawValue, fallback) {
|
|
553
|
+
const value = Number(rawValue);
|
|
554
|
+
return Number.isFinite(value) && value >= 0 ? Math.floor(value) : fallback;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export async function createDaemonStartAttemptLogPath({
|
|
558
|
+
cliHomeDir,
|
|
559
|
+
nowMs = Date.now(),
|
|
560
|
+
pid = process.pid,
|
|
561
|
+
keepCount = resolveLogKeepCount(process.env.HAPPIER_STACK_DAEMON_START_ATTEMPT_LOG_KEEP_COUNT, 20),
|
|
562
|
+
} = {}) {
|
|
563
|
+
const logsDir = join(cliHomeDir, 'logs');
|
|
564
|
+
const logPath = join(logsDir, `${formatTimestampForLogFilename(nowMs)}-pid-${pid}-daemon-start-attempt.log`);
|
|
565
|
+
await mkdir(logsDir, { recursive: true }).catch(() => {});
|
|
566
|
+
await writeFile(logPath, '', { flag: 'a' }).catch(() => {});
|
|
567
|
+
await pruneLogsByCount({
|
|
568
|
+
dir: logsDir,
|
|
569
|
+
suffix: '-daemon-start-attempt.log',
|
|
570
|
+
keepCount,
|
|
571
|
+
keepPath: logPath,
|
|
572
|
+
}).catch(() => ({ pruned: 0 }));
|
|
573
|
+
return logPath;
|
|
574
|
+
}
|
|
575
|
+
|
|
338
576
|
function resolveJavaScriptRuntimeForStackDaemon({ env = process.env } = {}) {
|
|
339
577
|
const runtimeName = String(process.release?.name ?? '').trim().toLowerCase();
|
|
340
578
|
return resolveJavaScriptRuntimeCommand({
|
|
@@ -348,12 +586,6 @@ function isJavaScriptEntrypoint(command) {
|
|
|
348
586
|
return /\.(?:cjs|js|mjs)$/i.test(String(command ?? '').trim());
|
|
349
587
|
}
|
|
350
588
|
|
|
351
|
-
function hasExplicitRuntimeLaunchSpec({ cliEntrypoint = '', cliNodeEntrypoint = '', cliCommand = '' }) {
|
|
352
|
-
if (String(cliEntrypoint ?? '').trim()) return true;
|
|
353
|
-
if (String(cliNodeEntrypoint ?? '').trim()) return true;
|
|
354
|
-
return isJavaScriptEntrypoint(cliCommand);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
589
|
function looksLikeFilesystemCommandPath(command) {
|
|
358
590
|
const value = String(command ?? '').trim();
|
|
359
591
|
if (!value) return false;
|
|
@@ -408,6 +640,7 @@ function resolveDaemonCommandSpec({
|
|
|
408
640
|
cliCommand = '',
|
|
409
641
|
cliCommandArgs = [],
|
|
410
642
|
env = process.env,
|
|
643
|
+
activeCliDir = resolveActiveCliDirForDaemonLaunch(env),
|
|
411
644
|
}) {
|
|
412
645
|
const javaScriptRuntime = resolveJavaScriptRuntimeForStackDaemon({ env });
|
|
413
646
|
const explicitNodeEntrypoint = String(cliNodeEntrypoint ?? '').trim();
|
|
@@ -448,7 +681,10 @@ function resolveDaemonCommandSpec({
|
|
|
448
681
|
mode: 'binary',
|
|
449
682
|
};
|
|
450
683
|
}
|
|
451
|
-
const
|
|
684
|
+
const guardedDist = resolveGuardedLocalCliDistEntrypoint({ cliBin, activeCliDir });
|
|
685
|
+
const distEntrypoint = guardedDist.ok
|
|
686
|
+
? guardedDist.distEntrypoint
|
|
687
|
+
: resolveActiveCliDistEntrypoint(activeCliDir);
|
|
452
688
|
if (distEntrypoint && existsSync(distEntrypoint) && javaScriptRuntime) {
|
|
453
689
|
// Prefer launching the daemon via dist entrypoint directly.
|
|
454
690
|
// This avoids coupling stack daemon lifecycle to the dev-only bin wrapper (which may perform
|
|
@@ -459,6 +695,12 @@ function resolveDaemonCommandSpec({
|
|
|
459
695
|
mode: 'node',
|
|
460
696
|
};
|
|
461
697
|
}
|
|
698
|
+
if (!guardedDist.ok && activeCliDir) {
|
|
699
|
+
throw new Error(formatCliDistUnavailableForDaemonStart({
|
|
700
|
+
distEntrypoint: guardedDist.distEntrypoint,
|
|
701
|
+
reason: guardedDist.reason,
|
|
702
|
+
}));
|
|
703
|
+
}
|
|
462
704
|
return {
|
|
463
705
|
command: process.execPath,
|
|
464
706
|
argsPrefix: [cliBin],
|
|
@@ -466,7 +708,22 @@ function resolveDaemonCommandSpec({
|
|
|
466
708
|
};
|
|
467
709
|
}
|
|
468
710
|
|
|
469
|
-
async function ensureHappierCliDistExists(
|
|
711
|
+
export async function ensureHappierCliDistExists(
|
|
712
|
+
{
|
|
713
|
+
cliBin,
|
|
714
|
+
cliEntrypoint = '',
|
|
715
|
+
cliNodeEntrypoint = '',
|
|
716
|
+
cliCommand = '',
|
|
717
|
+
admittedDistClosureFingerprint = null,
|
|
718
|
+
admitPriorDistImmediately = false,
|
|
719
|
+
env = process.env,
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
ensureCliBuiltImpl = ensureCliBuilt,
|
|
723
|
+
probeCliDistRuntimeImportImpl = probeCliDistRuntimeImport,
|
|
724
|
+
sleepImpl = sleepMs,
|
|
725
|
+
} = {},
|
|
726
|
+
) {
|
|
470
727
|
const explicitRuntimeLaunch = resolveExplicitRuntimeLaunchValidation({ cliEntrypoint, cliNodeEntrypoint, cliCommand });
|
|
471
728
|
if (!explicitRuntimeLaunch.ok) {
|
|
472
729
|
return { ok: false, distEntrypoint: explicitRuntimeLaunch.path, built: false, reason: explicitRuntimeLaunch.reason };
|
|
@@ -480,19 +737,163 @@ async function ensureHappierCliDistExists({ cliBin, cliEntrypoint = '', cliNodeE
|
|
|
480
737
|
if (isCliDirectExecutableCommand(cliBin)) {
|
|
481
738
|
return { ok: true, distEntrypoint: cliBin, built: false, reason: 'direct-cli-command' };
|
|
482
739
|
}
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
const
|
|
740
|
+
const activeCliDir = resolveActiveCliDirForDaemonLaunch(env);
|
|
741
|
+
const guardedDist = resolveGuardedLocalCliDistEntrypoint({ cliBin, activeCliDir });
|
|
742
|
+
const activeDistEntrypoint = guardedDist.ok ? null : resolveActiveCliDistEntrypoint(activeCliDir);
|
|
743
|
+
if (!guardedDist.ok && !activeDistEntrypoint) {
|
|
744
|
+
return { ok: false, distEntrypoint: guardedDist.distEntrypoint, built: false, reason: guardedDist.reason };
|
|
745
|
+
}
|
|
746
|
+
const distEntrypoint = guardedDist.ok ? guardedDist.distEntrypoint : activeDistEntrypoint;
|
|
747
|
+
const cliDir = activeCliDir || join(dirname(cliBin), '..');
|
|
486
748
|
const buildCli =
|
|
487
|
-
(
|
|
749
|
+
(env.HAPPIER_STACK_CLI_BUILD ?? '1').toString().trim() !== '0';
|
|
488
750
|
|
|
489
751
|
const readIntegrity = () => readCliDistIntegrity(distEntrypoint);
|
|
490
752
|
|
|
753
|
+
if (activeCliDir) {
|
|
754
|
+
const admittedFingerprint = String(admittedDistClosureFingerprint ?? '').trim().toLowerCase();
|
|
755
|
+
if (admittedFingerprint) {
|
|
756
|
+
const integrity = readIntegrity();
|
|
757
|
+
const exactAdmission =
|
|
758
|
+
/^[a-f0-9]{16}$/.test(admittedFingerprint) &&
|
|
759
|
+
integrity.ok === true &&
|
|
760
|
+
integrity.fingerprint === admittedFingerprint;
|
|
761
|
+
return {
|
|
762
|
+
ok: integrity.ok,
|
|
763
|
+
current: exactAdmission,
|
|
764
|
+
generationAdmissionRequired: true,
|
|
765
|
+
distEntrypoint,
|
|
766
|
+
built: false,
|
|
767
|
+
reason: exactAdmission ? 'admitted-dist-closure' : `admitted_dist_mismatch:${integrity.reason ?? 'unknown'}`,
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
let priorIntegrity = readIntegrity();
|
|
771
|
+
if (admitPriorDistImmediately && !priorIntegrity.ok) {
|
|
772
|
+
for (const delayMs of PRIOR_DIST_PUBLICATION_RETRY_DELAYS_MS) {
|
|
773
|
+
await sleepImpl(delayMs);
|
|
774
|
+
priorIntegrity = readIntegrity();
|
|
775
|
+
if (priorIntegrity.ok) break;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
if (admitPriorDistImmediately && priorIntegrity.ok) {
|
|
779
|
+
try {
|
|
780
|
+
await probeCliDistRuntimeImportImpl(distEntrypoint, {
|
|
781
|
+
cwd: cliDir,
|
|
782
|
+
env,
|
|
783
|
+
timeoutMs: resolveStackDaemonStartVerifyTimeoutMs(env),
|
|
784
|
+
});
|
|
785
|
+
return {
|
|
786
|
+
ok: true,
|
|
787
|
+
current: true,
|
|
788
|
+
degraded: true,
|
|
789
|
+
fallbackFingerprint: priorIntegrity.fingerprint,
|
|
790
|
+
fallbackRejectedReason: null,
|
|
791
|
+
generationAdmissionRequired: true,
|
|
792
|
+
distEntrypoint,
|
|
793
|
+
built: false,
|
|
794
|
+
reason: 'admitted-prior-dist-for-watch-startup',
|
|
795
|
+
};
|
|
796
|
+
} catch {
|
|
797
|
+
// The prior publication is not runnable. Fall through to canonical freshness
|
|
798
|
+
// admission, which may repair it before the daemon is allowed to start.
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
let buildResult = null;
|
|
802
|
+
let buildError = null;
|
|
803
|
+
try {
|
|
804
|
+
buildResult = await ensureCliBuiltImpl(cliDir, { buildCli, env });
|
|
805
|
+
} catch (error) {
|
|
806
|
+
buildError = error;
|
|
807
|
+
}
|
|
808
|
+
let integrity = readIntegrity();
|
|
809
|
+
if (!buildCli && !integrity.ok) {
|
|
810
|
+
try {
|
|
811
|
+
buildResult = await ensureCliBuiltImpl(cliDir, { buildCli: true, env });
|
|
812
|
+
buildError = null;
|
|
813
|
+
} catch (error) {
|
|
814
|
+
buildError = error;
|
|
815
|
+
}
|
|
816
|
+
integrity = readIntegrity();
|
|
817
|
+
}
|
|
818
|
+
const current = buildResult?.current === true;
|
|
819
|
+
const reason = buildError
|
|
820
|
+
? `build_failed:${String(buildError?.message ?? buildError)}`
|
|
821
|
+
: String(buildResult?.reason ?? integrity.reason ?? 'unknown');
|
|
822
|
+
let degraded = false;
|
|
823
|
+
let fallbackFingerprint = null;
|
|
824
|
+
let fallbackRejectedReason = null;
|
|
825
|
+
if (buildError) {
|
|
826
|
+
if (priorIntegrity.ok !== true) {
|
|
827
|
+
fallbackRejectedReason = 'no_usable_prior_dist';
|
|
828
|
+
} else if (integrity.ok !== true) {
|
|
829
|
+
fallbackRejectedReason = 'dist_invalid_after_failed_build';
|
|
830
|
+
} else if (integrity.fingerprint !== priorIntegrity.fingerprint) {
|
|
831
|
+
fallbackRejectedReason = 'dist_identity_changed_during_failed_build';
|
|
832
|
+
} else {
|
|
833
|
+
try {
|
|
834
|
+
await probeCliDistRuntimeImportImpl(distEntrypoint, {
|
|
835
|
+
cwd: cliDir,
|
|
836
|
+
env,
|
|
837
|
+
timeoutMs: resolveStackDaemonStartVerifyTimeoutMs(env),
|
|
838
|
+
});
|
|
839
|
+
degraded = true;
|
|
840
|
+
fallbackFingerprint = integrity.fingerprint;
|
|
841
|
+
} catch (error) {
|
|
842
|
+
fallbackRejectedReason = `runtime_probe_failed:${String(error?.message ?? error)}`;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
} else if (!current && integrity.ok === true) {
|
|
846
|
+
if (buildResult?.built === true) {
|
|
847
|
+
// ensureCliBuilt only reports a successful build after validating the atomically
|
|
848
|
+
// published daemon command closure. Later edits affect freshness, not runnability.
|
|
849
|
+
degraded = true;
|
|
850
|
+
fallbackFingerprint = integrity.fingerprint;
|
|
851
|
+
} else {
|
|
852
|
+
try {
|
|
853
|
+
await probeCliDistRuntimeImportImpl(distEntrypoint, {
|
|
854
|
+
cwd: cliDir,
|
|
855
|
+
env,
|
|
856
|
+
timeoutMs: resolveStackDaemonStartVerifyTimeoutMs(env),
|
|
857
|
+
});
|
|
858
|
+
degraded = true;
|
|
859
|
+
fallbackFingerprint = integrity.fingerprint;
|
|
860
|
+
} catch (error) {
|
|
861
|
+
fallbackRejectedReason = `runtime_probe_failed:${String(error?.message ?? error)}`;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
return {
|
|
866
|
+
ok: integrity.ok,
|
|
867
|
+
current: integrity.ok && current,
|
|
868
|
+
degraded,
|
|
869
|
+
fallbackFingerprint,
|
|
870
|
+
fallbackRejectedReason,
|
|
871
|
+
generationAdmissionRequired: true,
|
|
872
|
+
distEntrypoint,
|
|
873
|
+
built: Boolean(buildResult?.built),
|
|
874
|
+
reason,
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
const concurrentBuildReady = await waitForConcurrentCliDistBuild({
|
|
879
|
+
cliDir,
|
|
880
|
+
readIntegrity,
|
|
881
|
+
});
|
|
882
|
+
if (concurrentBuildReady?.ok) {
|
|
883
|
+
return {
|
|
884
|
+
ok: true,
|
|
885
|
+
current: true,
|
|
886
|
+
distEntrypoint,
|
|
887
|
+
built: false,
|
|
888
|
+
reason: concurrentBuildReady.reason,
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
|
|
491
892
|
// Fast path: if dist exists and import graph is complete, never trigger rebuild here.
|
|
492
893
|
// Rebuilding inside daemon restart can race with live restarts and transiently remove dist/.
|
|
493
894
|
const before = readIntegrity();
|
|
494
895
|
if (before.ok) {
|
|
495
|
-
return { ok: true, distEntrypoint, built: false, reason: before.reason };
|
|
896
|
+
return { ok: true, current: true, distEntrypoint, built: false, reason: before.reason };
|
|
496
897
|
}
|
|
497
898
|
|
|
498
899
|
// Try to recover automatically: missing dist is a common first-run worktree issue.
|
|
@@ -504,7 +905,7 @@ async function ensureHappierCliDistExists({ cliBin, cliEntrypoint = '', cliNodeE
|
|
|
504
905
|
let buildRes = null;
|
|
505
906
|
try {
|
|
506
907
|
// In auto mode, ensureCliBuilt() is a fast no-op when nothing changed.
|
|
507
|
-
buildRes = await ensureCliBuilt(cliDir, { buildCli: true });
|
|
908
|
+
buildRes = await ensureCliBuilt(cliDir, { buildCli: true, env });
|
|
508
909
|
if (buildRes?.built) {
|
|
509
910
|
// eslint-disable-next-line no-console
|
|
510
911
|
console.warn(`[local] happier-cli: rebuilt (${cliDir})`);
|
|
@@ -517,6 +918,7 @@ async function ensureHappierCliDistExists({ cliBin, cliEntrypoint = '', cliNodeE
|
|
|
517
918
|
if (after.ok) {
|
|
518
919
|
return {
|
|
519
920
|
ok: true,
|
|
921
|
+
current: true,
|
|
520
922
|
distEntrypoint,
|
|
521
923
|
built: Boolean(buildRes?.built),
|
|
522
924
|
reason: buildRes?.built ? (buildRes.reason ?? 'rebuilt') : 'exists',
|
|
@@ -548,6 +950,23 @@ function excerptIndicatesInvalidAuth(excerpt) {
|
|
|
548
950
|
);
|
|
549
951
|
}
|
|
550
952
|
|
|
953
|
+
function excerptIndicatesInstalledServiceConflict(excerpt) {
|
|
954
|
+
if (!excerpt) return false;
|
|
955
|
+
return (
|
|
956
|
+
excerpt.includes('A background service is already installed for this relay.') ||
|
|
957
|
+
excerpt.includes('Use `happier service start` to start the installed background service instead of starting a new relay runtime.') ||
|
|
958
|
+
excerpt.includes('If you want to start a manual relay runtime')
|
|
959
|
+
);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
function extractFirstDaemonStartNoticeLine(excerpt) {
|
|
963
|
+
const lines = String(excerpt ?? '')
|
|
964
|
+
.split(/\r?\n/)
|
|
965
|
+
.map((line) => line.replace(/^\[daemon\]\s*/, '').trim())
|
|
966
|
+
.filter(Boolean);
|
|
967
|
+
return lines[0] ?? null;
|
|
968
|
+
}
|
|
969
|
+
|
|
551
970
|
function allowDaemonWaitForAuthWithoutTty() {
|
|
552
971
|
const raw = (process.env.HAPPIER_STACK_DAEMON_WAIT_FOR_AUTH ?? '').toString().trim().toLowerCase();
|
|
553
972
|
return raw === '1' || raw === 'true' || raw === 'yes' || raw === 'y';
|
|
@@ -847,88 +1266,66 @@ async function ensureServerScopedCredentialsFromLegacy({ cliHomeDir, internalSer
|
|
|
847
1266
|
}
|
|
848
1267
|
}
|
|
849
1268
|
|
|
850
|
-
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
internalServerUrl: serverUrl,
|
|
855
|
-
publicServerUrl: '',
|
|
856
|
-
});
|
|
857
|
-
if (envMatch === true) return true;
|
|
858
|
-
if (envMatch === false) return false;
|
|
859
|
-
|
|
860
|
-
const { statePath, lockPath } = resolvePreferredStackDaemonStatePaths({ cliHomeDir, serverUrl, env });
|
|
861
|
-
const daemonStatePaths = resolveStackDaemonStatePaths({ cliHomeDir, serverUrl, env });
|
|
1269
|
+
function readRecordedDaemonProcessInstanceFingerprint(runtimeStatePath, pid) {
|
|
1270
|
+
const statePath = String(runtimeStatePath ?? '').trim();
|
|
1271
|
+
const normalizedPid = Number(pid);
|
|
1272
|
+
if (!statePath || !Number.isFinite(normalizedPid) || normalizedPid <= 1) return null;
|
|
862
1273
|
try {
|
|
863
|
-
const
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
);
|
|
1274
|
+
const runtime = JSON.parse(readFileSync(statePath, 'utf8'));
|
|
1275
|
+
const identities = runtime?.processInstances?.processes ?? {};
|
|
1276
|
+
const candidates = [
|
|
1277
|
+
identities.daemonPid,
|
|
1278
|
+
...(Array.isArray(identities.daemonPids) ? identities.daemonPids : []),
|
|
1279
|
+
];
|
|
1280
|
+
const identity = candidates.find((candidate) => Number(candidate?.pid) === normalizedPid);
|
|
1281
|
+
return String(identity?.fingerprint ?? '').trim() || null;
|
|
872
1282
|
} catch {
|
|
873
|
-
return
|
|
1283
|
+
return null;
|
|
874
1284
|
}
|
|
875
1285
|
}
|
|
876
1286
|
|
|
877
1287
|
async function killDaemonPidSafely({
|
|
878
1288
|
pid,
|
|
879
1289
|
cliHomeDir,
|
|
880
|
-
serverUrl = '',
|
|
881
1290
|
env = process.env,
|
|
1291
|
+
stackName = null,
|
|
1292
|
+
runtimeStatePath = null,
|
|
882
1293
|
sourcePath = '',
|
|
883
1294
|
sourceLabel = 'state file',
|
|
1295
|
+
killPidOwnedByStackImpl = killPidOwnedByStack,
|
|
884
1296
|
}) {
|
|
885
|
-
if (!Number.isFinite(pid) || pid <=
|
|
886
|
-
return false;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
try {
|
|
890
|
-
process.kill(pid, 0);
|
|
891
|
-
} catch {
|
|
892
|
-
return false;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
let cmd = '';
|
|
896
|
-
try {
|
|
897
|
-
cmd = await runCapture('ps', ['-p', String(pid), '-o', 'command=']);
|
|
898
|
-
} catch {
|
|
899
|
-
cmd = '';
|
|
900
|
-
}
|
|
901
|
-
const looksLikeDaemon = cmd.includes(' daemon ') || cmd.includes('daemon start') || cmd.includes('daemon start-sync');
|
|
902
|
-
if (!looksLikeDaemon) {
|
|
903
|
-
console.warn(`[local] refusing to kill pid ${pid} from ${sourceLabel} (doesn't look like daemon): ${cmd.trim()}`);
|
|
1297
|
+
if (!Number.isFinite(pid) || pid <= 1) {
|
|
904
1298
|
return false;
|
|
905
1299
|
}
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
);
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
process.kill(pid, 0);
|
|
923
|
-
process.kill(pid, 'SIGKILL');
|
|
924
|
-
} catch {
|
|
925
|
-
// exited
|
|
1300
|
+
const resolvedStackName =
|
|
1301
|
+
String(stackName ?? '').trim() ||
|
|
1302
|
+
String(env?.HAPPIER_STACK_STACK ?? '').trim() ||
|
|
1303
|
+
'main';
|
|
1304
|
+
const processInstanceFingerprint =
|
|
1305
|
+
readRecordedDaemonProcessInstanceFingerprint(runtimeStatePath, pid);
|
|
1306
|
+
const result = await killPidOwnedByStackImpl(pid, {
|
|
1307
|
+
stackName: resolvedStackName,
|
|
1308
|
+
envPath: resolveStackEnvPath(resolvedStackName, env).envPath,
|
|
1309
|
+
cliHomeDir,
|
|
1310
|
+
processInstanceFingerprint,
|
|
1311
|
+
label: sourceLabel,
|
|
1312
|
+
signal: 'SIGTERM',
|
|
1313
|
+
});
|
|
1314
|
+
if (result.killed) {
|
|
1315
|
+
console.log(`[local] killed stuck daemon pid ${pid} (from ${sourcePath || sourceLabel})`);
|
|
926
1316
|
}
|
|
927
|
-
|
|
928
|
-
return true;
|
|
1317
|
+
return result.killed === true;
|
|
929
1318
|
}
|
|
930
1319
|
|
|
931
|
-
async function killDaemonFromStateFile({
|
|
1320
|
+
async function killDaemonFromStateFile({
|
|
1321
|
+
cliHomeDir,
|
|
1322
|
+
serverUrl = '',
|
|
1323
|
+
env = process.env,
|
|
1324
|
+
stackName = null,
|
|
1325
|
+
runtimeStatePath = null,
|
|
1326
|
+
expectedPid = null,
|
|
1327
|
+
killPidOwnedByStackImpl = killPidOwnedByStack,
|
|
1328
|
+
}) {
|
|
932
1329
|
const { statePath } = resolvePreferredStackDaemonStatePaths({ cliHomeDir, serverUrl, env });
|
|
933
1330
|
if (!existsSync(statePath)) {
|
|
934
1331
|
return false;
|
|
@@ -944,18 +1341,32 @@ async function killDaemonFromStateFile({ cliHomeDir, serverUrl = '', env = proce
|
|
|
944
1341
|
} catch {
|
|
945
1342
|
pid = null;
|
|
946
1343
|
}
|
|
1344
|
+
const expected = Number(expectedPid);
|
|
1345
|
+
if (Number.isFinite(expected) && expected > 0 && pid !== expected) {
|
|
1346
|
+
return false;
|
|
1347
|
+
}
|
|
947
1348
|
|
|
948
1349
|
return await killDaemonPidSafely({
|
|
949
1350
|
pid,
|
|
950
1351
|
cliHomeDir,
|
|
951
|
-
serverUrl,
|
|
952
1352
|
env,
|
|
1353
|
+
stackName,
|
|
1354
|
+
runtimeStatePath,
|
|
953
1355
|
sourcePath: statePath,
|
|
954
1356
|
sourceLabel: 'daemon.state.json',
|
|
1357
|
+
killPidOwnedByStackImpl,
|
|
955
1358
|
});
|
|
956
1359
|
}
|
|
957
1360
|
|
|
958
|
-
async function killDaemonFromLockFile({
|
|
1361
|
+
async function killDaemonFromLockFile({
|
|
1362
|
+
cliHomeDir,
|
|
1363
|
+
serverUrl = '',
|
|
1364
|
+
env = process.env,
|
|
1365
|
+
stackName = null,
|
|
1366
|
+
runtimeStatePath = null,
|
|
1367
|
+
expectedPid = null,
|
|
1368
|
+
killPidOwnedByStackImpl = killPidOwnedByStack,
|
|
1369
|
+
}) {
|
|
959
1370
|
const { lockPath } = resolvePreferredStackDaemonStatePaths({ cliHomeDir, serverUrl, env });
|
|
960
1371
|
if (!existsSync(lockPath)) {
|
|
961
1372
|
return false;
|
|
@@ -974,14 +1385,20 @@ async function killDaemonFromLockFile({ cliHomeDir, serverUrl = '', env = proces
|
|
|
974
1385
|
if (!pid) {
|
|
975
1386
|
return false;
|
|
976
1387
|
}
|
|
1388
|
+
const expected = Number(expectedPid);
|
|
1389
|
+
if (Number.isFinite(expected) && expected > 0 && pid !== expected) {
|
|
1390
|
+
return false;
|
|
1391
|
+
}
|
|
977
1392
|
|
|
978
1393
|
return await killDaemonPidSafely({
|
|
979
1394
|
pid,
|
|
980
1395
|
cliHomeDir,
|
|
981
|
-
serverUrl,
|
|
982
1396
|
env,
|
|
1397
|
+
stackName,
|
|
1398
|
+
runtimeStatePath,
|
|
983
1399
|
sourcePath: lockPath,
|
|
984
1400
|
sourceLabel: 'lock file',
|
|
1401
|
+
killPidOwnedByStackImpl,
|
|
985
1402
|
});
|
|
986
1403
|
}
|
|
987
1404
|
|
|
@@ -1014,26 +1431,42 @@ export function getDaemonEnv({
|
|
|
1014
1431
|
stackName = null,
|
|
1015
1432
|
cliIdentity = null,
|
|
1016
1433
|
}) {
|
|
1017
|
-
const scopedEnv =
|
|
1018
|
-
env:
|
|
1434
|
+
const scopedEnv = applyStackDaemonLifecycleScopeEnv({
|
|
1435
|
+
env: applyStackActiveServerScopeEnv({
|
|
1436
|
+
env: baseEnv,
|
|
1437
|
+
stackName,
|
|
1438
|
+
cliIdentity,
|
|
1439
|
+
}),
|
|
1019
1440
|
stackName,
|
|
1020
1441
|
cliIdentity,
|
|
1021
1442
|
});
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1443
|
+
const explicitStartupSource = String(baseEnv?.HAPPIER_DAEMON_STARTUP_SOURCE ?? '').trim();
|
|
1444
|
+
const explicitServiceLabel = String(baseEnv?.HAPPIER_DAEMON_SERVICE_LABEL ?? '').trim();
|
|
1445
|
+
const startupSource =
|
|
1446
|
+
explicitStartupSource ||
|
|
1447
|
+
(String(baseEnv?.HAPPIER_STACK_SERVICE_MODE ?? '').trim() === '1' ? 'background-service' : 'manual');
|
|
1448
|
+
// Machine identity, credentials, state, and locks stay on the stable stack scope. Matching
|
|
1449
|
+
// settings profiles remain credential migration sources in resolveStackCredentialPaths().
|
|
1450
|
+
const stackNameForOwnership =
|
|
1451
|
+
String(stackName ?? '').trim() ||
|
|
1452
|
+
String(scopedEnv.HAPPIER_STACK_STACK ?? '').trim();
|
|
1453
|
+
if (stackNameForOwnership) {
|
|
1454
|
+
scopedEnv.HAPPIER_STACK_STACK = stackNameForOwnership;
|
|
1455
|
+
}
|
|
1456
|
+
const hasStackOwnershipContext =
|
|
1457
|
+
Boolean(stackNameForOwnership) ||
|
|
1458
|
+
Boolean(String(scopedEnv.HAPPIER_STACK_ENV_FILE ?? '').trim()) ||
|
|
1459
|
+
Boolean(String(scopedEnv.HAPPIER_STACK_REPO_DIR ?? '').trim());
|
|
1460
|
+
if (hasStackOwnershipContext) {
|
|
1461
|
+
scopedEnv.HAPPIER_STACK_PROCESS_KIND = 'daemon';
|
|
1031
1462
|
}
|
|
1032
1463
|
return {
|
|
1033
1464
|
...scopedEnv,
|
|
1034
1465
|
HAPPIER_SERVER_URL: internalServerUrl,
|
|
1035
1466
|
HAPPIER_WEBAPP_URL: publicServerUrl,
|
|
1036
1467
|
HAPPIER_HOME_DIR: cliHomeDir,
|
|
1468
|
+
HAPPIER_DAEMON_STARTUP_SOURCE: startupSource,
|
|
1469
|
+
HAPPIER_DAEMON_SERVICE_LABEL: explicitServiceLabel,
|
|
1037
1470
|
};
|
|
1038
1471
|
}
|
|
1039
1472
|
|
|
@@ -1051,7 +1484,10 @@ export async function stopLocalDaemon({
|
|
|
1051
1484
|
stackName = null,
|
|
1052
1485
|
cliIdentity = null,
|
|
1053
1486
|
expectedPid = null,
|
|
1054
|
-
}
|
|
1487
|
+
}, {
|
|
1488
|
+
killPidOwnedByStackImpl = killPidOwnedByStack,
|
|
1489
|
+
syncStackRuntimeDaemonPidFromDaemonStateImpl = syncStackRuntimeDaemonPidFromDaemonState,
|
|
1490
|
+
} = {}) {
|
|
1055
1491
|
const daemonEnv = getDaemonEnv({
|
|
1056
1492
|
baseEnv: env,
|
|
1057
1493
|
cliHomeDir,
|
|
@@ -1060,6 +1496,30 @@ export async function stopLocalDaemon({
|
|
|
1060
1496
|
stackName,
|
|
1061
1497
|
cliIdentity,
|
|
1062
1498
|
});
|
|
1499
|
+
const resolvedStackName =
|
|
1500
|
+
String(stackName ?? '').trim() ||
|
|
1501
|
+
String(env?.HAPPIER_STACK_STACK ?? '').trim() ||
|
|
1502
|
+
'main';
|
|
1503
|
+
const daemonLifecycleLockTimeoutMs = parseNonNegativeInt(
|
|
1504
|
+
env?.HAPPIER_STACK_DAEMON_LIFECYCLE_LOCK_TIMEOUT_MS,
|
|
1505
|
+
120_000,
|
|
1506
|
+
);
|
|
1507
|
+
const daemonLifecycleLockPollMs = parseNonNegativeInt(
|
|
1508
|
+
env?.HAPPIER_STACK_DAEMON_LIFECYCLE_LOCK_POLL_MS,
|
|
1509
|
+
125,
|
|
1510
|
+
);
|
|
1511
|
+
const daemonStopTimeoutMs = Math.max(
|
|
1512
|
+
1,
|
|
1513
|
+
parseNonNegativeInt(env?.HAPPIER_STACK_DAEMON_STOP_TIMEOUT_MS, 10_000),
|
|
1514
|
+
);
|
|
1515
|
+
const daemonStopTerminateGraceMs = Math.max(
|
|
1516
|
+
1,
|
|
1517
|
+
parseNonNegativeInt(env?.HAPPIER_STACK_DAEMON_STOP_TERMINATE_GRACE_MS, 500),
|
|
1518
|
+
);
|
|
1519
|
+
|
|
1520
|
+
return await withStackDaemonLifecycleLock(
|
|
1521
|
+
{ cliHomeDir, internalServerUrl, stackName: resolvedStackName },
|
|
1522
|
+
async () => {
|
|
1063
1523
|
|
|
1064
1524
|
// When we're shutting down due to a service manager restart (launchd/systemd),
|
|
1065
1525
|
// a previous `hstack start` instance can race the new instance and accidentally stop the
|
|
@@ -1091,25 +1551,80 @@ export async function stopLocalDaemon({
|
|
|
1091
1551
|
: distEntrypoint
|
|
1092
1552
|
? readCliDistIntegrity(distEntrypoint)
|
|
1093
1553
|
: { ok: false, reason: 'unknown_cli_bin' };
|
|
1094
|
-
|
|
1554
|
+
let daemonStopCommandError = null;
|
|
1555
|
+
if (distIntegrity.ok && expectedPid == null) {
|
|
1095
1556
|
const daemonCommand = resolveDaemonCommandSpec({ cliBin, cliEntrypoint, cliNodeEntrypoint, cliCommand, cliCommandArgs, env: daemonEnv });
|
|
1096
1557
|
try {
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
proc.
|
|
1558
|
+
const proc = spawnProc('daemon', daemonCommand.command, [...daemonCommand.argsPrefix, 'daemon', 'stop'], daemonEnv, {
|
|
1559
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1560
|
+
});
|
|
1561
|
+
const stopOutcome = new Promise((resolve) => {
|
|
1562
|
+
proc.once('exit', (code, signal) => resolve({ kind: 'exit', code, signal }));
|
|
1563
|
+
proc.once('error', (error) => resolve({ kind: 'error', error }));
|
|
1102
1564
|
});
|
|
1565
|
+
let stopTimeout = null;
|
|
1566
|
+
const firstOutcome = await Promise.race([
|
|
1567
|
+
stopOutcome,
|
|
1568
|
+
new Promise((resolve) => {
|
|
1569
|
+
stopTimeout = setTimeout(() => resolve({ kind: 'timeout' }), daemonStopTimeoutMs);
|
|
1570
|
+
}),
|
|
1571
|
+
]);
|
|
1572
|
+
if (stopTimeout) clearTimeout(stopTimeout);
|
|
1573
|
+
if (firstOutcome.kind === 'timeout') {
|
|
1574
|
+
const termination = await terminateProcessGroup(proc.pid, {
|
|
1575
|
+
graceMs: daemonStopTerminateGraceMs,
|
|
1576
|
+
signal: 'SIGTERM',
|
|
1577
|
+
});
|
|
1578
|
+
const error = new Error(`daemon stop timed out after ${daemonStopTimeoutMs}ms`);
|
|
1579
|
+
error.code = 'ETIMEDOUT';
|
|
1580
|
+
error.childPid = proc.pid ?? null;
|
|
1581
|
+
error.processGroupTerminated = termination.ok === true;
|
|
1582
|
+
daemonStopCommandError = error;
|
|
1583
|
+
}
|
|
1103
1584
|
} catch {
|
|
1104
1585
|
// ignore
|
|
1105
1586
|
}
|
|
1106
1587
|
}
|
|
1107
1588
|
|
|
1108
|
-
await killDaemonFromStateFile({
|
|
1589
|
+
await killDaemonFromStateFile({
|
|
1590
|
+
cliHomeDir,
|
|
1591
|
+
serverUrl: internalServerUrl,
|
|
1592
|
+
env: daemonEnv,
|
|
1593
|
+
stackName: resolvedStackName,
|
|
1594
|
+
runtimeStatePath,
|
|
1595
|
+
expectedPid,
|
|
1596
|
+
killPidOwnedByStackImpl,
|
|
1597
|
+
});
|
|
1109
1598
|
// If the daemon never wrote daemon.state.json (e.g. it got stuck in auth in a non-interactive context),
|
|
1110
1599
|
// stopLocalDaemon() can't find it. Fall back to the lock file PID.
|
|
1111
|
-
await killDaemonFromLockFile({
|
|
1112
|
-
|
|
1600
|
+
await killDaemonFromLockFile({
|
|
1601
|
+
cliHomeDir,
|
|
1602
|
+
serverUrl: internalServerUrl,
|
|
1603
|
+
env: daemonEnv,
|
|
1604
|
+
stackName: resolvedStackName,
|
|
1605
|
+
runtimeStatePath,
|
|
1606
|
+
expectedPid,
|
|
1607
|
+
killPidOwnedByStackImpl,
|
|
1608
|
+
});
|
|
1609
|
+
// An expected-PID stop is predecessor-specific. A successor may already have projected itself
|
|
1610
|
+
// after the scoped state changed, so never clear shared runtime daemon truth from this path.
|
|
1611
|
+
if (expectedPid == null) {
|
|
1612
|
+
await syncStackRuntimeDaemonPidFromDaemonStateImpl({
|
|
1613
|
+
runtimeStatePath,
|
|
1614
|
+
cliHomeDir,
|
|
1615
|
+
internalServerUrl,
|
|
1616
|
+
env: daemonEnv,
|
|
1617
|
+
}).catch(() => {});
|
|
1618
|
+
}
|
|
1619
|
+
if (daemonStopCommandError) {
|
|
1620
|
+
throw daemonStopCommandError;
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
timeoutMs: daemonLifecycleLockTimeoutMs,
|
|
1625
|
+
pollIntervalMs: daemonLifecycleLockPollMs,
|
|
1626
|
+
},
|
|
1627
|
+
);
|
|
1113
1628
|
}
|
|
1114
1629
|
|
|
1115
1630
|
export async function startLocalDaemonWithAuth({
|
|
@@ -1124,10 +1639,16 @@ export async function startLocalDaemonWithAuth({
|
|
|
1124
1639
|
runtimeStatePath = null,
|
|
1125
1640
|
isShuttingDown,
|
|
1126
1641
|
forceRestart = false,
|
|
1642
|
+
preserveExistingRunning = false,
|
|
1127
1643
|
env = process.env,
|
|
1128
1644
|
stackName = null,
|
|
1129
1645
|
cliIdentity = 'default',
|
|
1130
|
-
|
|
1646
|
+
runtimeBacked = false,
|
|
1647
|
+
admittedDistClosureFingerprint = null,
|
|
1648
|
+
admitPriorDistImmediately = false,
|
|
1649
|
+
}, {
|
|
1650
|
+
restartDaemonViaControlServerImpl = restartDaemonViaControlServer,
|
|
1651
|
+
} = {}) {
|
|
1131
1652
|
const resolvedStackName =
|
|
1132
1653
|
(stackName ?? '').toString().trim() ||
|
|
1133
1654
|
(env.HAPPIER_STACK_STACK ?? '').toString().trim() ||
|
|
@@ -1149,44 +1670,105 @@ export async function startLocalDaemonWithAuth({
|
|
|
1149
1670
|
stackName: resolvedStackName,
|
|
1150
1671
|
cliIdentity: resolvedCliIdentity,
|
|
1151
1672
|
});
|
|
1152
|
-
const parseNonNegativeInt = (value, fallback) => {
|
|
1153
|
-
const n = Number(value);
|
|
1154
|
-
return Number.isFinite(n) && n >= 0 ? Math.floor(n) : fallback;
|
|
1155
|
-
};
|
|
1156
1673
|
const isTui = (baseEnv.HAPPIER_STACK_TUI ?? '').toString().trim() === '1';
|
|
1157
1674
|
const syncRuntimeDaemonState = async ({ runtimeDaemonPid = null } = {}) => {
|
|
1675
|
+
const observedState = await checkDaemonStatePingAware(cliHomeDir, {
|
|
1676
|
+
serverUrl: internalServerUrl,
|
|
1677
|
+
env: daemonEnv,
|
|
1678
|
+
});
|
|
1158
1679
|
await syncStackRuntimeDaemonPidFromDaemonState(
|
|
1159
1680
|
{
|
|
1160
1681
|
runtimeStatePath,
|
|
1161
1682
|
cliHomeDir,
|
|
1162
1683
|
internalServerUrl,
|
|
1163
1684
|
runtimeDaemonPid,
|
|
1685
|
+
authenticatedProcessInstanceFingerprint: observedState.processInstanceFingerprint ?? null,
|
|
1686
|
+
daemonDistFingerprint: readAuthenticatedDaemonDistFingerprint(observedState),
|
|
1164
1687
|
env: daemonEnv,
|
|
1165
1688
|
},
|
|
1166
|
-
{ checkDaemonStateImpl:
|
|
1689
|
+
{ checkDaemonStateImpl: async () => observedState },
|
|
1167
1690
|
).catch(() => {});
|
|
1168
1691
|
};
|
|
1169
|
-
const
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
const
|
|
1174
|
-
daemonCommand.mode === 'binary'
|
|
1175
|
-
|| hasExplicitRuntimeLaunchSpec({ cliEntrypoint, cliNodeEntrypoint, cliCommand })
|
|
1176
|
-
? 30_000
|
|
1177
|
-
: 5_000;
|
|
1178
|
-
const startVerifyTimeoutMs = parseNonNegativeInt(
|
|
1179
|
-
baseEnv.HAPPIER_STACK_DAEMON_START_VERIFY_TIMEOUT_MS,
|
|
1180
|
-
defaultStartVerifyTimeoutMs,
|
|
1181
|
-
);
|
|
1182
|
-
const startVerifyPollMs = parseNonNegativeInt(baseEnv.HAPPIER_STACK_DAEMON_START_VERIFY_POLL_MS, 125);
|
|
1183
|
-
const startVerifyStableMs = parseNonNegativeInt(baseEnv.HAPPIER_STACK_DAEMON_START_VERIFY_STABLE_MS, 750);
|
|
1692
|
+
const daemonLifecycleLockTimeoutMs = resolveAttendedStartupTimeoutMs({
|
|
1693
|
+
isTui,
|
|
1694
|
+
timeoutMs: parseNonNegativeInt(baseEnv.HAPPIER_STACK_DAEMON_LIFECYCLE_LOCK_TIMEOUT_MS, 180_000),
|
|
1695
|
+
});
|
|
1696
|
+
const daemonLifecycleLockPollMs = parseNonNegativeInt(baseEnv.HAPPIER_STACK_DAEMON_LIFECYCLE_LOCK_POLL_MS, 125);
|
|
1184
1697
|
|
|
1698
|
+
return await withStackDaemonLifecycleLock(
|
|
1699
|
+
{ cliHomeDir, internalServerUrl, stackName: resolvedStackName },
|
|
1700
|
+
async () => {
|
|
1185
1701
|
const explicitCommand = String(cliCommand ?? '').trim();
|
|
1186
1702
|
const explicitEntrypoint = String(cliEntrypoint ?? '').trim();
|
|
1187
|
-
const
|
|
1188
|
-
const distCheck = await ensureHappierCliDistExists({
|
|
1703
|
+
const initialDistEntrypoint = explicitCommand ? '' : explicitEntrypoint || resolveCliDistEntrypointFromBin(cliBin);
|
|
1704
|
+
const distCheck = await ensureHappierCliDistExists({
|
|
1705
|
+
cliBin,
|
|
1706
|
+
cliEntrypoint,
|
|
1707
|
+
cliNodeEntrypoint,
|
|
1708
|
+
cliCommand,
|
|
1709
|
+
admittedDistClosureFingerprint,
|
|
1710
|
+
admitPriorDistImmediately,
|
|
1711
|
+
env: baseEnv,
|
|
1712
|
+
});
|
|
1713
|
+
const distEntrypoint =
|
|
1714
|
+
explicitCommand
|
|
1715
|
+
? ''
|
|
1716
|
+
: explicitEntrypoint || distCheck.distEntrypoint || initialDistEntrypoint;
|
|
1717
|
+
if (distCheck.generationAdmissionRequired && distCheck.current !== true) {
|
|
1718
|
+
const existingAtAdmission = await checkDaemonStatePingAware(cliHomeDir, {
|
|
1719
|
+
serverUrl: internalServerUrl,
|
|
1720
|
+
env: daemonEnv,
|
|
1721
|
+
stackName: resolvedStackName,
|
|
1722
|
+
});
|
|
1723
|
+
const hasLiveDaemon = ['running', 'starting', 'unreachable'].includes(existingAtAdmission.status);
|
|
1724
|
+
const hasHealthyDaemon = existingAtAdmission.status === 'running';
|
|
1725
|
+
if (distCheck.degraded === true && hasHealthyDaemon) {
|
|
1726
|
+
console.warn(
|
|
1727
|
+
`[local] WARNING: happier-cli current build failed (${distCheck.reason ?? 'unknown'}); ` +
|
|
1728
|
+
`preserving the healthy daemon already running from the last usable dist ` +
|
|
1729
|
+
`(fingerprint=${distCheck.fallbackFingerprint ?? 'unknown'}). Source changes are not active.`
|
|
1730
|
+
);
|
|
1731
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: existingAtAdmission.pid });
|
|
1732
|
+
return;
|
|
1733
|
+
}
|
|
1734
|
+
if (!forceRestart && hasLiveDaemon) {
|
|
1735
|
+
console.warn(
|
|
1736
|
+
`[local] happier-cli current build is unavailable (${distCheck.reason ?? 'unknown'}); ` +
|
|
1737
|
+
`preserving the already-live daemon without launching stale output.`
|
|
1738
|
+
);
|
|
1739
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: existingAtAdmission.pid });
|
|
1740
|
+
return;
|
|
1741
|
+
}
|
|
1742
|
+
if (distCheck.degraded === true) {
|
|
1743
|
+
console.warn(
|
|
1744
|
+
`[local] WARNING: happier-cli current build failed (${distCheck.reason ?? 'unknown'}); ` +
|
|
1745
|
+
`starting the daemon from the last usable dist at ${distEntrypoint} ` +
|
|
1746
|
+
`(fingerprint=${distCheck.fallbackFingerprint ?? 'unknown'}). Source changes are not active.`
|
|
1747
|
+
);
|
|
1748
|
+
} else {
|
|
1749
|
+
const error = new Error(
|
|
1750
|
+
`[local] happier-cli dist is not proven current (${distCheck.reason ?? 'unknown'}); ` +
|
|
1751
|
+
`refusing to cold-start or restart the daemon from stale or invalid build output at ${distEntrypoint}.` +
|
|
1752
|
+
(distCheck.fallbackRejectedReason ? ` Fallback rejected: ${distCheck.fallbackRejectedReason}.` : '')
|
|
1753
|
+
);
|
|
1754
|
+
error.code = 'ECLIDISTSTALECOLDSTART';
|
|
1755
|
+
throw error;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1189
1758
|
if (!distCheck.ok) {
|
|
1759
|
+
const existingAtAdmission = await checkDaemonStatePingAware(cliHomeDir, {
|
|
1760
|
+
serverUrl: internalServerUrl,
|
|
1761
|
+
env: daemonEnv,
|
|
1762
|
+
stackName: resolvedStackName,
|
|
1763
|
+
});
|
|
1764
|
+
if (daemonStateHasLiveProcess(existingAtAdmission)) {
|
|
1765
|
+
console.warn(
|
|
1766
|
+
`[local] happier-cli dist is unavailable (${distCheck.reason ?? 'unknown'}); ` +
|
|
1767
|
+
`preserving the already-live daemon instead of attempting an unsafe restart.`,
|
|
1768
|
+
);
|
|
1769
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: existingAtAdmission.pid });
|
|
1770
|
+
return;
|
|
1771
|
+
}
|
|
1190
1772
|
const reason = String(distCheck.reason ?? '').trim();
|
|
1191
1773
|
if (reason.startsWith('missing_runtime_launch_path:')) {
|
|
1192
1774
|
const missingPath = reason.slice('missing_runtime_launch_path:'.length);
|
|
@@ -1196,17 +1778,39 @@ export async function startLocalDaemonWithAuth({
|
|
|
1196
1778
|
`[local] Fix: rebuild or reactivate the stack runtime snapshot before starting the daemon.\n`,
|
|
1197
1779
|
);
|
|
1198
1780
|
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1781
|
+
throw new Error(formatCliDistUnavailableForDaemonStart({ distEntrypoint, reason: distCheck.reason }));
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
const canReconcileProfileWithAdmittedCli =
|
|
1785
|
+
!distCheck.generationAdmissionRequired || distCheck.current === true;
|
|
1786
|
+
if (canReconcileProfileWithAdmittedCli && existsSync(join(cliHomeDir, 'settings.json'))) {
|
|
1787
|
+
const serverId = String(daemonEnv.HAPPIER_ACTIVE_SERVER_ID ?? '').trim();
|
|
1788
|
+
if (serverId) {
|
|
1789
|
+
const profileCommand = resolveDaemonCommandSpec({
|
|
1790
|
+
cliBin,
|
|
1791
|
+
cliEntrypoint:
|
|
1792
|
+
explicitCommand || isCliDirectExecutableCommand(cliBin)
|
|
1793
|
+
? cliEntrypoint
|
|
1794
|
+
: distEntrypoint,
|
|
1795
|
+
cliNodeEntrypoint,
|
|
1796
|
+
cliCommand,
|
|
1797
|
+
cliCommandArgs,
|
|
1798
|
+
env: daemonEnv,
|
|
1799
|
+
});
|
|
1800
|
+
await run(
|
|
1801
|
+
profileCommand.command,
|
|
1802
|
+
[
|
|
1803
|
+
...profileCommand.argsPrefix,
|
|
1804
|
+
...buildStackServerProfileSetArgs({ serverId, internalServerUrl, publicServerUrl }),
|
|
1805
|
+
],
|
|
1806
|
+
{
|
|
1807
|
+
env: { ...daemonEnv, HAPPIER_DEFER_SERVER_SELECTION_FOLLOW_UP: '1' },
|
|
1808
|
+
stdio: 'ignore',
|
|
1809
|
+
timeoutMs: 10_000,
|
|
1810
|
+
captureFailureDiagnostic: { env: daemonEnv },
|
|
1811
|
+
},
|
|
1209
1812
|
);
|
|
1813
|
+
}
|
|
1210
1814
|
}
|
|
1211
1815
|
|
|
1212
1816
|
// If this is a migrated/new stack home dir, seed credentials from the user's existing login (best-effort)
|
|
@@ -1322,16 +1926,195 @@ export async function startLocalDaemonWithAuth({
|
|
|
1322
1926
|
// best-effort only
|
|
1323
1927
|
}
|
|
1324
1928
|
|
|
1325
|
-
const
|
|
1929
|
+
const guardLocalCliDist = shouldGuardLocalCliDistRestart({
|
|
1930
|
+
cliBin,
|
|
1931
|
+
cliEntrypoint,
|
|
1932
|
+
cliNodeEntrypoint,
|
|
1933
|
+
cliCommand,
|
|
1934
|
+
distEntrypoint,
|
|
1935
|
+
});
|
|
1936
|
+
|
|
1937
|
+
const runDaemonLifecycleWithStableCommand = async () => {
|
|
1938
|
+
const existing = await checkDaemonStatePingAware(cliHomeDir, { serverUrl: internalServerUrl, env: daemonEnv });
|
|
1939
|
+
if (existing.status === 'unreachable' && runtimeBacked === true) {
|
|
1940
|
+
const error = new Error(
|
|
1941
|
+
`[runtime] daemon process is alive but its authenticated control identity is unavailable` +
|
|
1942
|
+
(existing.pid ? ` (pid=${existing.pid})` : '') +
|
|
1943
|
+
'; refusing to adopt, replace, or project the admitted immutable closure.',
|
|
1944
|
+
);
|
|
1945
|
+
error.code = 'EIMMUTABLERUNTIMEDAEMONIDENTITY';
|
|
1946
|
+
error.daemonPid = existing.pid ?? null;
|
|
1947
|
+
throw error;
|
|
1948
|
+
}
|
|
1949
|
+
if (
|
|
1950
|
+
!forceRestart
|
|
1951
|
+
&& existing.status === 'unreachable'
|
|
1952
|
+
) {
|
|
1953
|
+
const pid = existing.pid;
|
|
1954
|
+
console.warn(
|
|
1955
|
+
`[local] daemon process is still alive but its control endpoint is temporarily unavailable` +
|
|
1956
|
+
(pid ? ` (pid=${pid})` : '') +
|
|
1957
|
+
'; keeping it running to avoid an unsafe overlapping restart.'
|
|
1958
|
+
);
|
|
1959
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: pid });
|
|
1960
|
+
return;
|
|
1961
|
+
}
|
|
1962
|
+
if (guardLocalCliDist) {
|
|
1963
|
+
const guardedDistIntegrity = readCliDistIntegrity(distEntrypoint);
|
|
1964
|
+
if (!guardedDistIntegrity.ok) {
|
|
1965
|
+
if (existing.status === 'running' || existing.status === 'starting') {
|
|
1966
|
+
console.warn(
|
|
1967
|
+
formatCliDistUnavailableForDaemonStart({ distEntrypoint, reason: guardedDistIntegrity.reason }) +
|
|
1968
|
+
`[local] Keeping the existing daemon running to avoid downtime.`
|
|
1969
|
+
);
|
|
1970
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: existing.pid });
|
|
1971
|
+
return;
|
|
1972
|
+
}
|
|
1973
|
+
throw new Error(formatCliDistUnavailableForDaemonStart({ distEntrypoint, reason: guardedDistIntegrity.reason }));
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
const captureStableDaemonCommand = () => {
|
|
1978
|
+
if (guardLocalCliDist) {
|
|
1979
|
+
const finalIntegrity = readCliDistIntegrity(distEntrypoint);
|
|
1980
|
+
if (!finalIntegrity.ok) {
|
|
1981
|
+
throw new Error(formatCliDistUnavailableForDaemonStart({
|
|
1982
|
+
distEntrypoint,
|
|
1983
|
+
reason: finalIntegrity.reason,
|
|
1984
|
+
}));
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
const runnerDistEntrypoint = runtimeBacked === true
|
|
1988
|
+
? String(cliNodeEntrypoint ?? '').trim()
|
|
1989
|
+
: distEntrypoint;
|
|
1990
|
+
const currentDistClosure = runnerDistEntrypoint
|
|
1991
|
+
? readCliDistBuildManifest(runnerDistEntrypoint)
|
|
1992
|
+
: null;
|
|
1993
|
+
const admittedFingerprint = String(admittedDistClosureFingerprint ?? '').trim().toLowerCase();
|
|
1994
|
+
const admittedFingerprintMatchesFinalManifest =
|
|
1995
|
+
/^[a-f0-9]{16}$/.test(admittedFingerprint)
|
|
1996
|
+
&& currentDistClosure?.ok === true
|
|
1997
|
+
&& currentDistClosure.fingerprint === admittedFingerprint;
|
|
1998
|
+
if (
|
|
1999
|
+
runtimeBacked === true
|
|
2000
|
+
&& !admittedFingerprintMatchesFinalManifest
|
|
2001
|
+
) {
|
|
2002
|
+
const error = new Error('[runtime] admitted daemon dist closure fingerprint does not match the immutable runtime entrypoint.');
|
|
2003
|
+
error.code = 'EIMMUTABLERUNTIMEDAEMONCLOSURE';
|
|
2004
|
+
throw error;
|
|
2005
|
+
}
|
|
2006
|
+
if (runtimeBacked !== true) {
|
|
2007
|
+
assertFinalSourceDaemonDistAdmission({
|
|
2008
|
+
admittedDistClosureFingerprint,
|
|
2009
|
+
fallbackFingerprint: distCheck.fallbackFingerprint,
|
|
2010
|
+
finalFingerprint: currentDistClosure?.ok ? currentDistClosure.fingerprint : null,
|
|
2011
|
+
});
|
|
2012
|
+
}
|
|
2013
|
+
const currentDistFingerprint = currentDistClosure?.ok ? currentDistClosure.fingerprint : null;
|
|
2014
|
+
applyDaemonDistClosureRuntimeEnv(daemonEnv, {
|
|
2015
|
+
runtimeStatePath,
|
|
2016
|
+
distEntrypoint: runnerDistEntrypoint,
|
|
2017
|
+
distClosureFingerprint: currentDistFingerprint,
|
|
2018
|
+
runtimeBacked,
|
|
2019
|
+
});
|
|
2020
|
+
const daemonCommand = resolveDaemonCommandSpec({
|
|
2021
|
+
cliBin,
|
|
2022
|
+
cliEntrypoint,
|
|
2023
|
+
cliNodeEntrypoint,
|
|
2024
|
+
cliCommand,
|
|
2025
|
+
cliCommandArgs,
|
|
2026
|
+
env: daemonEnv,
|
|
2027
|
+
});
|
|
2028
|
+
return {
|
|
2029
|
+
runnerDistEntrypoint,
|
|
2030
|
+
currentDistClosure,
|
|
2031
|
+
currentDistFingerprint,
|
|
2032
|
+
daemonCommand,
|
|
2033
|
+
};
|
|
2034
|
+
};
|
|
2035
|
+
const {
|
|
2036
|
+
runnerDistEntrypoint,
|
|
2037
|
+
currentDistClosure,
|
|
2038
|
+
currentDistFingerprint,
|
|
2039
|
+
daemonCommand,
|
|
2040
|
+
} = captureStableDaemonCommand();
|
|
2041
|
+
// Daemon startup can outlive the CLI's short foreground "still starting" window: source
|
|
2042
|
+
// daemons reattach sessions and hydrate local state, and packaged daemons may warm runtime state.
|
|
2043
|
+
const startVerifyTimeoutMs = resolveStackDaemonStartVerifyTimeoutMs(baseEnv);
|
|
2044
|
+
const startVerifyPollMs = parseNonNegativeInt(baseEnv.HAPPIER_STACK_DAEMON_START_VERIFY_POLL_MS, 125);
|
|
2045
|
+
const startVerifyStableMs = parseNonNegativeInt(baseEnv.HAPPIER_STACK_DAEMON_START_VERIFY_STABLE_MS, 750);
|
|
2046
|
+
|
|
2047
|
+
const restartStaleRunningDaemon = async ({ pid, distRestartReason }) => {
|
|
2048
|
+
console.warn(`[local] daemon is running with stale runtime; requesting confirmed overlap restart (pid=${pid}).\n[local] ${distRestartReason}`);
|
|
2049
|
+
try {
|
|
2050
|
+
const replacement = await restartDaemonViaControlServerImpl({
|
|
2051
|
+
cliHomeDir,
|
|
2052
|
+
internalServerUrl,
|
|
2053
|
+
env: daemonEnv,
|
|
2054
|
+
stackName: resolvedStackName,
|
|
2055
|
+
successorDistClosureFingerprint: currentDistFingerprint,
|
|
2056
|
+
});
|
|
2057
|
+
const replacementPid = Number(replacement?.pid);
|
|
2058
|
+
if (!Number.isFinite(replacementPid) || replacementPid <= 1 || replacementPid === pid) {
|
|
2059
|
+
throw new Error('daemon control restart did not confirm a distinct successor pid');
|
|
2060
|
+
}
|
|
2061
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: replacementPid });
|
|
2062
|
+
} catch (cause) {
|
|
2063
|
+
const detail = cause instanceof Error ? cause.message : String(cause);
|
|
2064
|
+
throw new Error(
|
|
2065
|
+
`[local] daemon has stale runtime, but its confirmed overlap restart failed; keeping the existing daemon running (pid=${pid}): ${detail}`,
|
|
2066
|
+
{ cause },
|
|
2067
|
+
);
|
|
2068
|
+
}
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
const reconcileRunningDaemonAfterStart = async (state) => {
|
|
2072
|
+
const pid = state.pid;
|
|
2073
|
+
const envMatch = await readDaemonEnvMatch({ pid, cliHomeDir, internalServerUrl, publicServerUrl });
|
|
2074
|
+
const matches = envMatch ? envMatch.matches === true : null;
|
|
2075
|
+
const distRestartReason = resolveDaemonDistRestartReason({
|
|
2076
|
+
distEntrypoint: runnerDistEntrypoint,
|
|
2077
|
+
distClosure: currentDistClosure,
|
|
2078
|
+
runtimeStatePath,
|
|
2079
|
+
observedDaemonDistFingerprint: state.distClosureFingerprint,
|
|
2080
|
+
runtimeBacked,
|
|
2081
|
+
});
|
|
2082
|
+
if (distRestartReason && (runtimeBacked === true || matches === true)) {
|
|
2083
|
+
await restartStaleRunningDaemon({ pid, distRestartReason });
|
|
2084
|
+
return;
|
|
2085
|
+
}
|
|
2086
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: pid });
|
|
2087
|
+
};
|
|
2088
|
+
|
|
2089
|
+
if (
|
|
2090
|
+
preserveExistingRunning &&
|
|
2091
|
+
!forceRestart &&
|
|
2092
|
+
runtimeBacked !== true &&
|
|
2093
|
+
(existing.status === 'running' || existing.status === 'starting')
|
|
2094
|
+
) {
|
|
2095
|
+
if (existing.status === 'running') {
|
|
2096
|
+
await reconcileRunningDaemonAfterStart(existing);
|
|
2097
|
+
return;
|
|
2098
|
+
}
|
|
2099
|
+
const pid = existing.pid;
|
|
2100
|
+
console.warn(
|
|
2101
|
+
`[local] daemon is ${existing.status} during dev reload fallback` +
|
|
2102
|
+
(pid ? ` (pid=${pid})` : '') +
|
|
2103
|
+
'; keeping existing daemon running to avoid downtime.'
|
|
2104
|
+
);
|
|
2105
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: pid });
|
|
2106
|
+
return;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
1326
2109
|
// If the daemon is already running and we're restarting it, refuse to stop it unless the
|
|
1327
2110
|
// happier-cli dist entrypoint exists. Otherwise a rebuild (rm -rf dist) can brick the stack.
|
|
1328
2111
|
if (
|
|
1329
|
-
|
|
1330
|
-
!existsSync(
|
|
2112
|
+
runnerDistEntrypoint &&
|
|
2113
|
+
!existsSync(runnerDistEntrypoint) &&
|
|
1331
2114
|
(existing.status === 'running' || existing.status === 'starting')
|
|
1332
2115
|
) {
|
|
1333
2116
|
console.warn(
|
|
1334
|
-
`[local] happier-cli dist entrypoint is missing (${
|
|
2117
|
+
`[local] happier-cli dist entrypoint is missing (${runnerDistEntrypoint}).\n` +
|
|
1335
2118
|
`[local] Refusing to restart daemon to avoid downtime. Rebuild happier-cli first.`
|
|
1336
2119
|
);
|
|
1337
2120
|
return;
|
|
@@ -1339,24 +2122,44 @@ export async function startLocalDaemonWithAuth({
|
|
|
1339
2122
|
|
|
1340
2123
|
if (!forceRestart && existing.status === 'running') {
|
|
1341
2124
|
const pid = existing.pid;
|
|
1342
|
-
const
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
2125
|
+
const envMatch = await readDaemonEnvMatch({ pid, cliHomeDir, internalServerUrl, publicServerUrl });
|
|
2126
|
+
const matches = envMatch ? envMatch.matches === true : null;
|
|
2127
|
+
const distRestartReason = resolveDaemonDistRestartReason({
|
|
2128
|
+
distEntrypoint: runnerDistEntrypoint,
|
|
2129
|
+
distClosure: currentDistClosure,
|
|
2130
|
+
runtimeStatePath,
|
|
2131
|
+
observedDaemonDistFingerprint: existing.distClosureFingerprint,
|
|
2132
|
+
runtimeBacked,
|
|
2133
|
+
});
|
|
2134
|
+
if (runtimeBacked === true && distRestartReason) {
|
|
2135
|
+
await restartStaleRunningDaemon({ pid, distRestartReason });
|
|
2136
|
+
return;
|
|
2137
|
+
}
|
|
2138
|
+
if (matches === true) {
|
|
2139
|
+
if (distRestartReason) {
|
|
2140
|
+
await restartStaleRunningDaemon({ pid, distRestartReason });
|
|
2141
|
+
return;
|
|
2142
|
+
} else {
|
|
1349
2143
|
// eslint-disable-next-line no-console
|
|
2144
|
+
console.log(`[local] daemon already running for stack home (pid=${pid})`);
|
|
2145
|
+
if (isTui) {
|
|
2146
|
+
// Emit a daemon-labeled line so `hstack tui` can route it to the daemon pane.
|
|
2147
|
+
// (The daemon itself logs to cliHomeDir/logs/*-daemon.log.)
|
|
2148
|
+
// eslint-disable-next-line no-console
|
|
1350
2149
|
console.log(`[daemon] already running (pid=${pid})`);
|
|
1351
2150
|
}
|
|
1352
2151
|
await syncRuntimeDaemonState({ runtimeDaemonPid: pid });
|
|
1353
2152
|
return;
|
|
1354
2153
|
}
|
|
1355
|
-
if (matches === false) {
|
|
2154
|
+
} else if (matches === false) {
|
|
2155
|
+
const mismatchLabel = envMatch?.key ? `${envMatch.key} mismatch` : 'environment mismatch';
|
|
2156
|
+
const expectedLine = envMatch?.expected
|
|
2157
|
+
? `[local] expected ${envMatch.key}: ${envMatch.expected}\n`
|
|
2158
|
+
: `[local] expected server URL: ${internalServerUrl}\n`;
|
|
1356
2159
|
// eslint-disable-next-line no-console
|
|
1357
2160
|
console.warn(
|
|
1358
|
-
`[local] daemon is running
|
|
1359
|
-
|
|
2161
|
+
`[local] daemon is running with a different stack ${mismatchLabel}; restarting (pid=${pid}).\n` +
|
|
2162
|
+
expectedLine
|
|
1360
2163
|
);
|
|
1361
2164
|
} else {
|
|
1362
2165
|
// unknown: best-effort keep running to avoid killing an unrelated process
|
|
@@ -1386,47 +2189,87 @@ export async function startLocalDaemonWithAuth({
|
|
|
1386
2189
|
}
|
|
1387
2190
|
|
|
1388
2191
|
// If state is missing and stop couldn't find it, force-stop the lock PID (otherwise repeated restarts accumulate daemons).
|
|
1389
|
-
await killDaemonFromStateFile({
|
|
1390
|
-
|
|
2192
|
+
await killDaemonFromStateFile({
|
|
2193
|
+
cliHomeDir,
|
|
2194
|
+
serverUrl: internalServerUrl,
|
|
2195
|
+
env: daemonEnv,
|
|
2196
|
+
stackName,
|
|
2197
|
+
runtimeStatePath,
|
|
2198
|
+
});
|
|
2199
|
+
await killDaemonFromLockFile({
|
|
2200
|
+
cliHomeDir,
|
|
2201
|
+
serverUrl: internalServerUrl,
|
|
2202
|
+
env: daemonEnv,
|
|
2203
|
+
stackName,
|
|
2204
|
+
runtimeStatePath,
|
|
2205
|
+
});
|
|
1391
2206
|
|
|
1392
|
-
//
|
|
1393
|
-
|
|
1394
|
-
await
|
|
2207
|
+
// The daemon lifecycle lock is the sole publication/removal authority. A fixed daemon start
|
|
2208
|
+
// exact-reclaims stale lock bytes and atomically replaces stale state after it acquires ownership.
|
|
2209
|
+
await syncStackRuntimeDaemonPidFromDaemonState({
|
|
2210
|
+
runtimeStatePath,
|
|
2211
|
+
cliHomeDir,
|
|
2212
|
+
internalServerUrl,
|
|
2213
|
+
daemonDistFingerprint: null,
|
|
2214
|
+
env: daemonEnv,
|
|
2215
|
+
}).catch(() => {});
|
|
1395
2216
|
|
|
1396
2217
|
const startOnce = async () => {
|
|
1397
2218
|
const waitForRunningStable = async () => {
|
|
1398
|
-
|
|
1399
|
-
while (
|
|
1400
|
-
const stateNow =
|
|
2219
|
+
let checkpointDeadline = Date.now() + startVerifyTimeoutMs;
|
|
2220
|
+
while (true) {
|
|
2221
|
+
const stateNow = await checkDaemonStatePingAware(cliHomeDir, { serverUrl: internalServerUrl, env: daemonEnv });
|
|
1401
2222
|
if (stateNow.status === 'running') {
|
|
1402
2223
|
if (startVerifyStableMs <= 0) return true;
|
|
1403
2224
|
await delay(startVerifyStableMs);
|
|
1404
|
-
const stableState =
|
|
2225
|
+
const stableState = await checkDaemonStatePingAware(cliHomeDir, { serverUrl: internalServerUrl, env: daemonEnv });
|
|
1405
2226
|
if (stableState.status === 'running') return true;
|
|
1406
2227
|
}
|
|
2228
|
+
if (Date.now() >= checkpointDeadline) {
|
|
2229
|
+
if (!shouldContinueAttendedDaemonStartVerification({ isTui, state: stateNow })) {
|
|
2230
|
+
return false;
|
|
2231
|
+
}
|
|
2232
|
+
console.warn(
|
|
2233
|
+
`[local] daemon is still starting (pid=${stateNow.pid ?? 'unknown'}); continuing to wait because the TUI is attended...`,
|
|
2234
|
+
);
|
|
2235
|
+
checkpointDeadline = Date.now() + startVerifyTimeoutMs;
|
|
2236
|
+
}
|
|
1407
2237
|
await delay(startVerifyPollMs);
|
|
1408
2238
|
}
|
|
1409
|
-
return false;
|
|
1410
2239
|
};
|
|
1411
2240
|
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
2241
|
+
let startOutput = '';
|
|
2242
|
+
const startOutputTeePath = await createDaemonStartAttemptLogPath({ cliHomeDir });
|
|
2243
|
+
const appendStartOutput = (chunk) => {
|
|
2244
|
+
if (!chunk) return;
|
|
2245
|
+
startOutput += chunk.toString();
|
|
2246
|
+
if (startOutput.length > 16_000) {
|
|
2247
|
+
startOutput = startOutput.slice(-16_000);
|
|
2248
|
+
}
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
const proc = spawnProc('daemon', daemonCommand.command, [...daemonCommand.argsPrefix, 'daemon', 'start'], daemonEnv, {
|
|
2252
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
2253
|
+
// In TUI mode, stream the daemon-start output so it routes to the daemon pane.
|
|
2254
|
+
// (The background daemon itself still logs to files.)
|
|
2255
|
+
silent: !isTui,
|
|
2256
|
+
teeFile: startOutputTeePath,
|
|
2257
|
+
teeLabel: 'daemon',
|
|
1420
2258
|
});
|
|
2259
|
+
proc.stdout?.on('data', appendStartOutput);
|
|
2260
|
+
proc.stderr?.on('data', appendStartOutput);
|
|
2261
|
+
const { code: completedCode, signal: completedSignal } = await proc.completion;
|
|
2262
|
+
const exitCode = completedCode ?? (completedSignal ? 1 : 0);
|
|
1421
2263
|
|
|
1422
2264
|
if (exitCode === 0) {
|
|
1423
2265
|
const runningStable = await waitForRunningStable();
|
|
1424
2266
|
if (runningStable) {
|
|
1425
|
-
return { ok: true, exitCode, excerpt: null, logPath: null };
|
|
2267
|
+
return { ok: true, exitCode, excerpt: null, logPath: null, startOutput: startOutput.trim() || null };
|
|
1426
2268
|
}
|
|
1427
2269
|
const logPath = getLatestDaemonLogPath(cliHomeDir);
|
|
1428
2270
|
const excerpt = logPath ? await readLastLines(logPath, 120) : null;
|
|
1429
|
-
|
|
2271
|
+
const teeExcerpt = existsSync(startOutputTeePath) ? await readLastLines(startOutputTeePath, 120).catch(() => null) : null;
|
|
2272
|
+
return { ok: false, exitCode, excerpt, logPath, startOutput: startOutput.trim() || teeExcerpt || null };
|
|
1430
2273
|
}
|
|
1431
2274
|
|
|
1432
2275
|
// Some daemon versions (or transient races) can return non-zero even if the daemon
|
|
@@ -1434,12 +2277,13 @@ export async function startLocalDaemonWithAuth({
|
|
|
1434
2277
|
// Wait for the same verification window before treating the start as failed.
|
|
1435
2278
|
const runningStable = await waitForRunningStable();
|
|
1436
2279
|
if (runningStable) {
|
|
1437
|
-
return { ok: true, exitCode, excerpt: null, logPath: null };
|
|
2280
|
+
return { ok: true, exitCode, excerpt: null, logPath: null, startOutput: startOutput.trim() || null };
|
|
1438
2281
|
}
|
|
1439
2282
|
|
|
1440
2283
|
const logPath = getLatestDaemonLogPath(cliHomeDir);
|
|
1441
2284
|
const excerpt = logPath ? await readLastLines(logPath, 120) : null;
|
|
1442
|
-
|
|
2285
|
+
const teeExcerpt = existsSync(startOutputTeePath) ? await readLastLines(startOutputTeePath, 120).catch(() => null) : null;
|
|
2286
|
+
return { ok: false, exitCode, excerpt, logPath, startOutput: startOutput.trim() || teeExcerpt || null };
|
|
1443
2287
|
};
|
|
1444
2288
|
|
|
1445
2289
|
const first = await startOnce();
|
|
@@ -1450,6 +2294,19 @@ export async function startLocalDaemonWithAuth({
|
|
|
1450
2294
|
console.error('[local] daemon failed to start; no daemon log found');
|
|
1451
2295
|
}
|
|
1452
2296
|
|
|
2297
|
+
if (isTui) {
|
|
2298
|
+
if (excerptIndicatesInstalledServiceConflict(first.startOutput) || excerptIndicatesInstalledServiceConflict(first.excerpt)) {
|
|
2299
|
+
console.log('[daemon] installed background service conflict detected; keeping TUI running.');
|
|
2300
|
+
} else {
|
|
2301
|
+
const noticeLine = extractFirstDaemonStartNoticeLine(first.startOutput);
|
|
2302
|
+
if (noticeLine) {
|
|
2303
|
+
console.log(`[daemon] ${noticeLine}`);
|
|
2304
|
+
}
|
|
2305
|
+
console.log('[daemon] daemon start failed before the relay came up; keeping TUI running.');
|
|
2306
|
+
}
|
|
2307
|
+
return;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
1453
2310
|
if (excerptIndicatesMissingAuth(first.excerpt)) {
|
|
1454
2311
|
const isInteractive = Boolean(process.stdin.isTTY && process.stdout.isTTY) || allowDaemonWaitForAuthWithoutTty();
|
|
1455
2312
|
const copyHint = authCopyFromSeedHint({ stackName: resolvedStackName, cliIdentity: resolvedCliIdentity, env: baseEnv });
|
|
@@ -1470,7 +2327,7 @@ export async function startLocalDaemonWithAuth({
|
|
|
1470
2327
|
|
|
1471
2328
|
const ok = await waitForCredentialsFiles({
|
|
1472
2329
|
paths: credentialPaths.paths,
|
|
1473
|
-
timeoutMs: 10 * 60_000,
|
|
2330
|
+
timeoutMs: resolveAttendedStartupTimeoutMs({ isTui, timeoutMs: 10 * 60_000 }),
|
|
1474
2331
|
isShuttingDown,
|
|
1475
2332
|
});
|
|
1476
2333
|
if (!ok) {
|
|
@@ -1481,9 +2338,13 @@ export async function startLocalDaemonWithAuth({
|
|
|
1481
2338
|
// If a daemon start attempt was already in-flight (or a previous daemon is already running),
|
|
1482
2339
|
// avoid a second concurrent start and treat it as success.
|
|
1483
2340
|
await delay(500);
|
|
1484
|
-
const stateAfterCreds =
|
|
2341
|
+
const stateAfterCreds = await checkDaemonStatePingAware(cliHomeDir, { serverUrl: internalServerUrl, env: daemonEnv });
|
|
1485
2342
|
if (stateAfterCreds.status === 'running' || stateAfterCreds.status === 'starting') {
|
|
1486
|
-
|
|
2343
|
+
if (stateAfterCreds.status === 'running') {
|
|
2344
|
+
await reconcileRunningDaemonAfterStart(stateAfterCreds);
|
|
2345
|
+
} else {
|
|
2346
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: stateAfterCreds.pid });
|
|
2347
|
+
}
|
|
1487
2348
|
return;
|
|
1488
2349
|
}
|
|
1489
2350
|
|
|
@@ -1542,6 +2403,8 @@ export async function startLocalDaemonWithAuth({
|
|
|
1542
2403
|
}
|
|
1543
2404
|
throw new Error('Failed to start daemon (after auth re-seed)');
|
|
1544
2405
|
}
|
|
2406
|
+
} else if (excerptIndicatesInstalledServiceConflict(first.startOutput) || excerptIndicatesInstalledServiceConflict(first.excerpt)) {
|
|
2407
|
+
throw new Error('Failed to start daemon');
|
|
1545
2408
|
} else {
|
|
1546
2409
|
const copyHint = authCopyFromSeedHint({ stackName: resolvedStackName, cliIdentity: resolvedCliIdentity, env: baseEnv });
|
|
1547
2410
|
console.error(
|
|
@@ -1555,13 +2418,32 @@ export async function startLocalDaemonWithAuth({
|
|
|
1555
2418
|
}
|
|
1556
2419
|
}
|
|
1557
2420
|
|
|
1558
|
-
|
|
2421
|
+
const stateAfterStart = await checkDaemonStatePingAware(cliHomeDir, {
|
|
2422
|
+
serverUrl: internalServerUrl,
|
|
2423
|
+
env: daemonEnv,
|
|
2424
|
+
});
|
|
2425
|
+
if (stateAfterStart.status === 'running') {
|
|
2426
|
+
await reconcileRunningDaemonAfterStart(stateAfterStart);
|
|
2427
|
+
} else {
|
|
2428
|
+
await syncRuntimeDaemonState({ runtimeDaemonPid: stateAfterStart.pid });
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
// Confirm the command surface separately; this status display is best-effort.
|
|
1559
2432
|
try {
|
|
1560
|
-
await syncRuntimeDaemonState();
|
|
1561
2433
|
await run(daemonCommand.command, [...daemonCommand.argsPrefix, 'daemon', 'status'], { env: daemonEnv, stdio: 'ignore' });
|
|
1562
2434
|
} catch {
|
|
1563
2435
|
// ignore
|
|
1564
2436
|
}
|
|
2437
|
+
|
|
2438
|
+
};
|
|
2439
|
+
|
|
2440
|
+
return await runDaemonLifecycleWithStableCommand();
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
timeoutMs: daemonLifecycleLockTimeoutMs,
|
|
2444
|
+
pollIntervalMs: daemonLifecycleLockPollMs,
|
|
2445
|
+
},
|
|
2446
|
+
);
|
|
1565
2447
|
}
|
|
1566
2448
|
|
|
1567
2449
|
export async function daemonStatusSummary({
|
|
@@ -1585,7 +2467,7 @@ export async function daemonStatusSummary({
|
|
|
1585
2467
|
stackName,
|
|
1586
2468
|
cliIdentity,
|
|
1587
2469
|
});
|
|
1588
|
-
const distEntrypoint =
|
|
2470
|
+
const distEntrypoint = resolveDaemonStatusLoadTarget({ cliBin, cliEntrypoint, cliNodeEntrypoint, cliCommand });
|
|
1589
2471
|
const explicitRuntimeLaunch = resolveExplicitRuntimeLaunchValidation({ cliEntrypoint, cliNodeEntrypoint, cliCommand });
|
|
1590
2472
|
if (!explicitRuntimeLaunch.ok) {
|
|
1591
2473
|
return buildRuntimeMissingStatusFallback({
|
|
@@ -1595,11 +2477,11 @@ export async function daemonStatusSummary({
|
|
|
1595
2477
|
missingPath: explicitRuntimeLaunch.path,
|
|
1596
2478
|
});
|
|
1597
2479
|
}
|
|
1598
|
-
const daemonCommand = resolveDaemonCommandSpec({ cliBin, cliEntrypoint, cliNodeEntrypoint, cliCommand, cliCommandArgs, env: daemonEnv });
|
|
1599
2480
|
try {
|
|
2481
|
+
const daemonCommand = resolveDaemonCommandSpec({ cliBin, cliEntrypoint, cliNodeEntrypoint, cliCommand, cliCommandArgs, env: daemonEnv });
|
|
1600
2482
|
return await runCapture(daemonCommand.command, [...daemonCommand.argsPrefix, 'daemon', 'status'], { env: daemonEnv });
|
|
1601
2483
|
} catch (error) {
|
|
1602
|
-
if (isMissingDistStatusError({ error, distEntrypoint })) {
|
|
2484
|
+
if ((distEntrypoint && !existsSync(distEntrypoint)) || isMissingDistStatusError({ error, distEntrypoint })) {
|
|
1603
2485
|
return buildDistMissingStatusFallback({
|
|
1604
2486
|
cliHomeDir,
|
|
1605
2487
|
internalServerUrl,
|
|
@@ -1611,11 +2493,32 @@ export async function daemonStatusSummary({
|
|
|
1611
2493
|
}
|
|
1612
2494
|
}
|
|
1613
2495
|
|
|
2496
|
+
function resolveDaemonStatusLoadTarget({ cliBin, cliEntrypoint = '', cliNodeEntrypoint = '', cliCommand = '' }) {
|
|
2497
|
+
const explicitNodeEntrypoint = String(cliNodeEntrypoint ?? '').trim();
|
|
2498
|
+
if (explicitNodeEntrypoint) return explicitNodeEntrypoint;
|
|
2499
|
+
|
|
2500
|
+
const explicitEntrypoint = String(cliEntrypoint ?? '').trim();
|
|
2501
|
+
if (explicitEntrypoint) return explicitEntrypoint;
|
|
2502
|
+
|
|
2503
|
+
const distEntrypoint = resolveCliDistEntrypointFromBin(cliBin);
|
|
2504
|
+
if (distEntrypoint) return distEntrypoint;
|
|
2505
|
+
|
|
2506
|
+
return String(cliCommand ?? '').trim();
|
|
2507
|
+
}
|
|
2508
|
+
|
|
1614
2509
|
function isMissingDistStatusError({ error, distEntrypoint }) {
|
|
1615
|
-
const text = String(error?.message ?? error ?? '')
|
|
1616
|
-
|
|
2510
|
+
const text = [String(error?.message ?? error ?? ''), String(error?.err ?? ''), String(error?.out ?? '')]
|
|
2511
|
+
.filter(Boolean)
|
|
2512
|
+
.join('\n');
|
|
2513
|
+
const loadFailureMarkers = [
|
|
2514
|
+
'MODULE_NOT_FOUND',
|
|
2515
|
+
'ERR_MODULE_NOT_FOUND',
|
|
2516
|
+
'does not provide an export named',
|
|
2517
|
+
'Cannot find module',
|
|
2518
|
+
];
|
|
2519
|
+
if (!loadFailureMarkers.some((marker) => text.includes(marker))) return false;
|
|
1617
2520
|
if (distEntrypoint && text.includes(distEntrypoint)) return true;
|
|
1618
|
-
return text.includes('/dist/index.mjs');
|
|
2521
|
+
return text.includes('/dist/index.mjs') || text.includes('/package-dist/index.mjs');
|
|
1619
2522
|
}
|
|
1620
2523
|
|
|
1621
2524
|
function buildDistMissingStatusFallback({ cliHomeDir, internalServerUrl, env, distEntrypoint }) {
|