@wrongstack/wrongtrace 0.313.1 → 0.316.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/dist/adapters/ipc.d.ts +0 -4
- package/dist/adapters/ipc.js +1 -1
- package/dist/gate.d.ts +1 -0
- package/dist/gate.js +1 -1
- package/dist/hooks.d.ts +0 -9
- package/dist/hooks.js +1 -1
- package/package.json +1 -1
package/dist/adapters/ipc.d.ts
CHANGED
|
@@ -41,9 +41,5 @@ export interface IpcTransport {
|
|
|
41
41
|
*/
|
|
42
42
|
call<T = unknown>(method: string, params: Record<string, unknown>): Promise<IpcCallResult<T>>;
|
|
43
43
|
}
|
|
44
|
-
declare class TimeoutError extends Error {
|
|
45
|
-
constructor(ms: number);
|
|
46
|
-
}
|
|
47
44
|
export declare function createIpcTransport(socketPath?: string, timeouts?: IpcTimeouts): IpcTransport;
|
|
48
|
-
export { TimeoutError as IpcTimeoutError };
|
|
49
45
|
//# sourceMappingURL=ipc.d.ts.map
|
package/dist/adapters/ipc.js
CHANGED
package/dist/gate.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export interface PreflightOptions {
|
|
|
43
43
|
/** Caller identity stamped on locks (e.g. session id / agent name). */
|
|
44
44
|
owner?: string;
|
|
45
45
|
ownerRunId?: string;
|
|
46
|
+
ttlSeconds?: number;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* Pre-flight check before a heavy edit. Fast (single file-health fetch
|
package/dist/gate.js
CHANGED
|
@@ -73,7 +73,7 @@ export async function withFileLock(path, reason, fn, opts = {}) {
|
|
|
73
73
|
const lockOpts = {
|
|
74
74
|
// Generous TTL: heavy edits can run long; the lock self-reaps if we
|
|
75
75
|
// crash mid-edit so a dead session can never block the file forever.
|
|
76
|
-
ttlSeconds: 900,
|
|
76
|
+
ttlSeconds: opts.ttlSeconds ?? 900,
|
|
77
77
|
};
|
|
78
78
|
if (opts.owner !== undefined)
|
|
79
79
|
lockOpts.owner = opts.owner;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -97,15 +97,6 @@ export interface WrongTraceHookOptions {
|
|
|
97
97
|
/** Typed gate-decision event sink (host maps it onto its EventBus). */
|
|
98
98
|
emit?: (event: WrongTraceGateDecisionEvent) => void;
|
|
99
99
|
}
|
|
100
|
-
/**
|
|
101
|
-
* Per-runner lock bookkeeping. Reference-counted: when one hook pair is
|
|
102
|
-
* shared across concurrent executors (standalone WebUI parent + SDD-wizard
|
|
103
|
-
* workers, or the fleet runner across subagents), overlapping claims on the
|
|
104
|
-
* same path increment the count and the daemon lock is only released when
|
|
105
|
-
* the LAST finisher's postToolUse decrements it to zero — a sibling finishing
|
|
106
|
-
* early can never unlock a path another in-flight edit still holds.
|
|
107
|
-
*/
|
|
108
|
-
export declare function newWrongTraceLockCounter(): Map<string, number>;
|
|
109
100
|
/**
|
|
110
101
|
* Create a pre/post hook PAIR sharing one per-runner reference-counted lock
|
|
111
102
|
* map. Every host should use this when wiring both phases: the pairing
|
package/dist/hooks.js
CHANGED
|
@@ -105,7 +105,7 @@ function emitSafe(emit, event) {
|
|
|
105
105
|
* the LAST finisher's postToolUse decrements it to zero — a sibling finishing
|
|
106
106
|
* early can never unlock a path another in-flight edit still holds.
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
function newWrongTraceLockCounter() {
|
|
109
109
|
return new Map();
|
|
110
110
|
}
|
|
111
111
|
function acquireLock(counters, path) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/wrongtrace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.316.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Optional client adapter for the external WrongTrace AI Observability daemon. Discovers the daemon over HTTP/IPC/MCP at runtime; returns isAvailable:false when it is not reachable, so callers degrade gracefully. Not coupled to any runtime inside WrongStack — this is the 'sibling' integration protocol.",
|
|
6
6
|
"repository": {
|