@turri-dev/cli 0.2.4-next.35ab04b → 0.2.4-next.636a651

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 (102) hide show
  1. package/README.md +2 -2
  2. package/dist/chat-idle.d.ts +2 -2
  3. package/dist/chat-idle.js +2 -2
  4. package/dist/chats.d.ts +0 -10
  5. package/dist/chats.js +0 -23
  6. package/dist/cli.js +5 -7
  7. package/dist/config-edit.js +1 -3
  8. package/dist/config.d.ts +20 -22
  9. package/dist/config.js +49 -22
  10. package/dist/conformance-switch.d.ts +7 -17
  11. package/dist/conformance-switch.js +24 -46
  12. package/dist/drift-cli.js +1 -1
  13. package/dist/extension.d.ts +8 -10
  14. package/dist/extension.js +157 -217
  15. package/dist/genome.js +9 -48
  16. package/dist/graph.js +3 -5
  17. package/dist/host-session.d.ts +4 -15
  18. package/dist/host-session.js +2 -4
  19. package/dist/host.d.ts +1 -3
  20. package/dist/host.js +1 -4
  21. package/dist/identity.js +0 -1
  22. package/dist/init-config.d.ts +0 -1
  23. package/dist/init-config.js +2 -9
  24. package/dist/installed-providers.d.ts +1 -1
  25. package/dist/installed-providers.js +1 -1
  26. package/dist/loop-cli.d.ts +4 -3
  27. package/dist/loop-cli.js +13 -11
  28. package/dist/loop-tools.d.ts +26 -3
  29. package/dist/loop-tools.js +85 -20
  30. package/dist/new-project.js +2 -2
  31. package/dist/pi-launch.js +1 -1
  32. package/dist/pi.js +9 -6
  33. package/dist/plain/check.d.ts +1 -8
  34. package/dist/plain/check.js +3 -38
  35. package/dist/regenerate/activity.d.ts +0 -7
  36. package/dist/regenerate/activity.js +2 -20
  37. package/dist/regenerate/agent-shell.js +3 -1
  38. package/dist/regenerate/audit.js +9 -0
  39. package/dist/regenerate/chunk-plan.d.ts +5 -0
  40. package/dist/regenerate/chunk-plan.js +16 -1
  41. package/dist/regenerate/failure-reports.d.ts +28 -0
  42. package/dist/regenerate/failure-reports.js +79 -0
  43. package/dist/regenerate/job-panel.js +3 -1
  44. package/dist/regenerate/jobs-tree.js +1 -1
  45. package/dist/regenerate/jobs.d.ts +2 -0
  46. package/dist/regenerate/jobs.js +4 -0
  47. package/dist/regenerate/ledger-view.d.ts +11 -24
  48. package/dist/regenerate/ledger-view.js +14 -60
  49. package/dist/regenerate/ledger.d.ts +1 -14
  50. package/dist/regenerate/ledger.js +1 -1
  51. package/dist/regenerate/loop.d.ts +37 -60
  52. package/dist/regenerate/loop.js +174 -106
  53. package/dist/regenerate/regenerate.d.ts +0 -2
  54. package/dist/regenerate/regenerate.js +4 -15
  55. package/dist/regenerate/standing.js +1 -1
  56. package/dist/regenerate/submit-work.d.ts +2 -0
  57. package/dist/regenerate/submit-work.js +8 -3
  58. package/dist/regenerate/testing-steps.d.ts +11 -0
  59. package/dist/regenerate/testing-steps.js +22 -3
  60. package/dist/regenerate-cli.js +18 -9
  61. package/dist/self-invocation.d.ts +11 -0
  62. package/dist/self-invocation.js +33 -7
  63. package/dist/sentinel.js +8 -5
  64. package/dist/skill.d.ts +0 -11
  65. package/dist/skill.js +0 -9
  66. package/dist/stacks.js +1 -1
  67. package/dist/tools.js +2 -3
  68. package/dist/turri-versions.js +2 -1
  69. package/docs/README.md +0 -2
  70. package/docs/authoring-plain.md +3 -3
  71. package/docs/chats.md +1 -3
  72. package/docs/config.md +11 -13
  73. package/docs/deploy.md +1 -1
  74. package/docs/development.md +2 -3
  75. package/docs/headless.md +5 -4
  76. package/docs/hosting.md +6 -6
  77. package/docs/parser.md +2 -2
  78. package/docs/regenerating.md +14 -12
  79. package/docs/sentinel.md +4 -4
  80. package/docs/skills-and-gates.md +4 -8
  81. package/docs/using.md +10 -18
  82. package/genome/rules/test-plain-files.md +15 -7
  83. package/genome/rules/turri-regeneration.md +4 -9
  84. package/genome/skills/convert-old-syntax/SKILL.md +5 -5
  85. package/package.json +1 -1
  86. package/dist/advisor-chat.d.ts +0 -63
  87. package/dist/advisor-chat.js +0 -290
  88. package/dist/change-plain-cli.d.ts +0 -1
  89. package/dist/change-plain-cli.js +0 -55
  90. package/dist/ledger-cli.d.ts +0 -1
  91. package/dist/ledger-cli.js +0 -50
  92. package/dist/ledger-tools.d.ts +0 -10
  93. package/dist/ledger-tools.js +0 -64
  94. package/dist/regenerate/advisor-records.d.ts +0 -93
  95. package/dist/regenerate/advisor-records.js +0 -110
  96. package/dist/regenerate/advisor-runs.d.ts +0 -87
  97. package/dist/regenerate/advisor-runs.js +0 -327
  98. package/dist/regenerate/test-advisor.d.ts +0 -101
  99. package/dist/regenerate/test-advisor.js +0 -379
  100. package/dist/spec-tools.d.ts +0 -36
  101. package/dist/spec-tools.js +0 -128
  102. package/docs/test-advisor.md +0 -110
