@tech-leads-club/harness-toolkit 0.15.2 → 0.15.3
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/bin/tlc-cli.ts +13 -1
- package/dist/compact-before.mjs +89 -78
- package/dist/doctor.mjs +88 -77
- package/dist/prompt-submit.mjs +89 -78
- package/dist/response-after.mjs +89 -78
- package/dist/run.mjs +89 -78
- package/dist/session-end.mjs +76 -76
- package/dist/session-start.mjs +74 -74
- package/dist/ship-gate.mjs +69 -69
- package/dist/stop.mjs +94 -83
- package/dist/subagent-start.mjs +89 -78
- package/dist/subagent-stop.mjs +90 -79
- package/dist/support.mjs +86 -86
- package/dist/tlc-cli.mjs +1 -1
- package/dist/tool-after.mjs +93 -82
- package/dist/tool-before.mjs +94 -83
- package/dist/tool-failure.mjs +89 -78
- package/docs/log.md +4 -0
- package/package.json +1 -1
- package/src/entrypoints/support.ts +15 -13
- package/src/providers/claude/index.ts +2 -0
- package/src/providers/cursor/index.ts +2 -0
- package/src/providers/index.ts +0 -2
- package/src/providers/provider.port.ts +1 -0
package/docs/log.md
CHANGED
|
@@ -13,6 +13,10 @@ Generated from `docs/decisions/` — do not edit by hand. Run `node tools/render
|
|
|
13
13
|
A reserved file of the [OKF v0.1](/decisions/ad-013.md) bundle: entries grouped under ISO 8601 headings,
|
|
14
14
|
newest first. For what landed in which npm release, see `CHANGELOG.md` at the repository root.
|
|
15
15
|
|
|
16
|
+
## 2026-09-12
|
|
17
|
+
|
|
18
|
+
- **AD-139** — lessonsView joins ProviderPort, closing the one dispatcher that bypassed it ([/decisions/ad-139.md](/decisions/ad-139.md))
|
|
19
|
+
|
|
16
20
|
## 2026-09-11
|
|
17
21
|
|
|
18
22
|
- **AD-137** — Gate artifacts are scoped per session, the same fix AD-122 already proved for handoff ([/decisions/ad-137.md](/decisions/ad-137.md))
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "../core/index.ts";
|
|
11
11
|
import { filterCodeTargets, filterTestTargets, gitRootOf, listChangedRepoFiles } from "../platform/git.ts";
|
|
12
12
|
import { runProcess } from "../platform/process.ts";
|
|
13
|
-
import { type ProviderPort,
|
|
13
|
+
import { type ProviderPort, providers } from "../providers/index.ts";
|
|
14
14
|
|
|
15
15
|
// invariant: one definition, taken from core rather than restated.
|
|
16
16
|
export const OBS_CONFIG = coreFacade.observability.DEFAULT_OBS;
|
|
@@ -248,18 +248,20 @@ export function renderLessonLine(lesson: HarnessLesson): string {
|
|
|
248
248
|
return coreFacade.lesson.renderLessonBlock(lesson);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
251
|
+
// invariant: a single dispatcher, called from both session entrypoints — the durable view is written at
|
|
252
|
+
// session start and again at session end, so a second copy of this logic in either one would repeat the
|
|
253
|
+
// AD-042 defect.
|
|
254
|
+
|
|
255
|
+
// why: a registry lookup, not a name-checking chain — adding a third adapter to `providers` gets it
|
|
256
|
+
// dispatched here for free, exactly as it already gets `detect`/`capabilities`/`render` for free —
|
|
257
|
+
// `ProviderPort` itself, not this function, is what requires `lessonsView` to exist ([/decisions/ad-139.md](/decisions/ad-139.md)).
|
|
258
|
+
export function renderProviderLessonsView(
|
|
259
|
+
providerName: string,
|
|
260
|
+
root: string,
|
|
261
|
+
registry: readonly ProviderPort[] = providers,
|
|
262
|
+
): string | null {
|
|
263
|
+
const provider = registry.find((candidate) => candidate.name === providerName);
|
|
264
|
+
return provider?.lessonsView(root) ?? null;
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
/**
|
|
@@ -2,6 +2,7 @@ import type { ProviderPort } from "../provider.port.ts";
|
|
|
2
2
|
import { claudeCapabilities } from "./claude.capabilities.ts";
|
|
3
3
|
import { detectClaude } from "./claude.detect.ts";
|
|
4
4
|
import { claudeToEvent } from "./claude.inbound.ts";
|
|
5
|
+
import { renderClaudeLessonsView } from "./claude.lessons-view.ts";
|
|
5
6
|
import { claudeRender } from "./claude.outbound.ts";
|
|
6
7
|
import { claudePolicyDefaults } from "./claude.policy-defaults.ts";
|
|
7
8
|
import { claudeWiring, claudeWiringTargets } from "./claude.wiring.ts";
|
|
@@ -15,4 +16,5 @@ export const claudeProvider: ProviderPort = {
|
|
|
15
16
|
render: claudeRender,
|
|
16
17
|
wiring: claudeWiring,
|
|
17
18
|
wiringTargets: claudeWiringTargets,
|
|
19
|
+
lessonsView: renderClaudeLessonsView,
|
|
18
20
|
};
|
|
@@ -2,6 +2,7 @@ import type { ProviderPort } from "../provider.port.ts";
|
|
|
2
2
|
import { cursorCapabilities } from "./cursor.capabilities.ts";
|
|
3
3
|
import { detectCursor } from "./cursor.detect.ts";
|
|
4
4
|
import { cursorToEvent } from "./cursor.inbound.ts";
|
|
5
|
+
import { renderCursorLessonsView } from "./cursor.lessons-view.ts";
|
|
5
6
|
import { cursorRender } from "./cursor.outbound.ts";
|
|
6
7
|
import { cursorPolicyDefaults } from "./cursor.policy-defaults.ts";
|
|
7
8
|
import { cursorWiring, cursorWiringTargets } from "./cursor.wiring.ts";
|
|
@@ -15,4 +16,5 @@ export const cursorProvider: ProviderPort = {
|
|
|
15
16
|
render: cursorRender,
|
|
16
17
|
wiring: cursorWiring,
|
|
17
18
|
wiringTargets: cursorWiringTargets,
|
|
19
|
+
lessonsView: renderCursorLessonsView,
|
|
18
20
|
};
|
package/src/providers/index.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export { renderClaudeLessonsView } from "./claude/claude.lessons-view.ts";
|
|
2
1
|
export type { TranscriptUsage } from "./claude/claude.transcript.ts";
|
|
3
2
|
export { readClaudeUsage } from "./claude/claude.transcript.ts";
|
|
4
3
|
export { claudeWiring, mergeClaudeSettings } from "./claude/claude.wiring.ts";
|
|
5
|
-
export { renderCursorLessonsView } from "./cursor/cursor.lessons-view.ts";
|
|
6
4
|
export type { DegradeOptions } from "./provider.degrade.ts";
|
|
7
5
|
export { degrade, truncateContext } from "./provider.degrade.ts";
|
|
8
6
|
export type { ProviderPort } from "./provider.port.ts";
|