@a1hvdy/cc-openclaw 0.13.0 → 0.17.0
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/README.md +14 -0
- package/dist/src/engines/heartbeat-guard.d.ts +91 -0
- package/dist/src/engines/heartbeat-guard.js +120 -0
- package/dist/src/engines/heartbeat-guard.js.map +1 -0
- package/dist/src/engines/index.d.ts +2 -0
- package/dist/src/engines/index.js +3 -0
- package/dist/src/engines/index.js.map +1 -1
- package/dist/src/engines/persistent-session.d.ts +9 -0
- package/dist/src/engines/persistent-session.js +39 -0
- package/dist/src/engines/persistent-session.js.map +1 -1
- package/dist/src/engines/subprocess-pool.d.ts +78 -0
- package/dist/src/engines/subprocess-pool.js +200 -0
- package/dist/src/engines/subprocess-pool.js.map +1 -0
- package/dist/src/lib/cost-rollup.d.ts +36 -0
- package/dist/src/lib/cost-rollup.js +125 -0
- package/dist/src/lib/cost-rollup.js.map +1 -0
- package/dist/src/lib/trajectory.d.ts +10 -1
- package/dist/src/lib/trajectory.js +37 -0
- package/dist/src/lib/trajectory.js.map +1 -1
- package/dist/src/lifecycle/safe-restart.d.ts +99 -0
- package/dist/src/lifecycle/safe-restart.js +132 -0
- package/dist/src/lifecycle/safe-restart.js.map +1 -0
- package/dist/src/observability/event-bus.d.ts +21 -0
- package/dist/src/observability/event-bus.js.map +1 -1
- package/dist/src/openai-compat/non-streaming-handler.js +56 -2
- package/dist/src/openai-compat/non-streaming-handler.js.map +1 -1
- package/dist/src/openai-compat/streaming-handler.js +115 -2
- package/dist/src/openai-compat/streaming-handler.js.map +1 -1
- package/dist/src/patches/cache-parity-registry.d.ts +83 -0
- package/dist/src/patches/cache-parity-registry.js +151 -1
- package/dist/src/patches/cache-parity-registry.js.map +1 -1
- package/dist/src/session/session-manager.js +43 -0
- package/dist/src/session/session-manager.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/patches/sysprompt-strip.spec.d.ts +0 -33
- package/dist/src/patches/sysprompt-strip.spec.js +0 -53
- package/dist/src/patches/sysprompt-strip.spec.js.map +0 -1
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PatchSpec: sysprompt-strip
|
|
3
|
-
*
|
|
4
|
-
* Establishes the file convention for Phase E#3. NOT REGISTERED with any
|
|
5
|
-
* PatchManifest yet — this is the documented template that real PatchSpec
|
|
6
|
-
* files mirror as the cwd-patch.ts decomposition proceeds.
|
|
7
|
-
*
|
|
8
|
-
* Pattern for Phase E#3:
|
|
9
|
-
* 1. One file per logical patch under `src/patches/<id>.spec.ts`.
|
|
10
|
-
* 2. File <200 LOC (INITIAL.md §NF2).
|
|
11
|
-
* 3. Exports a single `PatchSpec` instance as a named export.
|
|
12
|
-
* 4. `resolve()` owns its upstream symbol lookup — no global target arg.
|
|
13
|
-
* 5. `expectedShape` is sync, returns boolean; checks signature/props.
|
|
14
|
-
* 6. `expectedBehavior` is async; runs a tiny invocation; <100ms.
|
|
15
|
-
* 7. `install` + `uninstall` are paired and round-trip-safe.
|
|
16
|
-
* 8. A companion `tests/patches/<id>.test.ts` proves shape + mutation necessity.
|
|
17
|
-
*
|
|
18
|
-
* Functional source for sysprompt-strip lives at `src/lib/sysprompt-strip.ts`
|
|
19
|
-
* (pure function, reused as-is per INITIAL.md §Reuse). The wrapper that
|
|
20
|
-
* registers it as a Claude Code prototype patch lives at
|
|
21
|
-
* `src/session-bootstrap/sysprompt-strip.ts`. Phase E#3 converts that wrapper
|
|
22
|
-
* into the structured PatchSpec form below.
|
|
23
|
-
*/
|
|
24
|
-
export const syspromptStripSpec = {
|
|
25
|
-
id: 'sysprompt-strip',
|
|
26
|
-
targetModule: 'claude-code/dist/session/SessionManager',
|
|
27
|
-
targetSymbol: 'SessionManager.prototype.startSession',
|
|
28
|
-
resolve() {
|
|
29
|
-
// Phase E#3 — replace with:
|
|
30
|
-
// const upstream = require('claude-code');
|
|
31
|
-
// return upstream.SessionManager.prototype;
|
|
32
|
-
return { __placeholder: true };
|
|
33
|
-
},
|
|
34
|
-
expectedShape(_target) {
|
|
35
|
-
// Phase E#3 — verify SessionManager.prototype.startSession exists
|
|
36
|
-
// as a function with the expected arity.
|
|
37
|
-
return true;
|
|
38
|
-
},
|
|
39
|
-
async expectedBehavior(_target) {
|
|
40
|
-
// Phase E#3 — call a stub startSession with a known sysprompt and
|
|
41
|
-
// verify the stripped output round-trips through `stripSysprompt()`
|
|
42
|
-
// at `src/lib/sysprompt-strip.ts`.
|
|
43
|
-
return true;
|
|
44
|
-
},
|
|
45
|
-
install(_target) {
|
|
46
|
-
// Phase E#3 — replace with the prototype-patch closure currently in
|
|
47
|
-
// `src/session-bootstrap/sysprompt-strip.ts`.
|
|
48
|
-
},
|
|
49
|
-
uninstall(_target) {
|
|
50
|
-
// Phase E#3 — restore the original SessionManager.prototype.startSession.
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=sysprompt-strip.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sysprompt-strip.spec.js","sourceRoot":"","sources":["../../../src/patches/sysprompt-strip.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAYH,MAAM,CAAC,MAAM,kBAAkB,GAAoC;IACjE,EAAE,EAAE,iBAAiB;IACrB,YAAY,EAAE,yCAAyC;IACvD,YAAY,EAAE,uCAAuC;IAErD,OAAO;QACL,4BAA4B;QAC5B,6CAA6C;QAC7C,8CAA8C;QAC9C,OAAO,EAAE,aAAa,EAAE,IAAI,EAA0B,CAAC;IACzD,CAAC;IAED,aAAa,CAAC,OAA6B;QACzC,kEAAkE;QAClE,yCAAyC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,OAA6B;QAClD,kEAAkE;QAClE,oEAAoE;QACpE,mCAAmC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CAAC,OAA6B;QACnC,oEAAoE;QACpE,8CAA8C;IAChD,CAAC;IAED,SAAS,CAAC,OAA6B;QACrC,0EAA0E;IAC5E,CAAC;CACF,CAAC"}
|