@mjasnikovs/pi-task 0.38.23 → 0.38.25
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 -2
- package/dist/config/reasoning-args.d.ts +12 -1
- package/dist/config/reasoning-args.js +5 -2
- package/dist/config/reasoning.d.ts +47 -6
- package/dist/config/reasoning.js +84 -9
- package/dist/config/register.d.ts +50 -26
- package/dist/config/register.js +96 -80
- package/dist/shared/reasoning-capability.d.ts +2 -5
- package/dist/shared/reasoning-capability.js +31 -4
- package/dist/task/auto-orchestrator.d.ts +2 -0
- package/dist/task/auto-orchestrator.js +28 -41
- package/dist/task/child-runner.d.ts +89 -24
- package/dist/task/child-runner.js +67 -46
- package/dist/task/gate-child.js +11 -11
- package/dist/task/orchestrator.d.ts +14 -20
- package/dist/task/orchestrator.js +12 -9
- package/dist/task/phases.d.ts +0 -23
- package/dist/task/phases.js +48 -464
- package/dist/task/question-dialog.d.ts +56 -0
- package/dist/task/question-dialog.js +53 -0
- package/dist/task/research-fanout-budget.d.ts +20 -0
- package/dist/task/research-fanout-budget.js +29 -0
- package/dist/task/research-worker.d.ts +183 -0
- package/dist/task/research-worker.js +429 -0
- package/dist/workers/brave-warning.js +4 -30
- package/dist/workers/docs-core.d.ts +8 -4
- package/dist/workers/docs-core.js +30 -21
- package/dist/workers/docs-lookup.d.ts +72 -0
- package/dist/workers/docs-lookup.js +53 -0
- package/dist/workers/docs-project.d.ts +9 -0
- package/dist/workers/docs-project.js +15 -0
- package/dist/workers/pi-worker-core.d.ts +112 -109
- package/dist/workers/pi-worker-core.js +33 -48
- package/dist/workers/pi-worker-docs.js +27 -31
- package/dist/workers/pi-worker.js +6 -0
- package/dist/workers/reasoning-warning.d.ts +10 -16
- package/dist/workers/reasoning-warning.js +25 -57
- package/dist/workers/session-hint.d.ts +37 -0
- package/dist/workers/session-hint.js +82 -0
- package/dist/workers/worker-failure.d.ts +34 -0
- package/dist/workers/worker-failure.js +27 -16
- package/dist/workers/worker-kill.d.ts +84 -0
- package/dist/workers/worker-kill.js +124 -0
- package/dist/workers/worker-profiles.d.ts +314 -0
- package/dist/workers/worker-profiles.js +220 -0
- package/package.json +1 -1
- package/dist/task/reasoning-groups.d.ts +0 -36
- package/dist/task/reasoning-groups.js +0 -36
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Child NAME → reasoning group, for every child that goes through
|
|
3
|
-
* `runPhaseChild` / `runPlanningChild`.
|
|
4
|
-
*
|
|
5
|
-
* WHY KEYED ON THE NAME
|
|
6
|
-
* ---------------------
|
|
7
|
-
* The name is the only identifier in scope at all three spawn paths (phases,
|
|
8
|
-
* /task-auto planning, /task-plan), it is what the loader and the debug trail
|
|
9
|
-
* already print, and it is the one thing a reader can check against the phase
|
|
10
|
-
* list without following the call graph. Threading a group parameter through
|
|
11
|
-
* `PhaseDeps` / `AutoDeps` instead would touch both orchestrators' dep bags to
|
|
12
|
-
* express something the call site already says out loud.
|
|
13
|
-
*
|
|
14
|
-
* AN UNMAPPED NAME IS A BUILD FAILURE, not a silent `inherit`.
|
|
15
|
-
* `reasoning-groups.test.ts` scans every literal child name in src/ and fails if
|
|
16
|
-
* it is missing here. A defaulting lookup would let a phase added next year opt
|
|
17
|
-
* itself out of a measured setting without anyone deciding to — which is exactly
|
|
18
|
-
* how `/no_think` ended up applied to eight prompts and read by none of them.
|
|
19
|
-
*
|
|
20
|
-
* The gate, research and extraction groups are NOT here: those children reach the
|
|
21
|
-
* model through `runWorker` / `focusedChildArgs`, where the group is a property
|
|
22
|
-
* of the call site rather than of a name, and is passed directly.
|
|
23
|
-
*/
|
|
24
|
-
import type { ReasoningGroup } from '../config/reasoning.js';
|
|
25
|
-
export declare const REASONING_GROUP_BY_CHILD: Readonly<Record<string, ReasoningGroup>>;
|
|
26
|
-
/**
|
|
27
|
-
* The group a named child belongs to.
|
|
28
|
-
*
|
|
29
|
-
* Returns `undefined` for a name the table does not know, and the CALLER decides
|
|
30
|
-
* what that means. `runPhaseChild` treats it as `inherit` — a child that reaches
|
|
31
|
-
* the model with today's argv is always safe — while the test treats it as a
|
|
32
|
-
* failure. That split is deliberate: the guard belongs at build time, where
|
|
33
|
-
* someone can fix it, not at run time, where it would abort a user's task over a
|
|
34
|
-
* missing table row.
|
|
35
|
-
*/
|
|
36
|
-
export declare function reasoningGroupForChild(name: string): ReasoningGroup | undefined;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export const REASONING_GROUP_BY_CHILD = {
|
|
2
|
-
// ── phase: task/phases.ts + task/title-label.ts ──────────────────────────
|
|
3
|
-
refine: 'phase',
|
|
4
|
-
'verify-tooling': 'phase',
|
|
5
|
-
'grill-auto': 'phase',
|
|
6
|
-
'grill-gen': 'phase',
|
|
7
|
-
compose: 'phase',
|
|
8
|
-
critique: 'phase',
|
|
9
|
-
'critique-triage': 'phase',
|
|
10
|
-
'compress-label': 'phase',
|
|
11
|
-
// ── planning: task/auto-orchestrator.ts ──────────────────────────────────
|
|
12
|
-
'clarify-triage': 'planning',
|
|
13
|
-
'auto-clarify': 'planning',
|
|
14
|
-
'auto-decompose': 'planning',
|
|
15
|
-
'requirement-extract': 'planning',
|
|
16
|
-
'decompose-coverage': 'planning',
|
|
17
|
-
'coverage-map': 'planning',
|
|
18
|
-
'contract-extract': 'planning',
|
|
19
|
-
'launch-extract': 'planning',
|
|
20
|
-
// ── plan: task/plan-orchestrator.ts ──────────────────────────────────────
|
|
21
|
-
'plan-question': 'plan',
|
|
22
|
-
'plan-answer': 'plan'
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* The group a named child belongs to.
|
|
26
|
-
*
|
|
27
|
-
* Returns `undefined` for a name the table does not know, and the CALLER decides
|
|
28
|
-
* what that means. `runPhaseChild` treats it as `inherit` — a child that reaches
|
|
29
|
-
* the model with today's argv is always safe — while the test treats it as a
|
|
30
|
-
* failure. That split is deliberate: the guard belongs at build time, where
|
|
31
|
-
* someone can fix it, not at run time, where it would abort a user's task over a
|
|
32
|
-
* missing table row.
|
|
33
|
-
*/
|
|
34
|
-
export function reasoningGroupForChild(name) {
|
|
35
|
-
return REASONING_GROUP_BY_CHILD[name];
|
|
36
|
-
}
|