fito-tui 0.4.0 → 0.5.0

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 (51) hide show
  1. package/agents/fito-performance-reviewer.md +6 -5
  2. package/extensions/fito-startup.js +27 -3
  3. package/extensions/fito-startup.ts +39 -7
  4. package/package.json +3 -3
  5. package/prompts/fito-auth-refresh.md +1 -1
  6. package/prompts/fito-case-edit.md +2 -2
  7. package/prompts/fito-case-generate.md +1 -1
  8. package/prompts/fito-case-open.md +6 -5
  9. package/prompts/fito-create-or-update-competence.md +2 -2
  10. package/prompts/fito-create-or-update-technology.md +5 -5
  11. package/prompts/fito-delete-competence.md +2 -2
  12. package/prompts/fito-evaluate.md +30 -22
  13. package/prompts/fito-login.md +3 -3
  14. package/prompts/fito-logout.md +1 -1
  15. package/prompts/fito-publish-case.md +3 -3
  16. package/prompts/fito-push-knowledge.md +1 -1
  17. package/prompts/fito-submit.md +55 -36
  18. package/skills/fito-auth/SKILL.md +8 -7
  19. package/skills/fito-auth/browser.js +3 -2
  20. package/skills/fito-auth/browser.ts +3 -2
  21. package/skills/fito-auth/login.js +22 -6
  22. package/skills/fito-auth/login.ts +23 -6
  23. package/skills/fito-case-author/SKILL.md +4 -4
  24. package/skills/fito-case-author/checkout.js +22 -5
  25. package/skills/fito-case-author/checkout.ts +22 -5
  26. package/skills/fito-case-runner/SKILL.md +24 -7
  27. package/skills/fito-case-runner/github.js +20 -2
  28. package/skills/fito-case-runner/github.ts +21 -2
  29. package/skills/fito-case-runner/open.js +3 -3
  30. package/skills/fito-case-runner/open.ts +3 -3
  31. package/skills/fito-case-runner/runner.js +12 -1
  32. package/skills/fito-case-runner/runner.ts +15 -0
  33. package/skills/fito-case-runner/submit.js +1 -1
  34. package/skills/fito-case-runner/submit.ts +1 -1
  35. package/skills/fito-case-runner/temp-file.js +16 -0
  36. package/skills/fito-case-runner/temp-file.ts +17 -0
  37. package/skills/fito-competence-write/SKILL.md +3 -3
  38. package/skills/fito-competence-write/delete.js +1 -1
  39. package/skills/fito-competence-write/delete.ts +1 -1
  40. package/skills/fito-evaluator/SKILL.md +7 -6
  41. package/skills/fito-evaluator/criterion-exec.js +113 -17
  42. package/skills/fito-evaluator/criterion-exec.ts +110 -18
  43. package/skills/fito-evaluator/evaluate-automated.js +7 -3
  44. package/skills/fito-evaluator/evaluate-automated.ts +7 -3
  45. package/skills/fito-knowledge-push/SKILL.md +1 -1
  46. package/skills/fito-knowledge-push/push.js +8 -8
  47. package/skills/fito-knowledge-push/push.ts +8 -8
  48. package/skills/fito-source-ingestion/SKILL.md +4 -4
  49. package/skills/fito-technology-write/SKILL.md +2 -2
  50. package/skills/fito-technology-write/create.js +2 -2
  51. package/skills/fito-technology-write/create.ts +2 -2
@@ -26,7 +26,7 @@ stop) is an explicit, per-component action.
26
26
  ## Store one component file
27
27
 
28
28
  ```bash
29
- node <fito-knowledge-push skill dir>/push.js <component-file> [--version <label>]
29
+ node "<fito-knowledge-push skill dir>/push.js" "<component-file>" [--version <label>]
30
30
  ```
31
31
 
