@turri-dev/cli 0.4.2-next.a6867e8 → 0.4.3-next.3fc888b
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 +1 -0
- package/dist/background-skills.d.ts +4 -1
- package/dist/background-skills.js +9 -1
- package/dist/capture/agents.d.ts +391 -0
- package/dist/capture/agents.js +338 -0
- package/dist/capture/area.d.ts +58 -0
- package/dist/capture/area.js +197 -0
- package/dist/capture/assemble.d.ts +122 -0
- package/dist/capture/assemble.js +452 -0
- package/dist/capture/capture.d.ts +116 -0
- package/dist/capture/capture.js +1281 -0
- package/dist/capture/chat.d.ts +29 -0
- package/dist/capture/chat.js +94 -0
- package/dist/capture/checks.d.ts +142 -0
- package/dist/capture/checks.js +643 -0
- package/dist/capture/config.d.ts +13 -0
- package/dist/capture/config.js +60 -0
- package/dist/capture/interface.d.ts +71 -0
- package/dist/capture/interface.js +199 -0
- package/dist/capture/map.d.ts +58 -0
- package/dist/capture/map.js +530 -0
- package/dist/capture/plan.d.ts +8 -0
- package/dist/capture/plan.js +13 -0
- package/dist/capture/progress.d.ts +109 -0
- package/dist/capture/progress.js +240 -0
- package/dist/capture/report.d.ts +75 -0
- package/dist/capture/report.js +268 -0
- package/dist/capture/scripts.d.ts +26 -0
- package/dist/capture/scripts.js +33 -0
- package/dist/capture/state.d.ts +299 -0
- package/dist/capture/state.js +43 -0
- package/dist/capture/trial.d.ts +34 -0
- package/dist/capture/trial.js +89 -0
- package/dist/capture-cli.d.ts +1 -0
- package/dist/capture-cli.js +77 -0
- package/dist/chat-commands.d.ts +2 -10
- package/dist/chat-commands.js +3 -57
- package/dist/chat-tab-header.d.ts +15 -0
- package/dist/chat-tab-header.js +78 -0
- package/dist/chat-tabs.d.ts +26 -0
- package/dist/chat-tabs.js +100 -0
- package/dist/chat-terminal.js +57 -8
- package/dist/chat-waiting.d.ts +4 -1
- package/dist/chat-waiting.js +7 -4
- package/dist/chats.d.ts +12 -7
- package/dist/chats.js +35 -21
- package/dist/cli.js +32 -14
- package/dist/config-edit.js +4 -2
- package/dist/config.d.ts +15 -2
- package/dist/config.js +62 -4
- package/dist/extension.d.ts +1 -0
- package/dist/extension.js +262 -136
- package/dist/identity.js +3 -2
- package/dist/init-config.js +2 -0
- package/dist/loop-cli.js +5 -1
- package/dist/loop-tools.d.ts +2 -3
- package/dist/loop-tools.js +12 -13
- package/dist/new-project.d.ts +5 -0
- package/dist/new-project.js +11 -0
- package/dist/pi-launch.js +2 -0
- package/dist/pi-themes.d.ts +3 -0
- package/dist/pi-themes.js +21 -0
- package/dist/pi.js +2 -2
- package/dist/plain-code-blocks.d.ts +14 -0
- package/dist/plain-code-blocks.js +56 -0
- package/dist/pointer-hover.d.ts +12 -0
- package/dist/pointer-hover.js +48 -0
- package/dist/question-dialog.d.ts +5 -0
- package/dist/question-dialog.js +20 -1
- package/dist/regenerate/chunk-plan.d.ts +2 -11
- package/dist/regenerate/chunk-plan.js +9 -20
- package/dist/regenerate/command-check.d.ts +9 -0
- package/dist/regenerate/command-check.js +163 -14
- package/dist/regenerate/job-panel.d.ts +5 -107
- package/dist/regenerate/job-panel.js +4 -289
- package/dist/regenerate/jobs-tree.d.ts +1 -0
- package/dist/regenerate/jobs-tree.js +5 -1
- package/dist/regenerate/loop.d.ts +6 -14
- package/dist/regenerate/loop.js +51 -35
- package/dist/regenerate/side-panel.d.ts +6 -1
- package/dist/regenerate/side-panel.js +158 -22
- package/dist/regenerate/spec-map-view.d.ts +11 -3
- package/dist/regenerate/spec-map-view.js +22 -2
- package/dist/regenerate/test-scripts.d.ts +8 -0
- package/dist/regenerate/test-scripts.js +20 -5
- package/dist/reopen.d.ts +29 -0
- package/dist/reopen.js +47 -0
- package/dist/resume-line.d.ts +4 -1
- package/dist/resume-line.js +5 -2
- package/dist/sentinel-chat.js +7 -2
- package/dist/sentinel.d.ts +1 -1
- package/dist/sentinel.js +4 -2
- package/dist/setup.js +9 -1
- package/dist/terminal-notifications.d.ts +31 -0
- package/dist/terminal-notifications.js +134 -0
- package/docs/README.md +2 -0
- package/docs/capture.md +207 -0
- package/docs/chats.md +8 -7
- package/docs/config.md +18 -3
- package/docs/development.md +4 -1
- package/docs/hosting.md +2 -2
- package/docs/launch.md +2 -2
- package/docs/regenerating.md +9 -8
- package/docs/sandbox.md +3 -1
- package/docs/sentinel.md +11 -11
- package/docs/skills-and-gates.md +1 -1
- package/docs/theming.md +3 -3
- package/docs/using.md +12 -5
- package/genome/capture/capture.md +26 -0
- package/genome/capture/check-conventions.md +5 -0
- package/genome/capture/check-reference.md +11 -0
- package/genome/capture/compact.md +7 -0
- package/genome/capture/concepts.md +3 -0
- package/genome/capture/divide.md +9 -0
- package/genome/capture/feature.md +45 -0
- package/genome/capture/interface.md +9 -0
- package/genome/capture/modules.md +23 -0
- package/genome/capture/outline.md +11 -0
- package/genome/capture/readability.md +12 -0
- package/genome/capture/reference.md +10 -0
- package/genome/capture/split.md +9 -0
- package/genome/capture/survey.md +37 -0
- package/genome/capture/trial.md +18 -0
- package/genome/capture/verify.md +7 -0
- package/genome/rules/turri-regeneration.md +2 -2
- package/package.json +3 -3
- package/dist/regenerate/steer.d.ts +0 -34
- package/dist/regenerate/steer.js +0 -91
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { SkillRunEnd } from "../background-skills.ts";
|
|
2
|
+
import { type CaptureResult } from "./capture.ts";
|
|
3
|
+
/**
|
|
4
|
+
* What the chat says of a capture the person started with /capture: why it does not start, that it started, and how it
|
|
5
|
+
* ended - its end coming back to the chat as a background skill's does, the chat's agent told to pass the report on.
|
|
6
|
+
*/
|
|
7
|
+
/** Why a capture of `root` cannot start, or undefined when it can - a stopped one goes on. */
|
|
8
|
+
export declare function captureRefusal(root: string): string | undefined;
|
|
9
|
+
export declare function captureStartedText(root: string, goesOn: boolean): string;
|
|
10
|
+
/** Whether a capture of `root` was started before and stopped: it goes on from where it was. */
|
|
11
|
+
export declare function captureGoesOn(root: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* A capture's end, for the chat it is told in: the chat it was started in, or the turri opened again in its ***plain's
|
|
14
|
+
* folder (`cwd` is then `plainDir`). A chat works on the project of its own folder, so from another the ***plain is
|
|
15
|
+
* regenerated by opening turri in its folder.
|
|
16
|
+
*/
|
|
17
|
+
export declare function captureEnded(cwd: string, result: Pick<CaptureResult, "plainDir" | "reportFile" | "summary">): SkillRunEnd;
|
|
18
|
+
/** What the person is asked once a capture in the chat ends: to open turri again in the captured project. */
|
|
19
|
+
export declare function captureOpenQuestion(cwd: string, result: Pick<CaptureResult, "plainDir" | "summary">): {
|
|
20
|
+
title: string;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
/** What a turri opened again after a capture is told at its start: what the capture said of itself. */
|
|
24
|
+
export declare function reopenedAfterCapture(summary: string): string;
|
|
25
|
+
/** What a turri opened again after a capture was told, or undefined when it is not that turri. */
|
|
26
|
+
export declare function readReopenedAfterCapture(told: string | undefined): {
|
|
27
|
+
summary: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
export declare function captureFailed(error: unknown): SkillRunEnd;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { existsSync, statSync } from "node:fs";
|
|
2
|
+
import { join, relative, resolve } from "node:path";
|
|
3
|
+
import { CaptureError, plainDirState } from "./capture.js";
|
|
4
|
+
import { reportFile } from "./state.js";
|
|
5
|
+
/**
|
|
6
|
+
* What the chat says of a capture the person started with /capture: why it does not start, that it started, and how it
|
|
7
|
+
* ended - its end coming back to the chat as a background skill's does, the chat's agent told to pass the report on.
|
|
8
|
+
*/
|
|
9
|
+
/** Why a capture of `root` cannot start, or undefined when it can - a stopped one goes on. */
|
|
10
|
+
export function captureRefusal(root) {
|
|
11
|
+
if (!existsSync(root) || !statSync(root).isDirectory())
|
|
12
|
+
return `${root} is not a folder. Nothing was started.`;
|
|
13
|
+
const plainDir = join(root, "plain");
|
|
14
|
+
const found = plainDirState(plainDir);
|
|
15
|
+
if (found.kind === "finished")
|
|
16
|
+
return `${plainDir} holds a finished capture already - its report is ${reportFile(plainDir)}. Move that folder out of the way to capture again. Nothing was started.`;
|
|
17
|
+
if (found.kind === "taken")
|
|
18
|
+
return `${found.why}: capture writes its ***plain into a folder of its own, plain/. Nothing was started.`;
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
export function captureStartedText(root, goesOn) {
|
|
22
|
+
return [
|
|
23
|
+
`${goesOn ? "Going on with the capture" : "Capturing"} ${root} into ${join(root, "plain")}, in the background.`,
|
|
24
|
+
"Nothing is asked: what it decides, leaves out or cannot capture is in its report, which comes back to this chat when it ends.",
|
|
25
|
+
].join(" ");
|
|
26
|
+
}
|
|
27
|
+
/** Whether a capture of `root` was started before and stopped: it goes on from where it was. */
|
|
28
|
+
export function captureGoesOn(root) {
|
|
29
|
+
return plainDirState(join(root, "plain")).kind === "resume";
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A capture's end, for the chat it is told in: the chat it was started in, or the turri opened again in its ***plain's
|
|
33
|
+
* folder (`cwd` is then `plainDir`). A chat works on the project of its own folder, so from another the ***plain is
|
|
34
|
+
* regenerated by opening turri in its folder.
|
|
35
|
+
*/
|
|
36
|
+
export function captureEnded(cwd, result) {
|
|
37
|
+
const shown = (path) => relative(cwd, path) || path;
|
|
38
|
+
const elsewhere = resolve(result.plainDir) !== resolve(cwd);
|
|
39
|
+
const open = `cd ${shown(result.plainDir)} && turri`;
|
|
40
|
+
return {
|
|
41
|
+
skill: "capture",
|
|
42
|
+
ok: true,
|
|
43
|
+
line: `Capture finished: ${result.summary} The report: ${shown(result.reportFile)}.${elsewhere ? ` To review and regenerate it, open turri in its folder: ${open}.` : ""}`,
|
|
44
|
+
task: [
|
|
45
|
+
`The capture the person started with /capture finished: ${result.summary}`,
|
|
46
|
+
`Its report is ${result.reportFile}. Read it, then tell the person in a few lines: the modules written, what could not be captured or was left out, the options, commands and routes of the code its ***plain names nowhere, and what the capture was unsure of.`,
|
|
47
|
+
`The ***plain in ${result.plainDir} is the source of truth from now on: they read it first, then regenerate it, its first module first. The report says whether its testing scripts were written; any it lacks, start their skill for - implement-unit-testing-script, implement-conformance-testing-script - before it is regenerated. Change no ***plain and regenerate nothing until they say.`,
|
|
48
|
+
...(elsewhere ? [`It is a project of its own, which this chat does not work on: tell them to open turri in its folder to review and regenerate it - \`${open}\`.`] : []),
|
|
49
|
+
].join("\n"),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/** What the person is asked once a capture in the chat ends: to open turri again in the captured project. */
|
|
53
|
+
export function captureOpenQuestion(cwd, result) {
|
|
54
|
+
const folder = `${relative(cwd, result.plainDir) || result.plainDir}/`;
|
|
55
|
+
return {
|
|
56
|
+
title: `Open the captured ***plain in ${folder}?`,
|
|
57
|
+
message: [
|
|
58
|
+
result.summary,
|
|
59
|
+
"",
|
|
60
|
+
`turri closes here and opens again in ${folder} - the captured project - where ctrl+h shows its ***plain and /regenerate builds it. Its report is told there.`,
|
|
61
|
+
`Not now: it stays here, and \`cd ${folder.slice(0, -1)} && turri\` opens it later.`,
|
|
62
|
+
].join("\n"),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/** What a turri opened again after a capture is told at its start: what the capture said of itself. */
|
|
66
|
+
export function reopenedAfterCapture(summary) {
|
|
67
|
+
return JSON.stringify({ summary });
|
|
68
|
+
}
|
|
69
|
+
/** What a turri opened again after a capture was told, or undefined when it is not that turri. */
|
|
70
|
+
export function readReopenedAfterCapture(told) {
|
|
71
|
+
if (told === undefined)
|
|
72
|
+
return undefined;
|
|
73
|
+
try {
|
|
74
|
+
const parsed = JSON.parse(told);
|
|
75
|
+
return typeof parsed.summary === "string" ? { summary: parsed.summary } : undefined;
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
return undefined;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export function captureFailed(error) {
|
|
82
|
+
const why = error instanceof Error ? error.message : String(error);
|
|
83
|
+
return {
|
|
84
|
+
skill: "capture",
|
|
85
|
+
ok: false,
|
|
86
|
+
line: `Capture stopped: ${why}`,
|
|
87
|
+
task: [
|
|
88
|
+
`The capture the person started with /capture stopped: ${why}`,
|
|
89
|
+
error instanceof CaptureError
|
|
90
|
+
? "Tell the person in a line or two."
|
|
91
|
+
: "Tell the person in a line or two. What it captured before it stopped is kept: /capture again goes on from where it was.",
|
|
92
|
+
].join("\n"),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { type CodeMap } from "./map.ts";
|
|
2
|
+
import type { CapturedFeature, CapturedSpec, Convention, Correction, Definition, FeatureOutline, GatheredModule, InterfaceEntry, InterfaceExclusion, InterfaceSurface, LeftOut, ModuleRewrite, Survey, TrialResult } from "./state.ts";
|
|
3
|
+
/**
|
|
4
|
+
* What the harness checks of each answer a capture agent hands over, before it is kept: what would make ***plain that
|
|
5
|
+
* does not parse, a path that is not there, a feature over its budget. Each problem is said so the agent can fix it.
|
|
6
|
+
*/
|
|
7
|
+
/** The most functional specs one feature is captured in. */
|
|
8
|
+
export declare const MAX_SPECS_PER_FEATURE = 8;
|
|
9
|
+
/**
|
|
10
|
+
* The scenarios a feature may have in all: a few, and more the more the original tests it - one for each so many lines
|
|
11
|
+
* of the original's tests in its files - up to a most. Scenarios go where the original's tests are densest.
|
|
12
|
+
*/
|
|
13
|
+
export declare const BASE_SCENARIOS = 8;
|
|
14
|
+
export declare const TEST_LINES_PER_SCENARIO = 50;
|
|
15
|
+
export declare const MAX_SCENARIOS_PER_FEATURE = 30;
|
|
16
|
+
/** The scenarios a feature may have, from the lines of the original's tests in its files. */
|
|
17
|
+
export declare function scenarioBudget(testLines: number): number;
|
|
18
|
+
/** The longest a functional spec may be, in characters: a few short lines, never a page. */
|
|
19
|
+
export declare const MAX_SPEC_CHARS = 1500;
|
|
20
|
+
/** The most features one leaf is outlined into. */
|
|
21
|
+
export declare const MAX_FEATURES_PER_LEAF = 20;
|
|
22
|
+
export declare function isKebab(id: string): boolean;
|
|
23
|
+
/** Every concept a text uses. */
|
|
24
|
+
export declare function conceptsIn(text: string): string[];
|
|
25
|
+
/** What is wrong with definitions: a concept named wrong, predefined, defined twice or among those given already, or a text that does not start with it. */
|
|
26
|
+
export declare function definitionProblems(definitions: Definition[], given: Set<string>): string[];
|
|
27
|
+
/**
|
|
28
|
+
* Definitions that define each other round in a circle - `:Link:` uses `:LinkCode:`, whose definition uses `:Link:` -
|
|
29
|
+
* which the parser refuses: one problem a circle, naming its concepts.
|
|
30
|
+
*/
|
|
31
|
+
export declare function definitionCycles(definitions: Definition[]): string[];
|
|
32
|
+
export declare function surveyProblems(map: CodeMap, survey: Survey): string[];
|
|
33
|
+
/** The files of an area that the split placed nowhere: in no area, and not left out. */
|
|
34
|
+
export declare function unplaced(map: CodeMap, within: string[], areas: Array<{
|
|
35
|
+
paths: string[];
|
|
36
|
+
}>, leftOut: LeftOut[]): string[];
|
|
37
|
+
export declare function splitProblems(map: CodeMap, within: string[], answer: {
|
|
38
|
+
areas: Array<{
|
|
39
|
+
name: string;
|
|
40
|
+
about: string;
|
|
41
|
+
paths: string[];
|
|
42
|
+
}>;
|
|
43
|
+
leftOut: LeftOut[];
|
|
44
|
+
}): string[];
|
|
45
|
+
export declare function outlineProblems(map: CodeMap, within: string[], answer: {
|
|
46
|
+
features: FeatureOutline[];
|
|
47
|
+
leftOut: LeftOut[];
|
|
48
|
+
}): string[];
|
|
49
|
+
/**
|
|
50
|
+
* What is wrong with conventions: one more than a line or empty, one that names no file deciding it or a file not in
|
|
51
|
+
* the map, one using a concept that is not given - when the concepts are given.
|
|
52
|
+
*/
|
|
53
|
+
export declare function conventionProblems(map: CodeMap, conventions: Convention[], known: Set<string> | undefined): string[];
|
|
54
|
+
/**
|
|
55
|
+
* What is wrong with an agent's part of the interface reference - checked against the code, so nothing in it is guessed:
|
|
56
|
+
* an entry with no kind or name, listed twice, whose `where` is no line of a file of the map, or one of whose literals -
|
|
57
|
+
* a name, an alias, a choice, its default, its help - is not in the file it cites nor in those it names in `also`; an
|
|
58
|
+
* exclusion with no why; and, of the interface the map found in the files it was given, any neither listed nor excluded.
|
|
59
|
+
*/
|
|
60
|
+
export declare function referenceProblems(map: CodeMap, root: string, given: string[], answer: {
|
|
61
|
+
entries: InterfaceEntry[];
|
|
62
|
+
excluded: InterfaceExclusion[];
|
|
63
|
+
}): string[];
|
|
64
|
+
/**
|
|
65
|
+
* What is wrong with a feature written for the interface no feature captured: a surface it was given that it neither
|
|
66
|
+
* names in its ***plain nor drops, by name, with why.
|
|
67
|
+
*/
|
|
68
|
+
export declare function gapProblems(captured: CapturedFeature, surfaces: InterfaceSurface[]): string[];
|
|
69
|
+
/**
|
|
70
|
+
* What is wrong with the interface check's corrections: one to a functional spec or a scenario that is not there, a
|
|
71
|
+
* text the parser would read as something else, a link, a concept not defined, a text past twice the most a functional
|
|
72
|
+
* spec may be, a correction with no why.
|
|
73
|
+
*/
|
|
74
|
+
export declare function correctionProblems(corrections: Correction[], specs: Map<string, CapturedSpec>, known: Set<string>): string[];
|
|
75
|
+
/** A module as the checks of its trials see it: its functional specs by func-id, and the concepts it may use. */
|
|
76
|
+
export interface CheckedModule {
|
|
77
|
+
specs: Map<string, CapturedSpec>;
|
|
78
|
+
known: Set<string>;
|
|
79
|
+
}
|
|
80
|
+
/** A part's features as the check of their modules sees them: each one's functional specs, and the concepts the part may use. */
|
|
81
|
+
export interface GatheringGiven {
|
|
82
|
+
/** Each feature's functional specs, by its key, in the order of the code. */
|
|
83
|
+
features: Map<string, CapturedSpec[]>;
|
|
84
|
+
known: Set<string>;
|
|
85
|
+
/** Names a module may not take: the import modules'. */
|
|
86
|
+
reserved: Set<string>;
|
|
87
|
+
/** The most functional specs a module gathers from several areas holds - `MODULE_SPECS`; twice it, a module of any. */
|
|
88
|
+
moduleSpecs: number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* What is wrong with a part's features gathered into modules: a module with no name, a name that is not kebab-case, taken
|
|
92
|
+
* twice or an import module's, no about or no feature; a feature in no module or in two, or not the part's; a module past
|
|
93
|
+
* twice the most functional specs a module holds, or one module holding a part too large for one; one that needs a module
|
|
94
|
+
* that is not the part's, itself, or one after it; a scenario rewritten that is not there, that the parser would read as
|
|
95
|
+
* something else, that uses a concept the part does not have, or that says no why.
|
|
96
|
+
*/
|
|
97
|
+
export declare function moduleProblems(answer: {
|
|
98
|
+
modules: GatheredModule[];
|
|
99
|
+
rewrites: ModuleRewrite[];
|
|
100
|
+
}, given: GatheringGiven): string[];
|
|
101
|
+
/**
|
|
102
|
+
* What is wrong with what an agent found trying scenarios on the original: a scenario it was given with no result, or
|
|
103
|
+
* one it was not given; an outcome it may not give; a scenario held or corrected with nothing said of what it ran; a
|
|
104
|
+
* corrected text the parser would read as something else, using a concept the module does not have, or the same as
|
|
105
|
+
* before; a scenario corrected, removed or left untried with no why; a functional spec's correction, as the interface
|
|
106
|
+
* check's are checked; a test req that is not one line.
|
|
107
|
+
*/
|
|
108
|
+
export declare function trialProblems(answer: {
|
|
109
|
+
results: TrialResult[];
|
|
110
|
+
specs: Correction[];
|
|
111
|
+
testReqs: string[];
|
|
112
|
+
}, given: Array<{
|
|
113
|
+
funcId: string;
|
|
114
|
+
scenarioId: string;
|
|
115
|
+
text: string;
|
|
116
|
+
}>, module: CheckedModule): string[];
|
|
117
|
+
/** What is wrong with a captured feature, against the concepts it was given and the scenarios it may have. */
|
|
118
|
+
export declare function featureProblems(captured: CapturedFeature, givenDefinitions: Definition[], scenarioLimit?: number, options?: {
|
|
119
|
+
mayBeEmpty?: boolean;
|
|
120
|
+
}): string[];
|
|
121
|
+
/**
|
|
122
|
+
* What is wrong with a part's features divided: a feature given no owner line and not merged, or both; a key that is
|
|
123
|
+
* no feature; a feature merged into nothing, into itself or into one that is merged too.
|
|
124
|
+
*/
|
|
125
|
+
export declare function divisionProblems(keys: string[], answer: {
|
|
126
|
+
owns: Array<{
|
|
127
|
+
feature: string;
|
|
128
|
+
owns: string;
|
|
129
|
+
}>;
|
|
130
|
+
merged: Array<{
|
|
131
|
+
feature: string;
|
|
132
|
+
into: string[];
|
|
133
|
+
why: string;
|
|
134
|
+
}>;
|
|
135
|
+
}): string[];
|
|
136
|
+
/**
|
|
137
|
+
* What is wrong with reconciled concepts: one missing, a text that does not start with its concept or uses one it may
|
|
138
|
+
* not, or definitions that - with the others of the part - use each other in a circle.
|
|
139
|
+
*/
|
|
140
|
+
export declare function reconciledProblems(answer: Definition[], asked: string[], known: Set<string>, others?: Definition[]): string[];
|
|
141
|
+
/** What is wrong with one edit of the readability pass. */
|
|
142
|
+
export declare function editProblems(funcId: string, edited: string, original: string | undefined, known: Set<string>): string[];
|