openpond 0.0.65 → 0.0.66
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/chunks/{app-layer-NCSTDSNQ.js → app-layer-MAATABDM.js} +2 -2
- package/dist/chunks/{app-server-runtime-6PDQHOBE.js → app-server-runtime-OW2IOMTR.js} +7 -7
- package/dist/chunks/{apps-HEG7FEEV.js → apps-L23POEUT.js} +2 -2
- package/dist/chunks/{chunk-EWP6VGHP.js → chunk-2N57HMVR.js} +1 -1
- package/dist/chunks/{chunk-BRLUAT6S.js → chunk-42WUHGKD.js} +61 -3
- package/dist/chunks/{chunk-JMHOO2IG.js → chunk-BPII37IS.js} +46 -4
- package/dist/chunks/{chunk-OYWTQABY.js → chunk-CWCMYSX2.js} +8 -0
- package/dist/chunks/{chunk-B63GTC7F.js → chunk-K37ACPJQ.js} +3 -3
- package/dist/chunks/{chunk-HJJYGJ36.js → chunk-KVUB7HLM.js} +2414 -1044
- package/dist/chunks/{chunk-U345JN44.js → chunk-MHUN6LXO.js} +1 -1
- package/dist/chunks/{chunk-6FZNXLVN.js → chunk-RN7MVPC6.js} +44 -4
- package/dist/chunks/{chunk-TW4YWBQR.js → chunk-TRRJ6Z4L.js} +1 -1
- package/dist/chunks/{chunk-WT3THPTX.js → chunk-XIFRFL4T.js} +39 -34
- package/dist/chunks/{chunk-LNYGV6AM.js → chunk-ZE7MWXEL.js} +1 -1
- package/dist/chunks/{cli-CQOUYUQ4.js → cli-HEL47VQ3.js} +6 -6
- package/dist/chunks/{core-commands-Y4ZMQXO4.js → core-commands-5TW5I3Z6.js} +3 -3
- package/dist/chunks/{desktop-test-YRFKONLO.js → desktop-test-JG6XDUTT.js} +2 -2
- package/dist/chunks/{extension-4MFKIC6Q.js → extension-UUM4ELAF.js} +46 -4
- package/dist/chunks/{help-STXVR4NO.js → help-JFQVVETR.js} +1 -1
- package/dist/chunks/{opchat-CCVKI5GH.js → opchat-3772JCGJ.js} +2 -2
- package/dist/chunks/{organizations-AS76SGLP.js → organizations-USWBONDO.js} +4 -4
- package/dist/chunks/{profile-QNWDNZY3.js → profile-2MYIXRUK.js} +2 -2
- package/dist/chunks/{project-agent-GPZL7KAL.js → project-agent-VDKGFG5V.js} +2 -2
- package/dist/chunks/{sandbox-command-LC63MMAA.js → sandbox-command-M5W3VWVP.js} +2 -2
- package/dist/chunks/{sandbox-template-FPQLZ4IP.js → sandbox-template-25SKARVM.js} +3 -3
- package/dist/chunks/{src-6NIBZPH2.js → src-KYP4COYD.js} +3 -3
- package/dist/chunks/{src-ESTRZ2YU.js → src-S77UAM5T.js} +262 -35
- package/dist/chunks/{teams-bot-YTX7IC2J.js → teams-bot-BJJISVOG.js} +2 -2
- package/dist/chunks/{workspaces-ODK2CTFF.js → workspaces-OXDJN23P.js} +2 -2
- package/dist/cli.js +13 -13
- package/dist/hosted-chat.d.ts +15 -0
- package/dist/profile/local-profile-types.d.ts +2 -0
- package/dist/web/assets/{AppDialog-DacC7BcY.js → AppDialog-B8HYaM0m.js} +1 -1
- package/dist/web/assets/{AppsView-mkeAkrvr.js → AppsView-DzVZTM0y.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-1aEC6gsF.js → BrowserSidebar-BobBdHTm.js} +1 -1
- package/dist/web/assets/{CommandMenu-BN6J3ecV.js → CommandMenu-pp69WTbf.js} +1 -1
- package/dist/web/assets/{CommunityView-B2v9Q4cw.js → CommunityView-D1V7y3l5.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-BH8Ath1h.js → ComposerCreateImproveStrip-Dv5RKQaG.js} +1 -1
- package/dist/web/assets/{GetStartedView-B-R-KSva.js → GetStartedView-DXmHN_BA.js} +1 -1
- package/dist/web/assets/{LabModelVersionDetailPage-Bhfa7T00.js → LabModelVersionDetailPage-BDN4AQVt.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-CbYdG0RN.js → LabSkillSidebar-DYR_pq0Q.js} +1 -1
- package/dist/web/assets/{LabsRoute-DFV5vV6Z.js → LabsRoute-CFXaPC-i.js} +3 -3
- package/dist/web/assets/{MainChatThread-COiXI7ri.js → MainChatThread-C1XrdeAC.js} +2 -2
- package/dist/web/assets/{MainPane-CQCLhV5C.js → MainPane-D8Mu6Nf3.js} +3 -3
- package/dist/web/assets/{MarkdownText-R3MC5S30.js → MarkdownText-D5-tAHVZ.js} +1 -1
- package/dist/web/assets/{Messages-DpZ8mIz8.js → Messages-CWoU5OZ2.js} +1 -1
- package/dist/web/assets/{NativeSkillSidebar-BfcMqLHA.js → NativeSkillSidebar-cKgCM5s9.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-DqTX1Eeo.js → NewProjectDialog-B4wrkUrZ.js} +1 -1
- package/dist/web/assets/{OutputsPage-DfZYswx2.js → OutputsPage-DoJz_FcJ.js} +1 -1
- package/dist/web/assets/{RightChatPanelStack-DH8QjiDY.js → RightChatPanelStack-goxULcZy.js} +1 -1
- package/dist/web/assets/{ScheduledWorkPage-DkaVUnwj.js → ScheduledWorkPage-DLtJnU9O.js} +1 -1
- package/dist/web/assets/{SettingsView-StVFsSJ6.js → SettingsView-M-_wJvH1.js} +3 -3
- package/dist/web/assets/{TeamChatView-CqZOnQh2.js → TeamChatView-Cst9bXqE.js} +1 -1
- package/dist/web/assets/{TerminalOverlay-CnFv6FZT.js → TerminalOverlay-72oJPCbi.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-CWzyzmyT.js → TrainingCreationPanel-BK8T_q3X.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-BVHx0HZ0.js → TrainingDraftPanel-DSZ8e9ve.js} +1 -1
- package/dist/web/assets/UsageSettingsSection-Co0UH4EJ.js +59 -0
- package/dist/web/assets/{WorkspaceDiffPanel-DUCjD1GA.js → WorkspaceDiffPanel-OcpOQdEE.js} +3 -3
- package/dist/web/assets/{WorkspaceEnvironmentMenu-DHGrt_ie.js → WorkspaceEnvironmentMenu-Cg_VY5XS.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-hI57yjPL.js → WorkspaceGitDialogs-ApPWIEpT.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-DPv-1uO6.js → WorkspaceMonacoEditor-CxD40rNT.js} +3 -3
- package/dist/web/assets/{arrow-up-right-BDcNd1rt.js → arrow-up-right-DtR75sMi.js} +1 -1
- package/dist/web/assets/{chevron-up-XTMMnfnf.js → chevron-up-DH33C_vT.js} +1 -1
- package/dist/web/assets/{cloud-upload-D6bS8rS2.js → cloud-upload-Cp4pi0X7.js} +1 -1
- package/dist/web/assets/{cssMode-CvN9o8bP.js → cssMode-CJPZShEy.js} +1 -1
- package/dist/web/assets/{folder-open-8C5l7A93.js → folder-open-hEq-0bAV.js} +1 -1
- package/dist/web/assets/{folder-plus-B9Wqb9yd.js → folder-plus-ClgoqsjW.js} +1 -1
- package/dist/web/assets/{git-branch-C45ve7zh.js → git-branch-CLBU2IM9.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-CGoLIyKK.js → git-commit-horizontal-CpOgDvCh.js} +1 -1
- package/dist/web/assets/{htmlMode-DxLP6j5r.js → htmlMode-fp60PdLB.js} +1 -1
- package/dist/web/assets/{index-LrGasYyx.js → index-2rbiOiLR.js} +54 -53
- package/dist/web/assets/index-BWqDWo3b.js +1 -0
- package/dist/web/assets/{info-DTObFlHw.js → info-D3L7JgSo.js} +1 -1
- package/dist/web/assets/{jsonMode-C3_fOSJu.js → jsonMode-9tQDt87U.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-0c-UKStE.js → lspLanguageFeatures-DhOXsUmI.js} +1 -1
- package/dist/web/assets/{monaco.contribution-CF1DgPPC.js → monaco.contribution-BCc7daQX.js} +2 -2
- package/dist/web/assets/{monaco.contribution-Cb7KlQ6G.js → monaco.contribution-BPct5K1-.js} +2 -2
- package/dist/web/assets/{monaco.contribution-Dsug_FPj.js → monaco.contribution-D3sQBkAF.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CFLEc9Ly.js → monaco.contribution-DRNDpuUQ.js} +2 -2
- package/dist/web/assets/{play-Cbsyrwkw.js → play-DUBpqm-k.js} +1 -1
- package/dist/web/assets/{python-DVcVB2lF.js → python-CO5ats2F.js} +1 -1
- package/dist/web/assets/{refresh-cw-ChUK_QfF.js → refresh-cw-D7OfmCic.js} +1 -1
- package/dist/web/assets/{save-Doep-KC7.js → save-CJN-WmnU.js} +1 -1
- package/dist/web/assets/{square-B5q2aneb.js → square-Bx9UTvNe.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-CTZp7RE7.js → toggleHighContrast-7mdj7cLQ.js} +1 -1
- package/dist/web/assets/{tsMode-GfNadOOB.js → tsMode-qx-y8781.js} +1 -1
- package/dist/web/assets/{upload-DcewuCTa.js → upload-Bp6EKIYv.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-BwltnId8.js → useLocalAgentSchedules-CZ1tgG1x.js} +1 -1
- package/dist/web/assets/{wifi-off-cXPyKIzd.js → wifi-off-DovWnIF6.js} +1 -1
- package/dist/web/assets/{workers-CP6kCS63.js → workers-DC-vdMwa.js} +1 -1
- package/dist/web/assets/{yaml-w0GP6yKf.js → yaml-Bu611qJb.js} +1 -1
- package/dist/web/connected-apps/turnkey.svg +3 -0
- package/dist/web/index.html +1 -1
- package/docs/command-reference.md +19 -1
- package/package.json +1 -1
- package/dist/web/assets/UsageSettingsSection-Bdvm66WK.js +0 -59
- package/dist/web/assets/index-BYgrO3wt.js +0 -1
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "./chunk-J2REM7LE.js";
|
|
5
5
|
import {
|
|
6
6
|
CliUsageError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MHUN6LXO.js";
|
|
8
8
|
import "./chunk-SMNFI2FU.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-XIFRFL4T.js";
|
|
10
10
|
import "./chunk-K4JEWEJQ.js";
|
|
11
11
|
import "./chunk-JGOP4GCK.js";
|
|
12
12
|
import "./chunk-DBHSOTYZ.js";
|
|
@@ -2,14 +2,14 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
|
|
|
2
2
|
import {
|
|
3
3
|
APP_SERVER_COMPOSITION,
|
|
4
4
|
createOpenPondAppServer
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-KVUB7HLM.js";
|
|
6
|
+
import "./chunk-ZE7MWXEL.js";
|
|
7
|
+
import "./chunk-CWCMYSX2.js";
|
|
8
|
+
import "./chunk-TRRJ6Z4L.js";
|
|
9
|
+
import "./chunk-42WUHGKD.js";
|
|
10
|
+
import "./chunk-BPII37IS.js";
|
|
11
11
|
import "./chunk-QETF6ILG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-RN7MVPC6.js";
|
|
13
13
|
import "./chunk-WYDVQOBL.js";
|
|
14
14
|
import "./chunk-JGOP4GCK.js";
|
|
15
15
|
import "./chunk-UACZUFIA.js";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
pollDeploymentLogs,
|
|
12
12
|
resolveAppTarget
|
|
13
13
|
} from "./chunk-J2REM7LE.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MHUN6LXO.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveBaseUrl,
|
|
17
17
|
resolvePublicApiBaseUrl
|
|
18
18
|
} from "./chunk-SMNFI2FU.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-XIFRFL4T.js";
|
|
20
20
|
import "./chunk-K4JEWEJQ.js";
|
|
21
21
|
import "./chunk-JGOP4GCK.js";
|
|
22
22
|
import {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
saveConfig,
|
|
13
13
|
saveProfileApiKey,
|
|
14
14
|
setActiveProfile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BPII37IS.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_OPENPOND_API_BASE_URL,
|
|
18
18
|
DEFAULT_OPENPOND_WEB_BASE_URL,
|
|
@@ -552,6 +552,7 @@ async function* streamOpChatChatCompletion(options) {
|
|
|
552
552
|
let lastPayload = {};
|
|
553
553
|
let accumulatedReasoning = "";
|
|
554
554
|
let usage = null;
|
|
555
|
+
const responseHeaderUsage = cacheUsageFromResponseHeaders(response.headers);
|
|
555
556
|
const reader = response.body.getReader();
|
|
556
557
|
const decoder = new TextDecoder();
|
|
557
558
|
let buffer = "";
|
|
@@ -646,10 +647,67 @@ async function* streamOpChatChatCompletion(options) {
|
|
|
646
647
|
raw: lastPayload
|
|
647
648
|
};
|
|
648
649
|
}
|
|
649
|
-
|
|
650
|
-
|
|
650
|
+
const completedUsage = usageWithResponseHeaderCache(usage, responseHeaderUsage);
|
|
651
|
+
if (completedUsage)
|
|
652
|
+
yield { type: "usage", usage: completedUsage, raw: lastPayload };
|
|
651
653
|
yield { type: "finish", finishReason, raw: lastPayload };
|
|
652
654
|
}
|
|
655
|
+
function cacheUsageFromResponseHeaders(headers) {
|
|
656
|
+
const promptTokens = firstHeaderTokenCount(headers, [
|
|
657
|
+
"fireworks-prompt-tokens",
|
|
658
|
+
"prompt-tokens"
|
|
659
|
+
]);
|
|
660
|
+
const cachedPromptTokens = firstHeaderTokenCount(headers, [
|
|
661
|
+
"fireworks-cached-prompt-tokens",
|
|
662
|
+
"cached-prompt-tokens"
|
|
663
|
+
]);
|
|
664
|
+
if (cachedPromptTokens === null)
|
|
665
|
+
return null;
|
|
666
|
+
return {
|
|
667
|
+
...promptTokens === null ? {} : { prompt_tokens: promptTokens },
|
|
668
|
+
cached_input_tokens: cachedPromptTokens,
|
|
669
|
+
cache_telemetry_source: "provider_response_headers"
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
function firstHeaderTokenCount(headers, names) {
|
|
673
|
+
for (const name of names) {
|
|
674
|
+
const value = headers.get(name);
|
|
675
|
+
if (value === null || !/^\d+$/.test(value.trim()))
|
|
676
|
+
continue;
|
|
677
|
+
const parsed = Number(value);
|
|
678
|
+
if (Number.isSafeInteger(parsed) && parsed >= 0)
|
|
679
|
+
return parsed;
|
|
680
|
+
}
|
|
681
|
+
return null;
|
|
682
|
+
}
|
|
683
|
+
function usageWithResponseHeaderCache(usage, responseHeaderUsage) {
|
|
684
|
+
if (!responseHeaderUsage || usageHasCacheTelemetry(usage))
|
|
685
|
+
return usage;
|
|
686
|
+
const merged = {
|
|
687
|
+
...usage ?? {},
|
|
688
|
+
cached_input_tokens: responseHeaderUsage.cached_input_tokens,
|
|
689
|
+
cache_telemetry_source: "provider_response_headers"
|
|
690
|
+
};
|
|
691
|
+
if (usageTokenCount(usage?.prompt_tokens) === null && responseHeaderUsage.prompt_tokens !== void 0) {
|
|
692
|
+
merged.prompt_tokens = responseHeaderUsage.prompt_tokens;
|
|
693
|
+
}
|
|
694
|
+
return merged;
|
|
695
|
+
}
|
|
696
|
+
function usageHasCacheTelemetry(usage) {
|
|
697
|
+
if (!usage)
|
|
698
|
+
return false;
|
|
699
|
+
if (usageTokenCount(usage.cached_input_tokens) !== null || usageTokenCount(usage.cache_read_input_tokens) !== null || usageTokenCount(usage.cache_creation_input_tokens) !== null || usageTokenCount(usage.prompt_cache_hit_tokens) !== null || usageTokenCount(usage.prompt_cache_miss_tokens) !== null)
|
|
700
|
+
return true;
|
|
701
|
+
return usageTokenCount(usage.prompt_tokens_details?.cached_tokens) !== null || usageTokenCount(usage.input_tokens_details?.cached_tokens) !== null;
|
|
702
|
+
}
|
|
703
|
+
function usageTokenCount(value) {
|
|
704
|
+
if (typeof value === "number" && Number.isSafeInteger(value) && value >= 0)
|
|
705
|
+
return value;
|
|
706
|
+
if (typeof value !== "string" || !/^\d+$/.test(value.trim()))
|
|
707
|
+
return null;
|
|
708
|
+
const parsed = Number(value);
|
|
709
|
+
return Number.isSafeInteger(parsed) ? parsed : null;
|
|
710
|
+
}
|
|
653
711
|
function mergeOpChatToolCallDeltas(calls, value) {
|
|
654
712
|
if (!Array.isArray(value))
|
|
655
713
|
return;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ToolDeclarationSchema,
|
|
16
16
|
createHarnessAdvanceReceipt,
|
|
17
17
|
validateConnectedAppToolCallRequest
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RN7MVPC6.js";
|
|
19
19
|
import {
|
|
20
20
|
external_exports,
|
|
21
21
|
yaml
|
|
@@ -4994,7 +4994,7 @@ var WorkspaceKindSchema = external_exports.enum([
|
|
|
4994
4994
|
"sandbox_template"
|
|
4995
4995
|
]);
|
|
4996
4996
|
var HostedContextProviderSchema = external_exports.enum(["openpond"]);
|
|
4997
|
-
var ContextUsageSourceSchema = external_exports.enum(["provider_usage", "provider_tokenizer", "heuristic"]);
|
|
4997
|
+
var ContextUsageSourceSchema = external_exports.enum(["provider_usage", "provider_tokenizer", "model_family", "heuristic"]);
|
|
4998
4998
|
var ContextUsageSnapshotSchema = external_exports.object({
|
|
4999
4999
|
provider: ChatProviderSchema,
|
|
5000
5000
|
model: external_exports.string().min(1),
|
|
@@ -5844,6 +5844,10 @@ var ModelUsageSourceSchema = external_exports.enum([
|
|
|
5844
5844
|
"codex_context_usage",
|
|
5845
5845
|
"missing"
|
|
5846
5846
|
]);
|
|
5847
|
+
var ModelUsageCacheTelemetrySourceSchema = external_exports.enum([
|
|
5848
|
+
"provider_usage_body",
|
|
5849
|
+
"provider_response_headers"
|
|
5850
|
+
]);
|
|
5847
5851
|
var ModelUsageRequestKindSchema = external_exports.enum([
|
|
5848
5852
|
"chat_turn",
|
|
5849
5853
|
"tool_loop",
|
|
@@ -5855,6 +5859,14 @@ var ModelUsageRequestKindSchema = external_exports.enum([
|
|
|
5855
5859
|
"codex_context",
|
|
5856
5860
|
"other"
|
|
5857
5861
|
]);
|
|
5862
|
+
var UsageCacheCohortSchema = external_exports.enum([
|
|
5863
|
+
"foreground",
|
|
5864
|
+
"tool_loop",
|
|
5865
|
+
"compaction",
|
|
5866
|
+
"subagent",
|
|
5867
|
+
"refiner",
|
|
5868
|
+
"other"
|
|
5869
|
+
]);
|
|
5858
5870
|
var ModelUsageVisibilitySchema = external_exports.enum([
|
|
5859
5871
|
"user_facing",
|
|
5860
5872
|
"background",
|
|
@@ -5938,6 +5950,10 @@ var ModelUsageRecordSchema = external_exports.object({
|
|
|
5938
5950
|
durationMs: external_exports.number().int().nonnegative().nullable(),
|
|
5939
5951
|
firstTokenMs: external_exports.number().int().nonnegative().nullable(),
|
|
5940
5952
|
promptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5953
|
+
cachedPromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5954
|
+
uncachedPromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5955
|
+
cacheWritePromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5956
|
+
cacheTelemetrySource: ModelUsageCacheTelemetrySourceSchema.nullable(),
|
|
5941
5957
|
completionTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5942
5958
|
totalTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5943
5959
|
errorType: external_exports.string().trim().min(1).max(160).nullable(),
|
|
@@ -5976,6 +5992,14 @@ var UsageRecordsQuerySchema = UsageSummaryQuerySchema.extend({
|
|
|
5976
5992
|
var UsageBreakdownBaseSchema = external_exports.object({
|
|
5977
5993
|
requests: external_exports.number().int().nonnegative(),
|
|
5978
5994
|
promptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5995
|
+
cacheTelemetryRequests: external_exports.number().int().nonnegative(),
|
|
5996
|
+
cacheHitRequests: external_exports.number().int().nonnegative(),
|
|
5997
|
+
cachedPromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5998
|
+
uncachedPromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5999
|
+
cacheWritePromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
6000
|
+
cacheHitRate: external_exports.number().min(0).max(1).nullable(),
|
|
6001
|
+
cacheRequestHitRate: external_exports.number().min(0).max(1).nullable(),
|
|
6002
|
+
cacheTelemetryCoverage: external_exports.number().min(0).max(1),
|
|
5979
6003
|
completionTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5980
6004
|
totalTokens: external_exports.number().int().nonnegative().nullable(),
|
|
5981
6005
|
averageLatencyMs: external_exports.number().nonnegative().nullable(),
|
|
@@ -6011,6 +6035,9 @@ var UsageStatusBreakdownSchema = UsageBreakdownBaseSchema.extend({
|
|
|
6011
6035
|
var UsageSourceBreakdownSchema = UsageBreakdownBaseSchema.extend({
|
|
6012
6036
|
source: ModelUsageSourceSchema
|
|
6013
6037
|
});
|
|
6038
|
+
var UsageCacheCohortBreakdownSchema = UsageBreakdownBaseSchema.extend({
|
|
6039
|
+
cohort: UsageCacheCohortSchema
|
|
6040
|
+
});
|
|
6014
6041
|
var UsageDailyBucketSchema = external_exports.object({
|
|
6015
6042
|
date: external_exports.string().trim().min(1),
|
|
6016
6043
|
totalTokens: external_exports.number().int().nonnegative(),
|
|
@@ -6028,6 +6055,14 @@ var UsageTotalsSchema = external_exports.object({
|
|
|
6028
6055
|
failedRequests: external_exports.number().int().nonnegative(),
|
|
6029
6056
|
missingUsageRequests: external_exports.number().int().nonnegative(),
|
|
6030
6057
|
promptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
6058
|
+
cacheTelemetryRequests: external_exports.number().int().nonnegative(),
|
|
6059
|
+
cacheHitRequests: external_exports.number().int().nonnegative(),
|
|
6060
|
+
cachedPromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
6061
|
+
uncachedPromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
6062
|
+
cacheWritePromptTokens: external_exports.number().int().nonnegative().nullable(),
|
|
6063
|
+
cacheHitRate: external_exports.number().min(0).max(1).nullable(),
|
|
6064
|
+
cacheRequestHitRate: external_exports.number().min(0).max(1).nullable(),
|
|
6065
|
+
cacheTelemetryCoverage: external_exports.number().min(0).max(1),
|
|
6031
6066
|
completionTokens: external_exports.number().int().nonnegative().nullable(),
|
|
6032
6067
|
totalTokens: external_exports.number().int().nonnegative().nullable(),
|
|
6033
6068
|
averageLatencyMs: external_exports.number().nonnegative().nullable(),
|
|
@@ -6058,7 +6093,8 @@ var UsageSummaryResponseSchema = external_exports.object({
|
|
|
6058
6093
|
commands: external_exports.array(UsageCommandBreakdownSchema),
|
|
6059
6094
|
routes: external_exports.array(UsageRouteBreakdownSchema),
|
|
6060
6095
|
statuses: external_exports.array(UsageStatusBreakdownSchema),
|
|
6061
|
-
sources: external_exports.array(UsageSourceBreakdownSchema)
|
|
6096
|
+
sources: external_exports.array(UsageSourceBreakdownSchema),
|
|
6097
|
+
cohorts: external_exports.array(UsageCacheCohortBreakdownSchema)
|
|
6062
6098
|
});
|
|
6063
6099
|
var UsageRecordsResponseSchema = external_exports.object({
|
|
6064
6100
|
generatedAt: external_exports.string().trim().min(1),
|
|
@@ -6118,6 +6154,7 @@ var ConnectedAppProviderFamilyIdSchema = external_exports.enum([
|
|
|
6118
6154
|
"microsoft_teams",
|
|
6119
6155
|
"github",
|
|
6120
6156
|
"google",
|
|
6157
|
+
"turnkey",
|
|
6121
6158
|
"x",
|
|
6122
6159
|
"mcp"
|
|
6123
6160
|
]);
|
|
@@ -6126,12 +6163,14 @@ var ConnectedAppIdSchema = external_exports.enum([
|
|
|
6126
6163
|
"microsoft_teams",
|
|
6127
6164
|
"github",
|
|
6128
6165
|
"google",
|
|
6166
|
+
"turnkey",
|
|
6129
6167
|
"x",
|
|
6130
6168
|
"mcp"
|
|
6131
6169
|
]);
|
|
6132
6170
|
var ConnectedAppSetupSurfaceSchema = external_exports.enum([
|
|
6133
6171
|
"native_bot",
|
|
6134
6172
|
"oauth_connector",
|
|
6173
|
+
"wallet_connector",
|
|
6135
6174
|
"mcp_endpoint"
|
|
6136
6175
|
]);
|
|
6137
6176
|
var MentionedConnectedAppRefSchema = external_exports.object({
|
|
@@ -6755,6 +6794,7 @@ var ConnectedAppToolCallProviderSchema = external_exports.enum([
|
|
|
6755
6794
|
"microsoft_teams",
|
|
6756
6795
|
"github",
|
|
6757
6796
|
"google",
|
|
6797
|
+
"turnkey",
|
|
6758
6798
|
"x",
|
|
6759
6799
|
"mcp"
|
|
6760
6800
|
]);
|
|
@@ -6985,6 +7025,7 @@ var OpenPondProfileGitStateSchema = external_exports.object({
|
|
|
6985
7025
|
behind: external_exports.number().nullable(),
|
|
6986
7026
|
remoteUrl: external_exports.string().nullable(),
|
|
6987
7027
|
files: external_exports.array(OpenPondProfileGitFileChangeSchema),
|
|
7028
|
+
fileCount: external_exports.number().int().nonnegative().optional(),
|
|
6988
7029
|
error: external_exports.string().nullable()
|
|
6989
7030
|
});
|
|
6990
7031
|
var OpenPondProfileCatalogStateSchema = external_exports.object({
|
|
@@ -7029,7 +7070,8 @@ var OpenPondProfileDiffSummarySchema = external_exports.object({
|
|
|
7029
7070
|
changedExtensions: external_exports.array(external_exports.string()),
|
|
7030
7071
|
setupChanges: external_exports.array(external_exports.string()),
|
|
7031
7072
|
envRequirementChanges: external_exports.array(external_exports.string()),
|
|
7032
|
-
files: external_exports.array(OpenPondProfileGitFileChangeSchema)
|
|
7073
|
+
files: external_exports.array(OpenPondProfileGitFileChangeSchema),
|
|
7074
|
+
fileCount: external_exports.number().int().nonnegative().optional()
|
|
7033
7075
|
});
|
|
7034
7076
|
var OpenPondProfileHostedSourceCheckStatusSchema = external_exports.object({
|
|
7035
7077
|
status: external_exports.string(),
|
|
@@ -43,6 +43,7 @@ async function runAgentCompactionProgram(input) {
|
|
|
43
43
|
throw new Error("There is not enough prior context to compact.");
|
|
44
44
|
}
|
|
45
45
|
const summaryRecords = input.host.normalizeRecords(summaryEvents);
|
|
46
|
+
const preservedRecords = input.host.normalizeRecords(preservedEvents);
|
|
46
47
|
const fileLedger = input.host.buildFileLedger(input.host.normalizeRecords(projectionEvents));
|
|
47
48
|
const serialized = input.host.serializeRecords(summaryRecords, input.host.inputCharBudget(input.maxContextTokens));
|
|
48
49
|
if (!serialized.text.trim()) {
|
|
@@ -70,6 +71,13 @@ async function runAgentCompactionProgram(input) {
|
|
|
70
71
|
sourceEvents: projectionEvents.length,
|
|
71
72
|
summarizedEvents: summaryEvents.length,
|
|
72
73
|
preservedEvents: preservedEvents.length,
|
|
74
|
+
sourceRecords: serialized.sourceRecordCount,
|
|
75
|
+
includedRecords: serialized.includedRecordCount,
|
|
76
|
+
omittedRecords: serialized.omittedRecordCount,
|
|
77
|
+
preservedRecords: preservedRecords.length,
|
|
78
|
+
truncatedRecords: serialized.truncatedRecordCount,
|
|
79
|
+
summaryInputTruncated: serialized.inputTruncated,
|
|
80
|
+
sourceSelectionStrategy: serialized.selectionStrategy,
|
|
73
81
|
summaryInputChars: serialized.inputChars,
|
|
74
82
|
retainedTailTokens: selection.retainedTailTokens,
|
|
75
83
|
retainedTailBudgetTokens: selection.retainedTailBudgetTokens,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
runAppServerJsonl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CWCMYSX2.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_HOST,
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
parseListen
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TRRJ6Z4L.js";
|
|
10
10
|
import {
|
|
11
11
|
getBundledRuntimeVersion,
|
|
12
12
|
openUrlWithSystemBrowser
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-42WUHGKD.js";
|
|
14
14
|
|
|
15
15
|
// ../server/src/cli.ts
|
|
16
16
|
import { existsSync } from "node:fs";
|