frizz-server 0.15.69 → 0.15.71
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/claude-agent-broker.js +15263 -14976
- package/dist/dev-child.js +14747 -13532
- package/package.json +1 -1
- package/runtime/cc-worker/bin/frizzctl.mjs +11 -1
- package/runtime/cc-worker/hooks/session-seed.mjs +2 -2
- package/runtime/cc-worker/lib/frizz-tools.mjs +30 -6
- package/runtime/cc-worker/skills/gh/SKILL.md +1 -1
- package/web-dist/assets/{abnfDiagram-VCTEODGH-CAOJsOET.js → abnfDiagram-VCTEODGH-CAwe9lqQ.js} +1 -1
- package/web-dist/assets/architecture-7GRP2DOG-DkbXKOdB.js +1 -0
- package/web-dist/assets/{architectureDiagram-5GKGNRK7-C8Up8Ogo.js → architectureDiagram-5GKGNRK7-C471kWXB.js} +1 -1
- package/web-dist/assets/{blockDiagram-I7D4REHJ-DutZHooJ.js → blockDiagram-I7D4REHJ-D8h9ziU-.js} +1 -1
- package/web-dist/assets/{c4Diagram-7LVT6UL2-BxTZBXZY.js → c4Diagram-7LVT6UL2-DWBqAyAv.js} +1 -1
- package/web-dist/assets/channel-CMZdz02i.js +1 -0
- package/web-dist/assets/{chunk-2E4U76K2-DTGELXkj.js → chunk-2E4U76K2-BfJg2dmH.js} +1 -1
- package/web-dist/assets/{chunk-4HAMMTFA-BEXsK_ZE.js → chunk-4HAMMTFA-DCLFiLqy.js} +1 -1
- package/web-dist/assets/{chunk-75Z2AOVW-B8Rat5CG.js → chunk-75Z2AOVW-C449dJ0W.js} +1 -1
- package/web-dist/assets/{chunk-CLGD4ZFX-DR6dh6Ir.js → chunk-CLGD4ZFX-wvik9VC5.js} +1 -1
- package/web-dist/assets/{chunk-DU6HZSFF-NT3s3Oty.js → chunk-DU6HZSFF-B9_JRJD-.js} +1 -1
- package/web-dist/assets/{chunk-F27PBJKO-DJnZuALD.js → chunk-F27PBJKO-Aj-QT4Mu.js} +1 -1
- package/web-dist/assets/{chunk-GMAD6QVW-CFvt0VOu.js → chunk-GMAD6QVW-BBf93MGE.js} +1 -1
- package/web-dist/assets/{chunk-GVQU2GXP-Chg0D0gv.js → chunk-GVQU2GXP-CEhaMSDm.js} +1 -1
- package/web-dist/assets/{chunk-IMKFNOWR-BXKWrFrN.js → chunk-IMKFNOWR-jctfhSVa.js} +1 -1
- package/web-dist/assets/{chunk-L3NEJ4N5-BAenZwhb.js → chunk-L3NEJ4N5-C13gYeYR.js} +1 -1
- package/web-dist/assets/{chunk-OSK3NFVY-ZzsUOB19.js → chunk-OSK3NFVY-K_mfCjvk.js} +1 -1
- package/web-dist/assets/{chunk-P2QGCYS3-v_vQltnc.js → chunk-P2QGCYS3-CpD_2dF8.js} +1 -1
- package/web-dist/assets/{chunk-POPQ4Y6H-BylYacC7.js → chunk-POPQ4Y6H-Cqc8-28f.js} +1 -1
- package/web-dist/assets/{chunk-PWAF6VOD-DqfqKsQE.js → chunk-PWAF6VOD-BvePu85g.js} +1 -1
- package/web-dist/assets/{chunk-SHT3W25Y-BAVP8q-S.js → chunk-SHT3W25Y-DxEwMcq0.js} +1 -1
- package/web-dist/assets/{chunk-SVP7TREG-v-svPOXH.js → chunk-SVP7TREG-BGkN6fgt.js} +1 -1
- package/web-dist/assets/{chunk-TICWLB2K-BVn7zmNa.js → chunk-TICWLB2K-Dq4fXgT4.js} +1 -1
- package/web-dist/assets/{chunk-TLUHSLCS-D8OxWUQS.js → chunk-TLUHSLCS-DVY1zkej.js} +2 -2
- package/web-dist/assets/classDiagram-ZZMXUADV-B0Nm0Ctm.js +1 -0
- package/web-dist/assets/classDiagram-v2-VYDZK3BY-B0Nm0Ctm.js +1 -0
- package/web-dist/assets/{cynefin-OW5HDTMX-C105xxuA.js → cynefin-OW5HDTMX-Cy2FSaPX.js} +1 -1
- package/web-dist/assets/{cynefinDiagram-5FMLGOSQ-DZMMsJaY.js → cynefinDiagram-5FMLGOSQ-Bw0MBBKi.js} +1 -1
- package/web-dist/assets/{dagre-GXQ25YYZ-Bg0qpttw.js → dagre-GXQ25YYZ-Bv2CtYiW.js} +1 -1
- package/web-dist/assets/{diagram-S7CK7UJ4-CFyBqhBs.js → diagram-S7CK7UJ4-BgTlCv9O.js} +1 -1
- package/web-dist/assets/{diagram-UQ7AKVKN-q-nAiyCd.js → diagram-UQ7AKVKN-DabBjuZL.js} +1 -1
- package/web-dist/assets/{diagram-VSXAHHWV-BFBDQFzR.js → diagram-VSXAHHWV-DazYGzMr.js} +1 -1
- package/web-dist/assets/{diagram-VX7I27RA-Dn6-h9gL.js → diagram-VX7I27RA-Bb5XOXrF.js} +1 -1
- package/web-dist/assets/{diagram-Z3DM3KII-DBQo6P6E.js → diagram-Z3DM3KII-CWGGengU.js} +1 -1
- package/web-dist/assets/{ebnfDiagram-PWID7BFC-DYeXub_w.js → ebnfDiagram-PWID7BFC-DCVuPFuT.js} +1 -1
- package/web-dist/assets/{erDiagram-RLTQ6QDP-DZmH1b3v.js → erDiagram-RLTQ6QDP-CU5itTM9.js} +1 -1
- package/web-dist/assets/eventmodeling-NTZA5JFV-mzjFZNKI.js +1 -0
- package/web-dist/assets/flowDiagram-HODETNUW-DzK2hR7O.js +1 -0
- package/web-dist/assets/{ganttDiagram-EL5Y4UJY-BH0blkF4.js → ganttDiagram-EL5Y4UJY-XLXZmjz7.js} +1 -1
- package/web-dist/assets/{gitGraph-4MIJSDKK-ByrRmUtr.js → gitGraph-4MIJSDKK-DnwLwJZe.js} +1 -1
- package/web-dist/assets/{gitGraphDiagram-WWUBYQGX-CtJWhe7d.js → gitGraphDiagram-WWUBYQGX-4nLiPHDL.js} +1 -1
- package/web-dist/assets/index-aAbteJsi.js +270 -0
- package/web-dist/assets/index-euOjK0un.css +2 -0
- package/web-dist/assets/{info-A6RAGUB7-YYmHkKXE.js → info-A6RAGUB7-DHQE7P7I.js} +1 -1
- package/web-dist/assets/{infoDiagram-27XIBGKW-nmaWWTql.js → infoDiagram-27XIBGKW-cotXjExv.js} +1 -1
- package/web-dist/assets/{ishikawaDiagram-5VMMS53U-BeUqlcCV.js → ishikawaDiagram-5VMMS53U-BYzgAZCH.js} +1 -1
- package/web-dist/assets/{journeyDiagram-3NMN7TZE-DWgMJRvj.js → journeyDiagram-3NMN7TZE-DkQBjD9V.js} +1 -1
- package/web-dist/assets/{kanban-definition-UXKFOSKX-BKOaQIpc.js → kanban-definition-UXKFOSKX-L4TmtG0X.js} +1 -1
- package/web-dist/assets/{line-BC9gFiXB.js → line-4DBZAhGs.js} +1 -1
- package/web-dist/assets/{mermaid-parser.core-t5P_s43p.js → mermaid-parser.core-CfVtqVfl.js} +3 -3
- package/web-dist/assets/{mermaid.core-DI7rYW7-.js → mermaid.core-C740BttC.js} +3 -3
- package/web-dist/assets/{mindmap-definition-YA3MSWOX-DdmeeunG.js → mindmap-definition-YA3MSWOX-LXqO7MjB.js} +1 -1
- package/web-dist/assets/{packet-AYTQ26CC-CX7mNayZ.js → packet-AYTQ26CC-BHAIawHD.js} +1 -1
- package/web-dist/assets/{pegDiagram-XKGWAZYB-BchXNchm.js → pegDiagram-XKGWAZYB-C61UXXH_.js} +1 -1
- package/web-dist/assets/{pie-WAS4IAKB-BBR2St0F.js → pie-WAS4IAKB-DrWq3ncW.js} +1 -1
- package/web-dist/assets/{pieDiagram-E7YTZNPT-C4ZMo5nd.js → pieDiagram-E7YTZNPT-Bavj5E4V.js} +1 -1
- package/web-dist/assets/{quadrantDiagram-AXDQQJYC-DKLWCxs9.js → quadrantDiagram-AXDQQJYC-C1N7N1iH.js} +1 -1
- package/web-dist/assets/{radar-RG4KPBEZ-Bl4APi_9.js → radar-RG4KPBEZ-DXZ6p4RM.js} +1 -1
- package/web-dist/assets/{railroad-74A4TZTK-BaWpn8y7.js → railroad-74A4TZTK-CxGpmXC5.js} +1 -1
- package/web-dist/assets/railroad-abnf-HS5TGJTU-DZ_wGO0F.js +1 -0
- package/web-dist/assets/railroad-ebnf-LZEXJU2U-v5XFYHV3.js +1 -0
- package/web-dist/assets/railroad-peg-WCYAUIDC-BEjgLwoY.js +1 -0
- package/web-dist/assets/{railroadDiagram-O6MQD6OU-BmEXBMT3.js → railroadDiagram-O6MQD6OU-56434sIJ.js} +1 -1
- package/web-dist/assets/{requirementDiagram-BXWQKSXE-DeWSQCfO.js → requirementDiagram-BXWQKSXE-C74ttxCA.js} +1 -1
- package/web-dist/assets/{sankeyDiagram-P5KCCOFB-DDagle1O.js → sankeyDiagram-P5KCCOFB-DtogT-bF.js} +1 -1
- package/web-dist/assets/{sequenceDiagram-WJ2MYXX4-5xpdAAxP.js → sequenceDiagram-WJ2MYXX4-BEPE-LIR.js} +1 -1
- package/web-dist/assets/{stateDiagram-D77RDMKH-A6hsUYo8.js → stateDiagram-D77RDMKH-CTNGCkUB.js} +1 -1
- package/web-dist/assets/stateDiagram-v2-MP3YSRHH-BL0fDRfU.js +1 -0
- package/web-dist/assets/{swimlanes-42K2YHIH-Brd03IaF.js → swimlanes-42K2YHIH-zxTz6qF2.js} +1 -1
- package/web-dist/assets/swimlanesDiagram-VR7AAH4N-kMZWyMhU.js +8 -0
- package/web-dist/assets/themePresetRuntime-Cw4UTg1l.js +2 -0
- package/web-dist/assets/threadSurfaces-DzQMVchs.js +149 -0
- package/web-dist/assets/{timeline-definition-24CTP7MA-CHL2qrzP.js → timeline-definition-24CTP7MA-BfaSRMoy.js} +1 -1
- package/web-dist/assets/{treeView-Q6P3EWNA-BTArAool.js → treeView-Q6P3EWNA-BUrNEgC-.js} +1 -1
- package/web-dist/assets/{treemap-WGGIJYW6-BDntnnJl.js → treemap-WGGIJYW6-DxThQAOf.js} +1 -1
- package/web-dist/assets/{vennDiagram-4TSXK5OY-iWoL9bxX.js → vennDiagram-4TSXK5OY-BJac7nK9.js} +1 -1
- package/web-dist/assets/{wardley-WFR3VGLG-DBAWRIVF.js → wardley-WFR3VGLG-A7tbZ89U.js} +1 -1
- package/web-dist/assets/{wardleyDiagram-VM6X3IG4-DBS4mR5g.js → wardleyDiagram-VM6X3IG4-Di6Me7Wr.js} +1 -1
- package/web-dist/assets/{xychartDiagram-S5SC5T6Z-DI1LV3is.js → xychartDiagram-S5SC5T6Z-HJ0cSIKj.js} +1 -1
- package/web-dist/index.html +2 -2
- package/web-dist/assets/architecture-7GRP2DOG-B2vo09C2.js +0 -1
- package/web-dist/assets/channel-3pHWa5bb.js +0 -1
- package/web-dist/assets/classDiagram-ZZMXUADV-CqRuoFxI.js +0 -1
- package/web-dist/assets/classDiagram-v2-VYDZK3BY-CqRuoFxI.js +0 -1
- package/web-dist/assets/eventmodeling-NTZA5JFV-CE1tFKKU.js +0 -1
- package/web-dist/assets/flowDiagram-HODETNUW-Cu07CXU5.js +0 -1
- package/web-dist/assets/index-3HkCGBZp.css +0 -2
- package/web-dist/assets/index-BBUEAqvT.js +0 -264
- package/web-dist/assets/railroad-abnf-HS5TGJTU-C9feWemS.js +0 -1
- package/web-dist/assets/railroad-ebnf-LZEXJU2U-Dh9pnFEC.js +0 -1
- package/web-dist/assets/railroad-peg-WCYAUIDC-D8vfIslI.js +0 -1
- package/web-dist/assets/stateDiagram-v2-MP3YSRHH-BJuz1ADL.js +0 -1
- package/web-dist/assets/swimlanesDiagram-VR7AAH4N-PL4FEdE_.js +0 -8
- package/web-dist/assets/themePresetRuntime-DkD1ZjQY.js +0 -2
- package/web-dist/assets/threadSurfaces-En2Ox59I.js +0 -149
package/package.json
CHANGED
|
@@ -182,10 +182,17 @@ function parseArgs(tool, argv) {
|
|
|
182
182
|
/** @type {string[]} */
|
|
183
183
|
const bare = []
|
|
184
184
|
let flagsOver = false
|
|
185
|
+
// The flag whose value runs on over the bare words after it, up to the next flag. Unquoted,
|
|
186
|
+
// `threads --find renamed flaky` gave "flaky" to the project slot, and `--find` then refused a
|
|
187
|
+
// project nobody had named (2026-12-02).
|
|
188
|
+
/** @type {string | null} */
|
|
189
|
+
let runsOn = null
|
|
185
190
|
|
|
186
191
|
for (let i = 0; i < argv.length; i++) {
|
|
187
192
|
const tok = argv[i]
|
|
193
|
+
if (!flagsOver && runsOn && !tok.startsWith("--")) { fromFlags[runsOn] = `${fromFlags[runsOn]} ${tok}`; continue }
|
|
188
194
|
if (flagsOver || !tok.startsWith("--")) { bare.push(tok); continue }
|
|
195
|
+
runsOn = null
|
|
189
196
|
if (tok === "--") { flagsOver = true; continue }
|
|
190
197
|
const eq = tok.indexOf("=")
|
|
191
198
|
const flag = under((eq < 0 ? tok : tok.slice(0, eq)).slice(2).toLowerCase())
|
|
@@ -203,7 +210,10 @@ function parseArgs(tool, argv) {
|
|
|
203
210
|
if (flag === "input") {
|
|
204
211
|
fromJson = { ...fromJson, ...jsonInput(tool, readSource(take(), "--input"), "--input") }
|
|
205
212
|
} else if (flag in props) {
|
|
206
|
-
if (props[flag].type !== "boolean")
|
|
213
|
+
if (props[flag].type !== "boolean") {
|
|
214
|
+
fromFlags[flag] = coerce(tool, flag, take())
|
|
215
|
+
if (flag === spec.words) runsOn = flag
|
|
216
|
+
}
|
|
207
217
|
else if (inline !== undefined) fromFlags[flag] = coerce(tool, flag, inline)
|
|
208
218
|
else if (i + 1 < argv.length && /^(true|false)$/i.test(argv[i + 1])) fromFlags[flag] = coerce(tool, flag, argv[++i])
|
|
209
219
|
else fromFlags[flag] = true
|
|
@@ -104,7 +104,7 @@ const ghBlock =
|
|
|
104
104
|
const ghFrizzReadOnlyBlock =
|
|
105
105
|
'⟦gh available, read-only⟧ Plain `gh` is signed in here with Frizz\'s own READ-ONLY GitHub credential: no Touch ID, and it works while the screen is locked. Use it EAGERLY and well — it is the fastest path to issue/PR/CI/release context, and you should reach for it before guessing:\n' +
|
|
106
106
|
'• READ freely: `gh issue view N -R OWNER/REPO --comments`, `gh pr view N`, `gh pr diff N`, `gh pr checks N`, `gh run list`/`gh run view`, `gh api repos/OWNER/REPO/…`. Prefer `--json <fields>` over scraping human text. Repo source is not readable through it; read the checkout.\n' +
|
|
107
|
-
'• A WRITE fails with a permission error (`Resource not accessible by integration`, HTTP 403), and so does a read that needs more than it holds, such as a private repo on an account where Frizz\'s GitHub App is not installed (it reads as not found). That is this credential, not a fault: rerun that one command as `keyward --reason "<what this command is for>" -- gh …`, `gh` the first word after `--`. One Touch ID covers this repository for 10 minutes.\n' +
|
|
107
|
+
'• A WRITE fails with a permission error (`Resource not accessible by integration`, HTTP 403), and so does a read that needs more than it holds, such as a private repo on an account where Frizz\'s GitHub App is not installed (it reads as not found). That is this credential, not a fault: rerun that one command as `keyward --reason "<what this command is for>" -- gh …`, `gh` the first word after `--`. One Touch ID covers this repository for 10 minutes. A watcher (`frizzctl watch-pr add` and the rest) cannot go through Keyward: when its refusal says the App is not installed, hand the human that install step rather than polling from a shell.\n' +
|
|
108
108
|
'• On any stderr line starting `keyward: not released:` (screen locked, declined), STOP and report it to the human; NEVER retry. A locked screen does not clear by retrying, and a decline was their answer.\n' +
|
|
109
109
|
ghReadOnly +
|
|
110
110
|
'To wait on CI or reviews, register `frizzctl watch-pr add` / `frizzctl watch-issue add` / `frizzctl watch-run add` rather than polling. Load the `frizz:gh` skill for the full playbook.';
|
|
@@ -114,7 +114,7 @@ const ghFrizzReadOnlyBlock =
|
|
|
114
114
|
const ghFrizzReadOnlyNoWritesBlock =
|
|
115
115
|
'⟦gh available, read-only⟧ Plain `gh` is signed in here with Frizz\'s own READ-ONLY GitHub credential. Use it EAGERLY and well — it is the fastest path to issue/PR/CI/release context, and you should reach for it before guessing:\n' +
|
|
116
116
|
'• READ freely: `gh issue view N -R OWNER/REPO --comments`, `gh pr view N`, `gh pr diff N`, `gh pr checks N`, `gh run list`/`gh run view`, `gh run view <id> --log-failed`, `gh api repos/OWNER/REPO/…`. Prefer `--json <fields>` over scraping human text. Repo source is not readable through it; read the checkout.\n' +
|
|
117
|
-
'• A WRITE fails with a permission error (`Resource not accessible by integration`, HTTP 403), and so does a read that needs more than it holds, such as a private repo on an account where Frizz\'s GitHub App is not installed (it reads as not found). That is this credential, not a fault, and this machine has no other GitHub sign-in: hand the write to the human as steps, with the exact command or page.\n' +
|
|
117
|
+
'• A WRITE fails with a permission error (`Resource not accessible by integration`, HTTP 403), and so does a read that needs more than it holds, such as a private repo on an account where Frizz\'s GitHub App is not installed (it reads as not found). That is this credential, not a fault, and this machine has no other GitHub sign-in: hand the write to the human as steps, with the exact command or page. A missing install is one step too: a `frizzctl watch-pr add` refused on it names the link to hand over.\n' +
|
|
118
118
|
ghReadOnly +
|
|
119
119
|
'To wait on CI or reviews, register `frizzctl watch-pr add` / `frizzctl watch-issue add` / `frizzctl watch-run add` rather than polling. Load the `frizz:gh` skill for the full playbook.';
|
|
120
120
|
|
|
@@ -777,8 +777,8 @@ const DONE = {
|
|
|
777
777
|
description:
|
|
778
778
|
"DECLARE THIS EFFORT FINISHED, with the write-up the human reads. Your thread cards as a checked " +
|
|
779
779
|
"success in their queue and stays there until they archive it. The command itself closes, archives " +
|
|
780
|
-
"and hides nothing, but the card is a DISMISSAL: it files the thread away
|
|
781
|
-
"is meant to open it again.\n\n" +
|
|
780
|
+
"and hides nothing (unless `archive`, below), but the card is a DISMISSAL: it files the thread away " +
|
|
781
|
+
"for the human, and nobody is meant to open it again.\n\n" +
|
|
782
782
|
"FRIZZ CAN REFUSE THIS, which is the whole reason it is a command rather than a fence. An OPEN " +
|
|
783
783
|
"QUESTION or an ARMED REGISTRATION blocks it, and the refusal names each one by id: a question " +
|
|
784
784
|
"nobody answered dies with the card, and a live wait means the thing you were waiting for has not " +
|
|
@@ -794,7 +794,9 @@ const DONE = {
|
|
|
794
794
|
"that is a question — a ```question fence in your message — carrying your recommendation as the " +
|
|
795
795
|
"first option.\n\n" +
|
|
796
796
|
"THE TEST IS NEVER \"HAVE I STOPPED WORKING\". It is: WHAT IS LOST IF NOBODY EVER OPENS THIS " +
|
|
797
|
-
"THREAD AGAIN? Name one thing and you are not done. Uncertain is not done
|
|
797
|
+
"THREAD AGAIN? Name one thing and you are not done. Uncertain is not done.\n\n" +
|
|
798
|
+
"MARKING THE THREAD DONE IS THE HUMAN'S ACT, NOT YOURS. `archive` exists for the human who told this " +
|
|
799
|
+
"thread to mark itself done when it finishes; without that, never pass it.",
|
|
798
800
|
inputSchema: {
|
|
799
801
|
type: "object",
|
|
800
802
|
properties: {
|
|
@@ -816,6 +818,16 @@ const DONE = {
|
|
|
816
818
|
"120 characters it is trimmed on a word boundary. Without it the card is headed \"Done\", which " +
|
|
817
819
|
"is true of every completion and specific to none. It wins over a `title:` line the body opens with.",
|
|
818
820
|
},
|
|
821
|
+
archive: {
|
|
822
|
+
type: "boolean",
|
|
823
|
+
description:
|
|
824
|
+
"ONLY WHEN THE HUMAN ASKED FOR IT. Also mark this thread done for them once this turn ends: Frizz " +
|
|
825
|
+
"stops it and files it under Done, exactly as their Mark as done button does, so it never reaches " +
|
|
826
|
+
"their queue. Pass it only when the human told THIS thread to mark itself done (\"mark yourself " +
|
|
827
|
+
"done when you're finished\"), or the project's instructions say to. Otherwise leave it off: " +
|
|
828
|
+
"marking a thread done is the human's to do, and the done card waits for them. The same refusals " +
|
|
829
|
+
"hold, and a message from the human before the turn ends calls the archive off.",
|
|
830
|
+
},
|
|
819
831
|
},
|
|
820
832
|
required: ["body"],
|
|
821
833
|
},
|
|
@@ -1145,8 +1157,8 @@ const THREADS = {
|
|
|
1145
1157
|
"FIND ONE BY ITS NAME WITH `--find`. Told about a thread by name (\"tell the releaser\", \"the resolver " +
|
|
1146
1158
|
"cache thread\"), search for it: `frizzctl threads --find releaser`. It looks at every project this Frizz " +
|
|
1147
1159
|
"has open and every band, Done included, matching each word against the start of a word in the title " +
|
|
1148
|
-
"the human sees, the slug, and the other names it has had, best match first. The slug
|
|
1149
|
-
"thread
|
|
1160
|
+
"the human sees, the slug, and the other names it has had, best match first. The slug never changes, " +
|
|
1161
|
+
"and it is an opaque id (on an older thread, words from its first prompt), so it rarely reads like the name.\n\n" +
|
|
1150
1162
|
"`--json` prints the whole listing — every field, ISO timestamps — for `jq`. It only reads: nothing is " +
|
|
1151
1163
|
"changed, and no thread is woken by being listed.",
|
|
1152
1164
|
inputSchema: {
|
|
@@ -2807,7 +2819,15 @@ async function done(args) {
|
|
|
2807
2819
|
// spill the rest into the ledger.
|
|
2808
2820
|
const title = typeof args.title === "string" ? args.title.replace(/\s+/g, " ").trim() : ""
|
|
2809
2821
|
if (title) body = `title: ${title}\n---\n${withoutLeadingTitle(body)}`
|
|
2810
|
-
const
|
|
2822
|
+
const archive = args.archive === true
|
|
2823
|
+
const result = (await callRpc("markOwnDone", { slug, body, ...(archive ? { archive } : {}) }))?.result
|
|
2824
|
+
if (result?.done && archive) {
|
|
2825
|
+
return (
|
|
2826
|
+
"Recorded the done card. When this turn ends, Frizz marks the thread done for the human: it stops " +
|
|
2827
|
+
"and files under Done, as it would from their Mark as done button. Your final message is the last " +
|
|
2828
|
+
"thing they read, so write it now. A question or a wait you register before the turn ends calls the archive off."
|
|
2829
|
+
)
|
|
2830
|
+
}
|
|
2811
2831
|
if (result?.done) {
|
|
2812
2832
|
return (
|
|
2813
2833
|
"Marked done. Your thread cards as a checked success in the human's queue and stays there until " +
|
|
@@ -3173,6 +3193,8 @@ async function addPersistentWatch(slug, command, forValue, description) {
|
|
|
3173
3193
|
* then — further positionals that depend on the first one's value, for the commands that
|
|
3174
3194
|
* switch on an `action` (`frizzctl timer cancel tmr_ab12`).
|
|
3175
3195
|
* wrap — the one array argument a bare JSON array, or a single item, is taken to be.
|
|
3196
|
+
* words — the one string flag whose value runs on over the bare words after it, up to the next
|
|
3197
|
+
* flag, so a phrase needs no quotes (`frizzctl threads --find cache thread`).
|
|
3176
3198
|
* retired — the text a retired command prints instead of running: its refusal, and its `--help`.
|
|
3177
3199
|
* examples — real invocations, shown under the command's own help.
|
|
3178
3200
|
*
|
|
@@ -3209,6 +3231,7 @@ const CLI = {
|
|
|
3209
3231
|
"EOF",
|
|
3210
3232
|
"frizzctl done --body-file handoff.md",
|
|
3211
3233
|
"frizzctl done --title \"Resolver cache keyed on the normalized id\" --body-file handoff.md",
|
|
3234
|
+
"frizzctl done --archive --body-file handoff.md # only when the human asked this thread to mark itself done",
|
|
3212
3235
|
],
|
|
3213
3236
|
},
|
|
3214
3237
|
activity: {
|
|
@@ -3340,6 +3363,7 @@ const CLI = {
|
|
|
3340
3363
|
group: "Other threads",
|
|
3341
3364
|
summary: "List a project's threads, or find one by name on every project: slug, title and where it sits",
|
|
3342
3365
|
positional: ["project"],
|
|
3366
|
+
words: "find",
|
|
3343
3367
|
examples: ["frizzctl threads", "frizzctl threads nub", "frizzctl threads --all --json", "frizzctl threads --find releaser"],
|
|
3344
3368
|
},
|
|
3345
3369
|
steer: {
|
|
@@ -33,7 +33,7 @@ The credential is a user token from Frizz's GitHub App, whose permissions are al
|
|
|
33
33
|
A machine with no `keyward` on PATH can be in this mode too, when `gh` had no sign-in of its own. A write has nowhere to go there: hand it to the human as steps, with the exact command or page.
|
|
34
34
|
|
|
35
35
|
- **A write fails with GitHub's own error**: `Resource not accessible by integration`, HTTP 403. That is this credential doing its job. Once the human has asked for the write, rerun that one command through Keyward. The one write that does not fail is a commit comment, which GitHub allows with read access to code, so never treat a successful command as proof it was read-only.
|
|
36
|
-
- **A read can fail the same way, so try Keyward before you conclude anything.** Source through the API (`gh api repos/…/contents/…`) is not covered; read the checkout where you can. A private repo on an account where Frizz's App is not installed reads as `Could not resolve to a Repository` or HTTP 404, exactly as if it did not exist.
|
|
36
|
+
- **A read can fail the same way, so try Keyward before you conclude anything.** Source through the API (`gh api repos/…/contents/…`) is not covered; read the checkout where you can. A private repo on an account where Frizz's App is not installed reads as `Could not resolve to a Repository` or HTTP 404, exactly as if it did not exist. `gh api user/installations` lists the accounts it is installed on. A watcher cannot go through Keyward, so `frizzctl watch-pr add` (and `watch-issue`, `watch-run`) refused on a missing install says so and names the install link: hand the human that one step and register again once they report it done, rather than polling from a shell.
|
|
37
37
|
- **Don't route reads through Keyward by default.** Each burst costs the human a touch that a plain read does not.
|
|
38
38
|
- **Scripts need nothing.** The bundled monitors and any script you run read with plain `gh`. One that writes calls `keyward --reason "…" -- gh …` itself, as this repo's do through `scripts/lib/gh-command.mjs`.
|
|
39
39
|
|
package/web-dist/assets/{abnfDiagram-VCTEODGH-CAOJsOET.js → abnfDiagram-VCTEODGH-CAwe9lqQ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e,t}from"./mermaid-parser.core-
|
|
1
|
+
import{m as e,t}from"./mermaid-parser.core-CfVtqVfl.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-C4XfhTaE.js";import"./chunk-DU6HZSFF-B9_JRJD-.js";import"./chunk-CLGD4ZFX-wvik9VC5.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-BGkN6fgt.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-FOHPRMQF-CyTuVbu3.js";import{M as e}from"./mermaid-parser.core-CfVtqVfl.js";export{e as createArchitectureServices};
|