@mjasnikovs/pi-task 0.38.31 → 0.38.32
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 +2 -1
- package/dist/config/config.d.ts +16 -2
- package/dist/config/config.js +7 -2
- package/dist/config/group-args.d.ts +52 -0
- package/dist/config/group-args.js +110 -0
- package/dist/config/group-models.d.ts +88 -0
- package/dist/config/group-models.js +117 -0
- package/dist/config/groups.d.ts +76 -0
- package/dist/config/groups.js +110 -0
- package/dist/config/option-picker.d.ts +42 -0
- package/dist/config/option-picker.js +73 -0
- package/dist/config/reasoning.d.ts +22 -63
- package/dist/config/reasoning.js +37 -108
- package/dist/config/register.d.ts +98 -12
- package/dist/config/register.js +228 -23
- package/dist/index.js +2 -0
- package/dist/remote/push.js +1 -7
- package/dist/shared/data-home.d.ts +8 -0
- package/dist/shared/data-home.js +14 -0
- package/dist/shared/model-endpoint.d.ts +53 -0
- package/dist/shared/model-endpoint.js +98 -2
- package/dist/shared/reasoning-capability.d.ts +25 -5
- package/dist/shared/reasoning-capability.js +18 -9
- package/dist/task/child-runner.d.ts +19 -16
- package/dist/task/child-runner.js +64 -36
- package/dist/task/context-usage.d.ts +46 -0
- package/dist/task/context-usage.js +41 -0
- package/dist/task/gate-child.d.ts +15 -4
- package/dist/task/gate-child.js +2 -2
- package/dist/task/gate-deps.js +7 -2
- package/dist/task/implementation-hold.d.ts +118 -0
- package/dist/task/implementation-hold.js +165 -0
- package/dist/task/model-hold-stash.d.ts +43 -0
- package/dist/task/model-hold-stash.js +70 -0
- package/dist/task/orchestrator.d.ts +18 -5
- package/dist/task/orchestrator.js +36 -4
- package/dist/task/phases.js +2 -2
- package/dist/task/research-worker.d.ts +2 -2
- package/dist/task/research-worker.js +1 -1
- package/dist/workers/docs-core.js +2 -2
- package/dist/workers/docs-lookup.d.ts +4 -3
- package/dist/workers/docs-lookup.js +1 -1
- package/dist/workers/fetch-core.js +2 -2
- package/dist/workers/focused-extractor.d.ts +4 -3
- package/dist/workers/focused-extractor.js +5 -4
- package/dist/workers/index.js +2 -0
- package/dist/workers/model-warning.d.ts +69 -0
- package/dist/workers/model-warning.js +113 -0
- package/dist/workers/pi-worker-core.d.ts +7 -7
- package/dist/workers/pi-worker-core.js +4 -3
- package/dist/workers/pi-worker-docs.js +2 -2
- package/dist/workers/pi-worker.js +4 -4
- package/dist/workers/reasoning-warning.d.ts +17 -9
- package/dist/workers/reasoning-warning.js +69 -22
- package/package.json +1 -1
- package/dist/config/reasoning-args.d.ts +0 -23
- package/dist/config/reasoning-args.js +0 -28
- package/dist/task/implementation-thinking.d.ts +0 -56
- package/dist/task/implementation-thinking.js +0 -32
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { getConfig } from '../config/config.js';
|
|
2
|
-
import { resolveReasoning } from '../config/reasoning.js';
|
|
3
|
-
/**
|
|
4
|
-
* Put the session at the implementation group's level and return the function
|
|
5
|
-
* that puts it back. Always call the returned function — `finally`, not the
|
|
6
|
-
* happy path.
|
|
7
|
-
*
|
|
8
|
-
* `inherit` makes NO call at all, not even a redundant set-to-current. It means
|
|
9
|
-
* the same thing here as in `thinkingArgs`, which emits no `--thinking` flag for
|
|
10
|
-
* it: leave the level wherever it already is.
|
|
11
|
-
*/
|
|
12
|
-
export function holdImplementationThinking(control, setting = resolveReasoning('implementation', getConfig())) {
|
|
13
|
-
if (setting === 'inherit')
|
|
14
|
-
return () => { };
|
|
15
|
-
const before = control.get();
|
|
16
|
-
control.set(setting);
|
|
17
|
-
// Post-clamp, so a model that cannot do `medium` does not leave us believing
|
|
18
|
-
// it is at `medium` and treating the user's later change as our own.
|
|
19
|
-
const applied = control.get();
|
|
20
|
-
if (applied === before)
|
|
21
|
-
return () => { };
|
|
22
|
-
let released = false;
|
|
23
|
-
return () => {
|
|
24
|
-
// Idempotent by contract: only the first call restores. A later call
|
|
25
|
-
// would write `before` on top of whatever the level is by then.
|
|
26
|
-
if (released)
|
|
27
|
-
return;
|
|
28
|
-
released = true;
|
|
29
|
-
if (control.get() === applied)
|
|
30
|
-
control.set(before);
|
|
31
|
-
};
|
|
32
|
-
}
|