@mjasnikovs/pi-task 0.18.15 → 0.18.16

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.
Files changed (55) hide show
  1. package/README.md +2 -2
  2. package/dist/task/accept-debt.d.ts +28 -1
  3. package/dist/task/accept-debt.js +61 -3
  4. package/dist/task/auto-io.d.ts +4 -2
  5. package/dist/task/auto-io.js +6 -3
  6. package/dist/task/auto-orchestrator.d.ts +1 -0
  7. package/dist/task/auto-orchestrator.js +135 -19
  8. package/dist/task/auto-prompts.d.ts +5 -5
  9. package/dist/task/auto-prompts.js +9 -2
  10. package/dist/task/contracts.d.ts +8 -0
  11. package/dist/task/contracts.js +4 -2
  12. package/dist/task/decompose-fidelity.d.ts +47 -0
  13. package/dist/task/decompose-fidelity.js +132 -0
  14. package/dist/task/final-gate-fix.d.ts +22 -3
  15. package/dist/task/final-gate-fix.js +72 -7
  16. package/dist/task/final-gate.d.ts +48 -1
  17. package/dist/task/final-gate.js +182 -34
  18. package/dist/task/gate-deps.d.ts +7 -0
  19. package/dist/task/gate-deps.js +37 -1
  20. package/dist/task/launch-contract.d.ts +36 -1
  21. package/dist/task/launch-contract.js +80 -2
  22. package/dist/task/phases.d.ts +13 -1
  23. package/dist/task/phases.js +50 -11
  24. package/dist/task/prompts.js +2 -0
  25. package/dist/task/render-check.d.ts +32 -0
  26. package/dist/task/render-check.js +186 -0
  27. package/dist/task/requirements.d.ts +88 -0
  28. package/dist/task/requirements.js +331 -0
  29. package/dist/task/verify-reconcile.d.ts +36 -0
  30. package/dist/task/verify-reconcile.js +203 -0
  31. package/dist/task/write-guard.d.ts +52 -0
  32. package/dist/task/write-guard.js +112 -0
  33. package/package.json +1 -1
  34. package/dist/task/_ab.d.ts +0 -1
  35. package/dist/task/_ab.js +0 -68
  36. package/dist/task/task-file.d.ts +0 -14
  37. package/dist/task/task-file.js +0 -15
  38. package/dist/think-test/cli.d.ts +0 -1
  39. package/dist/think-test/cli.js +0 -98
  40. package/dist/think-test/client.d.ts +0 -26
  41. package/dist/think-test/client.js +0 -37
  42. package/dist/think-test/compressor.d.ts +0 -5
  43. package/dist/think-test/compressor.js +0 -25
  44. package/dist/think-test/judge.d.ts +0 -4
  45. package/dist/think-test/judge.js +0 -11
  46. package/dist/think-test/score.d.ts +0 -8
  47. package/dist/think-test/score.js +0 -22
  48. package/dist/think-test/serialize.d.ts +0 -19
  49. package/dist/think-test/serialize.js +0 -41
  50. package/dist/think-test/transcript.d.ts +0 -7
  51. package/dist/think-test/transcript.js +0 -41
  52. package/dist/think-test/transform.d.ts +0 -6
  53. package/dist/think-test/transform.js +0 -24
  54. package/dist/think-test/types.d.ts +0 -45
  55. package/dist/think-test/types.js +0 -1
@@ -1,45 +0,0 @@
1
- export type ThinkMode = 'full' | 'none' | 'compressed';
2
- export interface ThinkingBlock {
3
- type: 'thinking';
4
- thinking: string;
5
- thinkingSignature?: string;
6
- }
7
- export interface TextBlock {
8
- type: 'text';
9
- text: string;
10
- }
11
- export interface ToolCallBlock {
12
- type: 'toolCall';
13
- id: string;
14
- name: string;
15
- arguments: Record<string, unknown>;
16
- }
17
- export type AssistantBlock = ThinkingBlock | TextBlock | ToolCallBlock;
18
- export interface UserMsg {
19
- role: 'user';
20
- content: string | TextBlock[];
21
- }
22
- export interface AssistantMsg {
23
- role: 'assistant';
24
- content: AssistantBlock[];
25
- }
26
- export interface ToolResultMsg {
27
- role: 'toolResult';
28
- toolCallId: string;
29
- toolName: string;
30
- content: TextBlock[];
31
- }
32
- export type SessionMsg = UserMsg | AssistantMsg | ToolResultMsg;
33
- /** An assistant turn whose recorded action was a tool call — the unit we score. */
34
- export interface DecisionPoint {
35
- index: number;
36
- prior: SessionMsg[];
37
- recordedTool: string;
38
- recordedArgs: Record<string, unknown>;
39
- }
40
- /** The normalized next action returned by the model for one sample. */
41
- export interface Action {
42
- tool?: string;
43
- args?: Record<string, unknown>;
44
- text?: string;
45
- }
@@ -1 +0,0 @@
1
- export {};