@@ -4,7 +4,6 @@ import { stackOnMachine } from "./stack.ts";
4
4
  import { createAskUserTool } from "./tools.ts";
5
5
  import { fromWorkingDir } from "./loop-tools.ts";
6
6
  import { type WorkLoop } from "./regenerate/loop.ts";
7
- import { type TestAdvisor } from "./regenerate/advisor-runs.ts";
8
7
  import { type AskUser, type AskUserIO } from "./ask.ts";
9
8
  import { type TurriCore, type TurriHost } from "./chats.ts";
10
9
  /**
@@ -15,6 +14,12 @@ import { type TurriCore, type TurriHost } from "./chats.ts";
15
14
  * exchange is therefore reported back, so the interview is visible while it happens and
16
15
  * survives in the tool's result afterwards.
17
16
  */
17
+ /**
18
+ * What a question gets with nobody to answer it - print, json and rpc modes. What is the agent's to decide it decides; the
19
+ * person's own files it leaves as they are, as it would have without their yes - a testing script it finds wrong is said,
20
+ * not rewritten.
21
+ */
22
+ export declare const NO_USER_ANSWER: string;
18
23
  export declare function askUserVia(ctx: ExtensionContext, onExchange: (question: string, answer: string, said?: string) => void,
19
24
  /** Given, "/btw ..." typed as an answer is a side question: answered with this, and the question asked again. */
20
25
  aside?: (question: string) => Promise<string>,
@@ -39,11 +44,6 @@ export type { TurriHost } from "./chats.ts";
39
44
  export declare function createTurriCore(host?: TurriHost, options?: {
40
45
  persist?: boolean;
41
46
  dialogs?: (chat: string) => AskUserIO | undefined;
42
- /**
43
- * Whether the session has a test advisor (docs/test-advisor.md): the terminal's chat and a host - never pi's print,
44
- * json and rpc modes, which end when the answer is printed, nor a headless command, which builds its own loop.
45
- */
46
- advisor?: boolean;
47
47
  }): TurriCore;
48
48
  /** The session of this process: pi-launch.ts's, or one made as pi first builds the extension (`pi -e src/extension.ts`). */
49
49
  export declare function processSession(make?: () => TurriCore): TurriCore;
@@ -137,13 +137,11 @@ export declare function machineNeeds(cwd: string, work?: (cwd: string) => Return
137
137
  export declare function projectConfigBlock(root: string): string;
138
138
  /**
139
139
  * Conformance tests turned on, for the session: `conformance-tests: true` written where the module's value comes from
140
- * (conformance-switch.ts), and every open chat's tools switched to match - what the chat's turn_on_conformance_tests and a
141
- * host's turnOnConformanceTests both do. `plainFile`, absolute or from the project, picks the module whose stack's file
140
+ * (conformance-switch.ts) - what /conform does when they are off, and a host's turnOnConformance. Every chat is told at
141
+ * its next turn. `plainFile`, absolute or from the project, picks the module whose stack's file
142
142
  * is written when that names the key. Returns the file written, from the project. Starts no conformance pulse.
143
143
  */
144
144
  export declare function turnOnConformance(core: TurriCore, plainFile?: string): string;
145
- /** The session's test advisor, when it has one: the chat's and a host's - never pi's print, json and rpc modes'. */
146
- export declare function sessionAdvisor(session: TurriCore): TestAdvisor | undefined;
147
145
  export { fromWorkingDir };
148
146
  /**
149
147
  * What the agent is to do with a job that just ended, unasked: what the project's guidance says to do then, or else say