openmeld 0.3.233 → 0.3.235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-me-membership-_O3IzRLn.js → add-me-membership-BVt0EFQ2.js} +2 -2
- package/dist/{add-me-membership-_O3IzRLn.js.map → add-me-membership-BVt0EFQ2.js.map} +1 -1
- package/dist/{agents-B5E7c7sQ.js → agents-Bl_W0SLT.js} +9 -9
- package/dist/{agents-B5E7c7sQ.js.map → agents-Bl_W0SLT.js.map} +1 -1
- package/dist/{api-client-foundation-1p1VVFJ_.js → api-client-foundation-BHjffwwr.js} +1 -1
- package/dist/{api-client-foundation-C-RPnq_p.js → api-client-foundation-D6zHrrGV.js} +3 -3
- package/dist/{api-client-foundation-C-RPnq_p.js.map → api-client-foundation-D6zHrrGV.js.map} +1 -1
- package/dist/auth-session-CCLabxRT.js +4 -0
- package/dist/{auth-session-iXCJO5oB.js → auth-session-CjxqNKvh.js} +2 -2
- package/dist/{auth-session-iXCJO5oB.js.map → auth-session-CjxqNKvh.js.map} +1 -1
- package/dist/{channel-BciBrA3Y.js → channel-BW2_rI6u.js} +3 -3
- package/dist/{channel-BciBrA3Y.js.map → channel-BW2_rI6u.js.map} +1 -1
- package/dist/{command-D0pcAIoE.js → command-vUyYaeck.js} +16 -16
- package/dist/{command-D0pcAIoE.js.map → command-vUyYaeck.js.map} +1 -1
- package/dist/{computer-connection-CHP1-0rK.js → computer-connection-LX1R7jD0.js} +2 -2
- package/dist/{computer-connection-CHP1-0rK.js.map → computer-connection-LX1R7jD0.js.map} +1 -1
- package/dist/{computer-connection-review-dHotFqmD.js → computer-connection-review-Bbp4nzXl.js} +5 -5
- package/dist/{computer-connection-review-dHotFqmD.js.map → computer-connection-review-Bbp4nzXl.js.map} +1 -1
- package/dist/{computer-disconnect-B2DLDxWx.js → computer-disconnect-fbLphD7-.js} +7 -7
- package/dist/{computer-disconnect-B2DLDxWx.js.map → computer-disconnect-fbLphD7-.js.map} +1 -1
- package/dist/{computer-setup-continuation-Cv_c1B-7.js → computer-setup-continuation-CcfcMexz.js} +3 -3
- package/dist/{computer-setup-continuation-Cv_c1B-7.js.map → computer-setup-continuation-CcfcMexz.js.map} +1 -1
- package/dist/{context-BnhlFS8m.js → context-D3GnSqg8.js} +3 -3
- package/dist/{context-BnhlFS8m.js.map → context-D3GnSqg8.js.map} +1 -1
- package/dist/control-plane-QqGL-jtT.js.map +1 -1
- package/dist/{daemon-device-id-DbSIqHoZ.js → daemon-device-id-OMqh2F9_.js} +5 -5
- package/dist/{daemon-device-id-DbSIqHoZ.js.map → daemon-device-id-OMqh2F9_.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-DsVVvKJe.js → daemon-lifecycle-journal-DEQHGloF.js} +4 -4
- package/dist/{daemon-lifecycle-journal-DsVVvKJe.js.map → daemon-lifecycle-journal-DEQHGloF.js.map} +1 -1
- package/dist/{daemon-service-runtime-DZI6Ke3_.js → daemon-service-runtime-BDlPNE7y.js} +2 -2
- package/dist/{daemon-service-runtime-DZI6Ke3_.js.map → daemon-service-runtime-BDlPNE7y.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-BgVBlJ4d.js → daemon-service-update-coordinator-D-yjJ2PV.js} +18 -16
- package/dist/{daemon-service-update-coordinator-BgVBlJ4d.js.map → daemon-service-update-coordinator-D-yjJ2PV.js.map} +1 -1
- package/dist/{dispatch-owned-runtime-BeIQetEt.js → dispatch-owned-runtime-FNjbFwSu.js} +50 -617
- package/dist/dispatch-owned-runtime-FNjbFwSu.js.map +1 -0
- package/dist/{dist-BgYBvEBB.js → dist-CJL7LE-y.js} +193 -358
- package/dist/dist-CJL7LE-y.js.map +1 -0
- package/dist/{dist-DQS0XYkb.js → dist-Ccpvj1tf.js} +2 -2
- package/dist/{dist-DQS0XYkb.js.map → dist-Ccpvj1tf.js.map} +1 -1
- package/dist/{dist-z72xYz5Z.js → dist-MpN-h8da.js} +1 -1
- package/dist/{elapsed-time-C7S-6bWV.js → elapsed-time-1d08oEQ3.js} +5 -5
- package/dist/{elapsed-time-C7S-6bWV.js.map → elapsed-time-1d08oEQ3.js.map} +1 -1
- package/dist/{entry-CX24qHnm.js → entry-G1LraPT2.js} +7 -7
- package/dist/{entry-CX24qHnm.js.map → entry-G1LraPT2.js.map} +1 -1
- package/dist/{installation-inventory-B3mwQFEA.js → installation-inventory-BsOTGp_X.js} +3 -3
- package/dist/{installation-inventory-B3mwQFEA.js.map → installation-inventory-BsOTGp_X.js.map} +1 -1
- package/dist/{installer-DnIJ4y3l.js → installer-JpCPmqGj.js} +2 -2
- package/dist/{installer-DnIJ4y3l.js.map → installer-JpCPmqGj.js.map} +1 -1
- package/dist/{meta-api-DgHkiIdr.js → meta-api-ClHCkzZB.js} +4 -4
- package/dist/{meta-api-DgHkiIdr.js.map → meta-api-ClHCkzZB.js.map} +1 -1
- package/dist/{openmeld-kYp99hOl.js → openmeld-BrAKrRtb.js} +32 -32
- package/dist/{openmeld-kYp99hOl.js.map → openmeld-BrAKrRtb.js.map} +1 -1
- package/dist/openmeld-dev-environment-DwdvL7jg.js +24 -0
- package/dist/openmeld-dev-environment-DwdvL7jg.js.map +1 -0
- package/dist/openmeld-dev.js +1 -19
- package/dist/openmeld-dev.js.map +1 -1
- package/dist/{openmeld-maintenance-worker-BqU1Asrm.js → openmeld-maintenance-worker-BuLMqEuI.js} +9 -9
- package/dist/{openmeld-maintenance-worker-BqU1Asrm.js.map → openmeld-maintenance-worker-BuLMqEuI.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-BKJnGR5h.js → openmeld-tools-update-join-3RJrWvrr.js} +4 -4
- package/dist/{openmeld-tools-update-join-BKJnGR5h.js.map → openmeld-tools-update-join-3RJrWvrr.js.map} +1 -1
- package/dist/openmeld.js +4 -4
- package/dist/{prepare-provider-runtime-CD6XRt7X.js → prepare-provider-runtime-Y2WOwFlV.js} +174 -49
- package/dist/prepare-provider-runtime-Y2WOwFlV.js.map +1 -0
- package/dist/{prepare-session-executor-DY2s4FuY.js → prepare-session-executor-B61bBZz0.js} +18 -18
- package/dist/{prepare-session-executor-DY2s4FuY.js.map → prepare-session-executor-B61bBZz0.js.map} +1 -1
- package/dist/{process-channel-CzgOWiuh.js → process-channel-CTPL81j6.js} +2 -2
- package/dist/{process-channel-CzgOWiuh.js.map → process-channel-CTPL81j6.js.map} +1 -1
- package/dist/{runtime-Br4Ga0rJ.js → runtime-CW2rk7-K.js} +7860 -7249
- package/dist/runtime-CW2rk7-K.js.map +1 -0
- package/dist/{runtime-agent-controller-reporting-submission-CQjbBiHh.js → runtime-agent-controller-reporting-submission-DtXqZxol.js} +16 -46
- package/dist/{runtime-agent-controller-reporting-submission-CQjbBiHh.js.map → runtime-agent-controller-reporting-submission-DtXqZxol.js.map} +1 -1
- package/dist/{runtime-transport-D4CVffnp.js → runtime-transport-DyBmX7ds.js} +569 -30
- package/dist/runtime-transport-DyBmX7ds.js.map +1 -0
- package/dist/{service-D9QVc4_y.js → service-BIO-ixp9.js} +68 -38
- package/dist/service-BIO-ixp9.js.map +1 -0
- package/dist/{service-account-authorization-DLhUgGDb.js → service-account-authorization-CdyvPbvg.js} +2 -2
- package/dist/{service-account-authorization-DLhUgGDb.js.map → service-account-authorization-CdyvPbvg.js.map} +1 -1
- package/dist/{service-account-control-DIdQILmo.js → service-account-control-Ddl1E6YF.js} +9 -9
- package/dist/{service-account-control-DIdQILmo.js.map → service-account-control-Ddl1E6YF.js.map} +1 -1
- package/dist/{service-control-capabilities-BvHU_NcX.js → service-control-capabilities-BYmPglLN.js} +1 -1
- package/dist/{service-control-capabilities-CGv5Cuxo.js → service-control-capabilities-CTsm5txF.js} +3 -3
- package/dist/{service-control-capabilities-CGv5Cuxo.js.map → service-control-capabilities-CTsm5txF.js.map} +1 -1
- package/dist/{state-AWe5DSV8.js → state-SRzkI4G2.js} +2 -2
- package/dist/{state-AWe5DSV8.js.map → state-SRzkI4G2.js.map} +1 -1
- package/dist/{runtime-reporting-health-state-a1FUE1S-.js → updates-api-B0f4KyCg.js} +374 -206
- package/dist/updates-api-B0f4KyCg.js.map +1 -0
- package/dist/{upgrade-CcnlL7FH.js → upgrade-BG_Irs5Q.js} +7 -7
- package/dist/{upgrade-CcnlL7FH.js.map → upgrade-BG_Irs5Q.js.map} +1 -1
- package/dist/upgrade-CLdAVKIb.js +4 -0
- package/package.json +11 -11
- package/dist/auth-session-CmjjkLiB.js +0 -4
- package/dist/dispatch-owned-runtime-BeIQetEt.js.map +0 -1
- package/dist/dist-BgYBvEBB.js.map +0 -1
- package/dist/prepare-provider-runtime-CD6XRt7X.js.map +0 -1
- package/dist/runtime-Br4Ga0rJ.js.map +0 -1
- package/dist/runtime-reporting-health-state-a1FUE1S-.js.map +0 -1
- package/dist/runtime-transport-D4CVffnp.js.map +0 -1
- package/dist/service-D9QVc4_y.js.map +0 -1
- package/dist/upgrade-CLnZ4WBF.js +0 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
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";
|
|
4
|
-
import { $t as createLocalRuntimeExpectedRoutesApi, Rt as createAgentProfileBindingApi, t as OpenMeldApiClientHttpError, wi as modelCatalogSchema } from "./dist-
|
|
5
|
-
import {
|
|
6
|
-
import { Ei as resolveCommandAgentWorkActivity, G as isOriginalErrorSafeForMessageDetails, J as openMeldDaemonProviderAccessEvidenceSchema, Qn as normalizeMessageEnvelope, W as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, X as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Y as openMeldDaemonTaskResultEnvelopeWriteSchema, Yn as formatCanonicalMentionLiteral, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, yr as agentInteractionResolutionSchema } from "./runtime-transport-D4CVffnp.js";
|
|
7
|
-
import { J as OPENCLAW_CLI_TIMEOUT_MS$1, d as getAuthSessionState } from "./auth-session-iXCJO5oB.js";
|
|
4
|
+
import { $t as createLocalRuntimeExpectedRoutesApi, Rt as createAgentProfileBindingApi, t as OpenMeldApiClientHttpError, wi as modelCatalogSchema } from "./dist-CJL7LE-y.js";
|
|
5
|
+
import { G as isOriginalErrorSafeForMessageDetails, J as openMeldDaemonProviderAccessEvidenceSchema, Nr as agentInteractionResolutionSchema, W as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, X as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Y as openMeldDaemonTaskResultEnvelopeWriteSchema, fr as normalizeMessageEnvelope, lr as formatCanonicalMentionLiteral, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tt as aiUsageObservationSchema, zi as resolveCommandAgentWorkActivity } from "./runtime-transport-DyBmX7ds.js";
|
|
8
6
|
import { C as conversationExecutionStateSchema, D as normalizeOptionalWorkingDirectory, P as profileWorkspaceModeSchema, T as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, o as openMeldDaemonControlPlaneRequestSchema, s as openMeldDaemonControlPlaneResponseSchema, x as providerDispatchRuntimeContextSchema } from "./control-plane-QqGL-jtT.js";
|
|
7
|
+
import { _ as canonicalizeAgentControllerRef, b as normalizeKnownBuiltinAgentControllerId, d as resolveBuiltinAgentControllerConversationKind, f as HOSTED_CENTER_AGENT_CONTROLLER_REF, g as buildAgentControllerRoutingKey, l as buildAgentControllerConversationRef, m as HOSTED_REMOTE_AGENT_CONTROLLER_REF, p as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, s as runtimeTransportModeSchema, v as canonicalizeBuiltinAgentControllerRef, x as parseAgentControllerRef$1 } from "./controller-contract-DAOCaefz.js";
|
|
8
|
+
import { J as OPENCLAW_CLI_TIMEOUT_MS$1, d as getAuthSessionState } from "./auth-session-CjxqNKvh.js";
|
|
9
9
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
10
10
|
import { n as agentControllerPermissionModeSchema, r as agentControllerCollaborationModeSchema } from "./open-code-permission-DHFJYc_o.js";
|
|
11
|
-
import { $ as touchDaemonCatalogSyncSignal, K as listOpenMeldProfiles, _ as toErrorMessage$20, d as normalizeText$11, g as parseTransportMode$1, gt as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, h as parseStreamingMode$1, ht as resolveCurrentOpenMeldAccountContext, m as parseRuntimeTransportMode, p as parseContextIdMappingSpec, s as emitRunLine, u as normalizeOptionalText$51, vt as daemonRouteCatalogCacheSchema } from "./daemon-device-id-
|
|
11
|
+
import { $ as touchDaemonCatalogSyncSignal, K as listOpenMeldProfiles, _ as toErrorMessage$20, d as normalizeText$11, g as parseTransportMode$1, gt as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, h as parseStreamingMode$1, ht as resolveCurrentOpenMeldAccountContext, m as parseRuntimeTransportMode, p as parseContextIdMappingSpec, s as emitRunLine, u as normalizeOptionalText$51, vt as daemonRouteCatalogCacheSchema } from "./daemon-device-id-OMqh2F9_.js";
|
|
12
12
|
import { c as readWindowsProcessStartFileTime, d as resolveWindowsNativeProcessHelper, f as windowsNativeProcessRequestSchema, l as resolveWindowsPowerShellPath, o as powerShellEncodedArguments, r as isProcessIdentityAlive, t as CURRENT_PROCESS_START_IDENTITY, u as WINDOWS_NATIVE_PROCESS_REQUEST_ENV } from "./process-identity-BRbhGGTM.js";
|
|
13
13
|
import { a as isOpenMeldOrphanedLockError, d as runWithHeldLock, i as isOpenMeldLockError, t as acquireLock } from "./lock-BMI00i2F.js";
|
|
14
14
|
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-0AoeTi3w.js";
|
|
@@ -16,9 +16,9 @@ import { n as normalizeCommandEnvironment } from "./process-environment-BWSFeUu6
|
|
|
16
16
|
import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
|
|
17
17
|
import { m as daemonRuntimeDataPath } from "./daemon-state-Dte9re5V.js";
|
|
18
18
|
import { i as readDaemonServiceContract } from "./daemon-service-contract-COPKbCy_.js";
|
|
19
|
-
import { C as requestLocalSyncRouteCatalog } from "./daemon-lifecycle-journal-
|
|
19
|
+
import { C as requestLocalSyncRouteCatalog } from "./daemon-lifecycle-journal-DEQHGloF.js";
|
|
20
20
|
import { i as resolveWindowsCommandPath, n as quoteWindowsProcessArgument, r as resolvePlatformCommand, t as execPlatformFile } from "./process-launch-B0pHlkV_.js";
|
|
21
|
-
import { d as buildOpenMeldRequestContextFromProfile, t as createCliApiClientFoundation } from "./api-client-foundation-
|
|
21
|
+
import { d as buildOpenMeldRequestContextFromProfile, t as createCliApiClientFoundation } from "./api-client-foundation-D6zHrrGV.js";
|
|
22
22
|
import { createRequire } from "node:module";
|
|
23
23
|
import { createHash, randomUUID } from "node:crypto";
|
|
24
24
|
import { homedir, loadavg, tmpdir } from "node:os";
|
|
@@ -760,7 +760,7 @@ function isAgentControllerPermissionModeControllerId(value) {
|
|
|
760
760
|
return Object.hasOwn(AGENT_CONTROLLER_PERMISSION_MODE_OPTIONS_BY_CONTROLLER_ID, value);
|
|
761
761
|
}
|
|
762
762
|
const AGENT_CONTROLLER_USAGE_LIMIT_SUPPORT_MATRIX = {
|
|
763
|
-
antigravity: "
|
|
763
|
+
antigravity: "unsupported",
|
|
764
764
|
"claude-code": "observational",
|
|
765
765
|
codex: "native",
|
|
766
766
|
cursor: "observational",
|
|
@@ -5685,6 +5685,10 @@ function normalizePermissionKind(value) {
|
|
|
5685
5685
|
const normalized = String(value ?? "").trim().toLowerCase().replace(UNSAFE_PERMISSION_KIND_CHARACTER_RE, "_").replace(EDGE_UNDERSCORE_RE, "");
|
|
5686
5686
|
return normalized.length > 0 ? normalized : null;
|
|
5687
5687
|
}
|
|
5688
|
+
function readAdapterAiUsageObservation(value) {
|
|
5689
|
+
const result = aiUsageObservationSchema.safeParse(value);
|
|
5690
|
+
return result.success ? result.data : null;
|
|
5691
|
+
}
|
|
5688
5692
|
const DEFAULT_GRACEFUL_INTERRUPT_TIMEOUT_MS = 1e4;
|
|
5689
5693
|
const DEFAULT_INTERRUPT_REASON = "service.interrupt";
|
|
5690
5694
|
const DEFAULT_CANCEL_REASON = "service.cancel";
|
|
@@ -5981,9 +5985,14 @@ const extractDispatchTelemetry = (error) => {
|
|
|
5981
5985
|
...isFiniteNumber(telemetry.stdinClosedAtMs) ? { stdinClosedAtMs: telemetry.stdinClosedAtMs } : {},
|
|
5982
5986
|
...telemetry.streamingMode === "final" || telemetry.streamingMode === "stream" ? { streamingMode: telemetry.streamingMode } : {},
|
|
5983
5987
|
...isFiniteNumber(telemetry.timeoutTriggeredAtMs) ? { timeoutTriggeredAtMs: telemetry.timeoutTriggeredAtMs } : {},
|
|
5984
|
-
...tokenUsage ? { tokenUsage } : {}
|
|
5988
|
+
...tokenUsage ? { tokenUsage } : {},
|
|
5989
|
+
...extractAiUsageTelemetry(telemetry.aiUsage)
|
|
5985
5990
|
};
|
|
5986
5991
|
};
|
|
5992
|
+
function extractAiUsageTelemetry(value) {
|
|
5993
|
+
const result = aiUsageObservationSchema.array().safeParse(value);
|
|
5994
|
+
return result.success ? { aiUsage: result.data } : {};
|
|
5995
|
+
}
|
|
5987
5996
|
function extractAdapterTokenUsage(value) {
|
|
5988
5997
|
const usage = toUnknownRecord(value);
|
|
5989
5998
|
const last = extractAdapterTokenUsageBreakdown(usage?.last);
|
|
@@ -9136,37 +9145,6 @@ function normalizeOptionalText$41(value) {
|
|
|
9136
9145
|
return normalized.length > 0 ? normalized : null;
|
|
9137
9146
|
}
|
|
9138
9147
|
//#endregion
|
|
9139
|
-
//#region ../../runtime/adapters/antigravity/dist/usage/antigravity-usage-limits.js
|
|
9140
|
-
const LINE_BREAK_PATTERN = /\r?\n/u;
|
|
9141
|
-
const USAGE_LINE_PATTERN = /^([^\t]+)\tWeekly Limit Remaining\t(\d{1,3})%\t([^\t]+)$/u;
|
|
9142
|
-
function parseAntigravityUsageLimits(input) {
|
|
9143
|
-
const limits = input.output.split(LINE_BREAK_PATTERN).map((line) => parseUsageLine(line, input.observedAt)).filter((limit) => limit !== null);
|
|
9144
|
-
return limits.length > 0 ? limits : createUnavailableProviderUsageLimits(input.observedAt);
|
|
9145
|
-
}
|
|
9146
|
-
function parseUsageLine(line, observedAt) {
|
|
9147
|
-
const match = line.trim().match(USAGE_LINE_PATTERN);
|
|
9148
|
-
if (!match) return null;
|
|
9149
|
-
const [, rawLabel, rawRemainingPercent, rawResetsAt] = match;
|
|
9150
|
-
const remainingPercent = Number(rawRemainingPercent);
|
|
9151
|
-
const resetTime = Date.parse(rawResetsAt ?? "");
|
|
9152
|
-
if (!(rawLabel && Number.isFinite(remainingPercent)) || remainingPercent < 0 || remainingPercent > 100 || !Number.isFinite(resetTime)) return null;
|
|
9153
|
-
const label = rawLabel.trim();
|
|
9154
|
-
const providerId = label.toLowerCase().startsWith("gemini") ? "antigravity-gemini" : "antigravity-other";
|
|
9155
|
-
const usedPercent = 100 - remainingPercent;
|
|
9156
|
-
return {
|
|
9157
|
-
key: `${providerId}:weekly`,
|
|
9158
|
-
label: "Weekly usage",
|
|
9159
|
-
observedAt,
|
|
9160
|
-
provider: {
|
|
9161
|
-
displayName: label,
|
|
9162
|
-
id: providerId
|
|
9163
|
-
},
|
|
9164
|
-
resetsAt: new Date(resetTime).toISOString(),
|
|
9165
|
-
status: remainingPercent === 0 ? "exhausted" : "available",
|
|
9166
|
-
usedPercent
|
|
9167
|
-
};
|
|
9168
|
-
}
|
|
9169
|
-
//#endregion
|
|
9170
9148
|
//#region ../../runtime/adapters/antigravity/dist/index.js
|
|
9171
9149
|
const ANTIGRAVITY_CONVERSATION_BRIDGE_SPEC = resolveBuiltinAdapterConversationBridgeSpec("antigravity");
|
|
9172
9150
|
function createAntigravityAdapter(options = {}) {
|
|
@@ -10848,6 +10826,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
10848
10826
|
streamingMode: input.streamingMode
|
|
10849
10827
|
});
|
|
10850
10828
|
const providerErrorMessages = [];
|
|
10829
|
+
const aiUsage = /* @__PURE__ */ new Map();
|
|
10851
10830
|
const stderrChunks = [];
|
|
10852
10831
|
let firstOutputAtMs = null;
|
|
10853
10832
|
let firstStderrAtMs = null;
|
|
@@ -10930,6 +10909,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
10930
10909
|
resolvedSessionId,
|
|
10931
10910
|
resultMessage
|
|
10932
10911
|
});
|
|
10912
|
+
observeClaudeAiUsage(aiUsage, message);
|
|
10933
10913
|
firstOutputAtMs = nextState.firstOutputAtMs;
|
|
10934
10914
|
latestInteractionOutput = nextState.latestInteractionOutput;
|
|
10935
10915
|
latestOutput = nextState.latestOutput;
|
|
@@ -10944,6 +10924,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
10944
10924
|
}
|
|
10945
10925
|
} catch (error) {
|
|
10946
10926
|
throw toClaudeAgentSdkTransportError({
|
|
10927
|
+
aiUsage: [...aiUsage.values()],
|
|
10947
10928
|
error,
|
|
10948
10929
|
firstOutputAtMs,
|
|
10949
10930
|
firstStderrAtMs,
|
|
@@ -10965,6 +10946,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
10965
10946
|
await previewEmitter.flush();
|
|
10966
10947
|
if (!resultMessage) {
|
|
10967
10948
|
const telemetry = buildClaudeAgentSdkTelemetry({
|
|
10949
|
+
aiUsage: [...aiUsage.values()],
|
|
10968
10950
|
firstOutputAtMs,
|
|
10969
10951
|
firstStderrAtMs,
|
|
10970
10952
|
invokedAtMs,
|
|
@@ -10989,6 +10971,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
10989
10971
|
}
|
|
10990
10972
|
if (isFailedResultMessage(resultMessage)) {
|
|
10991
10973
|
const telemetry = buildClaudeAgentSdkTelemetry({
|
|
10974
|
+
aiUsage: [...aiUsage.values()],
|
|
10992
10975
|
firstOutputAtMs,
|
|
10993
10976
|
firstStderrAtMs,
|
|
10994
10977
|
invokedAtMs,
|
|
@@ -11021,6 +11004,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
11021
11004
|
errorType: "adapter",
|
|
11022
11005
|
message: "runtime.output.empty: claude finished without agent output",
|
|
11023
11006
|
telemetry: buildClaudeAgentSdkTelemetry({
|
|
11007
|
+
aiUsage: [...aiUsage.values()],
|
|
11024
11008
|
firstOutputAtMs,
|
|
11025
11009
|
firstStderrAtMs,
|
|
11026
11010
|
invokedAtMs,
|
|
@@ -11034,6 +11018,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
11034
11018
|
output,
|
|
11035
11019
|
sessionId: canonicalRepairSessionId ?? normalizeOptionalText$34(resolvedSessionId),
|
|
11036
11020
|
telemetry: buildClaudeAgentSdkTelemetry({
|
|
11021
|
+
aiUsage: [...aiUsage.values()],
|
|
11037
11022
|
firstOutputAtMs,
|
|
11038
11023
|
firstStderrAtMs,
|
|
11039
11024
|
invokedAtMs,
|
|
@@ -11069,9 +11054,36 @@ async function emitClaudeCodeUsageLimits(input) {
|
|
|
11069
11054
|
usageLimits
|
|
11070
11055
|
});
|
|
11071
11056
|
}
|
|
11057
|
+
function observeClaudeAiUsage(observations, message) {
|
|
11058
|
+
if (message.type !== "assistant" || !message.message.usage) return;
|
|
11059
|
+
const native = message.message;
|
|
11060
|
+
const usage = native.usage;
|
|
11061
|
+
const eventId = `claude:${message.session_id}:${native.id}`;
|
|
11062
|
+
const cacheRead = usage.cache_read_input_tokens ?? 0;
|
|
11063
|
+
const cacheWrite = usage.cache_creation_input_tokens ?? 0;
|
|
11064
|
+
const inputTokens = usage.input_tokens + cacheRead + cacheWrite;
|
|
11065
|
+
const observation = readAdapterAiUsageObservation({
|
|
11066
|
+
eventId,
|
|
11067
|
+
provider: "anthropic",
|
|
11068
|
+
model: native.model,
|
|
11069
|
+
source: "claude_message",
|
|
11070
|
+
occurredAtMs: observations.get(eventId)?.occurredAtMs ?? Date.now(),
|
|
11071
|
+
tokens: {
|
|
11072
|
+
input: inputTokens,
|
|
11073
|
+
output: usage.output_tokens,
|
|
11074
|
+
cacheRead,
|
|
11075
|
+
cacheWrite,
|
|
11076
|
+
reasoning: null,
|
|
11077
|
+
total: inputTokens + usage.output_tokens
|
|
11078
|
+
},
|
|
11079
|
+
cost: null
|
|
11080
|
+
});
|
|
11081
|
+
if (observation) observations.set(eventId, observation);
|
|
11082
|
+
}
|
|
11072
11083
|
function buildClaudeAgentSdkTelemetry(input) {
|
|
11073
11084
|
return {
|
|
11074
11085
|
completedAtMs: Date.now(),
|
|
11086
|
+
...input.aiUsage ? { aiUsage: input.aiUsage } : {},
|
|
11075
11087
|
...input.firstOutputAtMs === null ? {} : { firstOutputAtMs: input.firstOutputAtMs },
|
|
11076
11088
|
...input.firstStderrAtMs === null ? {} : { firstStderrAtMs: input.firstStderrAtMs },
|
|
11077
11089
|
invokedAtMs: input.invokedAtMs,
|
|
@@ -11355,6 +11367,7 @@ function toClaudeAgentSdkTransportError(input) {
|
|
|
11355
11367
|
errorType: "timeout",
|
|
11356
11368
|
message: `${code}: claude timed out after ${input.timeoutMs ?? 0}ms`,
|
|
11357
11369
|
telemetry: buildClaudeAgentSdkTelemetry({
|
|
11370
|
+
aiUsage: input.aiUsage,
|
|
11358
11371
|
firstOutputAtMs: input.firstOutputAtMs,
|
|
11359
11372
|
firstStderrAtMs: input.firstStderrAtMs,
|
|
11360
11373
|
invokedAtMs: input.invokedAtMs,
|
|
@@ -11378,6 +11391,7 @@ function toClaudeAgentSdkTransportError(input) {
|
|
|
11378
11391
|
...projectClaudeOriginalError(classifiedFailure),
|
|
11379
11392
|
...classifiedFailure.providerAccessEvidence ? { providerAccessEvidence: classifiedFailure.providerAccessEvidence } : {},
|
|
11380
11393
|
telemetry: buildClaudeAgentSdkTelemetry({
|
|
11394
|
+
aiUsage: input.aiUsage,
|
|
11381
11395
|
firstOutputAtMs: input.firstOutputAtMs,
|
|
11382
11396
|
firstStderrAtMs: input.firstStderrAtMs,
|
|
11383
11397
|
invokedAtMs: input.invokedAtMs,
|
|
@@ -12334,12 +12348,22 @@ function resolveFileAccess(input) {
|
|
|
12334
12348
|
const isRepair = input.executionMode === "repair";
|
|
12335
12349
|
if (input.boundary.executionContextAccess) {
|
|
12336
12350
|
if (input.boundary.mode !== "only_selected_folders") throw new Error("execution_context.file_access_unverified");
|
|
12351
|
+
if (input.boundary.gitMetadata && !Object.values(input.boundary.gitMetadata).every((path) => isAbsolute(path) && input.boundary.folders.some((root) => {
|
|
12352
|
+
const child = relative(root, path);
|
|
12353
|
+
return child === "" || !isAbsolute(child) && child !== ".." && !child.startsWith(`..${sep}`);
|
|
12354
|
+
}))) throw new Error("execution_context.file_access_unverified");
|
|
12337
12355
|
return {
|
|
12338
12356
|
extendsProfile: null,
|
|
12339
12357
|
filesystemEntries: [
|
|
12340
12358
|
"\":root\" = \"deny\"",
|
|
12341
12359
|
"\":minimal\" = \"read\"",
|
|
12342
|
-
...buildFolderEntries(input.boundary.folders, resolveCodexExecutionContextAccess(input.boundary, input.executionMode) === "workspace" ? "write" : "read")
|
|
12360
|
+
...buildFolderEntries(input.boundary.folders, resolveCodexExecutionContextAccess(input.boundary, input.executionMode) === "workspace" ? "write" : "read"),
|
|
12361
|
+
...input.boundary.gitMetadata ? buildFolderEntries([
|
|
12362
|
+
input.boundary.gitMetadata.hooksPath,
|
|
12363
|
+
input.boundary.gitMetadata.worktreeGitPointerPath,
|
|
12364
|
+
input.boundary.gitMetadata.commonDirectoryPointerPath,
|
|
12365
|
+
input.boundary.gitMetadata.gitDirectoryPointerPath
|
|
12366
|
+
], "read") : []
|
|
12343
12367
|
],
|
|
12344
12368
|
fullNetwork: !isRepair && input.permissionMode === "codex:fullAccess"
|
|
12345
12369
|
};
|
|
@@ -12919,6 +12943,7 @@ async function invokeCodexAppServerTransport(input) {
|
|
|
12919
12943
|
});
|
|
12920
12944
|
session.emitProviderConversationObserved(continuityThreadId);
|
|
12921
12945
|
session.observeReasoningForThread(executionThreadId);
|
|
12946
|
+
session.observeUsageForThread(executionThreadId, threadContext.model);
|
|
12922
12947
|
throwIfCodexDispatchCancelled(input.cancellationSignal);
|
|
12923
12948
|
const completedTurn = await startAndAwaitAppServerTurn({
|
|
12924
12949
|
cancellationSignal: input.cancellationSignal,
|
|
@@ -13148,10 +13173,26 @@ async function forkCodexAppServerThread(input) {
|
|
|
13148
13173
|
initialized,
|
|
13149
13174
|
threadId: sourceThreadId
|
|
13150
13175
|
});
|
|
13176
|
+
let disableSpaceMcp = false;
|
|
13177
|
+
if (nativeCarrier) {
|
|
13178
|
+
const servers = toRecord$7(toRecord$7(toRecord$7(await session.requestControl("config/read", {
|
|
13179
|
+
cwd: input.targetWorkingDirectory ?? input.codexWorkdir,
|
|
13180
|
+
includeLayers: false
|
|
13181
|
+
}, {
|
|
13182
|
+
code: "runtime.control_timeout",
|
|
13183
|
+
operation: "config/read"
|
|
13184
|
+
}))?.config)?.mcp_servers);
|
|
13185
|
+
if (!servers) throw new CodexAppServerTransportError({
|
|
13186
|
+
code: "context.space_tool_carrier_unverified",
|
|
13187
|
+
errorType: "config",
|
|
13188
|
+
message: "The effective Codex MCP configuration could not be verified."
|
|
13189
|
+
});
|
|
13190
|
+
disableSpaceMcp = Object.hasOwn(servers, OPENMELD_SPACE_ACTION_MCP_SERVER_ID);
|
|
13191
|
+
}
|
|
13151
13192
|
const threadId = readThreadIdFromResponse(await session.requestControl("thread/fork", {
|
|
13152
13193
|
excludeTurns: true,
|
|
13153
13194
|
threadId: sourceThreadId,
|
|
13154
|
-
...
|
|
13195
|
+
...disableSpaceMcp ? { config: { [`mcp_servers.${OPENMELD_SPACE_ACTION_MCP_SERVER_ID}.enabled`]: false } } : {},
|
|
13155
13196
|
...input.computerFileAccessBoundary?.executionContextAccess ? {
|
|
13156
13197
|
permissions: CODEX_FILE_ACCESS_PERMISSION_PROFILE,
|
|
13157
13198
|
approvalPolicy: "never",
|
|
@@ -13426,6 +13467,11 @@ var CodexAppServerSession = class {
|
|
|
13426
13467
|
#interactionFailure = null;
|
|
13427
13468
|
#lineBuffer = "";
|
|
13428
13469
|
#latestTokenUsage = null;
|
|
13470
|
+
#usageThreadId = null;
|
|
13471
|
+
#usageModel = null;
|
|
13472
|
+
#usageTurnId = null;
|
|
13473
|
+
#usageTotalByThread = /* @__PURE__ */ new Map();
|
|
13474
|
+
#aiUsage = /* @__PURE__ */ new Map();
|
|
13429
13475
|
#nextRequestId = 1;
|
|
13430
13476
|
#processTimeout = null;
|
|
13431
13477
|
#startupTimeoutMs;
|
|
@@ -13974,7 +14020,8 @@ var CodexAppServerSession = class {
|
|
|
13974
14020
|
...this.#lifecycle.stdinClosedAtMs === null ? {} : { stdinClosedAtMs: this.#lifecycle.stdinClosedAtMs },
|
|
13975
14021
|
streamingMode: input.streamingMode,
|
|
13976
14022
|
...this.#lifecycle.timeoutTriggeredAtMs === null ? {} : { timeoutTriggeredAtMs: this.#lifecycle.timeoutTriggeredAtMs },
|
|
13977
|
-
...this.#latestTokenUsage ? { tokenUsage: this.#latestTokenUsage } : {}
|
|
14023
|
+
...this.#latestTokenUsage ? { tokenUsage: this.#latestTokenUsage } : {},
|
|
14024
|
+
aiUsage: [...this.#aiUsage.values()]
|
|
13978
14025
|
};
|
|
13979
14026
|
}
|
|
13980
14027
|
readCollectedAgentMessageDeltaText() {
|
|
@@ -14064,13 +14111,46 @@ var CodexAppServerSession = class {
|
|
|
14064
14111
|
}
|
|
14065
14112
|
}
|
|
14066
14113
|
#observeContextTelemetry(message) {
|
|
14114
|
+
const params = toRecord$7(message.params);
|
|
14115
|
+
if (message.method === "turn/started" && params?.threadId === this.#usageThreadId) this.#usageTurnId = normalizeOptionalText$30(toRecord$7(params.turn)?.id);
|
|
14116
|
+
if (message.method === "model/rerouted" && params?.threadId === this.#usageThreadId) this.#usageModel = normalizeOptionalText$30(params.toModel);
|
|
14067
14117
|
if (message.method === "thread/tokenUsage/updated") {
|
|
14068
14118
|
const tokenUsage = readCodexTokenUsage(toRecord$7(message.params)?.tokenUsage);
|
|
14069
|
-
if (tokenUsage)
|
|
14119
|
+
if (tokenUsage) {
|
|
14120
|
+
this.#latestTokenUsage = tokenUsage;
|
|
14121
|
+
this.#observeAiUsage(params, tokenUsage);
|
|
14122
|
+
}
|
|
14070
14123
|
return;
|
|
14071
14124
|
}
|
|
14072
14125
|
if ((message.method === "item/started" || message.method === "item/completed") && toRecord$7(toRecord$7(message.params)?.item)?.type === "contextCompaction") this.#contextCompactionObserved = true;
|
|
14073
14126
|
}
|
|
14127
|
+
#observeAiUsage(params, tokenUsage) {
|
|
14128
|
+
const threadId = normalizeOptionalText$30(params?.threadId);
|
|
14129
|
+
if (!threadId) return;
|
|
14130
|
+
const previousTotal = this.#usageTotalByThread.get(threadId);
|
|
14131
|
+
this.#usageTotalByThread.set(threadId, tokenUsage.total.totalTokens);
|
|
14132
|
+
const turnId = normalizeOptionalText$30(params?.turnId);
|
|
14133
|
+
if (threadId !== this.#usageThreadId || !turnId || turnId !== this.#usageTurnId || previousTotal === tokenUsage.total.totalTokens) return;
|
|
14134
|
+
const eventId = `codex:${threadId}:${turnId}:${tokenUsage.total.totalTokens}`;
|
|
14135
|
+
if (this.#aiUsage.has(eventId)) return;
|
|
14136
|
+
const usage = tokenUsage.last;
|
|
14137
|
+
this.#aiUsage.set(eventId, {
|
|
14138
|
+
eventId,
|
|
14139
|
+
provider: "openai",
|
|
14140
|
+
model: this.#usageModel,
|
|
14141
|
+
source: "codex_event",
|
|
14142
|
+
occurredAtMs: Date.now(),
|
|
14143
|
+
tokens: {
|
|
14144
|
+
input: usage.inputTokens,
|
|
14145
|
+
output: usage.outputTokens,
|
|
14146
|
+
cacheRead: usage.cachedInputTokens,
|
|
14147
|
+
cacheWrite: usage.cacheWriteInputTokens ?? null,
|
|
14148
|
+
reasoning: usage.reasoningOutputTokens,
|
|
14149
|
+
total: usage.totalTokens
|
|
14150
|
+
},
|
|
14151
|
+
cost: null
|
|
14152
|
+
});
|
|
14153
|
+
}
|
|
14074
14154
|
async #handleServerRequest(message) {
|
|
14075
14155
|
const id = message.id;
|
|
14076
14156
|
if (!(typeof id === "number" || typeof id === "string")) return;
|
|
@@ -14209,6 +14289,10 @@ var CodexAppServerSession = class {
|
|
|
14209
14289
|
observeReasoningForThread(threadId) {
|
|
14210
14290
|
this.#reasoningThreadId = threadId;
|
|
14211
14291
|
}
|
|
14292
|
+
observeUsageForThread(threadId, model) {
|
|
14293
|
+
this.#usageThreadId = threadId;
|
|
14294
|
+
this.#usageModel = model;
|
|
14295
|
+
}
|
|
14212
14296
|
#observeReasoningSummary(payload) {
|
|
14213
14297
|
const params = toRecord$7(payload);
|
|
14214
14298
|
if (!this.#reasoningThreadId || params?.threadId !== this.#reasoningThreadId || typeof params.turnId !== "string" || typeof params.itemId !== "string" || typeof params.summaryIndex !== "number" || typeof params.delta !== "string" || params.delta.length === 0) return;
|
|
@@ -22762,6 +22846,7 @@ const SERVER_PROCESS_KILL_GRACE_MS = 1e3;
|
|
|
22762
22846
|
const SERVER_PROCESS_CLOSE_TIMEOUT_MS = 2e3;
|
|
22763
22847
|
const SERVER_READY_LINE_PATTERN = /^opencode server listening on (https?:\/\/[^\s]+)$/;
|
|
22764
22848
|
var OpenCodeServerTransportError = class extends Error {
|
|
22849
|
+
telemetry;
|
|
22765
22850
|
code;
|
|
22766
22851
|
errorType;
|
|
22767
22852
|
originalError;
|
|
@@ -22818,7 +22903,14 @@ async function invokeOpenCodeServerTransport(input) {
|
|
|
22818
22903
|
streamingMode: input.streamingMode ?? "final"
|
|
22819
22904
|
});
|
|
22820
22905
|
} catch (error) {
|
|
22821
|
-
|
|
22906
|
+
const failure = toOpenCodeServerTransportError(error, server.readStderr());
|
|
22907
|
+
failure.telemetry = server.buildTelemetry({
|
|
22908
|
+
invokedAtMs,
|
|
22909
|
+
previewEmitted: false,
|
|
22910
|
+
resumedContext: normalizeOptionalText$9(input.sessionId) !== null,
|
|
22911
|
+
streamingMode: input.streamingMode ?? "final"
|
|
22912
|
+
});
|
|
22913
|
+
throw failure;
|
|
22822
22914
|
} finally {
|
|
22823
22915
|
await server.close();
|
|
22824
22916
|
}
|
|
@@ -23059,6 +23151,7 @@ async function runOpenCodeServerTurn(input) {
|
|
|
23059
23151
|
const eventFailure = createDeferred();
|
|
23060
23152
|
const turnCompletion = createDeferred();
|
|
23061
23153
|
const turnState = {
|
|
23154
|
+
observeUsage: (message) => input.server.observeUsage(message),
|
|
23062
23155
|
acceptedSessionIds: /* @__PURE__ */ new Set([sessionId]),
|
|
23063
23156
|
assistantMessageIds: /* @__PURE__ */ new Set(),
|
|
23064
23157
|
promptAccepted: false,
|
|
@@ -23317,6 +23410,7 @@ function observeOpenCodeTurnLifecycle(turnState, eventType, properties) {
|
|
|
23317
23410
|
if (turnState.promptDispatchStarted && turnState.promptMessageId === null && message?.role === "user" && messageSessionId === turnState.rootSessionId && messageId) turnState.promptMessageId = messageId;
|
|
23318
23411
|
if (messageId === turnState.promptMessageId) turnState.promptMessageObserved = true;
|
|
23319
23412
|
if (message?.role === "assistant" && normalizeOptionalText$9(message.parentID) === turnState.promptMessageId && messageId) turnState.assistantMessageIds.add(messageId);
|
|
23413
|
+
if (message?.role === "assistant" && (normalizeOptionalText$9(message.parentID) === turnState.promptMessageId || messageSessionId !== turnState.rootSessionId && messageSessionId !== null && turnState.acceptedSessionIds.has(messageSessionId))) turnState.observeUsage(message);
|
|
23320
23414
|
return;
|
|
23321
23415
|
}
|
|
23322
23416
|
const isRootSession = normalizeOptionalText$9(properties.sessionID) === turnState.rootSessionId;
|
|
@@ -23435,6 +23529,7 @@ function throwInteractionFailure(failure) {
|
|
|
23435
23529
|
});
|
|
23436
23530
|
}
|
|
23437
23531
|
var OpenCodeServerProcess = class {
|
|
23532
|
+
#aiUsage = /* @__PURE__ */ new Map();
|
|
23438
23533
|
#env;
|
|
23439
23534
|
#failure = createDeferred();
|
|
23440
23535
|
#launchContract;
|
|
@@ -23698,8 +23793,38 @@ var OpenCodeServerProcess = class {
|
|
|
23698
23793
|
});
|
|
23699
23794
|
});
|
|
23700
23795
|
}
|
|
23796
|
+
observeUsage(message) {
|
|
23797
|
+
const completedAt = toRecord$1(message.time)?.completed;
|
|
23798
|
+
if (typeof completedAt !== "number") return;
|
|
23799
|
+
const tokens = toRecord$1(message.tokens);
|
|
23800
|
+
const cache = toRecord$1(tokens?.cache);
|
|
23801
|
+
if (!(tokens && typeof tokens.input === "number" && typeof tokens.output === "number" && typeof tokens.reasoning === "number" && typeof cache?.read === "number" && typeof cache.write === "number")) return;
|
|
23802
|
+
const inputTokens = tokens.input + cache.read + cache.write;
|
|
23803
|
+
const outputTokens = tokens.output + tokens.reasoning;
|
|
23804
|
+
const observation = readAdapterAiUsageObservation({
|
|
23805
|
+
eventId: `opencode:${message.sessionID}:${message.id}`,
|
|
23806
|
+
provider: message.providerID,
|
|
23807
|
+
model: message.modelID,
|
|
23808
|
+
source: "opencode_message",
|
|
23809
|
+
occurredAtMs: completedAt,
|
|
23810
|
+
tokens: {
|
|
23811
|
+
input: inputTokens,
|
|
23812
|
+
output: outputTokens,
|
|
23813
|
+
cacheRead: cache.read,
|
|
23814
|
+
cacheWrite: cache.write,
|
|
23815
|
+
reasoning: tokens.reasoning,
|
|
23816
|
+
total: tokens.total ?? inputTokens + outputTokens
|
|
23817
|
+
},
|
|
23818
|
+
cost: typeof message.cost === "number" ? {
|
|
23819
|
+
nanoUsd: Math.round(message.cost * 1e9),
|
|
23820
|
+
kind: "provider_estimate"
|
|
23821
|
+
} : null
|
|
23822
|
+
});
|
|
23823
|
+
if (observation) this.#aiUsage.set(observation.eventId, observation);
|
|
23824
|
+
}
|
|
23701
23825
|
buildTelemetry(input) {
|
|
23702
23826
|
return {
|
|
23827
|
+
aiUsage: [...this.#aiUsage.values()],
|
|
23703
23828
|
completedAtMs: Date.now(),
|
|
23704
23829
|
...this.#lifecycle.exitCode === null ? {} : { exitCode: this.#lifecycle.exitCode },
|
|
23705
23830
|
...this.#lifecycle.exitObservedAtMs === null ? {} : { exitObservedAtMs: this.#lifecycle.exitObservedAtMs },
|
|
@@ -31472,9 +31597,9 @@ function createModelCatalogReadSession(input) {
|
|
|
31472
31597
|
async function readModelCatalogOnce(baseUrl) {
|
|
31473
31598
|
try {
|
|
31474
31599
|
const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
|
|
31475
|
-
import("./dist-
|
|
31600
|
+
import("./dist-MpN-h8da.js"),
|
|
31476
31601
|
import("./base-url-Bdjp-5vy.js"),
|
|
31477
|
-
import("./api-client-foundation-
|
|
31602
|
+
import("./api-client-foundation-BHjffwwr.js")
|
|
31478
31603
|
]);
|
|
31479
31604
|
if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
|
|
31480
31605
|
const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
|
|
@@ -33330,6 +33455,6 @@ async function prepareProviderRuntime(input, options = {}) {
|
|
|
33330
33455
|
return await preparer(input);
|
|
33331
33456
|
}
|
|
33332
33457
|
//#endregion
|
|
33333
|
-
export { canManageRegistryAgentSkillTargets as $,
|
|
33458
|
+
export { canManageRegistryAgentSkillTargets as $, resolveExecutablePathsOnPath as $n, mergeOpenClawGatewayVisibility as $t, createExpectedRoutesReadSession as A, emitReconcileCompletedEvidence as An, ADAPTIVE_HEARTBEAT_JITTER_RATIO as Ar, ensureOpenMeldManagedProfileWorkspace as At, reconcileNewRunnableBuiltinAgentsForSetup as B, resolveConversationExecutionStateByLookupKey as Bn, createMutableRouteCatalogState as Bt, createModelCatalogReadSession as C, probeCodexAppServerAccount as Cn, resolveAgentControllerPermissionModeForController as Cr, resolveLocalProjectConnectionForPath as Ct, NO_LOCAL_AGENTS_NEED_OPENMELD_SERVICE_REASON as D, probeClaudeCodeUsageLimits as Dn, resolveNativeAgentControllerPermissionModeForController as Dr, resolveRegistryOriginLaunchCommand as Dt, resolveProfileWorkspaceRuntime as E, projectCodexUsageLimits as En, resolveEvidenceSyncHealth as Er, listBuiltinAgentsRegistryEntries as Et, listAgentRegistrations as F, buildTaskResultEnvelope as Fn, pruneStaleLeases as Fr, resolveConfiguredProfileWorkspacePathForAccount as Ft, updateAgentRegistrations as G, buildAuthenticatedControlPlaneResponse as Gn, syncRuntimeEventToInflightTaskControlRegistry as Gt, resolveAgentTargetState as H, settleInflightTask as Hn, summarizeSkippedDaemonProfiles as Ht, listAgentTargetStates as I, appendLedgerHistoryEntry as In, resolveAdaptiveHeartbeatIntervalMs as Ir, setCustomProfileWorkspace as It, normalizeAgentIds as J, createUnavailableProviderUsageLimits as Jn, isDaemonReconcileInProgressError as Jt, notifyDaemonRouteCatalogChanged as K, assertLegacyAgentContextAssociation as Kn, SPACE_ACTION_CONTEXT_GUIDANCE_LINES as Kt, manageAgentRegistrationInstallation as L, commitResolvedAgentContext as Ln, resolveCatalogSyncIntervalMs as Lr, setOpenMeldManagedProfileWorkspace as Lt, addAgentCustomTarget as M, DaemonServiceRunError as Mn, MIN_HEARTBEAT_INTERVAL_MS as Mr, readProfileWorkspaceConfig as Mt, createRegistrationFromCatalogTarget as N, runRuntimeTask as Nn, applyAcceptedLeases as Nr, readProfileWorkspaceConfigForAccount as Nt, syncDeviceRuntimeStateProjection as O, resolveInstalledClaudeCodeLaunchCandidates as On, resolveSelectableCandidates as Or, resolveRegistryRuntimeAdapterCapabilitySnapshot as Ot, listAgentCustomTargets as P, buildRuntimeWorkspaceFingerprint as Pn, applyIntervalJitterMs as Pr, resolveConfiguredProfileWorkspacePath as Pt, resolveLocalRegistryAgentIdFromAgentControllerRef as Q, materializeCliLaunchCommand as Qn, createPendingAgentInteractionRegistry as Qt, readAgentRuntimeConfigHealth as R, loadLedgerState as Rn, compareAgentControllerRefsForDisplay as Rr, validateCustomProfileWorkspacePath as Rt, syncProfileWorkspaceState as S, forkCodexAppServerThread as Sn, renderWorkingLanguagePrompt as Sr, canonicalizeLocalProjectPath as St, resolveEffectiveProfileWorkingFolderRuntime as T, verifyCodexAppServerThread as Tn, resolveAgentProfileEditCapabilities as Tr, withAgentActivityLocalStateLock as Tt, setAgentRegistrationEnabled as U, upsertConversationExecutionState as Un, syncDaemonRouteCatalogState as Ut, removeAgentCustomTarget as V, seedLegacyAgentContext as Vn, createRouteCatalogFromMutableState as Vt, updateAgentCustomTarget as W, withLedgerStateTransaction as Wn, normalizeDispatchThreadAction as Wt, sortAgentRegistrations as X, resolveDispatchSpaceActionMcpServer as Xn, buildDispatchReplyContextSummary as Xt, parseAgentEnabledOption as Y, createUnsupportedProviderUsageLimits as Yn, createSerialAgentInteractionCallback as Yt, repairBuiltinControllerInstall as Z, buildCliLaunchInvocation as Zn, normalizeDispatchPostMessageAction as Zt, loadDaemonRouteCatalog as _, probeGrokBuildAcpInterface as _n, listAgentControllerPermissionModeOptions as _r, removeProjectConnection as _t, buildOpenClawSpaceSessionKey as a, resolveDispatchContinuityObservation as an, areAgentControllerInterfaceAccountsSame as ar, isHomebrewCommandPath as at, resolveLocalController as b, resolveCodexTimeoutMs as bn, projectPeopleComputersToLegacyLocalRuntimes as br, setDefaultProjectConnection as bt, findOpenClawAgentById as c, resolveLatestScopedConversationExecutionState as cn, buildWorkingLanguagePromptPlan as cr, ProjectBindingOperationError as ct, resolveOpenClawAuthStatus as d, createLocalAdapterEntries as dn, createAuthorityOpenMeldServiceRuntimeId as dr, isProjectBound as dt, createLocalTaskInterruptSender as en, listAgentControllerSupervisedProcessIds as er, detectInstalledSkillsAgents as et, resolveOpenClawProviderRuntimeWorkingDirectory as f, parseOpenRouterUsageResponse as fn, getAgentControllerPermissionModeDisplayMetadata as fr, listProjectBindings as ft, writeDaemonRouteCatalogCache as g, GrokBuildAcpTransportError as gn, isAgentExecutionReadyOrConnecting as gr, removeMissingProjectConnections as gt, readDaemonRouteCatalogCache as h, resolveInstalledOpenCodeLaunchCandidates as hn, isAgentControllerUsageRefreshUnavailable as hr, removeAgentActivityBindingsWhileDeliveryLocked as ht, listOpenClawGatewayAgents as i, resolveDispatchQueueLogMeta as in, DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS as ir, isBunGlobalCommandPath as it, resolveAgentProfilePrimaryAgentControllerReport as j, emitReconcileStartedEvidence as jn, MAX_HEARTBEAT_INTERVAL_MS as jr, normalizeCustomProfileWorkspacePath as jt, createPrimaryBindingReadSession as k, emitDriftDetectedEvidence as kn, resolveRouteRegistrationReconcileDecision as kr, resolveRegistryRuntimeAdapterContractByAgentControllerRef as kt, findOpenClawAgentsByWorkspace as l, resolveCatalogSyncSkippedProfilesLogState as ln, createAgentControllerInterfaceDisplayRows as lr, ProjectBindingStoreUpdateRequiredError as lt, resolveOpenClawLocalBootstrapPaths as m, forkOpenCodeServerSession as mn, isAgentControllerUsageAccountUnavailable as mr, migrateProjectBindingStore as mt, fetchOpenClawGatewayHealth as n, createLocalExecutionSlots as nn, DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV as nr, EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES as nt, normalizeOpenClawSpaceIdPrefix as o, resolveCompatibleAgentContextMatch as on, buildAgentControllerRef as or, isNpmGlobalCommandPath as ot, readOpenClawLocalBootstrapState as p, parseOpenCodeGoUsageResponse as pn, getAgentControllerPermissionModeFieldLabel as pr, listProjectConnectionsWithStatus as pt, normalizeAgentId as q, buildAgentContextLookupKey as qn, SPACE_ACTION_TARGET_GUIDANCE_LINES as qt, listOpenClawAgents as r, createInflightTaskControlRegistry as rn, isDispatchSpaceActionDeliveryOnly as rr, resolveBuiltinAgentControllerDefinition as rt, slugifyOpenClawNamePart as s, resolveCompatibleConversationExecutionState as sn, buildInformationProtectionPromptPlan as sr, isPnpmGlobalCommandPath as st, prepareProviderRuntime as t, buildLocalServiceDiagnosticsPayload as tn, createProviderOriginalError as tr, resolveSkillsAgentRegistry as tt, matchesExpectedWorkspace as u, createLocalAdapterContainer as un, createAgentExecutionStatusDisplayRows as ur, bindProject as ut, buildRuntimeRouteTargets as v, resolveInstalledGrokBuildLaunchCandidates as vn, parseAgentControllerRef as vr, resolveProjectBindingForPath as vt, resolveCurrentEffectiveProfileWorkingFolderRuntime as w, resolveCodexAppServerCompletedTurn as wn, resolveAgentExecutionStatus as wr, withAgentActivityDeliveryLock as wt, resolveLocalRuntimeControllerSupport as x, resolveInstalledCodexLaunchCandidates as xn, renderInformationProtectionPrompt as xr, unbindProject as xt, readLocalEnabledControllers as y, projectCursorUsageLimits as yn, peopleComputerContainsDevice as yr, runIfAgentActivityBindingGenerationIsCurrent as yt, reconcileNewRunnableBuiltinAgentRegistrations as z, removeConversationExecutionState as zn, resolveBuiltinAgentControllerBrand as zr, describeProfileWorkspacePathValidationFailure as zt };
|
|
33334
33459
|
|
|
33335
|
-
//# sourceMappingURL=prepare-provider-runtime-
|
|
33460
|
+
//# sourceMappingURL=prepare-provider-runtime-Y2WOwFlV.js.map
|