32
32
  `<component-file>` is one generator output (`{metadata, content}` JSON, e.g.
@@ -185,7 +185,7 @@ export function renderRevisionLabelRefusal(refusal, payloadPath) {
185
185
  ...forAuthor,
186
186
  "",
187
187
  AGENT_MARKER,
188
- `Supersede node push.js ${payloadPath} --supersede '${target.id}' --version <label>`,
188
+ `Supersede node "push.js" "${payloadPath}" --supersede '${target.id}' --version <label>`,
189
189
  ].join("\n");
190
190
  }
191
191
  /**
@@ -205,18 +205,18 @@ export function renderPushConflict(error, file) {
205
205
  {
206
206
  name: "Link",
207
207
  description: [`Store it as an alternative definition of ${ref}.`],
208
- command: `node push.js ${file.path} --link '${ref}'`,
208
+ command: `node "push.js" "${file.path}" --link '${ref}'`,
209
209
  },
210
210
  {
211
211
  name: "Supersede",
212
212
  description: [`Store it as the next revision of ${ref}.`],
213
- command: `node push.js ${file.path} --supersede '${ref}'`,
213
+ command: `node "push.js" "${file.path}" --supersede '${ref}'`,
214
214
  },
215
215
  { name: "Skip", description: ["Store nothing for this file."] },
216
216
  {
217
217
  name: "Create new component",
218
218
  description: ["Store it as a separate component. Fito will then have two", "almost identical components."],
219
- command: `node push.js ${file.path} --override '${ref}'`,
219
+ command: `node "push.js" "${file.path}" --override '${ref}'`,
220
220
  },
221
221
  ]),
222
222
  ].join("\n");
@@ -228,7 +228,7 @@ export function renderPushConflict(error, file) {
228
228
  "A new revision must follow the newest one. Do you want to supersede that one?",
229
229
  "",
230
230
  AGENT_MARKER,
231
- `Supersede node push.js ${file.path} --supersede '${head}'`,
231
+ `Supersede node "push.js" "${file.path}" --supersede '${head}'`,
232
232
  ].join("\n");
233
233
  }
234
234
  return undefined;
@@ -262,12 +262,12 @@ export function renderNearMisses(matches, file) {
262
262
  {
263
263
  name: "Link",
264
264
  description: [`Store it as an alternative definition of "${closest.name}".`],
265
- command: `node push.js ${file.path} --link '${closest.id}'`,
265
+ command: `node "push.js" "${file.path}" --link '${closest.id}'`,
266
266
  },
267
267
  {
268
268
  name: "Supersede",
269
269
  description: [`Store it as the next revision of "${closest.name}" (now revision ${closest.version}).`],
270
- command: `node push.js ${file.path} --supersede '${closest.id}'`,
270
+ command: `node "push.js" "${file.path}" --supersede '${closest.id}'`,
271
271
  },
272
272
  { name: "Skip", description: ["Store nothing for this file."] },
273
273
  {
@@ -276,7 +276,7 @@ export function renderNearMisses(matches, file) {
276
276
  "Store it as a separate component, next to the similar ones.",
277
277
  "If it is almost the same as one of them, Fito asks you again.",
278
278
  ],
279
- command: `node push.js ${file.path} --proceed`,
279
+ command: `node "push.js" "${file.path}" --proceed`,
280
280
  },
281
281
  ]),
282
282
  ].join("\n");
@@ -293,7 +293,7 @@ export function renderRevisionLabelRefusal(refusal: RevisionLabelRefusal, payloa
293
293
  ...forAuthor,
294
294
  "",
295
295
  AGENT_MARKER,
296
- `Supersede node push.js ${payloadPath} --supersede '${target.id}' --version <label>`,
296
+ `Supersede node "push.js" "${payloadPath}" --supersede '${target.id}' --version <label>`,
297
297
  ].join("\n");
298
298
  }
299
299
 
@@ -314,18 +314,18 @@ export function renderPushConflict(error: FitoApiError, file: PushFile): string
314
314
  {
315
315
  name: "Link",
316
316
  description: [`Store it as an alternative definition of ${ref}.`],
317
- command: `node push.js ${file.path} --link '${ref}'`,
317
+ command: `node "push.js" "${file.path}" --link '${ref}'`,
318
318
  },
319
319
  {
320
320
  name: "Supersede",
321
321
  description: [`Store it as the next revision of ${ref}.`],
322
- command: `node push.js ${file.path} --supersede '${ref}'`,
322
+ command: `node "push.js" "${file.path}" --supersede '${ref}'`,
323
323
  },
324
324
  { name: "Skip", description: ["Store nothing for this file."] },
325
325
  {
326
326
  name: "Create new component",
327
327
  description: ["Store it as a separate component. Fito will then have two", "almost identical components."],
328
- command: `node push.js ${file.path} --override '${ref}'`,
328
+ command: `node "push.js" "${file.path}" --override '${ref}'`,
329
329
  },
330
330
  ]),
331
331
  ].join("\n");
@@ -337,7 +337,7 @@ export function renderPushConflict(error: FitoApiError, file: PushFile): string
337
337
  "A new revision must follow the newest one. Do you want to supersede that one?",
338
338
  "",
339
339
  AGENT_MARKER,
340
- `Supersede node push.js ${file.path} --supersede '${head}'`,
340
+ `Supersede node "push.js" "${file.path}" --supersede '${head}'`,
341
341
  ].join("\n");
342
342
  }
343
343
  return undefined;
@@ -373,12 +373,12 @@ export function renderNearMisses(matches: NearDuplicateMatch[], file: PushFile):
373
373
  {
374
374
  name: "Link",
375
375
  description: [`Store it as an alternative definition of "${closest.name}".`],
376
- command: `node push.js ${file.path} --link '${closest.id}'`,
376
+ command: `node "push.js" "${file.path}" --link '${closest.id}'`,
377
377
  },
378
378
  {
379
379
  name: "Supersede",
380
380
  description: [`Store it as the next revision of "${closest.name}" (now revision ${closest.version}).`],
381
- command: `node push.js ${file.path} --supersede '${closest.id}'`,
381
+ command: `node "push.js" "${file.path}" --supersede '${closest.id}'`,
382
382
  },
383
383
  { name: "Skip", description: ["Store nothing for this file."] },
384
384
  {
@@ -387,7 +387,7 @@ export function renderNearMisses(matches: NearDuplicateMatch[], file: PushFile):
387
387
  "Store it as a separate component, next to the similar ones.",
388
388
  "If it is almost the same as one of them, Fito asks you again.",
389
389
  ],
390
- command: `node push.js ${file.path} --proceed`,
390
+ command: `node "push.js" "${file.path}" --proceed`,
391
391
  },
392
392
  ]),
393
393
  ].join("\n");
@@ -12,12 +12,12 @@ allowed-tools: bash
12
12
 
13
13
  # Fito Source Ingestion
14
14
 
15
- Run the scripts with `node <file>.js`. Both are stateless and safe to re-run.
15
+ Run the scripts with `node "<file>.js"`. Both are stateless and safe to re-run.
16
16
 
17
17
  ## Build a source bundle
18
18
 
19
19
  ```bash
20
- node <fito-source-ingestion skill dir>/bundle.js <source-path> [--output <dir>]
20
+ node "<fito-source-ingestion skill dir>/bundle.js" "<source-path>" [--output "<dir>"]
21
21
  ```
22
22
 
23
23
  Run it from **your own working directory**, as every Fito skill command is — both
@@ -42,10 +42,10 @@ identifier agent as its docs path.
42
42
  ## Authoring-context check
43
43
 
44
44
  ```bash
45
- node <fito-source-ingestion skill dir>/authoring-check.js [path]
45
+ node "<fito-source-ingestion skill dir>/authoring-check.js" ["<path>"]
46
46
  ```
47
47
 
48
- Classifies the case checkout at `path` (default `.`) before offering `--source .`.
48
+ Classifies the case checkout at `<path>` (default `.`) before offering `--source .`.
49
49
  **Not authoring** ⇔ the checkout's `origin` is a GitHub fork whose parent URL is a
50
50
  published case registered in the backend — a learner clone by construction
51
51
  (`/fito-case-open`). The case repo itself, a tree without an origin remote, a
@@ -33,7 +33,7 @@ existing row stores no descriptions, so most update runs follow a create.
33
33
  ## Create or resolve the technology
34
34
 
35
35
  ```bash
36
- node <fito-technology-write skill dir>/create.js <payload-file> [--override]
36
+ node "<fito-technology-write skill dir>/create.js" "<payload-file>" [--override]
37
37
  ```
38
38
 
39
39
  POSTs the payload's two blocks to `POST /technologies`. The backend picks the branch and reports it
@@ -75,7 +75,7 @@ de-duplicated on an author's behalf.
75
75
  ## Update the descriptions
76
76
 
77
77
  ```bash
78
- node <fito-technology-write skill dir>/update.js <payload-file> [--overview] [--version-prose]
78
+ node "<fito-technology-write skill dir>/update.js" "<payload-file>" [--overview] [--version-prose]
79
79
  ```
80
80
 
81
81
  Writes the payload's confirmed prose onto the two axes, each behind its own flag: `--overview` is the
@@ -59,7 +59,7 @@ export function renderNearDuplicates(error, payloadPath) {
59
59
  " technology already exists, so the run becomes an update of its descriptions",
60
60
  " re-declare re-run with a distinct --technology slug, when this is genuinely a different",
61
61
  " technology that the matches only resemble",
62
- ` override node create.js ${payloadPath} --override`,
62
+ ` override node "create.js" "${payloadPath}" --override`,
63
63
  " create an independent technology that will coexist with every match above —",
64
64
  " the false-positive escape; run it only after the author confirms that consequence",
65
65
  ].join("\n");
@@ -87,7 +87,7 @@ export function describeOutcome(response, payloadPath) {
87
87
  "neither submitted description was stored",
88
88
  "--overview --version-prose",
89
89
  ];
90
- return [headline, ` ${note}.`, ` Write the confirmed prose with: node update.js ${payloadPath} ${flags}`].join("\n");
90
+ return [headline, ` ${note}.`, ` Write the confirmed prose with: node "update.js" "${payloadPath}" ${flags}`].join("\n");
91
91
  }
92
92
  const USAGE = "Usage: node create.js <payload-file> [--override]";
93
93
  function parseArgs(argv) {
@@ -84,7 +84,7 @@ export function renderNearDuplicates(error: FitoApiError, payloadPath: string):
84
84
  " technology already exists, so the run becomes an update of its descriptions",
85
85
  " re-declare re-run with a distinct --technology slug, when this is genuinely a different",
86
86
  " technology that the matches only resemble",
87
- ` override node create.js ${payloadPath} --override`,
87
+ ` override node "create.js" "${payloadPath}" --override`,
88
88
  " create an independent technology that will coexist with every match above —",
89
89
  " the false-positive escape; run it only after the author confirms that consequence",
90
90
  ].join("\n");
@@ -114,7 +114,7 @@ export function describeOutcome(response: TechnologyWriteResponse, payloadPath:
114
114
  "neither submitted description was stored",
115
115
  "--overview --version-prose",
116
116
  ];
117
- return [headline, ` ${note}.`, ` Write the confirmed prose with: node update.js ${payloadPath} ${flags}`].join("\n");
117
+ return [headline, ` ${note}.`, ` Write the confirmed prose with: node "update.js" "${payloadPath}" ${flags}`].join("\n");
118
118
  }
119
119
 
120
120
  const USAGE = "Usage: node create.js <payload-file> [--override]";