From b8158f04cb59b16bea109718f78cec645ab78960 Mon Sep 17 00:00:00 2001 From: Ian Pascoe Date: Sat, 25 Apr 2026 10:16:00 -0400 Subject: [PATCH 1/2] docs: add brv memory for PR push outcome --- .../facts/project/pr_push_outcome.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .brv/context-tree/facts/project/pr_push_outcome.md diff --git a/.brv/context-tree/facts/project/pr_push_outcome.md b/.brv/context-tree/facts/project/pr_push_outcome.md new file mode 100644 index 0000000..ee732c1 --- /dev/null +++ b/.brv/context-tree/facts/project/pr_push_outcome.md @@ -0,0 +1,45 @@ +--- +title: PR Push Outcome +summary: The remaining .brv memory was committed as 7edf357 and pushed; the PR branch is clean and up to date with origin/feat/configurable-plugin-options. +tags: [] +related: [] +keywords: [] +createdAt: '2026-04-25T13:12:20.630Z' +updatedAt: '2026-04-25T13:12:20.630Z' +--- +## Reason +Capture durable outcome of pushing the remaining .brv memory to the PR branch + +## Raw Concept +**Task:** +Document the PR push outcome for the generated .brv memory update + +**Changes:** +- Committed the remaining .brv memory separately +- Pushed the commit to the PR branch +- Confirmed the branch is clean and up to date with origin/feat/configurable-plugin-options + +**Flow:** +generate .brv memory -> commit separately -> push to PR branch -> verify branch state + +**Timestamp:** 2026-04-25T13:12:16.090Z + +**Author:** assistant + +## Narrative +### Structure +This note records a completed PR maintenance action involving a generated .brv memory and the corresponding git push outcome. + +### Dependencies +Depends on the PR branch tracking origin/feat/configurable-plugin-options. + +### Highlights +The final repository state was reported as clean, with the branch synchronized to origin after pushing commit 7edf357. + +### Examples +Use this as the reference for the successful push and verification of the PR branch state. + +## Facts +- **brv_memory_commit_flow**: The remaining generated .brv memory was committed separately before pushing. [project] +- **commit_hash**: The added commit was 7edf357 docs: add brv memory for test pruning. [project] +- **pr_branch_status**: The PR branch is clean and up to date with origin/feat/configurable-plugin-options. [project] From 49c40de4e16065dc21a32b98a45aab2e14451e7b Mon Sep 17 00:00:00 2001 From: Ian Pascoe Date: Sat, 25 Apr 2026 10:16:21 -0400 Subject: [PATCH 2/2] test: cover default plugin options --- src/index.test.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/index.test.ts b/src/index.test.ts index 6f14f6b..6087181 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -76,6 +76,29 @@ const setReasoningEffort = async ( ) => plugin.tool![toolName]!.execute(args, context as never); describe("AdaptiveThinkingPlugin", () => { + test("uses defaults when no options are provided", async () => { + const sessionID = "default-options"; + const { client, toolContext } = createClient(sessionID, [createMessage("medium")]); + const plugin = await AdaptiveThinkingPlugin({ client } as never); + const system: string[] = []; + + await setReasoningEffort(plugin, { level: "high", persist: true }, toolContext); + await plugin["experimental.chat.system.transform"]!( + { + sessionID, + model: { variants }, + } as never, + { system }, + ); + + expect(plugin.tool?.set_reasoning_effort?.description).toBe("Set your reasoning effort"); + expect(client.session.promptAsync).toHaveBeenCalledWith( + expect.objectContaining({ body: expect.objectContaining({ variant: "high" }) }), + ); + expect(system[0]).toContain("You MUST manage reasoning effort actively"); + expect(system[0]).toContain("set_reasoning_effort"); + }); + test("returns no hooks when disabled", async () => { const { client } = createClient("disabled-plugin"); const plugin = await AdaptiveThinkingPlugin({ client } as never, { enabled: false });