@tarquinen/opencode-dcp 3.1.11 → 3.1.12
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/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/lib/hooks.d.ts +0 -2
- package/dist/lib/hooks.d.ts.map +1 -1
- package/dist/lib/messages/index.d.ts +0 -1
- package/dist/lib/messages/index.d.ts.map +1 -1
- package/dist/lib/messages/inject/utils.d.ts +0 -7
- package/dist/lib/messages/inject/utils.d.ts.map +1 -1
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -5858,12 +5858,6 @@ function listPriorityRefsBeforeIndex(messages, priorities, anchorIndex, priority
|
|
|
5858
5858
|
|
|
5859
5859
|
// lib/messages/inject/utils.ts
|
|
5860
5860
|
var MESSAGE_MODE_NUDGE_PRIORITY = "high";
|
|
5861
|
-
function computeInputBudget(limit) {
|
|
5862
|
-
if (!limit.context) {
|
|
5863
|
-
return void 0;
|
|
5864
|
-
}
|
|
5865
|
-
return limit.input ?? Math.max(0, limit.context - (limit.output ?? 0));
|
|
5866
|
-
}
|
|
5867
5861
|
function getNudgeFrequency(config) {
|
|
5868
5862
|
return Math.max(1, Math.floor(config.compress.nudgeFrequency || 1));
|
|
5869
5863
|
}
|
|
@@ -7402,10 +7396,7 @@ var INTERNAL_AGENT_SIGNATURES = [
|
|
|
7402
7396
|
function createSystemPromptHandler(state, logger, config, prompts) {
|
|
7403
7397
|
return async (input, output) => {
|
|
7404
7398
|
if (input.model?.limit?.context) {
|
|
7405
|
-
|
|
7406
|
-
if (inputBudget !== void 0) {
|
|
7407
|
-
state.modelContextLimit = inputBudget;
|
|
7408
|
-
}
|
|
7399
|
+
state.modelContextLimit = input.model.limit.context;
|
|
7409
7400
|
logger.debug("Cached model context limit", { limit: state.modelContextLimit });
|
|
7410
7401
|
}
|
|
7411
7402
|
if (state.isSubAgent && !config.experimental.allowSubAgents) {
|