dsh-lightweightcontext 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-lightweightcontext",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "上下文:完全内置于 DeepSeek Harness 的模型驱动分层上下文管理插件。较早历史折叠为摘要,原文仍保留在会话日志中可检索恢复;无代理、无端口、无网络拦截。改编自 billion-context 与 acp-kernel。",
5
5
  "type": "module",
6
6
  "exports": {
@@ -13,7 +13,6 @@
13
13
  "产物",
14
14
  "客户端.js",
15
15
  "cordis.patch.yml",
16
- "技能",
17
16
  "读我.md",
18
17
  "LICENSE",
19
18
  "验收报告.md",
@@ -1,7 +1,5 @@
1
- import { join, dirname } from 'path';
2
- import { fileURLToPath } from 'url';
3
- import { readFile } from 'fs/promises';
4
1
  import { createRequire } from 'module';
2
+ import 'path';
5
3
  import { randomUUID as randomUUID$1 } from 'crypto';
6
4
  import { isDeepStrictEqual } from 'util';
7
5
 
@@ -26856,7 +26854,7 @@ var \u4E0A\u4E0B\u6587\u63D0\u793A\u8BCD = `\u4E0A\u4E0B\u6587\u7BA1\u7406\u539F
26856
26854
 
26857
26855
  // 入口.ts
26858
26856
  var name = "context";
26859
- var inject = ["tools", "commands", "agents", "sessions", "sessionProjections", "tokenMeter", "skills", "systemPrompt"];
26857
+ var inject = ["tools", "commands", "agents", "sessions", "sessionProjections", "tokenMeter", "systemPrompt"];
26860
26858
  var Config = Schema.object({
26861
26859
  enabled: Schema.boolean().default(true),
26862
26860
  nudgeGrowthTokens: Schema.number().step(1).min(1e3).default(5e4),
@@ -26898,19 +26896,6 @@ async function apply(\u5BBF\u4E3B, \u7528\u6237\u914D\u7F6E = {}) {
26898
26896
  return { kind: "success", text: \u751F\u6210\u72B6\u6001\u62A5\u544A({ agent, meter: \u73AF\u5883.meter, \u72B6\u6001: \u8BFB\u53D6\u72B6\u6001(agent), \u914D\u7F6E }) };
26899
26897
  }
26900
26898
  });
26901
- const \u6280\u80FD\u76EE\u5F55 = join(dirname(fileURLToPath(import.meta.url)), "..", "\u6280\u80FD", "\u4E0A\u6E38\u66F4\u65B0");
26902
- const \u6280\u80FD\u6587\u4EF6 = join(\u6280\u80FD\u76EE\u5F55, "SKILL.md");
26903
- const \u6280\u80FD\u6B63\u6587 = await readFile(\u6280\u80FD\u6587\u4EF6, "utf8");
26904
- const \u5185\u5BB9 = \u6280\u80FD\u6B63\u6587.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, "").trim();
26905
- \u5BBF\u4E3B.skills.register({
26906
- name: "upstream-update",
26907
- description: "\u4E0A\u6E38\u66F4\u65B0\uFF1A\u68C0\u67E5 billion-context \u7684\u7A33\u5B9A\u7248\u672C\uFF0C\u5C06\u9002\u7528\u4E8E\u201C\u4E0A\u4E0B\u6587\u201D\u7684\u7B97\u6CD5\u3001\u63D0\u793A\u8BCD\u548C\u4FEE\u590D\u79FB\u690D\u5230\u5F53\u524D\u63D2\u4EF6\u3002",
26908
- content: \u5185\u5BB9,
26909
- path: \u6280\u80FD\u6587\u4EF6,
26910
- resourceBase: { kind: "directory", path: \u6280\u80FD\u76EE\u5F55 },
26911
- source: "runtime",
26912
- invocation: { modelInvocable: false, userInvocable: true }
26913
- });
26914
26899
  }
26915
26900
 
26916
26901
  export { Config, apply, inject, name };