@open-tomato/rafa 0.52.1 → 0.54.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.
- package/dist/PROMPT.md +7 -0
- package/dist/bundled/agents/loop-implementer.md +7 -1
- package/dist/bundled/operators/skills/rafa-stretch-gap-log/SKILL.md +16 -0
- package/dist/bundled/operators/skills/rafa-stretch-pit-stop/SKILL.md +14 -8
- package/dist/bundled/operators/skills/rafa-stretch-sweep/SKILL.md +4 -2
- package/dist/cli.js +4401 -2084
- package/dist/config/index.js +2 -2
- package/dist/config/shape.d.ts +7 -5
- package/dist/config-registry.d.ts +5 -5
- package/dist/config-schema-collaborate.d.ts +85 -0
- package/dist/config-schema-features.d.ts +2 -2
- package/dist/config-schema-hints.d.ts +53 -0
- package/dist/config-schema-hub.d.ts +5 -4
- package/dist/core/command/shared-flags.d.ts +1 -1
- package/dist/core/config/config-schema.d.ts +1 -1
- package/dist/core/config/config.d.ts +1 -1
- package/dist/core/git/index.d.ts +12 -5
- package/dist/core/git/placed-line.d.ts +86 -0
- package/dist/effort/session-log-path.d.ts +34 -0
- package/dist/effort/store/answered-rows.d.ts +38 -0
- package/dist/effort/store/index.js +5 -3
- package/dist/effort/store/merge-conflicts.d.ts +8 -4
- package/dist/effort/store/merge-rules.d.ts +16 -5
- package/dist/effort/store/merge-store.d.ts +14 -3
- package/dist/effort/store/origins.d.ts +5 -4
- package/dist/effort/store/repository-facts.d.ts +147 -0
- package/dist/effort/store/session-row-types.d.ts +6 -1
- package/dist/effort/store/sqlite.d.ts +11 -6
- package/dist/{index-4dwaxd5r.js → index-8rr1etrx.js} +10 -3
- package/dist/{index-nqaqh4zz.js → index-d772zq3m.js} +44 -4
- package/dist/{index-m672ptpg.js → index-dj8en7fg.js} +1 -1
- package/dist/{index-1tdzcheq.js → index-mkhbaye7.js} +306 -43
- package/dist/{index-4wy2nmyt.js → index-waawdjq2.js} +140 -119
- package/dist/index.js +1622 -564
- package/dist/learning/index.js +112 -53
- package/dist/ports/index.d.ts +5 -5
- package/dist/ports/learning.d.ts +28 -2
- package/dist/{ready-kac4ty0p.js → ready-9e1pyxdh.js} +3 -3
- package/dist/utils/shell.d.ts +17 -0
- package/package.json +12 -5
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isRecord,
|
|
21
21
|
normalizeRemote,
|
|
22
22
|
setActiveStoreSettings
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-8rr1etrx.js";
|
|
24
24
|
import {
|
|
25
25
|
activeOutput,
|
|
26
26
|
activeOutputMode
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
resolveConfig,
|
|
52
52
|
scopeAt,
|
|
53
53
|
writeDangerousPassLines
|
|
54
|
-
} from "./index-
|
|
54
|
+
} from "./index-dj8en7fg.js";
|
|
55
55
|
import {
|
|
56
56
|
BRANCH_STUB,
|
|
57
57
|
CLAIMS_STALE_DISABLED,
|
|
@@ -5871,20 +5871,25 @@ function selectBoardRelations(config, options) {
|
|
|
5871
5871
|
// packages/rafa-board/src/board/repository.ts
|
|
5872
5872
|
var REPOSITORY3 = /^[^/\s]+\/[^/\s]+$/u;
|
|
5873
5873
|
var REPO_VIEW = "gh repo view --json nameWithOwner";
|
|
5874
|
-
async function
|
|
5875
|
-
const result = await gh(["repo", "view", "--json",
|
|
5874
|
+
async function viewRepository(gh, fields, command) {
|
|
5875
|
+
const result = await gh(["repo", "view", "--json", fields]);
|
|
5876
5876
|
if (!result.ok)
|
|
5877
|
-
throw new Error(`${
|
|
5877
|
+
throw new Error(`${command} failed: ${result.stderr.trim() || result.stdout.trim() || "it wrote nothing"}`);
|
|
5878
5878
|
let parsed;
|
|
5879
5879
|
try {
|
|
5880
5880
|
parsed = JSON.parse(result.stdout);
|
|
5881
5881
|
} catch {
|
|
5882
|
-
throw new Error(`${
|
|
5882
|
+
throw new Error(`${command} wrote output that is not JSON: ${describeValue(result.stdout)}`);
|
|
5883
5883
|
}
|
|
5884
|
-
const
|
|
5884
|
+
const mapping = isMapping(parsed) ? parsed : {};
|
|
5885
|
+
const name = mapping["nameWithOwner"];
|
|
5885
5886
|
if (typeof name !== "string" || !REPOSITORY3.test(name)) {
|
|
5886
|
-
throw new Error(`${
|
|
5887
|
+
throw new Error(`${command} answered nameWithOwner ${describeValue(name)}, expected owner/name`);
|
|
5887
5888
|
}
|
|
5889
|
+
return { name, parsed: mapping };
|
|
5890
|
+
}
|
|
5891
|
+
async function readBoardRepository(gh) {
|
|
5892
|
+
const { name } = await viewRepository(gh, "nameWithOwner", REPO_VIEW);
|
|
5888
5893
|
return name;
|
|
5889
5894
|
}
|
|
5890
5895
|
|
|
@@ -8739,7 +8744,7 @@ async function resolvePlanSpec(options) {
|
|
|
8739
8744
|
});
|
|
8740
8745
|
}
|
|
8741
8746
|
|
|
8742
|
-
// packages/rafa-board/src/commands/issue/declarations.ts
|
|
8747
|
+
// packages/rafa-board/src/commands/issue/declarations-shared.ts
|
|
8743
8748
|
var ISSUE_SUBJECT = Object.freeze({
|
|
8744
8749
|
name: "issue",
|
|
8745
8750
|
summary: "the tracker: list, show, create, edit, comment on and move issues; mark one ready, unblock it and check its references"
|
|
@@ -8769,11 +8774,132 @@ var ISSUE_PRIORITY_WORDS = Object.freeze([
|
|
|
8769
8774
|
"medium",
|
|
8770
8775
|
"low"
|
|
8771
8776
|
]);
|
|
8777
|
+
var ISSUE_UPSTREAM_FLAG = "upstream";
|
|
8778
|
+
var ISSUE_UPSTREAM_TOOL_WORDS = Object.freeze(["rafa"]);
|
|
8779
|
+
var UPSTREAM_RULE = `one of ${ISSUE_UPSTREAM_TOOL_WORDS.join(", ")}, whose board \`collaborate.<tool>\` names` + " in `.rafa/config.yaml` (`collaborate.rafa` for rafa). Refused, exit 1, when the key is not set or its owner" + " differs from this board's, ignoring case: reporting upstream is allowed only between repositories of one owner.";
|
|
8780
|
+
function issueUpstreamFlagSpec(what) {
|
|
8781
|
+
return Object.freeze({
|
|
8782
|
+
name: ISSUE_UPSTREAM_FLAG,
|
|
8783
|
+
description: `${what} on the upstream board of a tool: ${UPSTREAM_RULE}`,
|
|
8784
|
+
type: "string"
|
|
8785
|
+
});
|
|
8786
|
+
}
|
|
8787
|
+
|
|
8788
|
+
// packages/rafa-board/src/commands/issue/declarations-create.ts
|
|
8772
8789
|
var ISSUE_TRIAGE_MODULE = "unassigned";
|
|
8790
|
+
var DEFAULT_ISSUE_TYPE = "code";
|
|
8791
|
+
var ISSUE_CREATE_DECLARATION = Object.freeze({
|
|
8792
|
+
name: "issue create",
|
|
8793
|
+
subject: ISSUE_SUBJECT.name,
|
|
8794
|
+
action: "create",
|
|
8795
|
+
summary: "create an issue on the tracker from a title and a body, a bug from its fields",
|
|
8796
|
+
description: "Files one issue on the tracker `tracker.default` names in `.rafa/config.yaml`, or on the first" + " `tracker.fallback` kind whose preflight passes when it fails, each kind passed over warned about." + " `--title` is required for every type but `bug`. The issue is of type `code` and module `unassigned` unless" + " `--type` and `--module` say otherwise, and with no `--priority` the tracker marks it needs-triage. A" + " `--type=bug` line is filed from its fields: `--module`, `--action`, `--summary`, `--cause` and" + " `--reproduce`, each also read from a section of the body, with rafa filling the versions and the place," + " rendering the title through `issues.titles.bug` and refusing a record missing a field, naming each. The body is" + " `--body`, or what the file `--body-file` names holds, standard input for `-`. A spec whose body" + " carries a `Blocked by: #24` line is filed blocked, and refused when the line names no issue, the" + " issue itself or an issue the board does not hold. With `board.project.number` set, a GitHub issue is" + " added to the project and its fields filled, any failure there a warning that keeps the exit code. Prints the" + " tracker and id of the issue filed, and its URL when there is one. With `--output=json` the tracker" + " and the ref are the data of the terminal result event. `--dry-run` prints the title and body the line" + " would file, resolves no tracker and files nothing.",
|
|
8797
|
+
args: [],
|
|
8798
|
+
flags: [
|
|
8799
|
+
{
|
|
8800
|
+
name: "title",
|
|
8801
|
+
description: "The title of the issue. Required for every type but bug, whose title is rendered from its fields.",
|
|
8802
|
+
type: "string"
|
|
8803
|
+
},
|
|
8804
|
+
{
|
|
8805
|
+
name: "body",
|
|
8806
|
+
description: "The body of the issue, as markdown. Empty when left out. Not with --body-file.",
|
|
8807
|
+
type: "string"
|
|
8808
|
+
},
|
|
8809
|
+
{
|
|
8810
|
+
name: "body-file",
|
|
8811
|
+
description: "A file holding the body of the issue, read whole; `-` reads standard input. Not with --body.",
|
|
8812
|
+
type: "string"
|
|
8813
|
+
},
|
|
8814
|
+
{
|
|
8815
|
+
name: "type",
|
|
8816
|
+
description: `What the issue is for: one of ${ISSUE_TYPE_WORDS.join(", ")}.`,
|
|
8817
|
+
type: "string",
|
|
8818
|
+
default: DEFAULT_ISSUE_TYPE
|
|
8819
|
+
},
|
|
8820
|
+
{
|
|
8821
|
+
name: "module",
|
|
8822
|
+
description: `The module the issue belongs to; ${ISSUE_TRIAGE_MODULE} when left out. A bug names one, or unknown.`,
|
|
8823
|
+
type: "string"
|
|
8824
|
+
},
|
|
8825
|
+
{
|
|
8826
|
+
name: "priority",
|
|
8827
|
+
description: `How urgent the issue is: one of ${ISSUE_PRIORITY_WORDS.join(", ")}. Marked needs-triage when left out.`,
|
|
8828
|
+
type: "string"
|
|
8829
|
+
},
|
|
8830
|
+
{
|
|
8831
|
+
name: "summary",
|
|
8832
|
+
description: "A bug: one line saying what is wrong, the last part of its title.",
|
|
8833
|
+
type: "string"
|
|
8834
|
+
},
|
|
8835
|
+
{
|
|
8836
|
+
name: "action",
|
|
8837
|
+
description: "A bug: what was running, a command, a step or a test; or unknown.",
|
|
8838
|
+
type: "string"
|
|
8839
|
+
},
|
|
8840
|
+
{
|
|
8841
|
+
name: "cause",
|
|
8842
|
+
description: "A bug: its cause code from `rafa bug codes`, or <family>:new-context when no leaf fits.",
|
|
8843
|
+
type: "string"
|
|
8844
|
+
},
|
|
8845
|
+
{
|
|
8846
|
+
name: "proposed",
|
|
8847
|
+
description: "A bug: beside a new-context cause, the leaf you would have used, as <family>:<leaf>.",
|
|
8848
|
+
type: "string"
|
|
8849
|
+
},
|
|
8850
|
+
{
|
|
8851
|
+
name: "reproduce",
|
|
8852
|
+
description: "A bug: one command run from the checkout root whose output or exit code shows it; the condition only when no command can. Never unknown.",
|
|
8853
|
+
type: "string"
|
|
8854
|
+
},
|
|
8855
|
+
{
|
|
8856
|
+
name: "rerun",
|
|
8857
|
+
description: "A bug: one command that shows it again.",
|
|
8858
|
+
type: "string"
|
|
8859
|
+
},
|
|
8860
|
+
{
|
|
8861
|
+
name: "env",
|
|
8862
|
+
description: "A bug: the place it was seen, one of local, ci, prod, a place `issues.environments` adds, or" + " unknown. Left out, ci when the CI variable is set and local otherwise.",
|
|
8863
|
+
type: "string"
|
|
8864
|
+
},
|
|
8865
|
+
{
|
|
8866
|
+
name: "project",
|
|
8867
|
+
description: "A bug: the project, where one tracker holds several.",
|
|
8868
|
+
type: "string"
|
|
8869
|
+
},
|
|
8870
|
+
{
|
|
8871
|
+
name: "path",
|
|
8872
|
+
description: "A bug: the file the error points at, which names the package its Versions section holds. Left" + " out, the first file of the project the artifact names.",
|
|
8873
|
+
type: "string"
|
|
8874
|
+
},
|
|
8875
|
+
{
|
|
8876
|
+
name: "dry-run",
|
|
8877
|
+
description: "Print the title and the body the line would file, resolve no tracker and file nothing.",
|
|
8878
|
+
type: "boolean"
|
|
8879
|
+
},
|
|
8880
|
+
issueUpstreamFlagSpec("File the issue, a bug only (--type=bug), its private names hidden,")
|
|
8881
|
+
],
|
|
8882
|
+
examples: [
|
|
8883
|
+
{
|
|
8884
|
+
cmd: 'rafa issue create --type=bug --module=loop --action=start --summary="resume does not find the worktree branch"' + ' --reproduce="rafa loop start --continue after a stop" --cause=git:new-context --proposed=git:branch-not-found --dry-run',
|
|
8885
|
+
note: "Prints the title `loop - start: resume does not find the worktree branch` and the body of the bug, and files nothing."
|
|
8886
|
+
},
|
|
8887
|
+
{
|
|
8888
|
+
cmd: 'rafa issue create --title="Document issue move" --priority=low --output=json',
|
|
8889
|
+
note: "Writes a start event, then a result event whose data holds the tracker and the ref of the issue."
|
|
8890
|
+
},
|
|
8891
|
+
{
|
|
8892
|
+
cmd: 'rafa issue create --title="Faster plan show" --body-file=spec.md',
|
|
8893
|
+
note: "Files an issue whose body is what spec.md holds; --body-file=- reads it from standard input."
|
|
8894
|
+
}
|
|
8895
|
+
],
|
|
8896
|
+
outputs: ["text", "json"]
|
|
8897
|
+
});
|
|
8898
|
+
|
|
8899
|
+
// packages/rafa-board/src/commands/issue/declarations.ts
|
|
8773
8900
|
var ISSUE_READY_LABEL = "spec:ready";
|
|
8774
8901
|
var ISSUE_NEEDS_WORK_LABEL = "spec:needs-work";
|
|
8775
8902
|
var ISSUE_BLOCKED_LABEL = "spec:blocked";
|
|
8776
|
-
var DEFAULT_ISSUE_TYPE = "code";
|
|
8777
8903
|
var PRIORITY_FLAG = "priority";
|
|
8778
8904
|
var STAMP_FLAG = "stamp";
|
|
8779
8905
|
var READY_YES_FLAG = "yes";
|
|
@@ -8850,7 +8976,7 @@ var ISSUE_LIST_DECLARATION = Object.freeze({
|
|
|
8850
8976
|
summary: "list the issues on the tracker, or the Roadmap's lines in its order, narrowed by type, module or text",
|
|
8851
8977
|
description: "Lists the issues on the tracker `tracker.default` names in `.rafa/config.yaml`, or on the first" + " `tracker.fallback` kind whose preflight passes when it fails, each kind passed over warned about." + " Prints the tracker, then one row per issue: its id, state, type and title; under `--type=bug`, a header" + " and the columns id, state, module, action and summary, read back from each title. Each flag narrows the" + " list, and a flag left out narrows by nothing. The github tracker holds an issue open or closed, so" + " it refuses `--state`, and lists 30 issues unless `--limit` says otherwise. With `--roadmap` it lists" + " the unticked lines of the Roadmap issue (`roadmap.issue`, else the lowest-numbered open type:roadmap" + " board, else the open issue titled Roadmap) in its" + " order instead, read off the GitHub board, as a table adding four columns: spec, whether the issue" + " can be planned (every section of the spec template filled, and the spec:ready label on it), as a" + " symbol; blocked by, the blockers grouped by whether they are still open;" + " has, a plan, a branch or a pull request already made for it; and refs, how many references of the" + " issue's saved copy under `specs.dir` read suspect or dangling, `-` with no copy. A legend names each" + " symbol, `--texts` (`-t`) spells them in words, and `--labels` prints the labels on a row under each" + " issue. A Roadmap naming epics prints them alone, grouped by horizon under a `Roadmap #<n> \xB7 <horizon>`" + " heading with the columns #, state, done/total, blocked, date and title, the now horizon only unless" + " `--all`, with one line counting the lines naming no epic; `--full` prints each epic's issues under" + " its row, and the lines naming no epic as the table. The board listing is kept under .rafa/cache/ and" + " read for what changed since; `--refresh` reads the whole board again. `--check` exits 1 when any" + " type:epic issue's stored state" + " disagrees with its computed one. `--type`, `--module`, `--search` and `--limit` then narrow the spec rows, keeping their" + " order, and an unreachable board is warned about with the rows still printed. With `--output=json`" + " the tracker, the query and every issue, or under `--roadmap` the roadmap, the rows, the epics and the" + " warnings, are the data of the terminal result event.",
|
|
8852
8978
|
args: [],
|
|
8853
|
-
flags: [...ISSUE_LIST_FLAGS],
|
|
8979
|
+
flags: [...ISSUE_LIST_FLAGS, issueUpstreamFlagSpec("List the issues")],
|
|
8854
8980
|
examples: [
|
|
8855
8981
|
{
|
|
8856
8982
|
cmd: "rafa issue list",
|
|
@@ -8910,112 +9036,6 @@ var ISSUE_SHOW_DECLARATION = Object.freeze({
|
|
|
8910
9036
|
],
|
|
8911
9037
|
outputs: ["text", "json"]
|
|
8912
9038
|
});
|
|
8913
|
-
var ISSUE_CREATE_DECLARATION = Object.freeze({
|
|
8914
|
-
name: "issue create",
|
|
8915
|
-
subject: ISSUE_SUBJECT.name,
|
|
8916
|
-
action: "create",
|
|
8917
|
-
summary: "create an issue on the tracker from a title and a body, a bug from its fields",
|
|
8918
|
-
description: "Files one issue on the tracker `tracker.default` names in `.rafa/config.yaml`, or on the first" + " `tracker.fallback` kind whose preflight passes when it fails, each kind passed over warned about." + " `--title` is required for every type but `bug`. The issue is of type `code` and module `unassigned` unless" + " `--type` and `--module` say otherwise, and with no `--priority` the tracker marks it needs-triage. A" + " `--type=bug` line is filed from its fields: `--module`, `--action`, `--summary`, `--cause` and" + " `--reproduce`, each also read from a section of the body, with rafa filling the versions and the place," + " rendering the title through `issues.titles.bug` and refusing a record missing a field, naming each. The body is" + " `--body`, or what the file `--body-file` names holds, standard input for `-`. A spec whose body" + " carries a `Blocked by: #24` line is filed blocked, and refused when the line names no issue, the" + " issue itself or an issue the board does not hold. With `board.project.number` set, a GitHub issue is" + " added to the project and its fields filled, any failure there a warning that keeps the exit code. Prints the" + " tracker and id of the issue filed, and its URL when there is one. With `--output=json` the tracker" + " and the ref are the data of the terminal result event. `--dry-run` prints the title and body the line" + " would file, resolves no tracker and files nothing.",
|
|
8919
|
-
args: [],
|
|
8920
|
-
flags: [
|
|
8921
|
-
{
|
|
8922
|
-
name: "title",
|
|
8923
|
-
description: "The title of the issue. Required for every type but bug, whose title is rendered from its fields.",
|
|
8924
|
-
type: "string"
|
|
8925
|
-
},
|
|
8926
|
-
{
|
|
8927
|
-
name: "body",
|
|
8928
|
-
description: "The body of the issue, as markdown. Empty when left out. Not with --body-file.",
|
|
8929
|
-
type: "string"
|
|
8930
|
-
},
|
|
8931
|
-
{
|
|
8932
|
-
name: "body-file",
|
|
8933
|
-
description: "A file holding the body of the issue, read whole; `-` reads standard input. Not with --body.",
|
|
8934
|
-
type: "string"
|
|
8935
|
-
},
|
|
8936
|
-
{
|
|
8937
|
-
name: "type",
|
|
8938
|
-
description: `What the issue is for: one of ${ISSUE_TYPE_WORDS.join(", ")}.`,
|
|
8939
|
-
type: "string",
|
|
8940
|
-
default: DEFAULT_ISSUE_TYPE
|
|
8941
|
-
},
|
|
8942
|
-
{
|
|
8943
|
-
name: "module",
|
|
8944
|
-
description: `The module the issue belongs to; ${ISSUE_TRIAGE_MODULE} when left out. A bug names one, or unknown.`,
|
|
8945
|
-
type: "string"
|
|
8946
|
-
},
|
|
8947
|
-
{
|
|
8948
|
-
name: "priority",
|
|
8949
|
-
description: `How urgent the issue is: one of ${ISSUE_PRIORITY_WORDS.join(", ")}. Marked needs-triage when left out.`,
|
|
8950
|
-
type: "string"
|
|
8951
|
-
},
|
|
8952
|
-
{
|
|
8953
|
-
name: "summary",
|
|
8954
|
-
description: "A bug: one line saying what is wrong, the last part of its title.",
|
|
8955
|
-
type: "string"
|
|
8956
|
-
},
|
|
8957
|
-
{
|
|
8958
|
-
name: "action",
|
|
8959
|
-
description: "A bug: what was running, a command, a step or a test; or unknown.",
|
|
8960
|
-
type: "string"
|
|
8961
|
-
},
|
|
8962
|
-
{
|
|
8963
|
-
name: "cause",
|
|
8964
|
-
description: "A bug: its cause code from `rafa bug codes`, or <family>:new-context when no leaf fits.",
|
|
8965
|
-
type: "string"
|
|
8966
|
-
},
|
|
8967
|
-
{
|
|
8968
|
-
name: "proposed",
|
|
8969
|
-
description: "A bug: beside a new-context cause, the leaf you would have used, as <family>:<leaf>.",
|
|
8970
|
-
type: "string"
|
|
8971
|
-
},
|
|
8972
|
-
{
|
|
8973
|
-
name: "reproduce",
|
|
8974
|
-
description: "A bug: one command run from the checkout root whose output or exit code shows it; the condition only when no command can. Never unknown.",
|
|
8975
|
-
type: "string"
|
|
8976
|
-
},
|
|
8977
|
-
{
|
|
8978
|
-
name: "rerun",
|
|
8979
|
-
description: "A bug: one command that shows it again.",
|
|
8980
|
-
type: "string"
|
|
8981
|
-
},
|
|
8982
|
-
{
|
|
8983
|
-
name: "env",
|
|
8984
|
-
description: "A bug: the place it was seen, one of local, ci, prod, a place `issues.environments` adds, or" + " unknown. Left out, ci when the CI variable is set and local otherwise.",
|
|
8985
|
-
type: "string"
|
|
8986
|
-
},
|
|
8987
|
-
{
|
|
8988
|
-
name: "project",
|
|
8989
|
-
description: "A bug: the project, where one tracker holds several.",
|
|
8990
|
-
type: "string"
|
|
8991
|
-
},
|
|
8992
|
-
{
|
|
8993
|
-
name: "path",
|
|
8994
|
-
description: "A bug: the file the error points at, which names the package its Versions section holds. Left" + " out, the first file of the project the artifact names.",
|
|
8995
|
-
type: "string"
|
|
8996
|
-
},
|
|
8997
|
-
{
|
|
8998
|
-
name: "dry-run",
|
|
8999
|
-
description: "Print the title and the body the line would file, resolve no tracker and file nothing.",
|
|
9000
|
-
type: "boolean"
|
|
9001
|
-
}
|
|
9002
|
-
],
|
|
9003
|
-
examples: [
|
|
9004
|
-
{
|
|
9005
|
-
cmd: 'rafa issue create --type=bug --module=loop --action=start --summary="resume does not find the worktree branch"' + ' --reproduce="rafa loop start --continue after a stop" --cause=git:new-context --proposed=git:branch-not-found --dry-run',
|
|
9006
|
-
note: "Prints the title `loop - start: resume does not find the worktree branch` and the body of the bug, and files nothing."
|
|
9007
|
-
},
|
|
9008
|
-
{
|
|
9009
|
-
cmd: 'rafa issue create --title="Document issue move" --priority=low --output=json',
|
|
9010
|
-
note: "Writes a start event, then a result event whose data holds the tracker and the ref of the issue."
|
|
9011
|
-
},
|
|
9012
|
-
{
|
|
9013
|
-
cmd: 'rafa issue create --title="Faster plan show" --body-file=spec.md',
|
|
9014
|
-
note: "Files an issue whose body is what spec.md holds; --body-file=- reads it from standard input."
|
|
9015
|
-
}
|
|
9016
|
-
],
|
|
9017
|
-
outputs: ["text", "json"]
|
|
9018
|
-
});
|
|
9019
9039
|
var ISSUE_COMMENT_DECLARATION = Object.freeze({
|
|
9020
9040
|
name: "issue comment",
|
|
9021
9041
|
subject: ISSUE_SUBJECT.name,
|
|
@@ -9036,7 +9056,8 @@ var ISSUE_COMMENT_DECLARATION = Object.freeze({
|
|
|
9036
9056
|
description: "The comment, as markdown. Required.",
|
|
9037
9057
|
type: "string",
|
|
9038
9058
|
required: true
|
|
9039
|
-
}
|
|
9059
|
+
},
|
|
9060
|
+
issueUpstreamFlagSpec("Post the comment, redacted and its private names hidden,")
|
|
9040
9061
|
],
|
|
9041
9062
|
examples: [
|
|
9042
9063
|
{
|
|
@@ -11064,4 +11085,4 @@ var FACADE = Object.freeze({
|
|
|
11064
11085
|
function activeServices() {
|
|
11065
11086
|
return FACADE;
|
|
11066
11087
|
}
|
|
11067
|
-
export { ISSUE_TYPES, ISSUE_PRIORITIES, ISSUE_STATES, GITHUB_LABELS, GITHUB_LABEL_MAX_LENGTH, createGhRunner, typeOfLabels, moduleOfLabels, createGithubTracker, createConsoleLogger, resolveTracker, SPEC_BLOCKED_LABEL, SPEC_READY_LABEL, READINESS_REFUSAL_EXIT, findPinnedMigrations, hasSpecReadyLabel, requireCompleteSpec, ID_PREFIX, SPEC_EXTENSION, pullRequestTitle, REMOTE, detachedHeadRefusal, branchNameFor, localRef, remoteTrackingRef, standsOn, anyBranchStandsAside, readBranchOffer, answeredYes, trackedChanges, treeRefusal, branchSteps, parseBaseStanding, hasDiverged, readStepOutcome, CLAIM_SUBJECT, parseClaimMessage, claimBranchGlob, claimBranchIssue, makeOwnershipCommit, fetchClaimBranches, readClaimBranch, readLocalClaimBranch, pushNewClaimBranch, pushOwnershipCommit, CLAIMED_LABEL, IN_DEVELOPMENT_LABEL, claimBranchOfRef, weighBranchClaim, scanClaimBranches, ROADMAP_TITLE, parseRoadmapBody, createGhRoadmapSearch, createGhOpenPullRequests, createRoadmapReadings, pickNextRoadmapLine, bodyLines, findField, EPIC_LABEL_PREFIX, epicSlugsOf, readEpics, BOARD_LISTING_LIMIT, parseBoardListing, createGhBoardListing, epicContextArgs, readEpicContext, readEpicProblems, epicProblemMessage, isEpicIssue, epicLines, descendRoadmap, nextNowEpic, SKIP_REVIEW_FLAG, ACCEPT_REFS_FLAG, ghBoardTrust, requireTrustedBoardAuthor, issueFieldLine, stampPlanIssue, REVIEW_SKIPPED_LINE, REVIEW_MISSING_LINE, stampReviewSkipped, stampReviewMissing, ASSUMPTIONS_HEADING, SPEC_NEEDS_WORK_LABEL, readGateFlags, enforceSpecReview, PRESENT, ABSENT, NEW, UNREADABLE, RefsBlockError, ISSUE_KINDS, issueFingerprint, blobFingerprint, fingerprintText, compareToStamp, findStamp, writeRefsBlock, readRefsBlock, createGhSpecIssueReader, ROADMAP_LABEL, createGhIssueBoard, labelsLineBlockersOf, LABELS_READS, blockedLineOf, blockedLineSentence, blockingOf, notReadySentence, alternativeQuestion, NOT_A_REPOSITORY, mainCheckoutOf, INIT_COMMAND, DISK_FILE_SYSTEM, ScopeError, initHint, selfAndAncestors, resolveScope, createGhBoardLister, resolveDefaultBoard, selectBoardRelations, readBoardRepository, readConfiguredRelations, cancelledEpicNoticeLines, firstNowEpic, positionFilePath, readPositionFile, writePositionFile, positionAt, rehome, hop, goHome, samePlace, resolvePlace, openProjectRunner, isMissingProjectScope, scopeWarning, notFoundWarning, addedNotFilledWarning, FRAGMENT_EXTENSION, FRAGMENT_PLAN_ID_PATTERN, parseFragment, serializeFragment, allocateFragmentName, directoryPrefix, fragmentIdOf, readCurrentPlace, horizonOf, readListedEpics, createGhProjectPort, knownItem, refreshProjectItems, refreshIssueItems, refreshFailedWarning, createRefreshingGhIssueBoard, aheadEnabled, aheadNotClaimed, resolveAheadTarget, pushClaimsAtomic, aheadClaimedLine, aheadNotClaimedWarning, refreshQuestion, hopFilePath, readHopRecord, writeHopRecord, staleAgainst, SOURCE_REFUSAL_EXIT, noSourceMessage, readSpecSourceFlags, issueSource, boardRepoLabel, resolvePlanSpec, READY_YES_FLAG, READY_DRY_RUN_FLAG, ISSUE_READY_DECLARATION, readConfigFile, readProjectScope, loadConfig, lineRefusal, issueProject, issueSubjectConfig, SERVICE_REASONS, registerServices, restoreServices, activeServices };
|
|
11088
|
+
export { ISSUE_TYPES, ISSUE_PRIORITIES, ISSUE_STATES, GITHUB_LABELS, GITHUB_LABEL_MAX_LENGTH, createGhRunner, typeOfLabels, moduleOfLabels, createGithubTracker, createConsoleLogger, activeLogger, resolveTracker, SPEC_BLOCKED_LABEL, SPEC_READY_LABEL, READINESS_REFUSAL_EXIT, findPinnedMigrations, hasSpecReadyLabel, requireCompleteSpec, ID_PREFIX, SPEC_EXTENSION, pullRequestTitle, REMOTE, detachedHeadRefusal, branchNameFor, localRef, remoteTrackingRef, standsOn, anyBranchStandsAside, readBranchOffer, answeredYes, trackedChanges, treeRefusal, branchSteps, parseBaseStanding, hasDiverged, readStepOutcome, CLAIM_SUBJECT, parseClaimMessage, claimBranchGlob, claimBranchIssue, makeOwnershipCommit, fetchClaimBranches, readClaimBranch, readLocalClaimBranch, pushNewClaimBranch, pushOwnershipCommit, CLAIMED_LABEL, IN_DEVELOPMENT_LABEL, claimBranchOfRef, weighBranchClaim, scanClaimBranches, ROADMAP_TITLE, parseRoadmapBody, createGhRoadmapSearch, createGhOpenPullRequests, createRoadmapReadings, pickNextRoadmapLine, bodyLines, findField, EPIC_LABEL_PREFIX, epicSlugsOf, readEpics, BOARD_LISTING_LIMIT, parseBoardListing, createGhBoardListing, epicContextArgs, readEpicContext, readEpicProblems, epicProblemMessage, isEpicIssue, epicLines, descendRoadmap, nextNowEpic, SKIP_REVIEW_FLAG, ACCEPT_REFS_FLAG, ghBoardTrust, requireTrustedBoardAuthor, issueFieldLine, stampPlanIssue, REVIEW_SKIPPED_LINE, REVIEW_MISSING_LINE, stampReviewSkipped, stampReviewMissing, ASSUMPTIONS_HEADING, SPEC_NEEDS_WORK_LABEL, readGateFlags, enforceSpecReview, PRESENT, ABSENT, NEW, UNREADABLE, RefsBlockError, ISSUE_KINDS, issueFingerprint, blobFingerprint, fingerprintText, compareToStamp, findStamp, writeRefsBlock, readRefsBlock, createGhSpecIssueReader, ROADMAP_LABEL, createGhIssueBoard, labelsLineBlockersOf, LABELS_READS, blockedLineOf, blockedLineSentence, blockingOf, notReadySentence, alternativeQuestion, NOT_A_REPOSITORY, mainCheckoutOf, INIT_COMMAND, DISK_FILE_SYSTEM, ScopeError, initHint, selfAndAncestors, resolveScope, createGhBoardLister, resolveDefaultBoard, selectBoardRelations, readBoardRepository, readConfiguredRelations, cancelledEpicNoticeLines, firstNowEpic, positionFilePath, readPositionFile, writePositionFile, positionAt, rehome, hop, goHome, samePlace, resolvePlace, openProjectRunner, isMissingProjectScope, scopeWarning, notFoundWarning, addedNotFilledWarning, FRAGMENT_EXTENSION, FRAGMENT_PLAN_ID_PATTERN, parseFragment, serializeFragment, allocateFragmentName, directoryPrefix, fragmentIdOf, readCurrentPlace, horizonOf, readListedEpics, createGhProjectPort, knownItem, refreshProjectItems, refreshIssueItems, refreshFailedWarning, createRefreshingGhIssueBoard, aheadEnabled, aheadNotClaimed, resolveAheadTarget, pushClaimsAtomic, aheadClaimedLine, aheadNotClaimedWarning, refreshQuestion, hopFilePath, readHopRecord, writeHopRecord, staleAgainst, SOURCE_REFUSAL_EXIT, noSourceMessage, readSpecSourceFlags, issueSource, boardRepoLabel, resolvePlanSpec, READY_YES_FLAG, READY_DRY_RUN_FLAG, ISSUE_READY_DECLARATION, readConfigFile, readProjectScope, loadConfig, lineRefusal, issueProject, issueSubjectConfig, SERVICE_REASONS, registerServices, restoreServices, activeServices };
|