openpond 0.0.65 → 0.0.67
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-CJFOO54B.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-HJJYGJ36.js → chunk-7OQFWODA.js} +2414 -1044
- 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-TW4YWBQR.js → chunk-DEEQG5MY.js} +1 -1
- package/dist/chunks/{chunk-B63GTC7F.js → chunk-J3PSR6F6.js} +3 -3
- 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-WT3THPTX.js → chunk-XIFRFL4T.js} +39 -34
- package/dist/chunks/{chunk-LNYGV6AM.js → chunk-Z3SXHGOC.js} +1 -1
- package/dist/chunks/{cli-CQOUYUQ4.js → cli-6N2QZCOF.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-ESTRZ2YU.js → src-7RDE5SYD.js} +262 -35
- package/dist/chunks/{src-6NIBZPH2.js → src-KYP4COYD.js} +3 -3
- package/dist/chunks/{teams-bot-YTX7IC2J.js → teams-bot-BJJISVOG.js} +2 -2
- package/dist/chunks/{workspaces-ODK2CTFF.js → workspaces-EQTHCFVV.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-7OQFWODA.js";
|
|
6
|
+
import "./chunk-Z3SXHGOC.js";
|
|
7
|
+
import "./chunk-CWCMYSX2.js";
|
|
8
|
+
import "./chunk-DEEQG5MY.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;
|