@lexwdex-org/opencode-dcp 3.4.6 → 3.4.8

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.
Files changed (140) hide show
  1. package/LICENSE +0 -0
  2. package/README.en.md +0 -0
  3. package/README.md +0 -0
  4. package/dist/index.d.ts +0 -0
  5. package/dist/index.d.ts.map +0 -0
  6. package/dist/index.js +18 -8
  7. package/dist/index.js.map +1 -1
  8. package/dist/lib/auth.d.ts +0 -0
  9. package/dist/lib/auth.d.ts.map +0 -0
  10. package/dist/lib/commands/compression-targets.d.ts +0 -0
  11. package/dist/lib/commands/compression-targets.d.ts.map +0 -0
  12. package/dist/lib/commands/context.d.ts +0 -0
  13. package/dist/lib/commands/context.d.ts.map +0 -0
  14. package/dist/lib/commands/decompress.d.ts +0 -0
  15. package/dist/lib/commands/decompress.d.ts.map +0 -0
  16. package/dist/lib/commands/help.d.ts +0 -0
  17. package/dist/lib/commands/help.d.ts.map +0 -0
  18. package/dist/lib/commands/index.d.ts +0 -0
  19. package/dist/lib/commands/index.d.ts.map +0 -0
  20. package/dist/lib/commands/manual.d.ts +0 -0
  21. package/dist/lib/commands/manual.d.ts.map +1 -1
  22. package/dist/lib/commands/recompress.d.ts +0 -0
  23. package/dist/lib/commands/recompress.d.ts.map +0 -0
  24. package/dist/lib/commands/stats.d.ts +0 -0
  25. package/dist/lib/commands/stats.d.ts.map +0 -0
  26. package/dist/lib/commands/sweep.d.ts +0 -0
  27. package/dist/lib/commands/sweep.d.ts.map +0 -0
  28. package/dist/lib/compress/external-inference.d.ts +0 -0
  29. package/dist/lib/compress/external-inference.d.ts.map +0 -0
  30. package/dist/lib/compress/index.d.ts +0 -0
  31. package/dist/lib/compress/index.d.ts.map +0 -0
  32. package/dist/lib/compress/message-utils.d.ts +0 -0
  33. package/dist/lib/compress/message-utils.d.ts.map +0 -0
  34. package/dist/lib/compress/message.d.ts +0 -0
  35. package/dist/lib/compress/message.d.ts.map +0 -0
  36. package/dist/lib/compress/pipeline.d.ts +0 -0
  37. package/dist/lib/compress/pipeline.d.ts.map +0 -0
  38. package/dist/lib/compress/protected-content.d.ts +0 -0
  39. package/dist/lib/compress/protected-content.d.ts.map +0 -0
  40. package/dist/lib/compress/range-utils.d.ts +0 -0
  41. package/dist/lib/compress/range-utils.d.ts.map +0 -0
  42. package/dist/lib/compress/range.d.ts +0 -0
  43. package/dist/lib/compress/range.d.ts.map +0 -0
  44. package/dist/lib/compress/search.d.ts +0 -0
  45. package/dist/lib/compress/search.d.ts.map +0 -0
  46. package/dist/lib/compress/state.d.ts +0 -0
  47. package/dist/lib/compress/state.d.ts.map +0 -0
  48. package/dist/lib/compress/timing.d.ts +0 -0
  49. package/dist/lib/compress/timing.d.ts.map +0 -0
  50. package/dist/lib/compress/types.d.ts +0 -0
  51. package/dist/lib/compress/types.d.ts.map +0 -0
  52. package/dist/lib/compress-permission.d.ts +0 -0
  53. package/dist/lib/compress-permission.d.ts.map +0 -0
  54. package/dist/lib/config-env-override.d.ts +0 -0
  55. package/dist/lib/config-env-override.d.ts.map +0 -0
  56. package/dist/lib/config.d.ts +0 -0
  57. package/dist/lib/config.d.ts.map +0 -0
  58. package/dist/lib/hooks.d.ts +0 -0
  59. package/dist/lib/hooks.d.ts.map +0 -0
  60. package/dist/lib/host-permissions.d.ts +0 -0
  61. package/dist/lib/host-permissions.d.ts.map +0 -0
  62. package/dist/lib/logger.d.ts +0 -0
  63. package/dist/lib/logger.d.ts.map +0 -0
  64. package/dist/lib/message-ids.d.ts +0 -0
  65. package/dist/lib/message-ids.d.ts.map +1 -1
  66. package/dist/lib/messages/index.d.ts +0 -0
  67. package/dist/lib/messages/index.d.ts.map +0 -0
  68. package/dist/lib/messages/inject/inject.d.ts +0 -0
  69. package/dist/lib/messages/inject/inject.d.ts.map +0 -0
  70. package/dist/lib/messages/inject/subagent-results.d.ts +0 -0
  71. package/dist/lib/messages/inject/subagent-results.d.ts.map +0 -0
  72. package/dist/lib/messages/inject/utils.d.ts +0 -0
  73. package/dist/lib/messages/inject/utils.d.ts.map +0 -0
  74. package/dist/lib/messages/priority.d.ts +0 -0
  75. package/dist/lib/messages/priority.d.ts.map +0 -0
  76. package/dist/lib/messages/prune.d.ts +0 -0
  77. package/dist/lib/messages/prune.d.ts.map +0 -0
  78. package/dist/lib/messages/query.d.ts +0 -0
  79. package/dist/lib/messages/query.d.ts.map +0 -0
  80. package/dist/lib/messages/reasoning-strip.d.ts +0 -0
  81. package/dist/lib/messages/reasoning-strip.d.ts.map +0 -0
  82. package/dist/lib/messages/shape.d.ts +0 -0
  83. package/dist/lib/messages/shape.d.ts.map +0 -0
  84. package/dist/lib/messages/sync.d.ts +0 -0
  85. package/dist/lib/messages/sync.d.ts.map +0 -0
  86. package/dist/lib/messages/utils.d.ts +0 -0
  87. package/dist/lib/messages/utils.d.ts.map +0 -0
  88. package/dist/lib/prompts/compress-message.d.ts +0 -0
  89. package/dist/lib/prompts/compress-message.d.ts.map +0 -0
  90. package/dist/lib/prompts/compress-range.d.ts +0 -0
  91. package/dist/lib/prompts/compress-range.d.ts.map +0 -0
  92. package/dist/lib/prompts/context-limit-nudge.d.ts +0 -0
  93. package/dist/lib/prompts/context-limit-nudge.d.ts.map +0 -0
  94. package/dist/lib/prompts/extensions/nudge.d.ts +2 -1
  95. package/dist/lib/prompts/extensions/nudge.d.ts.map +1 -1
  96. package/dist/lib/prompts/extensions/system.d.ts +0 -0
  97. package/dist/lib/prompts/extensions/system.d.ts.map +0 -0
  98. package/dist/lib/prompts/extensions/tool.d.ts +0 -0
  99. package/dist/lib/prompts/extensions/tool.d.ts.map +0 -0
  100. package/dist/lib/prompts/index.d.ts +0 -0
  101. package/dist/lib/prompts/index.d.ts.map +0 -0
  102. package/dist/lib/prompts/iteration-nudge.d.ts +0 -0
  103. package/dist/lib/prompts/iteration-nudge.d.ts.map +0 -0
  104. package/dist/lib/prompts/store.d.ts +0 -0
  105. package/dist/lib/prompts/store.d.ts.map +0 -0
  106. package/dist/lib/prompts/system.d.ts +0 -0
  107. package/dist/lib/prompts/system.d.ts.map +0 -0
  108. package/dist/lib/prompts/turn-nudge.d.ts +0 -0
  109. package/dist/lib/prompts/turn-nudge.d.ts.map +0 -0
  110. package/dist/lib/protected-patterns.d.ts +0 -0
  111. package/dist/lib/protected-patterns.d.ts.map +0 -0
  112. package/dist/lib/state/index.d.ts +0 -0
  113. package/dist/lib/state/index.d.ts.map +0 -0
  114. package/dist/lib/state/persistence.d.ts +0 -0
  115. package/dist/lib/state/persistence.d.ts.map +0 -0
  116. package/dist/lib/state/state.d.ts +0 -0
  117. package/dist/lib/state/state.d.ts.map +0 -0
  118. package/dist/lib/state/tool-cache.d.ts +0 -0
  119. package/dist/lib/state/tool-cache.d.ts.map +0 -0
  120. package/dist/lib/state/types.d.ts +0 -0
  121. package/dist/lib/state/types.d.ts.map +0 -0
  122. package/dist/lib/state/utils.d.ts +0 -0
  123. package/dist/lib/state/utils.d.ts.map +0 -0
  124. package/dist/lib/strategies/deduplication.d.ts +0 -0
  125. package/dist/lib/strategies/deduplication.d.ts.map +0 -0
  126. package/dist/lib/strategies/index.d.ts +0 -0
  127. package/dist/lib/strategies/index.d.ts.map +0 -0
  128. package/dist/lib/strategies/purge-errors.d.ts +0 -0
  129. package/dist/lib/strategies/purge-errors.d.ts.map +0 -0
  130. package/dist/lib/subagents/subagent-results.d.ts +0 -0
  131. package/dist/lib/subagents/subagent-results.d.ts.map +0 -0
  132. package/dist/lib/token-utils.d.ts +0 -0
  133. package/dist/lib/token-utils.d.ts.map +0 -0
  134. package/dist/lib/ui/notification.d.ts +0 -0
  135. package/dist/lib/ui/notification.d.ts.map +0 -0
  136. package/dist/lib/ui/utils.d.ts +0 -0
  137. package/dist/lib/ui/utils.d.ts.map +0 -0
  138. package/dist/lib/update.d.ts +0 -0
  139. package/dist/lib/update.d.ts.map +0 -0
  140. package/package.json +4 -4
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"manual.d.ts","sourceRoot":"","sources":["../../../lib/commands/manual.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAqC7C,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,GAAG,CAAA;IACX,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,SAAS,EAAE,CAAA;CACxB;AAED,wBAAsB,yBAAyB,CAC3C,GAAG,EAAE,oBAAoB,EACzB,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAuBf;AAED,wBAAsB,0BAA0B,CAC5C,GAAG,EAAE,oBAAoB,EACzB,IAAI,EAAE,UAAU,EAChB,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAExB;AAED,wBAAgB,yBAAyB,CACrC,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,SAAS,EAAE,EACrB,MAAM,EAAE,MAAM,GACf,IAAI,CA8BN"}
1
+ {"version":3,"file":"manual.d.ts","sourceRoot":"","sources":["../../../lib/commands/manual.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA8C7C,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,GAAG,CAAA;IACX,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,SAAS,EAAE,CAAA;CACxB;AAED,wBAAsB,yBAAyB,CAC3C,GAAG,EAAE,oBAAoB,EACzB,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAuBf;AAED,wBAAsB,0BAA0B,CAC5C,GAAG,EAAE,oBAAoB,EACzB,IAAI,EAAE,UAAU,EAChB,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAExB;AAED,wBAAgB,yBAAyB,CACrC,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,SAAS,EAAE,EACrB,MAAM,EAAE,MAAM,GACf,IAAI,CA8BN"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"message-ids.d.ts","sourceRoot":"","sources":["../../lib/message-ids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAStD,eAAO,MAAM,qBAAqB,OAAO,CAAA;AAEzC,MAAM,MAAM,gBAAgB,GACtB;IACI,IAAI,EAAE,SAAS,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CAChB,GACD;IACI,IAAI,EAAE,kBAAkB,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;CAClB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Aa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQxD;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAqBnE;AAUD,wBAAgB,kBAAkB,CAC9B,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAChD,MAAM,CAaR;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,CA8CpF"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,7 @@
1
+ import type { PluginConfig } from "../../config";
1
2
  import type { SessionState, WithParts } from "../../state";
2
3
  export declare function buildCompressedBlockGuidance(state: SessionState): string;
3
- export declare function buildAvailableMessageIdGuidance(state: SessionState, messages: WithParts[]): string;
4
+ export declare function buildAvailableMessageIdGuidance(state: SessionState, config: PluginConfig, messages: WithParts[]): string;
4
5
  export declare function renderMessagePriorityGuidance(priorityLabel: string, refs: string[]): string;
5
6
  export declare function appendGuidanceToDcpTag(nudgeText: string, guidance: string): string;
6
7
  //# sourceMappingURL=nudge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nudge.d.ts","sourceRoot":"","sources":["../../../../lib/prompts/extensions/nudge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAI1D,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAaxE;AAED,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,SAAS,EAAE,GACtB,MAAM,CAkCR;AAED,wBAAgB,6BAA6B,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAW3F;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAelF"}
1
+ {"version":3,"file":"nudge.d.ts","sourceRoot":"","sources":["../../../../lib/prompts/extensions/nudge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAI1D,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAaxE;AAED,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,SAAS,EAAE,GACtB,MAAM,CAyCR;AAED,wBAAgB,6BAA6B,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAW3F;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAelF"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@lexwdex-org/opencode-dcp",
4
- "version": "3.4.6",
4
+ "version": "3.4.8",
5
5
  "type": "module",
6
6
  "description": "OpenCode plugin that optimizes token usage by pruning obsolete tool outputs from conversation context",
7
7
  "main": "./dist/index.js",
@@ -40,12 +40,12 @@
40
40
  ],
41
41
  "repository": {
42
42
  "type": "git",
43
- "url": "git+https://github.com/LeXwDeX/opencode-dynamic-context-pruning.git"
43
+ "url": "git+https://github.com/LeXwDeX/OpenCode-Dynamic-Context-Pruning.git"
44
44
  },
45
45
  "bugs": {
46
- "url": "https://github.com/LeXwDeX/opencode-dynamic-context-pruning/issues"
46
+ "url": "https://github.com/LeXwDeX/OpenCode-Dynamic-Context-Pruning/issues"
47
47
  },
48
- "homepage": "https://github.com/LeXwDeX/opencode-dynamic-context-pruning#readme",
48
+ "homepage": "https://github.com/LeXwDeX/OpenCode-Dynamic-Context-Pruning#readme",
49
49
  "author": "LeXwDeX",
50
50
  "license": "AGPL-3.0-or-later",
51
51
  "peerDependencies": {