openmeld 0.3.262 → 0.3.263
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 +7 -0
- package/dist/{add-me-membership-wBqBUZN7.js → add-me-membership-C_t_Mg-Z.js} +2 -2
- package/dist/{add-me-membership-wBqBUZN7.js.map → add-me-membership-C_t_Mg-Z.js.map} +1 -1
- package/dist/{agents-DzQ6NTFH.js → agents-DFHWtOt8.js} +13 -13
- package/dist/{agents-DzQ6NTFH.js.map → agents-DFHWtOt8.js.map} +1 -1
- package/dist/{api-client-foundation-Dqxsa_3V.js → api-client-foundation-6MeNwklv.js} +4 -4
- package/dist/{api-client-foundation-Dqxsa_3V.js.map → api-client-foundation-6MeNwklv.js.map} +1 -1
- package/dist/{api-client-foundation-C3A2-JkQ.js → api-client-foundation-BPJBWsRD.js} +1 -1
- package/dist/{auth-session-VWQoz03f.js → auth-session-B0J2UwSR.js} +5 -5
- package/dist/{auth-session-VWQoz03f.js.map → auth-session-B0J2UwSR.js.map} +1 -1
- package/dist/auth-session-DkDdLUPZ.js +4 -0
- package/dist/{auth-url-BVvdeI3F.js → auth-url-BheLcWg9.js} +2 -2
- package/dist/{auth-url-BVvdeI3F.js.map → auth-url-BheLcWg9.js.map} +1 -1
- package/dist/{base-url-C0AOV6je.js → base-url-CLMqlF1w.js} +3 -3
- package/dist/{base-url-C0AOV6je.js.map → base-url-CLMqlF1w.js.map} +1 -1
- package/dist/{base-url-uaTFrave.js → base-url-D84aBKXK.js} +1 -1
- package/dist/{channel-5TzyWtoj.js → channel-7iF6DSp4.js} +2 -2
- package/dist/{channel-5TzyWtoj.js.map → channel-7iF6DSp4.js.map} +1 -1
- package/dist/{cloud-computer-DujgiSkS.js → cloud-computer-BddlwRAk.js} +6 -6
- package/dist/{cloud-computer-DujgiSkS.js.map → cloud-computer-BddlwRAk.js.map} +1 -1
- package/dist/{command-ZxD_qNik.js → command-7ZoDO_Hy.js} +71 -19
- package/dist/command-7ZoDO_Hy.js.map +1 -0
- package/dist/{computer-connection-review-BoQqWowI.js → computer-connection-review-vYYCtG_l.js} +6 -6
- package/dist/{computer-connection-review-BoQqWowI.js.map → computer-connection-review-vYYCtG_l.js.map} +1 -1
- package/dist/{computer-disconnect-DSDiFVq_.js → computer-disconnect-C0n2IGfR.js} +9 -9
- package/dist/{computer-disconnect-DSDiFVq_.js.map → computer-disconnect-C0n2IGfR.js.map} +1 -1
- package/dist/{computer-setup-continuation-D1rKfaKP.js → computer-setup-continuation-DiT88kEQ.js} +3 -3
- package/dist/{computer-setup-continuation-D1rKfaKP.js.map → computer-setup-continuation-DiT88kEQ.js.map} +1 -1
- package/dist/{context-nHpubzcZ.js → context-DFf16i-C.js} +7 -7
- package/dist/{context-nHpubzcZ.js.map → context-DFf16i-C.js.map} +1 -1
- package/dist/{daemon-device-id-CefXWPiF.js → daemon-device-id-C3UTBv9T.js} +4 -4
- package/dist/{daemon-device-id-CefXWPiF.js.map → daemon-device-id-C3UTBv9T.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-DbRJ216n.js → daemon-lifecycle-journal-DoAQ-E6K.js} +7 -7
- package/dist/{daemon-lifecycle-journal-DbRJ216n.js.map → daemon-lifecycle-journal-DoAQ-E6K.js.map} +1 -1
- package/dist/{daemon-runtime-lease-7sd11Cv3.js → daemon-runtime-lease-CACGRuZ3.js} +1 -1
- package/dist/{daemon-runtime-lease-y8RoGvTS.js → daemon-runtime-lease-D5f4zLXB.js} +3 -3
- package/dist/{daemon-runtime-lease-y8RoGvTS.js.map → daemon-runtime-lease-D5f4zLXB.js.map} +1 -1
- package/dist/{daemon-service-contract-Cik2oi9W.js → daemon-service-contract-D9gUVdhc.js} +3 -3
- package/dist/{daemon-service-contract-Cik2oi9W.js.map → daemon-service-contract-D9gUVdhc.js.map} +1 -1
- package/dist/{daemon-service-manager-BnMEtAYp.js → daemon-service-manager-BDIsfrfx.js} +5 -5
- package/dist/{daemon-service-manager-BnMEtAYp.js.map → daemon-service-manager-BDIsfrfx.js.map} +1 -1
- package/dist/{daemon-service-manager-DWM3I_pP.js → daemon-service-manager-k9IJJuqv.js} +1 -1
- package/dist/{daemon-service-runtime-BhIfwyN9.js → daemon-service-runtime-LFoUNQQu.js} +14 -14
- package/dist/{daemon-service-runtime-BhIfwyN9.js.map → daemon-service-runtime-LFoUNQQu.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-DUsnRsrg.js → daemon-service-update-coordinator-4WJr8-5_.js} +21 -23
- package/dist/daemon-service-update-coordinator-4WJr8-5_.js.map +1 -0
- package/dist/{daemon-state-DjfcQFlF.js → daemon-state-C09DaALw.js} +3 -3
- package/dist/{daemon-state-DjfcQFlF.js.map → daemon-state-C09DaALw.js.map} +1 -1
- package/dist/{dispatch-owned-runtime-Bcz_DYAR.js → dispatch-owned-runtime-BTK0uuOV.js} +10 -10
- package/dist/{dispatch-owned-runtime-Bcz_DYAR.js.map → dispatch-owned-runtime-BTK0uuOV.js.map} +1 -1
- package/dist/{dist-DaKpDnJa.js → dist-DRfPWuFM.js} +1 -1
- package/dist/{dist-BnSaxfXN.js → dist-DY8oLAop.js} +2 -2
- package/dist/{dist-BnSaxfXN.js.map → dist-DY8oLAop.js.map} +1 -1
- package/dist/{dist-CGGiwcMv.js → dist-Df2Qywqr.js} +1 -1
- package/dist/{dist-DRUbg0Z2.js → dist-YSbIHBnl.js} +11 -2
- package/dist/dist-YSbIHBnl.js.map +1 -0
- package/dist/{dual-view-guide-catalog-BOopzFeg.js → dual-view-guide-catalog-3LaB18SR.js} +3 -3
- package/dist/{dual-view-guide-catalog-BOopzFeg.js.map → dual-view-guide-catalog-3LaB18SR.js.map} +1 -1
- package/dist/{elapsed-time-Dx4ZdxI7.js → elapsed-time-CGeKqTzX.js} +4 -4
- package/dist/{elapsed-time-Dx4ZdxI7.js.map → elapsed-time-CGeKqTzX.js.map} +1 -1
- package/dist/{entry-B8GRBYAI.js → entry-CMDScEVO.js} +12 -12
- package/dist/{entry-B8GRBYAI.js.map → entry-CMDScEVO.js.map} +1 -1
- package/dist/{installation-inventory-Ds2Q1XoG.js → installation-inventory-CvtmIZj8.js} +4 -4
- package/dist/{installation-inventory-Ds2Q1XoG.js.map → installation-inventory-CvtmIZj8.js.map} +1 -1
- package/dist/{installer-CFubHwmq.js → installer-CwK5uV4Q.js} +2 -2
- package/dist/{installer-CFubHwmq.js.map → installer-CwK5uV4Q.js.map} +1 -1
- package/dist/{lock-tTXKrDmv.js → lock-Cz8h_yJh.js} +3 -3
- package/dist/{lock-tTXKrDmv.js.map → lock-Cz8h_yJh.js.map} +1 -1
- package/dist/{meta-api-uKt0ERL5.js → meta-api-B01L3fo4.js} +7 -7
- package/dist/{meta-api-uKt0ERL5.js.map → meta-api-B01L3fo4.js.map} +1 -1
- package/dist/{openmeld-BORFxyod.js → openmeld-RoIfH4iG.js} +43 -41
- package/dist/{openmeld-BORFxyod.js.map → openmeld-RoIfH4iG.js.map} +1 -1
- package/dist/{openmeld-dev-environment-IxwblJHw.js → openmeld-dev-environment-POXQHtTN.js} +3 -3
- package/dist/{openmeld-dev-environment-IxwblJHw.js.map → openmeld-dev-environment-POXQHtTN.js.map} +1 -1
- package/dist/openmeld-dev.js +1 -1
- package/dist/{openmeld-environment-target-BnzzM5fh.js → openmeld-environment-target-B0Z7eI6O.js} +3 -3
- package/dist/{openmeld-environment-target-BnzzM5fh.js.map → openmeld-environment-target-B0Z7eI6O.js.map} +1 -1
- package/dist/{openmeld-maintenance-worker-CCvqxpZv.js → openmeld-maintenance-worker--ucPEftH.js} +14 -14
- package/dist/{openmeld-maintenance-worker-CCvqxpZv.js.map → openmeld-maintenance-worker--ucPEftH.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-CCogwfR2.js → openmeld-tools-update-join-gps19byt.js} +4 -4
- package/dist/{openmeld-tools-update-join-CCogwfR2.js.map → openmeld-tools-update-join-gps19byt.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-C5p9EEV0.js → openmeld-tools-update-process-frame-C9hDfFXg.js} +1 -1
- package/dist/{openmeld-tools-update-process-frame-BARWpgIm.js → openmeld-tools-update-process-frame-Ctim4GrA.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-BARWpgIm.js.map → openmeld-tools-update-process-frame-Ctim4GrA.js.map} +1 -1
- package/dist/openmeld.js +23 -7
- package/dist/openmeld.js.map +1 -1
- package/dist/{prepare-provider-runtime-B0gBhnir.js → prepare-provider-runtime-CyIGaDTC.js} +571 -482
- package/dist/prepare-provider-runtime-CyIGaDTC.js.map +1 -0
- package/dist/{prepare-session-executor-CgZTF3OV.js → prepare-session-executor-BesIXfWv.js} +25 -25
- package/dist/{prepare-session-executor-CgZTF3OV.js.map → prepare-session-executor-BesIXfWv.js.map} +1 -1
- package/dist/{process-channel-ehx69w9I.js → process-channel-DILzf1ek.js} +2 -2
- package/dist/{process-channel-ehx69w9I.js.map → process-channel-DILzf1ek.js.map} +1 -1
- package/dist/{process-identity-BAAdyYwE.js → process-identity-D_VPVruT.js} +2 -2
- package/dist/{process-identity-BAAdyYwE.js.map → process-identity-D_VPVruT.js.map} +1 -1
- package/dist/{runtime-CJOlAkvc.js → runtime-BsLzW985.js} +22 -19
- package/dist/{runtime-CJOlAkvc.js.map → runtime-BsLzW985.js.map} +1 -1
- package/dist/{runtime-agent-controller-reporting-submission-Gf49imkB.js → runtime-agent-controller-reporting-submission-Dtvml_vt.js} +9 -9
- package/dist/{runtime-agent-controller-reporting-submission-Gf49imkB.js.map → runtime-agent-controller-reporting-submission-Dtvml_vt.js.map} +1 -1
- package/dist/{service-Dm_v88Dc.js → service-BNpxWxYQ.js} +30 -30
- package/dist/{service-Dm_v88Dc.js.map → service-BNpxWxYQ.js.map} +1 -1
- package/dist/{service-account-authorization-CrbUG0-l.js → service-account-authorization-CJv1vZzm.js} +5 -5
- package/dist/{service-account-authorization-CrbUG0-l.js.map → service-account-authorization-CJv1vZzm.js.map} +1 -1
- package/dist/{service-account-control-BbcqY1fg.js → service-account-control-f9-hQZzW.js} +15 -15
- package/dist/{service-account-control-BbcqY1fg.js.map → service-account-control-f9-hQZzW.js.map} +1 -1
- package/dist/{service-control-capabilities-B5p5Ut1j.js → service-control-capabilities-D2-b-23n.js} +1 -1
- package/dist/{service-control-capabilities-B5x3VYZQ.js → service-control-capabilities-DyX9foHw.js} +6 -6
- package/dist/{service-control-capabilities-B5x3VYZQ.js.map → service-control-capabilities-DyX9foHw.js.map} +1 -1
- package/dist/{service-control-carrier-capability-QQBqqI65.js → service-control-carrier-capability-B8-5s0Z4.js} +3 -3
- package/dist/{service-control-carrier-capability-QQBqqI65.js.map → service-control-carrier-capability-B8-5s0Z4.js.map} +1 -1
- package/dist/setup-node-runtime-n0iHzmDA.js +19 -0
- package/dist/setup-node-runtime-n0iHzmDA.js.map +1 -0
- package/dist/{state-CIM8ibMZ.js → state-BlZXA4Rd.js} +3 -3
- package/dist/{state-CIM8ibMZ.js.map → state-BlZXA4Rd.js.map} +1 -1
- package/dist/{updates-api-Dol3lksp.js → updates-api-BpuVusi5.js} +14 -14
- package/dist/{updates-api-Dol3lksp.js.map → updates-api-BpuVusi5.js.map} +1 -1
- package/dist/{upgrade-BVBR7r1Z.js → upgrade-CII-Xiab.js} +9 -9
- package/dist/{upgrade-BVBR7r1Z.js.map → upgrade-CII-Xiab.js.map} +1 -1
- package/dist/upgrade-D3f82xoM.js +4 -0
- package/dist/{windows-managed-install-BDPy9F0T.js → windows-managed-install-Db8X1tQ4.js} +2 -2
- package/dist/{windows-managed-install-BDPy9F0T.js.map → windows-managed-install-Db8X1tQ4.js.map} +1 -1
- package/dist/{windows-preview-channel-Drg1mvkM.js → windows-preview-channel-BJfMRixx.js} +3 -3
- package/dist/{windows-preview-channel-Drg1mvkM.js.map → windows-preview-channel-BJfMRixx.js.map} +1 -1
- package/dist/{windows-task-command-2-jau1ni.js → windows-task-command-BGrlQDFJ.js} +2 -2
- package/dist/{windows-task-command-2-jau1ni.js.map → windows-task-command-BGrlQDFJ.js.map} +1 -1
- package/dist/{windows-task-entry-C4eBoHXQ.js → windows-task-entry-bzn-6mTB.js} +3 -3
- package/dist/{windows-task-entry-C4eBoHXQ.js.map → windows-task-entry-bzn-6mTB.js.map} +1 -1
- package/dist/{windows-user-task-BYF03jMQ.js → windows-user-task-GqNzbzc9.js} +1 -1
- package/dist/{windows-user-task-DzDWScE1.js → windows-user-task-bkBjpShZ.js} +6 -6
- package/dist/{windows-user-task-DzDWScE1.js.map → windows-user-task-bkBjpShZ.js.map} +1 -1
- package/package.json +4 -4
- package/skills/openmeld-cli/SKILL.md +6 -0
- package/skills/openmeld-cli/playbooks/agent-onboarding.md +8 -0
- package/skills/openmeld-cli/playbooks/computer.md +6 -0
- package/skills/openmeld-cli/playbooks/plugins.md +6 -0
- package/skills/openmeld-cli/playbooks/space-ops.md +20 -0
- package/skills/openmeld-cli/playbooks/space-reads.md +6 -0
- package/skills/openmeld-cli/references/commands.md +6 -0
- package/skills/openmeld-cli/references/runtime-resolution.md +6 -0
- package/dist/auth-session-BbeGpa9b.js +0 -4
- package/dist/command-ZxD_qNik.js.map +0 -1
- package/dist/daemon-service-update-coordinator-DUsnRsrg.js.map +0 -1
- package/dist/dist-DRUbg0Z2.js.map +0 -1
- package/dist/prepare-provider-runtime-B0gBhnir.js.map +0 -1
- package/dist/upgrade-ChqQ_KDy.js +0 -4
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { C as updateConfiguredDeviceRuntimeState, T as updateConfiguredSkillsConfig, a as resolveBaseUrl, d as createDefaultRuntimeAgentControllerSettings, g as getConfiguredSkillsConfig, p as getConfiguredDeviceRuntimeState, v as getRuntimeConfigReadHealth, y as resolveRuntimeSkillsCustomTargetId } from "./base-url-
|
|
3
|
+
import { C as updateConfiguredDeviceRuntimeState, T as updateConfiguredSkillsConfig, a as resolveBaseUrl, d as createDefaultRuntimeAgentControllerSettings, g as getConfiguredSkillsConfig, p as getConfiguredDeviceRuntimeState, v as getRuntimeConfigReadHealth, y as resolveRuntimeSkillsCustomTargetId } from "./base-url-CLMqlF1w.js";
|
|
4
4
|
import { F as resolveOpenMeldRootDir, P as resolveOpenMeldEnvPreset, a as accountProfileWorkspacePath, b as normalizeOpenMeldProfileId, c as deviceOpenClawProfileBootstrapPath, h as isPublishedOpenMeldHome, l as deviceOpenClawProfileDir, n as accountProfileLocalMetaPath, u as deviceOpenClawProfileWorkspaceDir } from "./paths-De9xdA2h.js";
|
|
5
|
-
import { $P as agentControllerCollaborationModeSchema, $a as daemonRouteCatalogCacheSchema, AI as buildAgentControllerRoutingKey, CM as daemonServiceLaneSchema, DE as resolveBuiltinAgentControllerConversationKind, DI as HOSTED_CENTER_AGENT_CONTROLLER_REF, DS as aiUsageObservationSchema, Dv as grokBotMessageReceiptSchema, Ev as grokBotEntriesSchema, FI as parseAgentControllerRef$1, JR as profileWorkspaceModeSchema, MI as canonicalizeBuiltinAgentControllerRef, Nb as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, OI as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, Ov as grokBotStoredCredentialSchema, Pa as windowsNativeProcessRequestSchema, QP as agentControllerPermissionModeSchema, Sv as agentExecutionSteerRequestSchema, TE as buildAgentControllerConversationRef, TO as agentInteractionResolutionSchema, Tv as grokBotConversationIdSchema, VR as normalizeOptionalWorkingDirectory, YR as profileWorkspaceOriginSchema, YT as providerDispatchRuntimeContextSchema, Za as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, aT as openMeldDaemonControlPlaneResponseSchema, dI as resolveCommandAgentWorkActivity, fS as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, gD as normalizeMessageEnvelope, iT as openMeldDaemonControlPlaneRequestSchema, jI as canonicalizeAgentControllerRef, jg as modelCatalogSchema, kI as HOSTED_REMOTE_AGENT_CONTROLLER_REF, nS as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, rE as conversationExecutionStateSchema, rS as isOriginalErrorSafeForMessageDetails, sS as openMeldDaemonProviderAccessEvidenceSchema, uD as formatCanonicalMentionLiteral, uS as openMeldDaemonTaskResultEnvelopeWriteSchema, wI as compareAgentControllerRefsForDisplay, wv as grokBotAccountSchema, xE as runtimeTransportModeSchema, zR as MAX_PROFILE_WORKING_DIRECTORY_LENGTH } from "./dist-
|
|
6
|
-
import { a as isOpenMeldOrphanedLockError, d as runWithHeldLock, i as isOpenMeldLockError, t as acquireLock } from "./lock-
|
|
5
|
+
import { $P as agentControllerCollaborationModeSchema, $a as daemonRouteCatalogCacheSchema, AI as buildAgentControllerRoutingKey, CM as daemonServiceLaneSchema, DE as resolveBuiltinAgentControllerConversationKind, DI as HOSTED_CENTER_AGENT_CONTROLLER_REF, DS as aiUsageObservationSchema, Dv as grokBotMessageReceiptSchema, Ev as grokBotEntriesSchema, FI as parseAgentControllerRef$1, JR as profileWorkspaceModeSchema, MI as canonicalizeBuiltinAgentControllerRef, Nb as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, OI as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, Ov as grokBotStoredCredentialSchema, Pa as windowsNativeProcessRequestSchema, QP as agentControllerPermissionModeSchema, Sv as agentExecutionSteerRequestSchema, TE as buildAgentControllerConversationRef, TO as agentInteractionResolutionSchema, Tv as grokBotConversationIdSchema, VR as normalizeOptionalWorkingDirectory, YR as profileWorkspaceOriginSchema, YT as providerDispatchRuntimeContextSchema, Za as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, aT as openMeldDaemonControlPlaneResponseSchema, dI as resolveCommandAgentWorkActivity, fS as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, gD as normalizeMessageEnvelope, iT as openMeldDaemonControlPlaneRequestSchema, jI as canonicalizeAgentControllerRef, jg as modelCatalogSchema, kI as HOSTED_REMOTE_AGENT_CONTROLLER_REF, nS as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, rE as conversationExecutionStateSchema, rS as isOriginalErrorSafeForMessageDetails, sS as openMeldDaemonProviderAccessEvidenceSchema, uD as formatCanonicalMentionLiteral, uS as openMeldDaemonTaskResultEnvelopeWriteSchema, wI as compareAgentControllerRefsForDisplay, wv as grokBotAccountSchema, xE as runtimeTransportModeSchema, zR as MAX_PROFILE_WORKING_DIRECTORY_LENGTH } from "./dist-YSbIHBnl.js";
|
|
6
|
+
import { a as isOpenMeldOrphanedLockError, d as runWithHeldLock, i as isOpenMeldLockError, t as acquireLock } from "./lock-Cz8h_yJh.js";
|
|
7
7
|
import { n as normalizeCommandEnvironment } from "./process-environment-BWSFeUu6.js";
|
|
8
|
-
import { c as readWindowsProcessStartFileTime, d as WINDOWS_NATIVE_PROCESS_REQUEST_ENV, f as resolveWindowsNativeProcessHelper, l as resolveWindowsPowerShellPath, o as powerShellEncodedArguments, r as isProcessIdentityAlive, t as CURRENT_PROCESS_START_IDENTITY } from "./process-identity-
|
|
9
|
-
import { Vt as createAgentProfileBindingApi, an as createLocalRuntimeExpectedRoutesApi, t as OpenMeldApiClientHttpError } from "./dist-
|
|
10
|
-
import { F as resolveCurrentOpenMeldAccountContext, _ as touchDaemonCatalogSyncSignal, d as listOpenMeldProfiles } from "./context-
|
|
11
|
-
import { Y as OPENCLAW_CLI_TIMEOUT_MS$1, d as getAuthSessionState } from "./auth-session-
|
|
8
|
+
import { c as readWindowsProcessStartFileTime, d as WINDOWS_NATIVE_PROCESS_REQUEST_ENV, f as resolveWindowsNativeProcessHelper, l as resolveWindowsPowerShellPath, o as powerShellEncodedArguments, r as isProcessIdentityAlive, t as CURRENT_PROCESS_START_IDENTITY } from "./process-identity-D_VPVruT.js";
|
|
9
|
+
import { Vt as createAgentProfileBindingApi, an as createLocalRuntimeExpectedRoutesApi, t as OpenMeldApiClientHttpError } from "./dist-DY8oLAop.js";
|
|
10
|
+
import { F as resolveCurrentOpenMeldAccountContext, _ as touchDaemonCatalogSyncSignal, d as listOpenMeldProfiles } from "./context-DFf16i-C.js";
|
|
11
|
+
import { Y as OPENCLAW_CLI_TIMEOUT_MS$1, d as getAuthSessionState } from "./auth-session-B0J2UwSR.js";
|
|
12
12
|
import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
|
|
13
|
-
import { m as daemonRuntimeDataPath } from "./daemon-state-
|
|
14
|
-
import { d as buildOpenMeldRequestContextFromProfile, t as createCliApiClientFoundation } from "./api-client-foundation-
|
|
15
|
-
import { i as readDaemonServiceContract } from "./daemon-service-contract-
|
|
16
|
-
import { C as requestLocalSyncRouteCatalog } from "./daemon-lifecycle-journal-
|
|
13
|
+
import { m as daemonRuntimeDataPath } from "./daemon-state-C09DaALw.js";
|
|
14
|
+
import { d as buildOpenMeldRequestContextFromProfile, t as createCliApiClientFoundation } from "./api-client-foundation-6MeNwklv.js";
|
|
15
|
+
import { i as readDaemonServiceContract } from "./daemon-service-contract-D9gUVdhc.js";
|
|
16
|
+
import { C as requestLocalSyncRouteCatalog } from "./daemon-lifecycle-journal-DoAQ-E6K.js";
|
|
17
17
|
import { i as resolveWindowsCommandPath, n as quoteWindowsProcessArgument, r as resolvePlatformCommand, t as execPlatformFile } from "./process-launch-B0pHlkV_.js";
|
|
18
|
-
import { _ as toErrorMessage$20, d as normalizeText$11, g as parseTransportMode$1, h as parseStreamingMode$1, m as parseRuntimeTransportMode, p as parseContextIdMappingSpec, s as emitRunLine, u as normalizeOptionalText$49 } from "./daemon-device-id-
|
|
18
|
+
import { _ as toErrorMessage$20, d as normalizeText$11, g as parseTransportMode$1, h as parseStreamingMode$1, m as parseRuntimeTransportMode, p as parseContextIdMappingSpec, s as emitRunLine, u as normalizeOptionalText$49 } from "./daemon-device-id-C3UTBv9T.js";
|
|
19
19
|
import { createRequire } from "node:module";
|
|
20
20
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
21
21
|
import { homedir, loadavg, tmpdir } from "node:os";
|
|
@@ -20606,117 +20606,7 @@ function toRecord$3(value) {
|
|
|
20606
20606
|
return value && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
20607
20607
|
}
|
|
20608
20608
|
//#endregion
|
|
20609
|
-
//#region ../../node_modules/.pnpm/smol-toml@1.
|
|
20610
|
-
/*!
|
|
20611
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
20612
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
20613
|
-
*
|
|
20614
|
-
* Redistribution and use in source and binary forms, with or without
|
|
20615
|
-
* modification, are permitted provided that the following conditions are met:
|
|
20616
|
-
*
|
|
20617
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
20618
|
-
* list of conditions and the following disclaimer.
|
|
20619
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
20620
|
-
* this list of conditions and the following disclaimer in the
|
|
20621
|
-
* documentation and/or other materials provided with the distribution.
|
|
20622
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
20623
|
-
* may be used to endorse or promote products derived from this software without
|
|
20624
|
-
* specific prior written permission.
|
|
20625
|
-
*
|
|
20626
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
20627
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20628
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20629
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
20630
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
20631
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
20632
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
20633
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
20634
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
20635
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
20636
|
-
*/
|
|
20637
|
-
let DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
|
|
20638
|
-
var TomlDate = class TomlDate extends Date {
|
|
20639
|
-
#hasDate = false;
|
|
20640
|
-
#hasTime = false;
|
|
20641
|
-
#offset = null;
|
|
20642
|
-
constructor(date) {
|
|
20643
|
-
let hasDate = true;
|
|
20644
|
-
let hasTime = true;
|
|
20645
|
-
let offset = "Z";
|
|
20646
|
-
if (typeof date === "string") {
|
|
20647
|
-
let match = date.match(DATE_TIME_RE);
|
|
20648
|
-
if (match) {
|
|
20649
|
-
if (!match[1]) {
|
|
20650
|
-
hasDate = false;
|
|
20651
|
-
date = `0000-01-01T${date}`;
|
|
20652
|
-
}
|
|
20653
|
-
hasTime = !!match[2];
|
|
20654
|
-
hasTime && date[10] === " " && (date = date.replace(" ", "T"));
|
|
20655
|
-
if (match[2] && +match[2] > 23) date = "";
|
|
20656
|
-
else {
|
|
20657
|
-
offset = match[3] || null;
|
|
20658
|
-
date = date.toUpperCase();
|
|
20659
|
-
if (!offset && hasTime) date += "Z";
|
|
20660
|
-
}
|
|
20661
|
-
} else date = "";
|
|
20662
|
-
}
|
|
20663
|
-
super(date);
|
|
20664
|
-
if (!isNaN(this.getTime())) {
|
|
20665
|
-
this.#hasDate = hasDate;
|
|
20666
|
-
this.#hasTime = hasTime;
|
|
20667
|
-
this.#offset = offset;
|
|
20668
|
-
}
|
|
20669
|
-
}
|
|
20670
|
-
isDateTime() {
|
|
20671
|
-
return this.#hasDate && this.#hasTime;
|
|
20672
|
-
}
|
|
20673
|
-
isLocal() {
|
|
20674
|
-
return !this.#hasDate || !this.#hasTime || !this.#offset;
|
|
20675
|
-
}
|
|
20676
|
-
isDate() {
|
|
20677
|
-
return this.#hasDate && !this.#hasTime;
|
|
20678
|
-
}
|
|
20679
|
-
isTime() {
|
|
20680
|
-
return this.#hasTime && !this.#hasDate;
|
|
20681
|
-
}
|
|
20682
|
-
isValid() {
|
|
20683
|
-
return this.#hasDate || this.#hasTime;
|
|
20684
|
-
}
|
|
20685
|
-
toISOString() {
|
|
20686
|
-
let iso = super.toISOString();
|
|
20687
|
-
if (this.isDate()) return iso.slice(0, 10);
|
|
20688
|
-
if (this.isTime()) return iso.slice(11, 23);
|
|
20689
|
-
if (this.#offset === null) return iso.slice(0, -1);
|
|
20690
|
-
if (this.#offset === "Z") return iso;
|
|
20691
|
-
let offset = +this.#offset.slice(1, 3) * 60 + +this.#offset.slice(4, 6);
|
|
20692
|
-
offset = this.#offset[0] === "-" ? offset : -offset;
|
|
20693
|
-
return (/* @__PURE__ */ new Date(this.getTime() - offset * 6e4)).toISOString().slice(0, -1) + this.#offset;
|
|
20694
|
-
}
|
|
20695
|
-
static wrapAsOffsetDateTime(jsDate, offset = "Z") {
|
|
20696
|
-
let date = new TomlDate(jsDate);
|
|
20697
|
-
date.#offset = offset;
|
|
20698
|
-
return date;
|
|
20699
|
-
}
|
|
20700
|
-
static wrapAsLocalDateTime(jsDate) {
|
|
20701
|
-
let date = new TomlDate(jsDate);
|
|
20702
|
-
date.#offset = null;
|
|
20703
|
-
return date;
|
|
20704
|
-
}
|
|
20705
|
-
static wrapAsLocalDate(jsDate) {
|
|
20706
|
-
let date = new TomlDate(jsDate);
|
|
20707
|
-
date.#hasTime = false;
|
|
20708
|
-
date.#offset = null;
|
|
20709
|
-
return date;
|
|
20710
|
-
}
|
|
20711
|
-
static wrapAsLocalTime(jsDate) {
|
|
20712
|
-
let date = new TomlDate(jsDate);
|
|
20713
|
-
date.#hasDate = false;
|
|
20714
|
-
date.#offset = null;
|
|
20715
|
-
return date;
|
|
20716
|
-
}
|
|
20717
|
-
};
|
|
20718
|
-
//#endregion
|
|
20719
|
-
//#region ../../node_modules/.pnpm/smol-toml@1.7.0/node_modules/smol-toml/dist/error.js
|
|
20609
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/error.js
|
|
20720
20610
|
/*!
|
|
20721
20611
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
20722
20612
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -20745,11 +20635,11 @@ var TomlDate = class TomlDate extends Date {
|
|
|
20745
20635
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
20746
20636
|
*/
|
|
20747
20637
|
function getLineColFromPtr(string, ptr) {
|
|
20748
|
-
let lines = string.slice(0, ptr).split(/\r
|
|
20638
|
+
let lines = string.slice(0, ptr).split(/\r?\n/);
|
|
20749
20639
|
return [lines.length, lines.pop().length + 1];
|
|
20750
20640
|
}
|
|
20751
20641
|
function makeCodeBlock(string, line, column) {
|
|
20752
|
-
let lines = string.split(/\r
|
|
20642
|
+
let lines = string.split(/\r?\n/);
|
|
20753
20643
|
let codeblock = "";
|
|
20754
20644
|
let numberLen = (Math.log10(line + 1) | 0) + 1;
|
|
20755
20645
|
for (let i = line - 1; i <= line + 1; i++) {
|
|
@@ -20766,7 +20656,7 @@ function makeCodeBlock(string, line, column) {
|
|
|
20766
20656
|
}
|
|
20767
20657
|
return codeblock;
|
|
20768
20658
|
}
|
|
20769
|
-
var TomlError = class extends Error {
|
|
20659
|
+
var TomlError = class TomlError extends Error {
|
|
20770
20660
|
line;
|
|
20771
20661
|
column;
|
|
20772
20662
|
codeblock;
|
|
@@ -20778,9 +20668,16 @@ var TomlError = class extends Error {
|
|
|
20778
20668
|
this.column = column;
|
|
20779
20669
|
this.codeblock = codeblock;
|
|
20780
20670
|
}
|
|
20671
|
+
/** @internal */
|
|
20672
|
+
static x(message, ctx, ptr) {
|
|
20673
|
+
throw new TomlError(message, {
|
|
20674
|
+
toml: ctx.s,
|
|
20675
|
+
ptr: ptr ?? ctx.p
|
|
20676
|
+
});
|
|
20677
|
+
}
|
|
20781
20678
|
};
|
|
20782
20679
|
//#endregion
|
|
20783
|
-
//#region ../../node_modules/.pnpm/smol-toml@1.
|
|
20680
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/primitive.js
|
|
20784
20681
|
/*!
|
|
20785
20682
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
20786
20683
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -20808,126 +20705,78 @@ var TomlError = class extends Error {
|
|
|
20808
20705
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
20809
20706
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
20810
20707
|
*/
|
|
20811
|
-
|
|
20812
|
-
|
|
20813
|
-
let
|
|
20814
|
-
|
|
20815
|
-
let c = str[ptr++];
|
|
20708
|
+
/** @internal */
|
|
20709
|
+
function parseString(ctx) {
|
|
20710
|
+
let startPtr = ctx.p;
|
|
20711
|
+
let c = ctx.s.charCodeAt(ctx.p++);
|
|
20816
20712
|
let first = c;
|
|
20817
|
-
let isLiteral = c ===
|
|
20818
|
-
let isMultiline = c ===
|
|
20713
|
+
let isLiteral = c === 39;
|
|
20714
|
+
let isMultiline = c === ctx.s.charCodeAt(ctx.p) && c === ctx.s.charCodeAt(ctx.p + 1);
|
|
20819
20715
|
if (isMultiline) {
|
|
20820
|
-
if (
|
|
20821
|
-
else if (
|
|
20716
|
+
if ((c = ctx.s.charCodeAt(ctx.p += 2)) === 10) ctx.p++;
|
|
20717
|
+
else if (c === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10) ctx.p += 2;
|
|
20822
20718
|
}
|
|
20823
20719
|
let parsed = "";
|
|
20824
|
-
let sliceStart =
|
|
20720
|
+
let sliceStart = ctx.p;
|
|
20825
20721
|
let state = 0;
|
|
20826
|
-
for (
|
|
20827
|
-
c =
|
|
20828
|
-
if (isMultiline && (c ===
|
|
20829
|
-
else if (c <
|
|
20830
|
-
|
|
20831
|
-
ptr: i
|
|
20832
|
-
});
|
|
20833
|
-
else if ((!state || state === 3) && c === first && (!isMultiline || str[i + 1] === first && str[i + 2] === first)) {
|
|
20722
|
+
for (; ctx.p < ctx.s.length; ctx.p++) {
|
|
20723
|
+
c = ctx.s.charCodeAt(ctx.p);
|
|
20724
|
+
if (isMultiline && (c === 10 || c === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10)) state = state && 3;
|
|
20725
|
+
else if (c < 32 && c !== 9 || c === 127) TomlError.x("control characters are not allowed in strings", ctx);
|
|
20726
|
+
else if ((!state || state === 3) && c === first && (!isMultiline || ctx.s.charCodeAt(ctx.p + 1) === first && ctx.s.charCodeAt(ctx.p + 2) === first)) {
|
|
20834
20727
|
if (isMultiline) {
|
|
20835
|
-
if (
|
|
20836
|
-
if (
|
|
20728
|
+
if (ctx.s.charCodeAt(ctx.p + 3) === first) ctx.p++;
|
|
20729
|
+
if (ctx.s.charCodeAt(ctx.p + 3) === first) ctx.p++;
|
|
20837
20730
|
}
|
|
20838
|
-
|
|
20731
|
+
if (!state) {
|
|
20732
|
+
let s = ctx.s.slice(sliceStart, ctx.p);
|
|
20733
|
+
parsed = parsed ? parsed + s : s;
|
|
20734
|
+
}
|
|
20735
|
+
ctx.p += isMultiline ? 3 : 1;
|
|
20736
|
+
return parsed;
|
|
20839
20737
|
} else if (!state) {
|
|
20840
|
-
if (!isLiteral && c ===
|
|
20841
|
-
parsed +=
|
|
20738
|
+
if (!isLiteral && c === 92) {
|
|
20739
|
+
parsed += ctx.s.slice(sliceStart, sliceStart = ctx.p);
|
|
20842
20740
|
state = 1;
|
|
20843
20741
|
}
|
|
20844
|
-
} else if (state === 1) if (c ===
|
|
20742
|
+
} else if (state === 1) if (c === 120 || c === 117 || c === 85) {
|
|
20743
|
+
let errPtr = ctx.p++ - 1;
|
|
20845
20744
|
let value = 0;
|
|
20846
|
-
let len = c ===
|
|
20847
|
-
for (let j = 0; j < len; j++,
|
|
20848
|
-
let hex =
|
|
20745
|
+
let len = c === 120 ? 2 : c === 117 ? 4 : 8;
|
|
20746
|
+
for (let j = 0; j < len; j++, ctx.p++) {
|
|
20747
|
+
let hex = ctx.s.charCodeAt(ctx.p);
|
|
20849
20748
|
let digit = hex >= 48 && hex <= 57 ? hex - 48 : hex >= 65 && hex <= 70 ? hex - 65 + 10 : hex >= 97 && hex <= 102 ? hex - 97 + 10 : -1;
|
|
20850
|
-
if (digit < 0)
|
|
20851
|
-
toml: str,
|
|
20852
|
-
ptr: i + 1
|
|
20853
|
-
});
|
|
20749
|
+
if (digit < 0) TomlError.x("invalid non-hex character in unicode escape", ctx);
|
|
20854
20750
|
value = value << 4 | digit;
|
|
20855
20751
|
}
|
|
20856
|
-
if (value < 0 || value > 1114111 || value >= 55296 && value <= 57343)
|
|
20857
|
-
toml: str,
|
|
20858
|
-
ptr: i
|
|
20859
|
-
});
|
|
20752
|
+
if (value < 0 || value > 1114111 || value >= 55296 && value <= 57343) TomlError.x("invalid unicode escape", ctx, errPtr);
|
|
20860
20753
|
parsed += String.fromCodePoint(value);
|
|
20861
|
-
sliceStart =
|
|
20754
|
+
sliceStart = ctx.p--;
|
|
20862
20755
|
state = 0;
|
|
20863
|
-
} else if (c ===
|
|
20756
|
+
} else if (isMultiline && (c === 32 || c === 9)) state = 2;
|
|
20864
20757
|
else {
|
|
20865
|
-
if (c ===
|
|
20866
|
-
else if (c ===
|
|
20867
|
-
else if (c ===
|
|
20868
|
-
else if (c ===
|
|
20869
|
-
else if (c ===
|
|
20870
|
-
else if (c ===
|
|
20871
|
-
else if (c ===
|
|
20872
|
-
else if (c ===
|
|
20873
|
-
else
|
|
20874
|
-
|
|
20875
|
-
ptr: i
|
|
20876
|
-
});
|
|
20877
|
-
sliceStart = i + 1;
|
|
20758
|
+
if (c === 98) parsed += "\b";
|
|
20759
|
+
else if (c === 116) parsed += " ";
|
|
20760
|
+
else if (c === 110) parsed += "\n";
|
|
20761
|
+
else if (c === 102) parsed += "\f";
|
|
20762
|
+
else if (c === 114) parsed += "\r";
|
|
20763
|
+
else if (c === 101) parsed += "\x1B";
|
|
20764
|
+
else if (c === 34) parsed += "\"";
|
|
20765
|
+
else if (c === 92) parsed += "\\";
|
|
20766
|
+
else TomlError.x("unrecognised escape sequence", ctx);
|
|
20767
|
+
sliceStart = ctx.p + 1;
|
|
20878
20768
|
state = 0;
|
|
20879
20769
|
}
|
|
20880
|
-
else if (c !==
|
|
20881
|
-
if (state === 2)
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
});
|
|
20885
|
-
state = !isLiteral && c === "\\" ? 1 : 0;
|
|
20886
|
-
sliceStart = i;
|
|
20887
|
-
}
|
|
20888
|
-
}
|
|
20889
|
-
throw new TomlError("unfinished string", {
|
|
20890
|
-
toml: str,
|
|
20891
|
-
ptr
|
|
20892
|
-
});
|
|
20893
|
-
}
|
|
20894
|
-
function parseValue(value, toml, ptr, integersAsBigInt) {
|
|
20895
|
-
if (value === "true") return true;
|
|
20896
|
-
if (value === "false") return false;
|
|
20897
|
-
if (value === "-inf") return -Infinity;
|
|
20898
|
-
if (value === "inf" || value === "+inf") return Infinity;
|
|
20899
|
-
if (value === "nan" || value === "+nan" || value === "-nan") return NaN;
|
|
20900
|
-
if (value === "-0") return integersAsBigInt ? 0n : 0;
|
|
20901
|
-
let isInt = INT_REGEX.test(value);
|
|
20902
|
-
if (isInt || FLOAT_REGEX.test(value)) {
|
|
20903
|
-
if (LEADING_ZERO.test(value)) throw new TomlError("leading zeroes are not allowed", {
|
|
20904
|
-
toml,
|
|
20905
|
-
ptr
|
|
20906
|
-
});
|
|
20907
|
-
value = value.replace(/_/g, "");
|
|
20908
|
-
let numeric = +value;
|
|
20909
|
-
if (isNaN(numeric)) throw new TomlError("invalid number", {
|
|
20910
|
-
toml,
|
|
20911
|
-
ptr
|
|
20912
|
-
});
|
|
20913
|
-
if (isInt) {
|
|
20914
|
-
if ((isInt = !Number.isSafeInteger(numeric)) && !integersAsBigInt) throw new TomlError("integer value cannot be represented losslessly", {
|
|
20915
|
-
toml,
|
|
20916
|
-
ptr
|
|
20917
|
-
});
|
|
20918
|
-
if (isInt || integersAsBigInt === true) numeric = BigInt(value);
|
|
20770
|
+
else if (c !== 32 && c !== 9) {
|
|
20771
|
+
if (state === 2) TomlError.x("invalid escape: only line-ending whitespace may be escaped", ctx, sliceStart);
|
|
20772
|
+
state = !isLiteral && c === 92 ? 1 : 0;
|
|
20773
|
+
sliceStart = ctx.p;
|
|
20919
20774
|
}
|
|
20920
|
-
return numeric;
|
|
20921
20775
|
}
|
|
20922
|
-
|
|
20923
|
-
if (!date.isValid()) throw new TomlError("invalid value", {
|
|
20924
|
-
toml,
|
|
20925
|
-
ptr
|
|
20926
|
-
});
|
|
20927
|
-
return date;
|
|
20776
|
+
TomlError.x("unfinished string", ctx, startPtr);
|
|
20928
20777
|
}
|
|
20929
20778
|
//#endregion
|
|
20930
|
-
//#region ../../node_modules/.pnpm/smol-toml@1.
|
|
20779
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/date.js
|
|
20931
20780
|
/*!
|
|
20932
20781
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
20933
20782
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -20955,50 +20804,104 @@ function parseValue(value, toml, ptr, integersAsBigInt) {
|
|
|
20955
20804
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
20956
20805
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
20957
20806
|
*/
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
|
|
20961
|
-
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
|
|
20965
|
-
let
|
|
20966
|
-
|
|
20967
|
-
|
|
20968
|
-
if (
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
|
|
20807
|
+
let DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[Tt ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|z|[-+]\d{2}:\d{2})?$/i;
|
|
20808
|
+
var TomlDate = class TomlDate extends Date {
|
|
20809
|
+
#hasDate = false;
|
|
20810
|
+
#hasTime = false;
|
|
20811
|
+
#offset = null;
|
|
20812
|
+
constructor(date, fasttype, unsafeDelim) {
|
|
20813
|
+
let hasDate = true;
|
|
20814
|
+
let hasTime = true;
|
|
20815
|
+
let offset = "Z";
|
|
20816
|
+
let c;
|
|
20817
|
+
if (typeof date === "string") if (fasttype) prep: {
|
|
20818
|
+
if (fasttype < 3) {
|
|
20819
|
+
if (+date.slice(11, 13) > 23) {
|
|
20820
|
+
date = "";
|
|
20821
|
+
break prep;
|
|
20822
|
+
}
|
|
20823
|
+
if (fasttype === 2) {
|
|
20824
|
+
offset = null;
|
|
20825
|
+
date += "Z";
|
|
20826
|
+
} else if ((c = date.charCodeAt(date.length - 1)) !== 90 && c !== 122) offset = date.slice(date.length - 6);
|
|
20827
|
+
if (unsafeDelim) date = date.slice(0, 10) + "T" + date.slice(11);
|
|
20828
|
+
} else if (fasttype === 4) date = +date.slice(0, 2) > 23 ? "" : `0000-01-01T${date}Z`;
|
|
20829
|
+
hasDate = fasttype !== 4;
|
|
20830
|
+
hasTime = fasttype !== 3;
|
|
20831
|
+
}
|
|
20832
|
+
else {
|
|
20833
|
+
let match = date.match(DATE_TIME_RE);
|
|
20834
|
+
if (match) {
|
|
20835
|
+
if (!match[1]) {
|
|
20836
|
+
hasDate = false;
|
|
20837
|
+
date = `0000-01-01T${date}`;
|
|
20838
|
+
}
|
|
20839
|
+
hasTime = !!match[2];
|
|
20840
|
+
hasTime && date[10] === " " && (date = date.replace(" ", "T"));
|
|
20841
|
+
if (match[2] && +match[2] > 23) date = "";
|
|
20842
|
+
else {
|
|
20843
|
+
offset = match[3] || null;
|
|
20844
|
+
if (!offset && hasTime) date += "Z";
|
|
20845
|
+
}
|
|
20846
|
+
} else date = "";
|
|
20847
|
+
}
|
|
20848
|
+
super(date);
|
|
20849
|
+
if (!isNaN(this.getTime())) {
|
|
20850
|
+
this.#hasDate = hasDate;
|
|
20851
|
+
this.#hasTime = hasTime;
|
|
20852
|
+
this.#offset = offset;
|
|
20853
|
+
}
|
|
20972
20854
|
}
|
|
20973
|
-
|
|
20974
|
-
|
|
20975
|
-
function skipVoid(str, ptr, banNewLines, banComments) {
|
|
20976
|
-
let c;
|
|
20977
|
-
while (1) {
|
|
20978
|
-
while ((c = str[ptr]) === " " || c === " " || !banNewLines && (c === "\n" || c === "\r" && str[ptr + 1] === "\n")) ptr++;
|
|
20979
|
-
if (banComments || c !== "#") break;
|
|
20980
|
-
ptr = skipComment(str, ptr);
|
|
20855
|
+
isDateTime() {
|
|
20856
|
+
return this.#hasDate && this.#hasTime;
|
|
20981
20857
|
}
|
|
20982
|
-
|
|
20983
|
-
|
|
20984
|
-
function skipUntil(str, ptr, sep, end, banNewLines = false) {
|
|
20985
|
-
if (!end) {
|
|
20986
|
-
ptr = indexOfNewline(str, ptr);
|
|
20987
|
-
return ptr < 0 ? str.length : ptr;
|
|
20858
|
+
isLocal() {
|
|
20859
|
+
return !this.#hasDate || !this.#hasTime || !this.#offset;
|
|
20988
20860
|
}
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
if (c === "#") i = indexOfNewline(str, i);
|
|
20992
|
-
else if (c === sep) return i + 1;
|
|
20993
|
-
else if (c === end || banNewLines && (c === "\n" || c === "\r" && str[i + 1] === "\n")) return i;
|
|
20861
|
+
isDate() {
|
|
20862
|
+
return this.#hasDate && !this.#hasTime;
|
|
20994
20863
|
}
|
|
20995
|
-
|
|
20996
|
-
|
|
20997
|
-
|
|
20998
|
-
|
|
20999
|
-
|
|
20864
|
+
isTime() {
|
|
20865
|
+
return this.#hasTime && !this.#hasDate;
|
|
20866
|
+
}
|
|
20867
|
+
isValid() {
|
|
20868
|
+
return this.#hasDate || this.#hasTime;
|
|
20869
|
+
}
|
|
20870
|
+
toISOString() {
|
|
20871
|
+
let iso = super.toISOString();
|
|
20872
|
+
if (this.isDate()) return iso.slice(0, 10);
|
|
20873
|
+
if (this.isTime()) return iso.slice(11, 23);
|
|
20874
|
+
if (this.#offset === null) return iso.slice(0, -1);
|
|
20875
|
+
if (this.#offset === "Z" || this.#offset === "z") return iso;
|
|
20876
|
+
let offset = +this.#offset.slice(1, 3) * 60 + +this.#offset.slice(4, 6);
|
|
20877
|
+
offset = this.#offset[0] === "-" ? offset : -offset;
|
|
20878
|
+
return (/* @__PURE__ */ new Date(this.getTime() - offset * 6e4)).toISOString().slice(0, -1) + this.#offset;
|
|
20879
|
+
}
|
|
20880
|
+
static wrapAsOffsetDateTime(jsDate, offset = "Z") {
|
|
20881
|
+
let date = new TomlDate(jsDate);
|
|
20882
|
+
date.#offset = offset;
|
|
20883
|
+
return date;
|
|
20884
|
+
}
|
|
20885
|
+
static wrapAsLocalDateTime(jsDate) {
|
|
20886
|
+
let date = new TomlDate(jsDate);
|
|
20887
|
+
date.#offset = null;
|
|
20888
|
+
return date;
|
|
20889
|
+
}
|
|
20890
|
+
static wrapAsLocalDate(jsDate) {
|
|
20891
|
+
let date = new TomlDate(jsDate);
|
|
20892
|
+
date.#hasTime = false;
|
|
20893
|
+
date.#offset = null;
|
|
20894
|
+
return date;
|
|
20895
|
+
}
|
|
20896
|
+
static wrapAsLocalTime(jsDate) {
|
|
20897
|
+
let date = new TomlDate(jsDate);
|
|
20898
|
+
date.#hasDate = false;
|
|
20899
|
+
date.#offset = null;
|
|
20900
|
+
return date;
|
|
20901
|
+
}
|
|
20902
|
+
};
|
|
21000
20903
|
//#endregion
|
|
21001
|
-
//#region ../../node_modules/.pnpm/smol-toml@1.
|
|
20904
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/extract.js
|
|
21002
20905
|
/*!
|
|
21003
20906
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
21004
20907
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -21026,59 +20929,195 @@ function skipUntil(str, ptr, sep, end, banNewLines = false) {
|
|
|
21026
20929
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
21027
20930
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
21028
20931
|
*/
|
|
21029
|
-
function
|
|
21030
|
-
|
|
21031
|
-
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
|
|
21035
|
-
|
|
21036
|
-
|
|
21037
|
-
|
|
21038
|
-
|
|
21039
|
-
if (
|
|
21040
|
-
|
|
21041
|
-
|
|
21042
|
-
|
|
21043
|
-
|
|
21044
|
-
|
|
21045
|
-
|
|
21046
|
-
|
|
21047
|
-
|
|
21048
|
-
|
|
21049
|
-
|
|
21050
|
-
|
|
21051
|
-
|
|
21052
|
-
|
|
20932
|
+
function isDigit(char, base = 10) {
|
|
20933
|
+
return base === 16 ? char > 47 && char < 58 || char > 64 && char < 71 || char > 96 && char < 103 : char > 47 && char < 48 + base;
|
|
20934
|
+
}
|
|
20935
|
+
function isEndOfValue(char, delim) {
|
|
20936
|
+
return char === 32 || char === 9 || char === 10 || char === 13 || delim && (char === delim || char === 44) || char === 35;
|
|
20937
|
+
}
|
|
20938
|
+
/** @internal */
|
|
20939
|
+
function extractValue(ctx, end) {
|
|
20940
|
+
let errPtr = ctx.p;
|
|
20941
|
+
let c = ctx.s.charCodeAt(ctx.p);
|
|
20942
|
+
if (c === 91 || c === 123) {
|
|
20943
|
+
ctx.d-- || TomlError.x("document contains excessively nested structures. aborting.", ctx);
|
|
20944
|
+
let value = c === 91 ? parseArray(ctx) : parseInlineTable(ctx);
|
|
20945
|
+
ctx.d++;
|
|
20946
|
+
return value;
|
|
20947
|
+
}
|
|
20948
|
+
if (c === 34 || c === 39) return parseString(ctx);
|
|
20949
|
+
if (c === 116) {
|
|
20950
|
+
if (ctx.s.charCodeAt(++ctx.p) !== 114 || ctx.s.charCodeAt(++ctx.p) !== 117 || ctx.s.charCodeAt(++ctx.p) !== 101) TomlError.x("invalid value", ctx, errPtr);
|
|
20951
|
+
return ctx.p++, true;
|
|
20952
|
+
}
|
|
20953
|
+
if (c === 102) {
|
|
20954
|
+
if (ctx.s.charCodeAt(++ctx.p) !== 97 || ctx.s.charCodeAt(++ctx.p) !== 108 || ctx.s.charCodeAt(++ctx.p) !== 115 || ctx.s.charCodeAt(++ctx.p) !== 101) TomlError.x("invalid value", ctx, errPtr);
|
|
20955
|
+
return ctx.p++, false;
|
|
20956
|
+
}
|
|
20957
|
+
if (c === 43 || c === 45) return parseNumber(ctx, ctx.p, ctx.s.charCodeAt(++ctx.p), 44 - c, end);
|
|
20958
|
+
if (ctx.s.charCodeAt(ctx.p + 4) === 45 && ctx.s.charCodeAt(ctx.p + 7) === 45) return parseDate(ctx, c, end);
|
|
20959
|
+
if (ctx.s.charCodeAt(ctx.p + 2) === 58) return parseTime(ctx, c, end);
|
|
20960
|
+
return parseNumber(ctx, ctx.p, c, 0, end);
|
|
20961
|
+
}
|
|
20962
|
+
function parseNumber(ctx, startPtr, startChr, sign, endChr) {
|
|
20963
|
+
let c = startChr;
|
|
20964
|
+
let state = 0;
|
|
20965
|
+
let hasUnderscores = false;
|
|
20966
|
+
if (c === 105) {
|
|
20967
|
+
if (ctx.s.charCodeAt(++ctx.p) !== 110 || ctx.s.charCodeAt(++ctx.p) !== 102) TomlError.x("invalid value", ctx, startPtr);
|
|
20968
|
+
return ctx.p++, (sign || 1) / 0;
|
|
20969
|
+
}
|
|
20970
|
+
if (c === 110) {
|
|
20971
|
+
if (ctx.s.charCodeAt(++ctx.p) !== 97 || ctx.s.charCodeAt(++ctx.p) !== 110) TomlError.x("invalid value", ctx, startPtr);
|
|
20972
|
+
return ctx.p++, NaN;
|
|
20973
|
+
}
|
|
20974
|
+
if (c === 48) {
|
|
20975
|
+
if (++ctx.p >= ctx.s.length || isEndOfValue(c = ctx.s.charCodeAt(ctx.p), endChr)) return ctx.bi === true ? 0n : 0;
|
|
20976
|
+
if (!sign) {
|
|
20977
|
+
if (c === 120) return parseIntegerBaseN(ctx, startPtr, 16, endChr);
|
|
20978
|
+
else if (c === 98) return parseIntegerBaseN(ctx, startPtr, 2, endChr);
|
|
20979
|
+
else if (c === 111) return parseIntegerBaseN(ctx, startPtr, 8, endChr);
|
|
20980
|
+
}
|
|
20981
|
+
if (c === 46) state = 2;
|
|
20982
|
+
else if (c === 101 || c === 69) state = 4;
|
|
20983
|
+
else TomlError.x("illegal leading zero", ctx, startPtr);
|
|
20984
|
+
} else if (!isDigit(c)) TomlError.x("invalid value", ctx, startPtr);
|
|
20985
|
+
while (++ctx.p < ctx.s.length && (c = ctx.s.charCodeAt(ctx.p), !isEndOfValue(c, endChr))) {
|
|
20986
|
+
if (!state) state = 1;
|
|
20987
|
+
if (c === 95) {
|
|
20988
|
+
if (!(state & 1)) TomlError.x("illegal underscore", ctx);
|
|
20989
|
+
state += 11;
|
|
20990
|
+
hasUnderscores = true;
|
|
20991
|
+
} else if (state === 1 && c === 46) state = 2;
|
|
20992
|
+
else if ((state === 1 || state === 3) && (c === 101 || c === 69)) state = 4;
|
|
20993
|
+
else if (state === 4 && (c === 43 || c === 45)) {} else if (!isDigit(c)) TomlError.x(`illegal character in numeric literal`, ctx);
|
|
20994
|
+
else if (state > 9) state -= 11;
|
|
20995
|
+
else if (!(state & 1)) state++;
|
|
20996
|
+
}
|
|
20997
|
+
if (!state) {
|
|
20998
|
+
let val = (startChr - 48) * (sign || 1);
|
|
20999
|
+
return ctx.bi === true ? BigInt(val) : val;
|
|
21000
|
+
}
|
|
21001
|
+
if (!(state & 1)) TomlError.x("unfinished numeric value", ctx, startPtr);
|
|
21002
|
+
let str = ctx.s.slice(startPtr, ctx.p);
|
|
21003
|
+
if (hasUnderscores) str = str.replaceAll("_", "");
|
|
21004
|
+
return state > 1 ? parseFloat(str) : parseInteger(ctx, str, 10, startPtr);
|
|
21005
|
+
}
|
|
21006
|
+
function parseIntegerBaseN(ctx, startPtr, base, endChr) {
|
|
21007
|
+
let c, underscore = 1;
|
|
21008
|
+
while (++ctx.p < ctx.s.length && (c = ctx.s.charCodeAt(ctx.p), !isEndOfValue(c, endChr))) if (c === 95) {
|
|
21009
|
+
if (underscore & 1) TomlError.x("illegal underscore", ctx);
|
|
21010
|
+
underscore = 3;
|
|
21011
|
+
} else if (!isDigit(c, base)) TomlError.x(`illegal character in numeric literal`, ctx);
|
|
21012
|
+
else if (underscore & 1) underscore--;
|
|
21013
|
+
if (underscore & 1) TomlError.x("unfinished numeric value", ctx);
|
|
21014
|
+
let str = ctx.s.slice(startPtr + 2, ctx.p);
|
|
21015
|
+
if (underscore) str = str.replaceAll("_", "");
|
|
21016
|
+
return parseInteger(ctx, str, base, startPtr);
|
|
21017
|
+
}
|
|
21018
|
+
function parseInteger(ctx, str, base, startPtr) {
|
|
21019
|
+
if (ctx.bi !== true) int: {
|
|
21020
|
+
let val = parseInt(str, base);
|
|
21021
|
+
if (!Number.isSafeInteger(val)) {
|
|
21022
|
+
if (ctx.bi) break int;
|
|
21023
|
+
TomlError.x("integer value cannot be represented losslessly", ctx, startPtr);
|
|
21024
|
+
}
|
|
21025
|
+
return val;
|
|
21026
|
+
}
|
|
21027
|
+
return base === 10 ? BigInt(str) : BigInt((base === 2 ? "0b" : base === 8 ? "0o" : "0x") + str);
|
|
21028
|
+
}
|
|
21029
|
+
function parseDate(ctx, c, endChr) {
|
|
21030
|
+
let startPtr = ctx.p++, unsafeSeparator;
|
|
21031
|
+
if (!isDigit(c) || !isDigit(ctx.s.charCodeAt(ctx.p++)) || !isDigit(ctx.s.charCodeAt(ctx.p++)) || !isDigit(ctx.s.charCodeAt(ctx.p++))) return parseNumber(ctx, ctx.p = startPtr, c, 0, endChr);
|
|
21032
|
+
ctx.p += 5;
|
|
21033
|
+
if (!isDigit(ctx.s.charCodeAt(ctx.p++))) TomlError.x("invalid date-time: date part is malformed", ctx, startPtr);
|
|
21034
|
+
if (ctx.p >= ctx.s.length || ((c = ctx.s.charCodeAt(ctx.p)) !== 32 || (unsafeSeparator = true, !isDigit(ctx.s.charCodeAt(ctx.p + 1)))) && c !== 84 && c !== 116) return readDate(ctx, ctx.s.slice(startPtr, ctx.p), 3, false, startPtr);
|
|
21035
|
+
if (ctx.s.charCodeAt(ctx.p += 3) !== 58) TomlError.x("invalid date-time: time part is malformed", ctx, startPtr);
|
|
21036
|
+
if (ctx.s.charCodeAt(ctx.p += 3) === 58) ctx.p += 3;
|
|
21037
|
+
if (ctx.s.charCodeAt(ctx.p) === 46) while (isDigit(ctx.s.charCodeAt(++ctx.p)));
|
|
21038
|
+
if (c = ctx.s.charCodeAt(ctx.p)) {
|
|
21039
|
+
if (c === 90 || c === 122) return readDate(ctx, ctx.s.slice(startPtr, ++ctx.p), 1, unsafeSeparator, startPtr, "[+00:00]");
|
|
21040
|
+
if (c === 43 || c === 45) return readDate(ctx, ctx.s.slice(startPtr, ctx.p += 6), 1, unsafeSeparator, startPtr, !ctx.ld && "[" + ctx.s.slice(ctx.p - 6, ctx.p) + "]");
|
|
21041
|
+
}
|
|
21042
|
+
return readDate(ctx, ctx.s.slice(startPtr, ctx.p), 2, unsafeSeparator, startPtr);
|
|
21043
|
+
}
|
|
21044
|
+
function parseTime(ctx, c, endChr) {
|
|
21045
|
+
let start = ctx.p;
|
|
21046
|
+
if (!isDigit(c) || !isDigit(ctx.s.charCodeAt(++ctx.p))) return parseNumber(ctx, --ctx.p, c, 0, endChr);
|
|
21047
|
+
if (ctx.s.charCodeAt(ctx.p += 4) === 58) ctx.p += 3;
|
|
21048
|
+
if (ctx.s.charCodeAt(ctx.p) === 46) while (isDigit(ctx.s.charCodeAt(++ctx.p)));
|
|
21049
|
+
return readDate(ctx, ctx.s.slice(start, ctx.p), 4, false, start);
|
|
21050
|
+
}
|
|
21051
|
+
function readDate(ctx, str, type, unsafeDelim, errPtr, temporalSuffix) {
|
|
21052
|
+
if (ctx.ld) {
|
|
21053
|
+
let date = new TomlDate(str, type, unsafeDelim);
|
|
21054
|
+
if (!date.isValid()) TomlError.x("invalid date", ctx, errPtr);
|
|
21055
|
+
return date;
|
|
21056
|
+
}
|
|
21057
|
+
try {
|
|
21058
|
+
if (temporalSuffix) str += temporalSuffix;
|
|
21059
|
+
switch (type) {
|
|
21060
|
+
case 1: return Temporal.ZonedDateTime.from(str);
|
|
21061
|
+
case 2: return Temporal.PlainDateTime.from(str);
|
|
21062
|
+
case 3: return Temporal.PlainDate.from(str);
|
|
21063
|
+
case 4: return Temporal.PlainTime.from(str);
|
|
21053
21064
|
}
|
|
21054
|
-
|
|
21065
|
+
} catch (e) {
|
|
21066
|
+
TomlError.x(e instanceof Error ? e.message : "" + e, ctx, errPtr);
|
|
21055
21067
|
}
|
|
21056
|
-
|
|
21057
|
-
|
|
21058
|
-
|
|
21059
|
-
|
|
21060
|
-
|
|
21061
|
-
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
|
|
21068
|
+
}
|
|
21069
|
+
//#endregion
|
|
21070
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/util.js
|
|
21071
|
+
/*!
|
|
21072
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
21073
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
21074
|
+
*
|
|
21075
|
+
* Redistribution and use in source and binary forms, with or without
|
|
21076
|
+
* modification, are permitted provided that the following conditions are met:
|
|
21077
|
+
*
|
|
21078
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
21079
|
+
* list of conditions and the following disclaimer.
|
|
21080
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
21081
|
+
* this list of conditions and the following disclaimer in the
|
|
21082
|
+
* documentation and/or other materials provided with the distribution.
|
|
21083
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
21084
|
+
* may be used to endorse or promote products derived from this software without
|
|
21085
|
+
* specific prior written permission.
|
|
21086
|
+
*
|
|
21087
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
21088
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
21089
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21090
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21091
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
21092
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
21093
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
21094
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
21095
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
21096
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
21097
|
+
*/
|
|
21098
|
+
/** @internal */
|
|
21099
|
+
function skipComment(ctx) {
|
|
21100
|
+
for (; ctx.p < ctx.s.length; ctx.p++) {
|
|
21101
|
+
let c = ctx.s.charCodeAt(ctx.p);
|
|
21102
|
+
if (c === 10) break;
|
|
21103
|
+
if (c === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10) {
|
|
21104
|
+
ctx.p++;
|
|
21105
|
+
break;
|
|
21065
21106
|
}
|
|
21066
|
-
|
|
21107
|
+
if (c < 32 && c !== 9 || c === 127) TomlError.x("control characters are not allowed in comments", ctx);
|
|
21067
21108
|
}
|
|
21068
|
-
|
|
21069
|
-
|
|
21070
|
-
|
|
21071
|
-
|
|
21072
|
-
|
|
21073
|
-
|
|
21074
|
-
|
|
21075
|
-
|
|
21076
|
-
if (str[endPtr] === ",") endPtr++;
|
|
21109
|
+
}
|
|
21110
|
+
/** @internal */
|
|
21111
|
+
function skipVoid(ctx, banNewLines, banComments) {
|
|
21112
|
+
let c;
|
|
21113
|
+
while (ctx.p < ctx.s.length) {
|
|
21114
|
+
while (ctx.p < ctx.s.length && ((c = ctx.s.charCodeAt(ctx.p)) === 32 || c === 9 || !banNewLines && (c === 10 || c === 13 && ctx.s.charCodeAt(ctx.p + 1) === 10))) ctx.p++;
|
|
21115
|
+
if (banComments || c !== 35) break;
|
|
21116
|
+
skipComment(ctx);
|
|
21077
21117
|
}
|
|
21078
|
-
return [parseValue(slice[0], str, ptr, integersAsBigInt), endPtr];
|
|
21079
21118
|
}
|
|
21080
21119
|
//#endregion
|
|
21081
|
-
//#region ../../node_modules/.pnpm/smol-toml@1.
|
|
21120
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/struct.js
|
|
21082
21121
|
/*!
|
|
21083
21122
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
21084
21123
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -21106,119 +21145,102 @@ function extractValue(str, ptr, end, depth, integersAsBigInt) {
|
|
|
21106
21145
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
21107
21146
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
21108
21147
|
*/
|
|
21109
|
-
|
|
21110
|
-
function parseKey(
|
|
21111
|
-
let
|
|
21148
|
+
/** @internal */
|
|
21149
|
+
function parseKey(ctx, end = 61) {
|
|
21150
|
+
let startPtr;
|
|
21151
|
+
let state = 0;
|
|
21112
21152
|
let parsed = [];
|
|
21113
|
-
let
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21118
|
-
|
|
21119
|
-
|
|
21120
|
-
|
|
21121
|
-
if (
|
|
21122
|
-
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
|
|
21126
|
-
|
|
21127
|
-
|
|
21128
|
-
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
if (strEnd.trimStart()) throw new TomlError("found extra tokens after the string part", {
|
|
21134
|
-
toml: str,
|
|
21135
|
-
ptr: eos
|
|
21136
|
-
});
|
|
21137
|
-
if (endPtr < eos) {
|
|
21138
|
-
endPtr = str.indexOf(end, eos);
|
|
21139
|
-
if (endPtr < 0) throw new TomlError("incomplete key-value: cannot find end of key", {
|
|
21140
|
-
toml: str,
|
|
21141
|
-
ptr
|
|
21142
|
-
});
|
|
21153
|
+
let sliceStart;
|
|
21154
|
+
let c = ctx.s.charCodeAt(startPtr = ctx.p);
|
|
21155
|
+
do
|
|
21156
|
+
if (c === end) {
|
|
21157
|
+
if (!state) TomlError.x("unexpected end of key", ctx);
|
|
21158
|
+
if (state === 1) parsed.push(ctx.s.slice(sliceStart, ctx.p));
|
|
21159
|
+
return ctx.p++, parsed;
|
|
21160
|
+
} else if (c === 46) {
|
|
21161
|
+
if (!state) TomlError.x("illegal empty bare key", ctx);
|
|
21162
|
+
if (state === 1) parsed.push(ctx.s.slice(sliceStart, ctx.p));
|
|
21163
|
+
state = 0;
|
|
21164
|
+
} else if (!state && (c === 34 || c === 39)) {
|
|
21165
|
+
if (c === ctx.s.charCodeAt(ctx.p + 1) && c === ctx.s.charCodeAt(ctx.p + 2)) TomlError.x("illegal quoted key: multiline strings are not allowed", ctx);
|
|
21166
|
+
parsed.push(parseString(ctx));
|
|
21167
|
+
state = 2;
|
|
21168
|
+
ctx.p--;
|
|
21169
|
+
} else if (c === 32 || c === 9) {
|
|
21170
|
+
if (state === 1) {
|
|
21171
|
+
parsed.push(ctx.s.slice(sliceStart, ctx.p));
|
|
21172
|
+
state = 2;
|
|
21143
21173
|
}
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
}
|
|
21157
|
-
function parseInlineTable(str, ptr, depth, integersAsBigInt) {
|
|
21158
|
-
let res = {};
|
|
21174
|
+
} else if (state === 2 || c < 48 && c !== 45 || c > 57 && c < 65 || c > 90 && c < 97 && c !== 95 || c > 122) TomlError.x("illegal character in key", ctx);
|
|
21175
|
+
else if (!state) {
|
|
21176
|
+
state = 1;
|
|
21177
|
+
sliceStart = ctx.p;
|
|
21178
|
+
}
|
|
21179
|
+
while (c = ctx.s.charCodeAt(++ctx.p));
|
|
21180
|
+
TomlError.x("incomplete key-value: cannot find end of key", ctx, startPtr);
|
|
21181
|
+
}
|
|
21182
|
+
/** @internal */
|
|
21183
|
+
function parseInlineTable(ctx) {
|
|
21184
|
+
let startPtr = ctx.p++;
|
|
21185
|
+
let res = Object.create(null);
|
|
21159
21186
|
let seen = /* @__PURE__ */ new Set();
|
|
21160
21187
|
let c;
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
else if (c !== " " && c !== " " && c !== "\n" && c !== "\r") {
|
|
21188
|
+
while (ctx.p < ctx.s.length) {
|
|
21189
|
+
skipVoid(ctx);
|
|
21190
|
+
if ((c = ctx.s.charCodeAt(ctx.p)) === 125) {
|
|
21191
|
+
ctx.p++;
|
|
21192
|
+
return res;
|
|
21193
|
+
}
|
|
21168
21194
|
let k;
|
|
21169
21195
|
let t = res;
|
|
21170
21196
|
let hasOwn = false;
|
|
21171
|
-
let
|
|
21197
|
+
let errPtr = ctx.p;
|
|
21198
|
+
let key = parseKey(ctx);
|
|
21172
21199
|
for (let i = 0; i < key.length; i++) {
|
|
21173
|
-
if (i) t = hasOwn ? t[k] : t[k] =
|
|
21200
|
+
if (i) t = hasOwn ? t[k] : t[k] = Object.create(null);
|
|
21174
21201
|
k = key[i];
|
|
21175
|
-
if ((hasOwn = Object.hasOwn(t, k)) && (typeof t[k] !== "object" || seen.has(t[k])))
|
|
21176
|
-
|
|
21177
|
-
|
|
21178
|
-
|
|
21179
|
-
|
|
21202
|
+
if ((hasOwn = Object.hasOwn(t, k)) && (typeof t[k] !== "object" || seen.has(t[k]))) TomlError.x("trying to redefine an already defined value", ctx, errPtr);
|
|
21203
|
+
let unsafe = k === "__proto__";
|
|
21204
|
+
if (ctx.uk && (unsafe || k === "constructor")) {
|
|
21205
|
+
t = ctx.uk !== 1 && TomlError.x("document contains an unsafe property", ctx, errPtr);
|
|
21206
|
+
break;
|
|
21207
|
+
}
|
|
21208
|
+
if (!hasOwn && unsafe) Object.defineProperty(t, k, {
|
|
21180
21209
|
enumerable: true,
|
|
21181
21210
|
configurable: true,
|
|
21182
21211
|
writable: true
|
|
21183
21212
|
});
|
|
21184
21213
|
}
|
|
21185
|
-
if (hasOwn)
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
ptr = valueEndPtr;
|
|
21214
|
+
if (hasOwn) TomlError.x("trying to redefine an already defined value", ctx, errPtr);
|
|
21215
|
+
skipVoid(ctx, true, true);
|
|
21216
|
+
let value = extractValue(ctx, 125);
|
|
21217
|
+
if (t && typeof (t[k] = value) === "object") seen.add(value);
|
|
21218
|
+
skipVoid(ctx);
|
|
21219
|
+
if ((c = ctx.s.charCodeAt(ctx.p++)) === 125) return res;
|
|
21220
|
+
if (c !== 44) TomlError.x("expected comma or end of structure", ctx, ctx.p - 1);
|
|
21193
21221
|
}
|
|
21194
|
-
|
|
21195
|
-
toml: str,
|
|
21196
|
-
ptr
|
|
21197
|
-
});
|
|
21198
|
-
return [res, ptr];
|
|
21222
|
+
TomlError.x("unfinished table", ctx, startPtr);
|
|
21199
21223
|
}
|
|
21200
|
-
|
|
21224
|
+
/** @internal */
|
|
21225
|
+
function parseArray(ctx) {
|
|
21226
|
+
let startPtr = ctx.p++;
|
|
21201
21227
|
let res = [];
|
|
21202
21228
|
let c;
|
|
21203
|
-
|
|
21204
|
-
|
|
21205
|
-
|
|
21206
|
-
|
|
21207
|
-
|
|
21208
|
-
|
|
21209
|
-
|
|
21210
|
-
|
|
21211
|
-
|
|
21212
|
-
|
|
21229
|
+
while (ctx.p < ctx.s.length) {
|
|
21230
|
+
skipVoid(ctx);
|
|
21231
|
+
if ((c = ctx.s.charCodeAt(ctx.p)) === 93) {
|
|
21232
|
+
ctx.p++;
|
|
21233
|
+
return res;
|
|
21234
|
+
}
|
|
21235
|
+
res.push(extractValue(ctx, 93));
|
|
21236
|
+
skipVoid(ctx);
|
|
21237
|
+
if ((c = ctx.s.charCodeAt(ctx.p++)) === 93) return res;
|
|
21238
|
+
if (c !== 44) TomlError.x("expected comma or end of structure", ctx, ctx.p - 1);
|
|
21213
21239
|
}
|
|
21214
|
-
|
|
21215
|
-
toml: str,
|
|
21216
|
-
ptr
|
|
21217
|
-
});
|
|
21218
|
-
return [res, ptr];
|
|
21240
|
+
TomlError.x("unfinished array", ctx, startPtr);
|
|
21219
21241
|
}
|
|
21220
21242
|
//#endregion
|
|
21221
|
-
//#region ../../node_modules/.pnpm/smol-toml@1.
|
|
21243
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/parse.js
|
|
21222
21244
|
/*!
|
|
21223
21245
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
21224
21246
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -21246,7 +21268,7 @@ function parseArray(str, ptr, depth, integersAsBigInt) {
|
|
|
21246
21268
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
21247
21269
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
21248
21270
|
*/
|
|
21249
|
-
function peekTable(key, table, meta, type) {
|
|
21271
|
+
function peekTable(ctx, key, table, meta, type) {
|
|
21250
21272
|
let t = table;
|
|
21251
21273
|
let m = meta;
|
|
21252
21274
|
let k;
|
|
@@ -21254,7 +21276,7 @@ function peekTable(key, table, meta, type) {
|
|
|
21254
21276
|
let state;
|
|
21255
21277
|
for (let i = 0; i < key.length; i++) {
|
|
21256
21278
|
if (i) {
|
|
21257
|
-
t = hasOwn ? t[k] : t[k] =
|
|
21279
|
+
t = hasOwn ? t[k] : t[k] = Object.create(null);
|
|
21258
21280
|
m = (state = m[k]).c;
|
|
21259
21281
|
if (type === 0 && (state.t === 1 || state.t === 2)) return null;
|
|
21260
21282
|
if (state.t === 2) {
|
|
@@ -21266,7 +21288,9 @@ function peekTable(key, table, meta, type) {
|
|
|
21266
21288
|
k = key[i];
|
|
21267
21289
|
if ((hasOwn = Object.hasOwn(t, k)) && m[k]?.t === 0 && m[k]?.d) return null;
|
|
21268
21290
|
if (!hasOwn) {
|
|
21269
|
-
|
|
21291
|
+
let unsafe = k === "__proto__";
|
|
21292
|
+
if (ctx.uk && (unsafe || k === "constructor")) return false;
|
|
21293
|
+
if (unsafe) {
|
|
21270
21294
|
Object.defineProperty(t, k, {
|
|
21271
21295
|
enumerable: true,
|
|
21272
21296
|
configurable: true,
|
|
@@ -21282,7 +21306,7 @@ function peekTable(key, table, meta, type) {
|
|
|
21282
21306
|
t: i < key.length - 1 && type === 2 ? 3 : type,
|
|
21283
21307
|
d: false,
|
|
21284
21308
|
i: 0,
|
|
21285
|
-
c:
|
|
21309
|
+
c: Object.create(null)
|
|
21286
21310
|
};
|
|
21287
21311
|
}
|
|
21288
21312
|
}
|
|
@@ -21293,17 +21317,17 @@ function peekTable(key, table, meta, type) {
|
|
|
21293
21317
|
state.d = true;
|
|
21294
21318
|
t[k] = [];
|
|
21295
21319
|
}
|
|
21296
|
-
t[k].push(t =
|
|
21320
|
+
t[k].push(t = Object.create(null));
|
|
21297
21321
|
state.c[state.i++] = state = {
|
|
21298
21322
|
t: 1,
|
|
21299
21323
|
d: false,
|
|
21300
21324
|
i: 0,
|
|
21301
|
-
c:
|
|
21325
|
+
c: Object.create(null)
|
|
21302
21326
|
};
|
|
21303
21327
|
}
|
|
21304
21328
|
if (state.d) return null;
|
|
21305
21329
|
state.d = true;
|
|
21306
|
-
if (type === 1) t = hasOwn ? t[k] : t[k] =
|
|
21330
|
+
if (type === 1) t = hasOwn ? t[k] : t[k] = Object.create(null);
|
|
21307
21331
|
else if (type === 0 && hasOwn) return null;
|
|
21308
21332
|
return [
|
|
21309
21333
|
k,
|
|
@@ -21311,52 +21335,60 @@ function peekTable(key, table, meta, type) {
|
|
|
21311
21335
|
state.c
|
|
21312
21336
|
];
|
|
21313
21337
|
}
|
|
21314
|
-
function
|
|
21315
|
-
|
|
21316
|
-
|
|
21338
|
+
function validateTablePeek(ctx, peek, ptr) {
|
|
21339
|
+
if (peek === null || ctx.uk === 2) TomlError.x(peek === null ? "trying to redefine an already defined table or value" : "document contains an unsafe property", ctx, ptr);
|
|
21340
|
+
}
|
|
21341
|
+
function parse$1(toml, options = {}) {
|
|
21342
|
+
let ctx = {
|
|
21343
|
+
s: toml,
|
|
21344
|
+
p: 0,
|
|
21345
|
+
d: options.maxDepth ?? 1e3,
|
|
21346
|
+
bi: options.integersAsBigInt ?? false,
|
|
21347
|
+
ld: options.useLegacyDate ?? true,
|
|
21348
|
+
uk: options.unsafeKeyBehaviour === "throw" ? 2 : options.unsafeKeyBehaviour === "drop" ? 1 : 0
|
|
21349
|
+
};
|
|
21350
|
+
let res = Object.create(null);
|
|
21351
|
+
let meta = Object.create(null);
|
|
21352
|
+
let tmp;
|
|
21353
|
+
let skipping = false;
|
|
21317
21354
|
let tbl = res;
|
|
21318
21355
|
let m = meta;
|
|
21319
|
-
|
|
21320
|
-
|
|
21321
|
-
|
|
21322
|
-
|
|
21356
|
+
if (toml.charCodeAt(0) === 65279) ctx.p++;
|
|
21357
|
+
skipVoid(ctx);
|
|
21358
|
+
while (ctx.p < toml.length) {
|
|
21359
|
+
if (toml.charCodeAt(ctx.p) === 91) {
|
|
21360
|
+
let isTableArray = toml.charCodeAt(++ctx.p) === 91;
|
|
21361
|
+
tmp = ctx.p += +isTableArray;
|
|
21362
|
+
skipping = false;
|
|
21363
|
+
let k = parseKey(ctx, 93);
|
|
21323
21364
|
if (isTableArray) {
|
|
21324
|
-
if (toml
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21365
|
+
if (toml.charCodeAt(ctx.p) !== 93) TomlError.x("expected end of table array declaration", ctx);
|
|
21366
|
+
ctx.p++;
|
|
21367
|
+
}
|
|
21368
|
+
let p = peekTable(ctx, k, res, meta, isTableArray ? 2 : 1);
|
|
21369
|
+
if (!p) {
|
|
21370
|
+
validateTablePeek(ctx, p, tmp);
|
|
21371
|
+
skipping = true;
|
|
21372
|
+
} else {
|
|
21373
|
+
m = p[2];
|
|
21374
|
+
tbl = p[1];
|
|
21329
21375
|
}
|
|
21330
|
-
let p = peekTable(k[0], res, meta, isTableArray ? 2 : 1);
|
|
21331
|
-
if (!p) throw new TomlError("trying to redefine an already defined table or value", {
|
|
21332
|
-
toml,
|
|
21333
|
-
ptr
|
|
21334
|
-
});
|
|
21335
|
-
m = p[2];
|
|
21336
|
-
tbl = p[1];
|
|
21337
|
-
ptr = k[1];
|
|
21338
21376
|
} else {
|
|
21339
|
-
|
|
21340
|
-
let p = peekTable(
|
|
21341
|
-
if (!p
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
let v = extractValue(toml, k[1], void 0, maxDepth, integersAsBigInt);
|
|
21346
|
-
p[1][p[0]] = v[0];
|
|
21347
|
-
ptr = v[1];
|
|
21377
|
+
tmp = ctx.p;
|
|
21378
|
+
let p = peekTable(ctx, parseKey(ctx), tbl, m, 0);
|
|
21379
|
+
if (!p && !skipping) validateTablePeek(ctx, p, tmp);
|
|
21380
|
+
skipVoid(ctx, true, true);
|
|
21381
|
+
let v = extractValue(ctx, void 0);
|
|
21382
|
+
if (p && !skipping) p[1][p[0]] = v;
|
|
21348
21383
|
}
|
|
21349
|
-
|
|
21350
|
-
if (toml
|
|
21351
|
-
|
|
21352
|
-
ptr
|
|
21353
|
-
});
|
|
21354
|
-
ptr = skipVoid(toml, ptr);
|
|
21384
|
+
skipVoid(ctx, true);
|
|
21385
|
+
if (ctx.p < toml.length && (tmp = toml.charCodeAt(ctx.p)) !== 10 && (tmp !== 13 || toml.charCodeAt(ctx.p + 1) !== 10)) TomlError.x("each key-value declaration must be followed by an end-of-line", ctx);
|
|
21386
|
+
skipVoid(ctx);
|
|
21355
21387
|
}
|
|
21356
21388
|
return res;
|
|
21357
21389
|
}
|
|
21358
21390
|
//#endregion
|
|
21359
|
-
//#region ../../node_modules/.pnpm/smol-toml@1.
|
|
21391
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/stringify.js
|
|
21360
21392
|
/*!
|
|
21361
21393
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
21362
21394
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -21385,11 +21417,20 @@ function parse$1(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
|
|
|
21385
21417
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
21386
21418
|
*/
|
|
21387
21419
|
let BARE_KEY = /^[a-z0-9-_]+$/i;
|
|
21420
|
+
let HAS_WELLFORMED = !!"".isWellFormed;
|
|
21388
21421
|
function extendedTypeOf(obj) {
|
|
21389
21422
|
let type = typeof obj;
|
|
21390
21423
|
if (type === "object") {
|
|
21391
21424
|
if (Array.isArray(obj)) return "array";
|
|
21392
|
-
if (obj instanceof Date) return "date";
|
|
21425
|
+
if (typeof obj.getUTCDate === "function" && obj instanceof Date) return "date";
|
|
21426
|
+
if (globalThis.Temporal) {
|
|
21427
|
+
if (obj.until) {
|
|
21428
|
+
if (obj instanceof Temporal.ZonedDateTime) return "temporal/tz+uc";
|
|
21429
|
+
if (obj instanceof Temporal.PlainDateTime || obj instanceof Temporal.PlainDate) return "temporal/uc";
|
|
21430
|
+
if (obj instanceof Temporal.PlainTime || obj instanceof Temporal.Instant) return "temporal";
|
|
21431
|
+
if (obj instanceof Temporal.PlainYearMonth) return "temporal/x";
|
|
21432
|
+
} else if (obj.toPlainDate && obj instanceof Temporal.PlainMonthDay || obj.negated && obj instanceof Temporal.Duration) return "temporal/x";
|
|
21433
|
+
}
|
|
21393
21434
|
}
|
|
21394
21435
|
return type;
|
|
21395
21436
|
}
|
|
@@ -21397,60 +21438,79 @@ function isArrayOfTables(obj) {
|
|
|
21397
21438
|
for (let i = 0; i < obj.length; i++) if (extendedTypeOf(obj[i]) !== "object") return false;
|
|
21398
21439
|
return obj.length != 0;
|
|
21399
21440
|
}
|
|
21441
|
+
function formatWellFormedStringUnchecked(s) {
|
|
21442
|
+
return JSON.stringify(s).replaceAll("", "\\u007f");
|
|
21443
|
+
}
|
|
21400
21444
|
function formatString(s) {
|
|
21401
|
-
return
|
|
21445
|
+
return formatWellFormedStringUnchecked(HAS_WELLFORMED ? s.toWellFormed() : s);
|
|
21402
21446
|
}
|
|
21403
|
-
function
|
|
21447
|
+
function formatKey(s) {
|
|
21448
|
+
if (BARE_KEY.test(s)) return s;
|
|
21449
|
+
if (HAS_WELLFORMED && !s.isWellFormed()) throw new RangeError("key contains illegal lone surrogates");
|
|
21450
|
+
return formatWellFormedStringUnchecked(s);
|
|
21451
|
+
}
|
|
21452
|
+
function stringifyValue(val, type, depth, numberAsFloat, strictTemporal) {
|
|
21404
21453
|
if (depth === 0) throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
21405
|
-
|
|
21406
|
-
|
|
21407
|
-
|
|
21408
|
-
|
|
21409
|
-
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
|
|
21414
|
-
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
21454
|
+
switch (type) {
|
|
21455
|
+
case "number":
|
|
21456
|
+
if (isNaN(val)) return "nan";
|
|
21457
|
+
if (val === Infinity) return "inf";
|
|
21458
|
+
if (val === -Infinity) return "-inf";
|
|
21459
|
+
if (Number.isInteger(val) && (numberAsFloat || !Number.isSafeInteger(val))) return val.toFixed(1);
|
|
21460
|
+
case "bigint":
|
|
21461
|
+
case "boolean":
|
|
21462
|
+
case "temporal": return val.toString();
|
|
21463
|
+
case "string": return formatString(val);
|
|
21464
|
+
case "date":
|
|
21465
|
+
if (isNaN(val.getTime())) throw new TypeError("cannot serialize invalid date");
|
|
21466
|
+
return val.toISOString();
|
|
21467
|
+
case "object": return stringifyInlineTable(val, depth, numberAsFloat, strictTemporal);
|
|
21468
|
+
case "array": return stringifyArray(val, depth, numberAsFloat, strictTemporal);
|
|
21469
|
+
case "temporal/tz+uc": if (strictTemporal) {
|
|
21470
|
+
let tz = val.timeZoneId;
|
|
21471
|
+
let tzc = tz.charCodeAt(0);
|
|
21472
|
+
if (tzc !== 43 && tzc !== 45 && (tzc !== 85 && tzc !== 71 && tzc !== 90 && tzc !== 69 || tz !== "UTC" && tz !== "UCT" && tz !== "Universal" && tz !== "Zulu" && !tz.startsWith("GMT") && tz !== "Greenwich" && !tz.startsWith("Etc/"))) throw new TypeError("Temporal objects with an IANA timezone are not allowed in Temporal strict mode");
|
|
21473
|
+
}
|
|
21474
|
+
case "temporal/uc":
|
|
21475
|
+
if (strictTemporal && val.calendarId !== "iso8601") throw new TypeError("Temporal objects with a non-default calendar are not allowed in Temporal strict mode");
|
|
21476
|
+
return val.toString({
|
|
21477
|
+
calendarName: "never",
|
|
21478
|
+
timeZoneName: "never"
|
|
21479
|
+
});
|
|
21480
|
+
case "temporal/x": throw new TypeError("Unsupported " + val[Symbol.toStringTag]);
|
|
21481
|
+
}
|
|
21482
|
+
}
|
|
21483
|
+
function stringifyInlineTable(obj, depth, numberAsFloat, strictTemporal) {
|
|
21422
21484
|
let keys = Object.keys(obj);
|
|
21423
21485
|
if (keys.length === 0) return "{}";
|
|
21424
21486
|
let res = "{ ";
|
|
21425
21487
|
for (let i = 0; i < keys.length; i++) {
|
|
21426
21488
|
let k = keys[i];
|
|
21427
21489
|
if (i) res += ", ";
|
|
21428
|
-
res +=
|
|
21429
|
-
res += " = ";
|
|
21430
|
-
res += stringifyValue(obj[k], extendedTypeOf(obj[k]), depth - 1, numberAsFloat);
|
|
21490
|
+
res += formatKey(k) + " = " + stringifyValue(obj[k], extendedTypeOf(obj[k]), depth - 1, numberAsFloat, strictTemporal);
|
|
21431
21491
|
}
|
|
21432
21492
|
return res + " }";
|
|
21433
21493
|
}
|
|
21434
|
-
function stringifyArray(array, depth, numberAsFloat) {
|
|
21494
|
+
function stringifyArray(array, depth, numberAsFloat, strictTemporal) {
|
|
21435
21495
|
if (array.length === 0) return "[]";
|
|
21436
21496
|
let res = "[ ";
|
|
21437
21497
|
for (let i = 0; i < array.length; i++) {
|
|
21438
21498
|
if (i) res += ", ";
|
|
21439
21499
|
if (array[i] === null || array[i] === void 0) throw new TypeError("arrays cannot contain null or undefined values");
|
|
21440
|
-
res += stringifyValue(array[i], extendedTypeOf(array[i]), depth - 1, numberAsFloat);
|
|
21500
|
+
res += stringifyValue(array[i], extendedTypeOf(array[i]), depth - 1, numberAsFloat, strictTemporal);
|
|
21441
21501
|
}
|
|
21442
21502
|
return res + " ]";
|
|
21443
21503
|
}
|
|
21444
|
-
function stringifyArrayTable(array, key, depth, numberAsFloat) {
|
|
21504
|
+
function stringifyArrayTable(array, key, depth, numberAsFloat, strictTemporal) {
|
|
21445
21505
|
if (depth === 0) throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
21446
21506
|
let res = "";
|
|
21447
21507
|
for (let i = 0; i < array.length; i++) {
|
|
21448
21508
|
res += `${res && "\n"}[[${key}]]\n`;
|
|
21449
|
-
res += stringifyTable(0, array[i], key, depth, numberAsFloat);
|
|
21509
|
+
res += stringifyTable(0, array[i], key, depth, numberAsFloat, strictTemporal);
|
|
21450
21510
|
}
|
|
21451
21511
|
return res;
|
|
21452
21512
|
}
|
|
21453
|
-
function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat) {
|
|
21513
|
+
function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat, strictTemporal) {
|
|
21454
21514
|
if (depth === 0) throw new Error("Could not stringify the object: maximum object depth exceeded");
|
|
21455
21515
|
let preamble = "";
|
|
21456
21516
|
let tables = "";
|
|
@@ -21460,15 +21520,15 @@ function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat) {
|
|
|
21460
21520
|
if (obj[k] !== null && obj[k] !== void 0) {
|
|
21461
21521
|
let type = extendedTypeOf(obj[k]);
|
|
21462
21522
|
if (type === "symbol" || type === "function") throw new TypeError(`cannot serialize values of type '${type}'`);
|
|
21463
|
-
let key =
|
|
21464
|
-
if (type === "array" && isArrayOfTables(obj[k])) tables += (tables && "\n") + stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat);
|
|
21523
|
+
let key = formatKey(k);
|
|
21524
|
+
if (type === "array" && isArrayOfTables(obj[k])) tables += (tables && "\n") + stringifyArrayTable(obj[k], prefix ? `${prefix}.${key}` : key, depth - 1, numberAsFloat, strictTemporal);
|
|
21465
21525
|
else if (type === "object") {
|
|
21466
21526
|
let tblKey = prefix ? `${prefix}.${key}` : key;
|
|
21467
|
-
tables += (tables && "\n") + stringifyTable(tblKey, obj[k], tblKey, depth - 1, numberAsFloat);
|
|
21527
|
+
tables += (tables && "\n") + stringifyTable(tblKey, obj[k], tblKey, depth - 1, numberAsFloat, strictTemporal);
|
|
21468
21528
|
} else {
|
|
21469
21529
|
preamble += key;
|
|
21470
21530
|
preamble += " = ";
|
|
21471
|
-
preamble += stringifyValue(obj[k], type, depth, numberAsFloat);
|
|
21531
|
+
preamble += stringifyValue(obj[k], type, depth, numberAsFloat, strictTemporal);
|
|
21472
21532
|
preamble += "\n";
|
|
21473
21533
|
}
|
|
21474
21534
|
}
|
|
@@ -21476,13 +21536,42 @@ function stringifyTable(tableKey, obj, prefix, depth, numberAsFloat) {
|
|
|
21476
21536
|
if (tableKey && (preamble || !tables)) preamble = preamble ? `[${tableKey}]\n${preamble}` : `[${tableKey}]`;
|
|
21477
21537
|
return preamble && tables ? `${preamble}\n${tables}` : preamble || tables;
|
|
21478
21538
|
}
|
|
21479
|
-
function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false } = {}) {
|
|
21539
|
+
function stringify(obj, { maxDepth = 1e3, numbersAsFloat = false, strictTemporal = false } = {}) {
|
|
21480
21540
|
if (extendedTypeOf(obj) !== "object") throw new TypeError("stringify can only be called with an object");
|
|
21481
|
-
let str = stringifyTable(0, obj, "", maxDepth, numbersAsFloat);
|
|
21541
|
+
let str = stringifyTable(0, obj, "", maxDepth, numbersAsFloat, strictTemporal);
|
|
21482
21542
|
if (str[str.length - 1] !== "\n") return str + "\n";
|
|
21483
21543
|
return str;
|
|
21484
21544
|
}
|
|
21485
21545
|
//#endregion
|
|
21546
|
+
//#region ../../node_modules/.pnpm/smol-toml@1.9.0/node_modules/smol-toml/dist/index.js
|
|
21547
|
+
/*!
|
|
21548
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
21549
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
21550
|
+
*
|
|
21551
|
+
* Redistribution and use in source and binary forms, with or without
|
|
21552
|
+
* modification, are permitted provided that the following conditions are met:
|
|
21553
|
+
*
|
|
21554
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
21555
|
+
* list of conditions and the following disclaimer.
|
|
21556
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
21557
|
+
* this list of conditions and the following disclaimer in the
|
|
21558
|
+
* documentation and/or other materials provided with the distribution.
|
|
21559
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
21560
|
+
* may be used to endorse or promote products derived from this software without
|
|
21561
|
+
* specific prior written permission.
|
|
21562
|
+
*
|
|
21563
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
21564
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
21565
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21566
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21567
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
21568
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
21569
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
21570
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
21571
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
21572
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
21573
|
+
*/
|
|
21574
|
+
//#endregion
|
|
21486
21575
|
//#region ../../runtime/adapters/grok-build/dist/transport/grok-build-delivery-only.js
|
|
21487
21576
|
const FINAL_TOOLS = [
|
|
21488
21577
|
"read_receipt",
|
|
@@ -34127,9 +34216,9 @@ function createModelCatalogReadSession(input) {
|
|
|
34127
34216
|
async function readModelCatalogOnce(baseUrl) {
|
|
34128
34217
|
try {
|
|
34129
34218
|
const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
|
|
34130
|
-
import("./dist-
|
|
34131
|
-
import("./base-url-
|
|
34132
|
-
import("./api-client-foundation-
|
|
34219
|
+
import("./dist-DRfPWuFM.js"),
|
|
34220
|
+
import("./base-url-D84aBKXK.js"),
|
|
34221
|
+
import("./api-client-foundation-BPJBWsRD.js")
|
|
34133
34222
|
]);
|
|
34134
34223
|
if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
|
|
34135
34224
|
const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
|
|
@@ -35975,4 +36064,4 @@ async function prepareProviderRuntime(input, options = {}) {
|
|
|
35975
36064
|
//#endregion
|
|
35976
36065
|
export { canManageRegistryAgentSkillTargets as $, loadLedgerState as $n, applyAcceptedLeases as $r, buildDispatchReplyContextSummary as $t, createExpectedRoutesReadSession as A, resolveInstalledCodexLaunchCandidates as An, getAgentControllerPermissionModeFieldLabel as Ar, resolveRegistryRuntimeAdapterContractByAgentControllerRef as At, reconcileNewRunnableBuiltinAgentsForSetup as B, updateClaudeNativeInstallation as Bn, renderWorkingLanguagePrompt as Br, validateCustomProfileWorkspacePath as Bt, createModelCatalogReadSession as C, installGrokBotTools as Cn, buildInformationProtectionPromptPlan as Cr, canonicalizeLocalProjectPath as Ct, NO_LOCAL_AGENTS_NEED_OPENMELD_SERVICE_REASON as D, supportsGrokBotSetup as Dn, createAgentExecutionStatusDisplayRows as Dr, listBuiltinAgentsRegistryEntries as Dt, resolveProfileWorkspaceRuntime as E, readManagedGrokBotCandidate as En, createAgentControllerInterfaceDisplayRows as Er, withAgentActivityLocalStateLock as Et, listAgentRegistrations as F, projectCodexUsageObservation as Fn, parseAgentControllerRef as Fr, readSavedProfileWorkspaceForAccount as Ft, updateAgentRegistrations as G, emitReconcileCompletedEvidence as Gn, resolveNativeAgentControllerPermissionModeForController as Gr, summarizeSkippedDaemonProfiles as Gt, resolveAgentTargetState as H, checkAntigravityAcpAccount as Hn, resolveAgentExecutionStatus as Hr, createMutableRouteCatalogState as Ht, listAgentTargetStates as I, readCodexAccountUsageObservation as In, peopleComputerContainsDevice as Ir, resolveConfiguredProfileWorkspacePath as It, normalizeAgentIds as J, runRuntimeTask as Jn, supportsSpaceWorkHandoff as Jr, syncRuntimeEventToInflightTaskControlRegistry as Jt, notifyDaemonRouteCatalogChanged as K, emitReconcileStartedEvidence as Kn, resolveSelectableCandidates as Kr, syncDaemonRouteCatalogState as Kt, manageAgentRegistrationInstallation as L, probeClaudeCodeUsageLimits as Ln, projectPeopleComputersToLegacyLocalRuntimes as Lr, resolveConfiguredProfileWorkspacePathForAccount as Lt, addAgentCustomTarget as M, probeCodexAppServerAccount as Mn, isAgentControllerUsageRefreshUnavailable as Mr, normalizeCustomProfileWorkspacePath as Mt, createRegistrationFromCatalogTarget as N, resolveCodexAppServerCompletedTurn as Nn, isAgentExecutionReadyOrConnecting as Nr, readProfileWorkspaceConfig as Nt, syncDeviceRuntimeStateProjection as O, projectCursorUsageLimits as On, createAuthorityOpenMeldServiceRuntimeId as Or, resolveRegistryOriginLaunchCommand as Ot, listAgentCustomTargets as P, verifyCodexAppServerThread as Pn, listAgentControllerPermissionModeOptions as Pr, readProfileWorkspaceConfigForAccount as Pt, resolveLocalRegistryAgentIdFromAgentControllerRef as Q, commitResolvedAgentContext as Qn, MIN_HEARTBEAT_INTERVAL_MS as Qr, createSerialAgentInteractionCallback as Qt, readAgentRuntimeConfigHealth as R, readClaudeNativeVersion as Rn, renderInformationProtectionPrompt as Rr, setCustomProfileWorkspace as Rt, syncProfileWorkspaceState as S, resolveInstalledGrokBuildLaunchCandidates as Sn, buildAgentControllerRef as Sr, unbindProject as St, resolveEffectiveProfileWorkingFolderRuntime as T, loginManagedGrokBot as Tn, compareAgentControllerVersions as Tr, withAgentActivityDeliveryLock as Tt, setAgentRegistrationEnabled as U, isAntigravityAcpLaunchContract as Un, resolveAgentProfileEditCapabilities as Ur, createRouteCatalogFromMutableState as Ut, removeAgentCustomTarget as V, resolveInstalledClaudeCodeLaunchCandidates as Vn, resolveAgentControllerPermissionModeForController as Vr, describeProfileWorkspacePathValidationFailure as Vt, updateAgentCustomTarget as W, emitDriftDetectedEvidence as Wn, resolveEvidenceSyncHealth as Wr, replaceMutableRouteCatalogState as Wt, sortAgentRegistrations as X, buildTaskResultEnvelope as Xn, ADAPTIVE_HEARTBEAT_JITTER_RATIO as Xr, SPACE_ACTION_TARGET_GUIDANCE_LINES as Xt, parseAgentEnabledOption as Y, buildRuntimeWorkspaceFingerprint as Yn, resolveRouteRegistrationReconcileDecision as Yr, SPACE_ACTION_CONTEXT_GUIDANCE_LINES as Yt, repairBuiltinControllerInstall as Z, appendLedgerHistoryEntry as Zn, MAX_HEARTBEAT_INTERVAL_MS as Zr, isDaemonReconcileInProgressError as Zt, loadDaemonRouteCatalog as _, forkOpenCodeServerSession as _n, DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV as _r, removeMissingProjectConnections as _t, buildOpenClawSpaceSessionKey as a, createLocalExecutionSlots as an, withLedgerStateTransaction as ar, isHomebrewCommandPath as at, resolveLocalController as b, GrokBuildAcpTransportError as bn, TASK_KNOWLEDGE_GUIDANCE as br, runIfAgentActivityBindingGenerationIsCurrent as bt, findOpenClawAgentById as c, resolveDispatchContinuityObservation as cn, buildAgentContextLookupKey as cr, ProjectBindingOperationError as ct, resolveOpenClawAuthStatus as d, resolveLatestScopedConversationExecutionState as dn, resolveDispatchSpaceActionMcpServer as dr, hasProjectBindingForPath as dt, applyIntervalJitterMs as ei, normalizeDispatchPostMessageAction as en, removeConversationExecutionState as er, detectInstalledSkillsAgents as et, resolveOpenClawProviderRuntimeWorkingDirectory as f, resolveCatalogSyncSkippedProfilesLogState as fn, buildCliLaunchInvocation as fr, isProjectBound as ft, writeDaemonRouteCatalogCache as g, parseOpenCodeGoUsageResponse as gn, createProviderOriginalError as gr, removeAgentActivityBindingsWhileDeliveryLocked as gt, readDaemonRouteCatalogCache as h, parseOpenRouterUsageResponse as hn, listAgentControllerSupervisedProcessIds as hr, migrateProjectBindingStore as ht, listOpenClawGatewayAgents as i, __toESM as ii, buildLocalServiceDiagnosticsPayload as in, upsertConversationExecutionState as ir, isBunGlobalCommandPath as it, resolveAgentProfilePrimaryAgentControllerReport as j, forkCodexAppServerThread as jn, isAgentControllerUsageAccountUnavailable as jr, ensureOpenMeldManagedProfileWorkspace as jt, createPrimaryBindingReadSession as k, resolveCodexTimeoutMs as kn, getAgentControllerPermissionModeDisplayMetadata as kr, resolveRegistryRuntimeAdapterCapabilitySnapshot as kt, findOpenClawAgentsByWorkspace as l, resolveCompatibleAgentContextMatch as ln, createUnavailableProviderUsageLimits as lr, ProjectBindingStoreUpdateRequiredError as lt, resolveOpenClawLocalBootstrapPaths as m, createLocalAdapterEntries as mn, resolveExecutablePathsOnPath as mr, listProjectConnectionsWithStatus as mt, fetchOpenClawGatewayHealth as n, resolveAdaptiveHeartbeatIntervalMs as ni, mergeOpenClawGatewayVisibility as nn, seedLegacyAgentContext as nr, EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES as nt, normalizeOpenClawSpaceIdPrefix as o, createInflightTaskControlRegistry as on, buildAuthenticatedControlPlaneResponse as or, isNpmGlobalCommandPath as ot, readOpenClawLocalBootstrapState as p, createLocalAdapterContainer as pn, materializeCliLaunchCommand as pr, listProjectBindings as pt, normalizeAgentId as q, DaemonServiceRunError as qn, supportsExecutionContextSelection as qr, normalizeDispatchThreadAction as qt, listOpenClawAgents as r, resolveCatalogSyncIntervalMs as ri, createLocalTaskInterruptSender as rn, settleInflightTask as rr, resolveBuiltinAgentControllerDefinition as rt, slugifyOpenClawNamePart as s, resolveDispatchQueueLogMeta as sn, assertLegacyAgentContextAssociation as sr, isPnpmGlobalCommandPath as st, prepareProviderRuntime as t, pruneStaleLeases as ti, createPendingAgentInteractionRegistry as tn, resolveConversationExecutionStateByLookupKey as tr, resolveSkillsAgentRegistry as tt, matchesExpectedWorkspace as u, resolveCompatibleConversationExecutionState as un, createUnsupportedProviderUsageLimits as ur, bindProject as ut, buildRuntimeRouteTargets as v, readOpenCode2Inventory as vn, isDispatchSpaceActionDeliveryOnly as vr, removeProjectConnection as vt, resolveCurrentEffectiveProfileWorkingFolderRuntime as w, isManagedGrokBotSignedIn as wn, buildWorkingLanguagePromptPlan as wr, resolveLocalProjectConnectionForPath as wt, resolveLocalRuntimeControllerSupport as x, probeGrokBuildAcpInterface as xn, areAgentControllerInterfaceAccountsSame as xr, setDefaultProjectConnection as xt, readLocalEnabledControllers as y, resolveInstalledOpenCodeLaunchCandidates as yn, DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS as yr, resolveProjectBindingForPath as yt, reconcileNewRunnableBuiltinAgentRegistrations as z, resolveClaudeNativeUpdateCommand as zn, renderTaskKnowledgeIndex as zr, setOpenMeldManagedProfileWorkspace as zt };
|
|
35977
36066
|
|
|
35978
|
-
//# sourceMappingURL=prepare-provider-runtime-
|
|
36067
|
+
//# sourceMappingURL=prepare-provider-runtime-CyIGaDTC.js.map
|