boxglow 0.6.4 → 0.6.6
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 +28 -2
- package/bin/boxglow.js +312 -143
- package/dist/assets/index-CGDSWhZd.css +1 -0
- package/dist/assets/{index-DSEYEDS8.js → index-ZxCMlKMi.js} +88 -88
- package/dist/index.html +2 -2
- package/docs/AGENTS_SNIPPET.md +1 -1
- package/package.json +1 -1
- package/dist/assets/index-Dy-kaBaz.css +0 -1
package/bin/boxglow.js
CHANGED
|
@@ -1135,7 +1135,22 @@ var parts = {
|
|
|
1135
1135
|
"\u3002\u3046\u3061\u672A\u7740\u624B\u306E {n} \u7BB1\u306F\u6C7A\u307E\u308B\u307E\u3067\u5F85\u3061\u307E\u3059": "; {n} not-started boxes wait until it is decided",
|
|
1136
1136
|
"\u672A\u6C7A\u5B9A": "Undecided",
|
|
1137
1137
|
"\u6E08\u3093\u3060\u4F5C\u696D\u304C\u3053\u306E\u65B9\u91DD\u306B\u5408\u3063\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u304B\u3081\u305F (\u78BA\u304B\u3081\u76F4\u3057\u306E\u672D\u3092\u6D88\u3059)": "The finished work matches this policy (clears the check-again mark)",
|
|
1138
|
-
"\u78BA\u304B\u3081\u305F": "Checked"
|
|
1138
|
+
"\u78BA\u304B\u3081\u305F": "Checked",
|
|
1139
|
+
"\u30A8\u30C7\u30A3\u30BF\u3067\u958B\u304F: {path}": "Open in the editor: {path}",
|
|
1140
|
+
"\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F: {path}": "Open in a new tab: {path}",
|
|
1141
|
+
"\u30D1\u30B9\u3092\u30B3\u30D4\u30FC: {path}": "Copy the path: {path}",
|
|
1142
|
+
"\u8A18\u9332\u3057\u305F\u3068\u304D\u306E\u7248\u3092\u30D6\u30E9\u30A6\u30B6\u3067\u898B\u308B": "See the recorded version in the browser",
|
|
1143
|
+
"(\u4F5C\u6210\u4E2D)": "(work in progress)",
|
|
1144
|
+
"\u4F5C\u308A\u304B\u3051\u306E\u8CC7\u6599\u3068\u3057\u3066\u4ED8\u3051\u308B (\u4F7F\u3046\u5074\u306E\u7BB1\u306F\u5F85\u3063\u305F\u307E\u307E\u3002\u5B8C\u4E86\u3067\u78BA\u5B9A)": "Attach as work in progress (boxes using it keep waiting; finishing the box confirms it)",
|
|
1145
|
+
"\u4F5C\u6210\u4E2D": "WIP",
|
|
1146
|
+
"\u4F5C\u6210\u4E2D: \u4F7F\u3046\u5074\u306E\u7BB1\u306F\u3001\u305D\u306E\u5165\u529B\u3092\u300C\u4F5C\u6210\u4E2D\u3067\u7740\u624B\u53EF\u300D\u306B\u3057\u3066\u3044\u306A\u3051\u308C\u3070\u5F85\u3061\u307E\u3059\u3002\u7BB1\u3092\u5B8C\u4E86\u306B\u3059\u308B\u3068\u78BA\u5B9A\u306B\u306A\u308A\u307E\u3059": "Work in progress: boxes using it wait unless their input accepts work in progress. Finishing the box confirms it",
|
|
1147
|
+
"\u4F5C\u6210\u4E2D\u3042\u308A": "WIP available",
|
|
1148
|
+
"\u4F5C\u6210\u4E2D\u3067\u7740\u624B\u53EF": "Accept work in progress",
|
|
1149
|
+
"\u4F5C\u6210\u4E2D\u3067\u7740\u624B\u53EF: \u4F9B\u7D66\u5143\u306E\u8CC7\u6599\u304C\u4F5C\u308A\u304B\u3051\u3067\u3082\u3001\u3053\u306E\u5165\u529B\u306F\u305D\u308D\u3063\u305F\u3068\u307F\u306A\u3059": "Accept work in progress: this input counts as ready even if the source's material is still in progress",
|
|
1150
|
+
"\u4F9B\u7D66\u5143\u306B\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u304C\u3042\u308A\u307E\u3059\u3002\u300C\u4F5C\u6210\u4E2D\u3067\u7740\u624B\u53EF\u300D\u306B\u3059\u308B\u3068\u3001\u3053\u306E\u5165\u529B\u306F\u305D\u308D\u3063\u305F\u3068\u307F\u306A\u3057\u307E\u3059": 'The source has work-in-progress material. Mark "Accept work in progress" to count this input as ready',
|
|
1151
|
+
"\u78BA\u5B9A\u306B\u3059\u308B": "Confirm",
|
|
1152
|
+
"\u78BA\u5B9A\u306B\u3059\u308B (\u4F7F\u3046\u5074\u306E\u7BB1\u304C\u7740\u624B\u3067\u304D\u308B\u3088\u3046\u306B\u306A\u308B)": "Confirm (boxes using it can start)",
|
|
1153
|
+
"\u4F5C\u6210\u4E2D\u3067\u7740\u624B\u53EF\u306B\u3059\u308B": "Accept work in progress"
|
|
1139
1154
|
};
|
|
1140
1155
|
|
|
1141
1156
|
// src/i18n/en/canvas.ts
|
|
@@ -1196,7 +1211,9 @@ var canvas = {
|
|
|
1196
1211
|
"\u65B9\u91DD: \u672A\u6C7A\u5B9A {n}": "Policy undecided {n}",
|
|
1197
1212
|
"\u5B8C\u4E86\u3057\u305F\u5F8C\u306B\u65B9\u91DD\u304C\u6C7A\u307E\u3063\u305F\u30FB\u5909\u308F\u308A\u307E\u3057\u305F (\u78BA\u304B\u3081\u76F4\u3057\u306E\u5019\u88DC\u3002I/O \u30BF\u30D6\u306E\u65B9\u91DD\u3067\u300C\u78BA\u304B\u3081\u305F\u300D\u3092\u62BC\u3059\u3068\u6D88\u3048\u307E\u3059)": 'A policy was decided or changed after this box was done (check it again; press "Checked" under Policies on the I/O tab to clear this)',
|
|
1198
1213
|
"\u65B9\u91DD: \u78BA\u304B\u3081\u76F4\u3057": "Policy: check again",
|
|
1199
|
-
"\u8A08\u753B\u5168\u4F53": "Whole plan"
|
|
1214
|
+
"\u8A08\u753B\u5168\u4F53": "Whole plan",
|
|
1215
|
+
"\u4F5C\u6210\u4E2D": "WIP",
|
|
1216
|
+
"\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u304C\u5C4A\u3044\u3066\u3044\u307E\u3059 (\u3053\u306E\u5165\u529B\u3092\u300C\u4F5C\u6210\u4E2D\u3067\u7740\u624B\u53EF\u300D\u306B\u3059\u308B\u3068\u7740\u624B\u3067\u304D\u307E\u3059)": 'Work-in-progress material has arrived (mark this input "Accept work in progress" to start)'
|
|
1200
1217
|
};
|
|
1201
1218
|
|
|
1202
1219
|
// src/i18n/en/app.ts
|
|
@@ -1652,7 +1669,11 @@ var app = {
|
|
|
1652
1669
|
"\u300C{name}\u300D\u3092\u524A\u9664\u3057\u307E\u3057\u305F (Undo \u3067\u623B\u305B\u307E\u3059)": 'Removed "{name}" (Undo brings it back)',
|
|
1653
1670
|
"\u81EA\u52D5\u4FDD\u5B58: \u30AA\u30F3 (\u5909\u66F4\u306E\u305F\u3073\u306B\u66F8\u304D\u8FBC\u307F\u307E\u3059\u3002\u62BC\u3059\u3068\u30AA\u30D5)": "Auto save: on (every change is written; click to turn off)",
|
|
1654
1671
|
"\u81EA\u52D5\u4FDD\u5B58: \u30AA\u30D5 (Save \u304B Ctrl+S \u3067\u66F8\u304D\u8FBC\u307F\u307E\u3059\u3002\u62BC\u3059\u3068\u30AA\u30F3)": "Auto save: off (Save or Ctrl+S writes; click to turn on)",
|
|
1655
|
-
"{file} \u306B\u4FDD\u5B58\u3057\u307E\u3059 (\u81EA\u52D5\u4FDD\u5B58\u306F\u30AA\u30D5: Save \u304B Ctrl+S \u3067\u66F8\u304D\u307E\u3059)": "Saves to {file} (auto save is off: Save or Ctrl+S writes)"
|
|
1672
|
+
"{file} \u306B\u4FDD\u5B58\u3057\u307E\u3059 (\u81EA\u52D5\u4FDD\u5B58\u306F\u30AA\u30D5: Save \u304B Ctrl+S \u3067\u66F8\u304D\u307E\u3059)": "Saves to {file} (auto save is off: Save or Ctrl+S writes)",
|
|
1673
|
+
"\u30D1\u30B9\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F: {path} (\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306F\u624B\u5143\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u958B\u3051\u307E\u305B\u3093\u3002VS Code \u62E1\u5F35\u304B serve \u3067\u958B\u304F\u3068\u3001\u62BC\u3059\u3060\u3051\u3067\u958B\u3051\u307E\u3059)": "Copied the path: {path} (a browser cannot open files on this computer; in the VS Code extension or serve, clicking opens the file)",
|
|
1674
|
+
"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306F\u958B\u3051\u307E\u305B\u3093: {path}": "This file cannot be opened from the browser: {path}",
|
|
1675
|
+
"\u30D5\u30A1\u30A4\u30EB\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {path}": "Could not open the file: {path}",
|
|
1676
|
+
"\u8A08\u753B\u306E\u30D5\u30A9\u30EB\u30C0\u306E\u5916\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u958B\u3051\u307E\u305B\u3093: {path}": "Files outside the plan's folder cannot be opened: {path}"
|
|
1656
1677
|
};
|
|
1657
1678
|
|
|
1658
1679
|
// src/i18n/en/cli.ts
|
|
@@ -1986,7 +2007,7 @@ var cli = {
|
|
|
1986
2007
|
"\u3042\u308A": "present",
|
|
1987
2008
|
"\u306A\u3057": "absent",
|
|
1988
2009
|
"\u3042\u308A (\u5370 {mark})": "present (mark {mark})",
|
|
1989
|
-
"--in <\u540D\u524D> / --out <\u540D\u524D> / --remove <\u540D\u524D> / --policy <\u51FA\u529B\u540D> / --expect <\u51FA\u529B\u540D>=<kind>:<hint> / --self <\u51FA\u529B\u540D> / --rename <\u65E7\u540D>=<\u65B0\u540D> / --any-of <\u5165\u529B\u540D> / --all-of <\u5165\u529B\u540D> / --optional <\u5165\u529B\u540D> / --required <\u5165\u529B\u540D> / --describe <\u540D\u524D>=<\u8AAC\u660E> \u306E\u3044\u305A\u308C\u304B\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044": "Specify one of --in <name> / --out <name> / --remove <name> / --policy <output> / --expect <output>=<kind>:<hint> / --self <output> / --rename <old>=<new> / --any-of <input> / --all-of <input> / --optional <input> / --required <input> / --describe <name>=<description>",
|
|
2010
|
+
"--in <\u540D\u524D> / --out <\u540D\u524D> / --remove <\u540D\u524D> / --policy <\u51FA\u529B\u540D> / --expect <\u51FA\u529B\u540D>=<kind>:<hint> / --self <\u51FA\u529B\u540D> / --rename <\u65E7\u540D>=<\u65B0\u540D> / --any-of <\u5165\u529B\u540D> / --all-of <\u5165\u529B\u540D> / --optional <\u5165\u529B\u540D> / --required <\u5165\u529B\u540D> / --describe <\u540D\u524D>=<\u8AAC\u660E> / --accept-draft <\u5165\u529B\u540D> \u306E\u3044\u305A\u308C\u304B\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044": "Specify one of --in <name> / --out <name> / --remove <name> / --policy <output> / --expect <output>=<kind>:<hint> / --self <output> / --rename <old>=<new> / --any-of <input> / --all-of <input> / --optional <input> / --required <input> / --describe <name>=<description> / --accept-draft <input>",
|
|
1990
2011
|
"\u300C{name}\u300D\u306F\u5165\u529B\u3068\u51FA\u529B\u306E\u4E21\u65B9\u306B\u3042\u308A\u307E\u3059\u3002in:{name} / out:{name} \u3067\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044": '"{name}" exists as both an input and an output; use in:{name} / out:{name}',
|
|
1991
2012
|
"\u524A\u9664: {name} (\u4F7F\u3046\u7BB1\u306E\u5165\u529B {count} \u4EF6\u3082)": "deleted: {name} (and {count} input(s) of the boxes that use it)",
|
|
1992
2013
|
"\u524A\u9664: {name}": "deleted: {name}",
|
|
@@ -2014,7 +2035,18 @@ var cli = {
|
|
|
2014
2035
|
"\u65B9\u91DD\u306E\u7BC4\u56F2: all = \u8A08\u753B\u5168\u4F53\u3001<block> = \u305D\u306E\u7BB1\u306E\u4E2D\u3001\u7701\u7565 = \u540C\u3058\u89AA\u306E\u4E2D": "Policy scope: all = the whole plan, <block> = inside that box, omitted = within the same parent",
|
|
2015
2036
|
"\u65B9\u91DD\u3092\u53C2\u8003\u306B\u3059\u308B (\u6C7A\u307E\u3063\u3066\u3044\u306A\u304F\u3066\u3082\u7740\u624B\u3092\u5F85\u305F\u305B\u306A\u3044)": "Make the policy advisory (boxes can start before it is decided)",
|
|
2016
2037
|
"\u65B9\u91DD\u3092\u3084\u3081\u308B\u51FA\u529B\u306E\u540D\u524D": "Outputs that are no longer policies",
|
|
2017
|
-
"\u3053\u306E\u7BB1\u3067\u306F\u53D7\u3051\u53D6\u3089\u306A\u3044\u65B9\u91DD (<\u7BB1>.<\u51FA\u529B\u540D>)": "Policies this box does not take (<box>.<output>)"
|
|
2038
|
+
"\u3053\u306E\u7BB1\u3067\u306F\u53D7\u3051\u53D6\u3089\u306A\u3044\u65B9\u91DD (<\u7BB1>.<\u51FA\u529B\u540D>)": "Policies this box does not take (<box>.<output>)",
|
|
2039
|
+
"\u30D5\u30A1\u30A4\u30EB\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093: {path}": "File not found: {path}",
|
|
2040
|
+
"\u8A08\u753B\u306E\u30D5\u30A9\u30EB\u30C0\u306E\u5916\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u8868\u793A\u3067\u304D\u307E\u305B\u3093: {path}": "Files outside the plan's folder cannot be shown: {path}",
|
|
2041
|
+
"\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u3066\u8868\u793A\u3067\u304D\u307E\u305B\u3093: {path}": "The file is too large to show: {path}",
|
|
2042
|
+
" (\u4F5C\u6210\u4E2D)": " (work in progress)",
|
|
2043
|
+
" (\u4F5C\u6210\u4E2D\u3002\u4F7F\u3046\u5074\u306F\u5F85\u3063\u305F\u307E\u307E\u3002\u5B8C\u4E86\u304B --final \u3067\u78BA\u5B9A)": " (work in progress: boxes using it keep waiting; finishing the box or --final confirms it)",
|
|
2044
|
+
"\u4F5C\u6210\u4E2D\u3060\u3063\u305F\u8CC7\u6599 {count} \u4EF6\u3092\u78BA\u5B9A\u306B\u3057\u307E\u3057\u305F": "Confirmed {count} work-in-progress item(s)",
|
|
2045
|
+
"\u4F5C\u6210\u4E2D\u3067\u7740\u624B\u53EF {name}": "accepts work in progress {name}",
|
|
2046
|
+
"\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u300C{key}\u300D\u306F\u3042\u308A\u307E\u305B\u3093 ({list})": 'No work-in-progress item "{key}" ({list})',
|
|
2047
|
+
"\u53C2\u8003\u8CC7\u6599\u3092\u4ED8\u3051\u307E\u3057\u305F: \u300C{title}\u300D <- {artifact}": 'Added a reference link: "{title}" <- {artifact}',
|
|
2048
|
+
"\u78BA\u5B9A\u306B\u3057\u307E\u3057\u305F: {list}": "Confirmed: {list}",
|
|
2049
|
+
"\u78BA\u5B9A\u3092\u5F85\u3064 {name}": "waits for confirmed {name}"
|
|
2018
2050
|
};
|
|
2019
2051
|
|
|
2020
2052
|
// src/i18n/en/model.ts
|
|
@@ -2090,7 +2122,9 @@ var model = {
|
|
|
2090
2122
|
"{title} (\u89AA\u306E\u51FA\u529B\u3078)": "{title} (into its output)",
|
|
2091
2123
|
"\u300C{title}\u300D\u306F\u3053\u306E\u7BB1\u306E\u5165\u529B\u306E\u4F9B\u7D66\u5143\u3067\u306F\u3042\u308A\u307E\u305B\u3093 (\u5DEE\u3057\u623B\u305B\u308B\u306E\u306F\u3001\u5165\u529B\u3092\u4F5C\u3063\u3066\u3044\u308B\u7BB1\u3060\u3051\u3067\u3059)": `"{title}" does not feed this box's inputs (you can only send back to a box that makes one of the inputs)`,
|
|
2092
2124
|
"\u5DEE\u3057\u623B\u3057: \u300C{from}\u300D\u304B\u3089\u300C{to}\u300D\u3078: {note}": 'Sent back from "{from}" to "{to}": {note}',
|
|
2093
|
-
"\u65B9\u91DD\u300C{name}\u300D": 'policy "{name}"'
|
|
2125
|
+
"\u65B9\u91DD\u300C{name}\u300D": 'policy "{name}"',
|
|
2126
|
+
"(\u4F5C\u6210\u4E2D)": "(work in progress)",
|
|
2127
|
+
"(\u4F5C\u6210\u4E2D\u3042\u308A)": "(work in progress available)"
|
|
2094
2128
|
};
|
|
2095
2129
|
|
|
2096
2130
|
// src/i18n/en/report.ts
|
|
@@ -2201,7 +2235,12 @@ var report = {
|
|
|
2201
2235
|
"\u30DC\u30C3\u30AF\u30B9\u306E\u5C5E\u6027\u3092\u5909\u3048\u308B (\u984C\u540D\u30FB\u30E1\u30E2\u30FB\u30AB\u30C6\u30B4\u30EA\u30FB\u671F\u65E5\u30FB\u30EA\u30DD\u30B8\u30C8\u30EA\u30FB\u8AB2\u984C URL)": "Change a box's attributes (title, note, category, due date, repository, issue URL)",
|
|
2202
2236
|
"\u8A08\u753B\u3092 Markdown \u306B\u66F8\u304D\u51FA\u3059 (docs/ROADMAP.md \u306A\u3069)": "Export the plan as Markdown (e.g. docs/ROADMAP.md)",
|
|
2203
2237
|
"\u8A08\u753B\u306E\u554F\u984C (\u3064\u306A\u304C\u3063\u3066\u3044\u306A\u3044\u5165\u51FA\u529B\u306A\u3069) \u3092\u691C\u67FB\u3059\u308B": "Check the plan for problems (e.g. unconnected inputs / outputs)",
|
|
2204
|
-
'\u305D\u306E\u307B\u304B\u306E CLI \u30B3\u30DE\u30F3\u30C9\u3092\u305D\u306E\u307E\u307E\u5B9F\u884C\u3059\u308B (\u4F8B: ["log", "--n", "20"]\u3001["layout"]\u3001["help"])': 'Run any other CLI command as is (e.g. ["log", "--n", "20"], ["layout"], ["help"])'
|
|
2238
|
+
'\u305D\u306E\u307B\u304B\u306E CLI \u30B3\u30DE\u30F3\u30C9\u3092\u305D\u306E\u307E\u307E\u5B9F\u884C\u3059\u308B (\u4F8B: ["log", "--n", "20"]\u3001["layout"]\u3001["help"])': 'Run any other CLI command as is (e.g. ["log", "--n", "20"], ["layout"], ["help"])',
|
|
2239
|
+
"true \u306A\u3089 path \u306E\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u3092\u78BA\u5B9A\u306B\u3059\u308B (all \u3067\u3059\u3079\u3066)": "If true, confirm the work-in-progress item named by path (all = every one)",
|
|
2240
|
+
"\u4F5C\u6210\u4E2D\u3068\u3057\u3066\u4ED8\u3051\u308B (\u4F7F\u3046\u5074\u306E\u7BB1\u306F\u5F85\u3063\u305F\u307E\u307E\u3002\u4F7F\u3046\u5074\u306E\u5165\u529B\u304C acceptDraft \u306A\u3089\u7740\u624B\u3067\u304D\u308B\u3002\u5B8C\u4E86\u3067\u78BA\u5B9A\u306B\u306A\u308B)": "Attach as work in progress (boxes using it keep waiting unless their input accepts drafts; finishing the box confirms it)",
|
|
2241
|
+
"\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u3067\u3082\u7740\u624B\u3057\u3066\u3088\u3044\u5165\u529B\u306E\u540D\u524D": "Inputs that may start with work-in-progress material",
|
|
2242
|
+
"\u51FA\u529B\u3067\u306F\u306A\u304F\u3001\u7BB1\u306E\u53C2\u8003\u8CC7\u6599 (Links) \u306B\u4ED8\u3051\u308B (\u4F7F\u3046\u5074\u306B\u306F\u6E21\u3089\u306A\u3044)": "Attach to the box's reference links instead of an output (not passed to other boxes)",
|
|
2243
|
+
"\u78BA\u5B9A\u3057\u305F\u8CC7\u6599\u3092\u5F85\u3064 (\u65E2\u5B9A) \u306B\u623B\u3059\u5165\u529B\u306E\u540D\u524D": "Inputs that wait for confirmed material again (default)"
|
|
2205
2244
|
};
|
|
2206
2245
|
|
|
2207
2246
|
// src/i18n/en/index.ts
|
|
@@ -2835,7 +2874,7 @@ function candidateGroups(p, blocks) {
|
|
|
2835
2874
|
const reasons = unpreparedReasons(p, b.id);
|
|
2836
2875
|
const missingInputs = waitingFor(p, b.id);
|
|
2837
2876
|
const state = reasons.length ? "unprepared" : missingInputs.length ? "waiting" : "ready";
|
|
2838
|
-
return { blockId: b.id, key: b.key, title: b.title, inFocus: inFocus(p, b.id), missingInputs, unprepared: reasons.map((r) => reasonText(p, r)), state };
|
|
2877
|
+
return { blockId: b.id, key: b.key, title: b.title, inFocus: inFocus(p, b.id), missingInputs: markDraftInputs(p, b.id, missingInputs), unprepared: reasons.map((r) => reasonText(p, r)), state };
|
|
2839
2878
|
});
|
|
2840
2879
|
const label = { ready: "\u7740\u624B\u3067\u304D\u308B", unprepared: "\u8981\u5177\u4F53\u5316", waiting: "\u5165\u529B\u5F85\u3061" };
|
|
2841
2880
|
return (focused ? [true, false] : [false]).flatMap((scope2) => ["ready", "unprepared", "waiting"].map((state) => ({
|
|
@@ -2853,7 +2892,7 @@ function checkStart(p, id, actor, reason = "") {
|
|
|
2853
2892
|
const human = isHumanActor(actor);
|
|
2854
2893
|
const names = waitingFor(p, id);
|
|
2855
2894
|
if (names.length && !reason.trim()) {
|
|
2856
|
-
const warning = t("\u5FC5\u9808\u306E\u5165\u529B\u5F85\u3061: {names}", { names: names.join(", ") });
|
|
2895
|
+
const warning = t("\u5FC5\u9808\u306E\u5165\u529B\u5F85\u3061: {names}", { names: markDraftInputs(p, id, names).join(", ") });
|
|
2857
2896
|
if (p.workflowPolicy?.startWithoutInputs === "reject" && !human) errors.push(warning + " " + t("\u958B\u59CB\u3059\u308B\u7406\u7531\u3092 --reason \u3067\u8A18\u9332\u3057\u3066\u304F\u3060\u3055\u3044\u3002"));
|
|
2858
2897
|
else warnings.push(warning);
|
|
2859
2898
|
}
|
|
@@ -3582,15 +3621,18 @@ function setProgress(p, blockId, value, actor) {
|
|
|
3582
3621
|
appendLog(q, { actor, kind: "note", blockId, message: t("\u300C{title}\u300D\u306E\u9032\u6357 {value}", { title: b.title, value: value === null ? t("\u81EA\u52D5") : value + "%" }) });
|
|
3583
3622
|
return q;
|
|
3584
3623
|
}
|
|
3585
|
-
function hasExternalInputArtifact(p, portId, seen = /* @__PURE__ */ new Set()) {
|
|
3624
|
+
function hasExternalInputArtifact(p, portId, seen = /* @__PURE__ */ new Set(), allowDraft = false) {
|
|
3586
3625
|
if (seen.has(portId)) return false;
|
|
3587
3626
|
const port2 = p.ports[portId];
|
|
3588
3627
|
if (!port2 || port2.direction !== "in") return false;
|
|
3589
|
-
if (port2
|
|
3628
|
+
if (hasArtifacts(port2, allowDraft)) return true;
|
|
3590
3629
|
const next = new Set(seen).add(portId);
|
|
3591
|
-
return outgoingEdges(p, { portId, side: "inner" }).some((e) => e.auto && hasExternalInputArtifact(p, e.to.portId, next));
|
|
3630
|
+
return outgoingEdges(p, { portId, side: "inner" }).some((e) => e.auto && hasExternalInputArtifact(p, e.to.portId, next, allowDraft));
|
|
3631
|
+
}
|
|
3632
|
+
function hasArtifacts(port2, allowDraft = false) {
|
|
3633
|
+
return port2.artifacts.some((a) => allowDraft || !a.draft);
|
|
3592
3634
|
}
|
|
3593
|
-
function isSourceReady(p, ep, seen = /* @__PURE__ */ new Set()) {
|
|
3635
|
+
function isSourceReady(p, ep, seen = /* @__PURE__ */ new Set(), allowDraft = false) {
|
|
3594
3636
|
const key = `${ep.portId}:${ep.side}`;
|
|
3595
3637
|
if (seen.has(key)) return false;
|
|
3596
3638
|
const port2 = p.ports[ep.portId];
|
|
@@ -3598,17 +3640,29 @@ function isSourceReady(p, ep, seen = /* @__PURE__ */ new Set()) {
|
|
|
3598
3640
|
const nextSeen = new Set(seen).add(key);
|
|
3599
3641
|
const backSide = ep.side === "outer" ? "inner" : "outer";
|
|
3600
3642
|
const upstream = incomingEdges(p, { portId: port2.id, side: backSide });
|
|
3601
|
-
if (upstream.length > 0) return upstream.every((e) => isSourceReady(p, e.from, nextSeen));
|
|
3602
|
-
if (port2.direction === "in") return hasExternalInputArtifact(p, port2.id);
|
|
3643
|
+
if (upstream.length > 0) return upstream.every((e) => isSourceReady(p, e.from, nextSeen, allowDraft));
|
|
3644
|
+
if (port2.direction === "in") return hasExternalInputArtifact(p, port2.id, /* @__PURE__ */ new Set(), allowDraft);
|
|
3603
3645
|
const owner = p.blocks[port2.blockId];
|
|
3604
|
-
if (port2.direction === "out" && owner?.merge) return portsOf(p, owner.id, "in").some((q) => isSourceReady(p, { portId: q.id, side: "inner" }, nextSeen));
|
|
3646
|
+
if (port2.direction === "out" && owner?.merge) return portsOf(p, owner.id, "in").some((q) => isSourceReady(p, { portId: q.id, side: "inner" }, nextSeen, allowDraft));
|
|
3605
3647
|
if (port2.branchOption !== void 0 && owner?.branch) return chosenOption(owner) === port2.branchOption;
|
|
3606
|
-
if (port2
|
|
3648
|
+
if (hasArtifacts(port2, allowDraft)) return true;
|
|
3607
3649
|
return port2.direction === "out" && p.blocks[port2.blockId]?.status === "white";
|
|
3608
3650
|
}
|
|
3609
3651
|
function isInputReady(p, portId) {
|
|
3610
3652
|
const port2 = p.ports[portId];
|
|
3611
|
-
return !!port2 && port2.direction === "in" && isSourceReady(p, { portId, side: "inner" });
|
|
3653
|
+
return !!port2 && port2.direction === "in" && isSourceReady(p, { portId, side: "inner" }, /* @__PURE__ */ new Set(), !!port2.acceptDraft);
|
|
3654
|
+
}
|
|
3655
|
+
function markDraftInputs(p, blockId, names) {
|
|
3656
|
+
const ins = portsOf(p, blockId, "in");
|
|
3657
|
+
return names.map((n) => {
|
|
3658
|
+
const q = ins.find((x) => x.name === n);
|
|
3659
|
+
return q && hasDraftOnly(p, q.id) ? `${n} ${t("(\u4F5C\u6210\u4E2D\u3042\u308A)")}` : n;
|
|
3660
|
+
});
|
|
3661
|
+
}
|
|
3662
|
+
function hasDraftOnly(p, portId) {
|
|
3663
|
+
const port2 = p.ports[portId];
|
|
3664
|
+
if (!port2 || port2.direction !== "in") return false;
|
|
3665
|
+
return !isSourceReady(p, { portId, side: "inner" }) && isSourceReady(p, { portId, side: "inner" }, /* @__PURE__ */ new Set(), true);
|
|
3612
3666
|
}
|
|
3613
3667
|
function missingRequiredInputs(p, blockId) {
|
|
3614
3668
|
const missing = portsOf(p, blockId, "in").filter((q) => q.required && !isInputReady(p, q.id));
|
|
@@ -3925,6 +3979,7 @@ function finishBlock(p, blockId, actor, args = {}) {
|
|
|
3925
3979
|
if (target && args.artifacts) {
|
|
3926
3980
|
for (const a of args.artifacts) q.ports[target.id].artifacts.push("id" in a && "kind" in a ? a : createArtifact(a.title, a.url ?? ""));
|
|
3927
3981
|
}
|
|
3982
|
+
finalizeDrafts(q, blockId);
|
|
3928
3983
|
q.blocks[blockId].activity = null;
|
|
3929
3984
|
if (q.blocks[blockId].status !== "white") q.blocks[blockId].statusChangedAt = now();
|
|
3930
3985
|
q.blocks[blockId].status = "white";
|
|
@@ -4097,6 +4152,18 @@ function ackDecisions(p, blockId, by, decisionId) {
|
|
|
4097
4152
|
appendLog(q, { actor: by, kind: "note", blockId, message: t("\u300C{title}\u300D\u306E\u56DE\u7B54\u3092\u78BA\u8A8D: {questions}", { title: b.title, questions: targets.map((d) => d.question).join(" / ") }) });
|
|
4098
4153
|
return q;
|
|
4099
4154
|
}
|
|
4155
|
+
function finalizeDrafts(q, blockId) {
|
|
4156
|
+
let n = 0;
|
|
4157
|
+
for (const o of portsOf(q, blockId, "out")) {
|
|
4158
|
+
if (!o.artifacts.some((a) => a.draft)) continue;
|
|
4159
|
+
n += o.artifacts.filter((a) => a.draft).length;
|
|
4160
|
+
q.ports[o.id] = { ...q.ports[o.id], artifacts: q.ports[o.id].artifacts.map(({ draft: _d, ...a }) => {
|
|
4161
|
+
void _d;
|
|
4162
|
+
return a;
|
|
4163
|
+
}) };
|
|
4164
|
+
}
|
|
4165
|
+
return n;
|
|
4166
|
+
}
|
|
4100
4167
|
function setStatus(p, blockId, status, actor) {
|
|
4101
4168
|
const b = p.blocks[blockId];
|
|
4102
4169
|
if (!b || b.status === status) return p;
|
|
@@ -4104,6 +4171,7 @@ function setStatus(p, blockId, status, actor) {
|
|
|
4104
4171
|
if (status === "white") {
|
|
4105
4172
|
q.blocks[blockId].activity = null;
|
|
4106
4173
|
stampPolicies(q, blockId);
|
|
4174
|
+
finalizeDrafts(q, blockId);
|
|
4107
4175
|
}
|
|
4108
4176
|
appendLog(q, { actor, kind: "status", blockId, message: t("\u300C{title}\u300D\u3092 {status} \u306B", { title: b.title, status }) });
|
|
4109
4177
|
return q;
|
|
@@ -4209,7 +4277,7 @@ function splitBlock(p, parentId, spec, actor, makers) {
|
|
|
4209
4277
|
if (Object.keys(scope2).length) q.blocks[r.blockId].scope = scope2;
|
|
4210
4278
|
for (const name of b.inputs ?? []) q = addPort(q, { blockId: r.blockId, direction: "in", name }).project;
|
|
4211
4279
|
}
|
|
4212
|
-
const
|
|
4280
|
+
const resolve8 = (ref, dir2) => {
|
|
4213
4281
|
let why = t("\u30DC\u30C3\u30AF\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093");
|
|
4214
4282
|
for (const { title, portName } of refSplits(ref)) {
|
|
4215
4283
|
const isParent = title === "parent" || title === parent.title || title === parentId;
|
|
@@ -4226,8 +4294,8 @@ function splitBlock(p, parentId, spec, actor, makers) {
|
|
|
4226
4294
|
return { ep: null, why };
|
|
4227
4295
|
};
|
|
4228
4296
|
for (const c of spec.connections ?? []) {
|
|
4229
|
-
const from =
|
|
4230
|
-
let to =
|
|
4297
|
+
const from = resolve8(c.from, "out");
|
|
4298
|
+
let to = resolve8(c.to, "in");
|
|
4231
4299
|
if (!to.ep && from.ep && !c.to.includes(".")) {
|
|
4232
4300
|
const tid = c.to === "parent" || c.to === parent.title || c.to === parentId ? null : made[c.to] ?? findBlock(q, c.to).block?.id;
|
|
4233
4301
|
if (tid) {
|
|
@@ -4334,7 +4402,7 @@ function instantiateNode(p, parentId, node, origin, position) {
|
|
|
4334
4402
|
made[c.title] = rc.blockId;
|
|
4335
4403
|
y += 120;
|
|
4336
4404
|
}
|
|
4337
|
-
const
|
|
4405
|
+
const resolve8 = (ref, dir2) => {
|
|
4338
4406
|
for (const { title, portName } of refSplits(ref)) {
|
|
4339
4407
|
const isParent = title === "parent";
|
|
4340
4408
|
const blockId = isParent ? id : made[title];
|
|
@@ -4346,8 +4414,8 @@ function instantiateNode(p, parentId, node, origin, position) {
|
|
|
4346
4414
|
return null;
|
|
4347
4415
|
};
|
|
4348
4416
|
for (const c of node.connections) {
|
|
4349
|
-
const from =
|
|
4350
|
-
const to =
|
|
4417
|
+
const from = resolve8(c.from, "out");
|
|
4418
|
+
const to = resolve8(c.to, "in");
|
|
4351
4419
|
if (from && to) q = connect(q, from, to).project;
|
|
4352
4420
|
}
|
|
4353
4421
|
}
|
|
@@ -6019,7 +6087,7 @@ function resolveToken(server, allowEnvironmentToken = true) {
|
|
|
6019
6087
|
import { hostname as hostname2 } from "node:os";
|
|
6020
6088
|
|
|
6021
6089
|
// package.json
|
|
6022
|
-
var version = "0.6.
|
|
6090
|
+
var version = "0.6.6";
|
|
6023
6091
|
|
|
6024
6092
|
// src/model/version.ts
|
|
6025
6093
|
var APP_VERSION = version;
|
|
@@ -6994,7 +7062,7 @@ function groupConflicts(base, local, remote, conflicts2) {
|
|
|
6994
7062
|
parents.set(key, root);
|
|
6995
7063
|
return root;
|
|
6996
7064
|
};
|
|
6997
|
-
const
|
|
7065
|
+
const join14 = (keys) => {
|
|
6998
7066
|
const sorted = [...new Set(keys.length ? keys : [SETTINGS])].sort();
|
|
6999
7067
|
const first = find(sorted[0]);
|
|
7000
7068
|
for (const key of sorted.slice(1)) parents.set(find(key), first);
|
|
@@ -7032,9 +7100,9 @@ function groupConflicts(base, local, remote, conflicts2) {
|
|
|
7032
7100
|
return [SETTINGS];
|
|
7033
7101
|
};
|
|
7034
7102
|
const items = conflicts2.filter((c) => !c.automatic);
|
|
7035
|
-
for (const c of items)
|
|
7103
|
+
for (const c of items) join14(owners(c));
|
|
7036
7104
|
for (const p of projects) for (const port2 of Object.values(p.ports)) {
|
|
7037
|
-
if (port2.promotedFrom)
|
|
7105
|
+
if (port2.promotedFrom) join14(portOwners(port2.id));
|
|
7038
7106
|
}
|
|
7039
7107
|
const ids = new Set(projects.flatMap((p) => Object.keys(p.blocks)));
|
|
7040
7108
|
for (const id of ids) {
|
|
@@ -7066,7 +7134,7 @@ function groupConflicts(base, local, remote, conflicts2) {
|
|
|
7066
7134
|
))
|
|
7067
7135
|
keys.push(...edgeOwners(e.id));
|
|
7068
7136
|
}
|
|
7069
|
-
|
|
7137
|
+
join14(keys);
|
|
7070
7138
|
keys.forEach((key) => structural.add(key));
|
|
7071
7139
|
}
|
|
7072
7140
|
const grouped = /* @__PURE__ */ new Map();
|
|
@@ -8414,7 +8482,7 @@ function registerTools(server, run2) {
|
|
|
8414
8482
|
}, async ({ block: b, spec, contextToken }) => safe(run2, ["split", b, "--spec", JSON.stringify(spec), ...contextToken ? ["--context-token", contextToken] : []]));
|
|
8415
8483
|
server.registerTool("boxglow_connect", { description: t("\u7DDA\u3092\u3064\u306A\u3050: <\u984C\u540D.\u51FA\u529B\u540D> \u304B\u3089 <\u984C\u540D> \u3078 (\u53D7\u3051\u5074\u306F\u984C\u540D\u3060\u3051\u3067\u3088\u3044\u3002\u51FA\u529B\u540D\u3068\u540C\u3058\u540D\u524D\u306E\u5165\u529B\u304C\u4F5C\u3089\u308C\u308B\u3002<\u984C\u540D.\u5165\u529B\u540D> \u3067\u65E2\u5B58\u306E\u5165\u529B\u3092\u6307\u5B9A\u3057\u3066\u3082\u3088\u3044\u3002\u89AA\u306E\u5165\u529B\u306F project.\u5165\u529B\u540D\u3001\u89AA\u306E\u51FA\u529B\u3078\u306F \u984C\u540D.\u51FA\u529B\u540D -> project)"), inputSchema: { from: z2.string(), to: z2.string() } }, async ({ from, to }) => safe(run2, ["connect", from, to]));
|
|
8416
8484
|
server.registerTool("boxglow_disconnect", { description: t("\u7DDA\u3092\u5916\u3059"), inputSchema: { from: z2.string(), to: z2.string() } }, async ({ from, to }) => safe(run2, ["disconnect", from, to]));
|
|
8417
|
-
server.registerTool("boxglow_port", { description: t("\u30DC\u30C3\u30AF\u30B9\u306B\u5165\u529B / \u51FA\u529B\u3092\u8DB3\u3059\u3001\u540D\u524D\u3092\u5909\u3048\u308B\u3001\u51FA\u529B\u306E\u4E88\u5B9A\u6210\u679C\u7269 (expect) \u3068\u62C5\u5F53 (self) \u3092\u6C7A\u3081\u308B\u3002anyOf \u306E\u5165\u529B\u306F\u5408\u6D41 (\u3069\u308C\u304B 1 \u3064\u304C\u5C4A\u3051\u3070\u3088\u3044) \u306B\u3059\u308B"), inputSchema: { block: block2, in: z2.array(z2.string()).optional(), out: z2.array(z2.string()).optional(), policy: z2.array(z2.string()).optional().describe(t("\u65B9\u91DD\u3068\u3057\u3066\u914D\u308B\u51FA\u529B\u306E\u540D\u524D (\u7DDA\u3092\u5F15\u304B\u305A\u306B\u7BC4\u56F2\u306E\u7BB1\u3059\u3079\u3066\u306B\u5C4A\u304F\u3002\u6280\u8853\u9078\u5B9A\u306A\u3069\u5168\u4F53\u306B\u52B9\u304F\u6C7A\u5B9A)")), policyScope: z2.string().optional().describe(t("\u65B9\u91DD\u306E\u7BC4\u56F2: all = \u8A08\u753B\u5168\u4F53\u3001<block> = \u305D\u306E\u7BB1\u306E\u4E2D\u3001\u7701\u7565 = \u540C\u3058\u89AA\u306E\u4E2D")), advisory: z2.boolean().optional().describe(t("\u65B9\u91DD\u3092\u53C2\u8003\u306B\u3059\u308B (\u6C7A\u307E\u3063\u3066\u3044\u306A\u304F\u3066\u3082\u7740\u624B\u3092\u5F85\u305F\u305B\u306A\u3044)")), noPolicy: z2.array(z2.string()).optional().describe(t("\u65B9\u91DD\u3092\u3084\u3081\u308B\u51FA\u529B\u306E\u540D\u524D")), skipPolicy: z2.array(z2.string()).optional().describe(t("\u3053\u306E\u7BB1\u3067\u306F\u53D7\u3051\u53D6\u3089\u306A\u3044\u65B9\u91DD (<\u7BB1>.<\u51FA\u529B\u540D>)")), remove: z2.array(z2.string()).optional().describe(t("\u6D88\u3059\u30DD\u30FC\u30C8\u306E\u540D\u524D (\u5165\u529B\u3092\u6D88\u3059\u3068\u3001\u4F7F\u3046\u7BB1\u306E\u5165\u529B\u3082\u6D88\u3048\u308B\u3002\u540C\u540D\u304C\u4E21\u65B9\u306B\u3042\u308C\u3070 in:<\u540D\u524D> / out:<\u540D\u524D>)")), expect: z2.array(z2.string()).optional().describe(t('\u4E88\u5B9A\u6210\u679C\u7269: "<\u51FA\u529B\u540D>=<kind>:<hint>" (kind \u306F file / dir / url / doc / note / decision / result\u3001hint \u306F\u30D1\u30B9\u306E\u898B\u5F53\u3084\u984C\u540D)')), self: z2.array(z2.string()).optional().describe(t("\u5B50\u306B\u4EFB\u305B\u305A\u3001\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B\u306E\u540D\u524D (\u7D71\u5408\u30FB\u691C\u8A3C\u306A\u3069\u3002\u5B50\u3092\u6301\u3064\u30DC\u30C3\u30AF\u30B9\u3060\u3051)")), noSelf: z2.array(z2.string()).optional().describe(t("\u81EA\u8EAB\u304C\u4F5C\u308B\u5370\u3092\u5916\u3059\u51FA\u529B\u306E\u540D\u524D")), rename: z2.string().optional().describe(t("\u65E7=\u65B0")), anyOf: z2.array(z2.string()).optional().describe(t("\u5408\u6D41\u306B\u3059\u308B\u5165\u529B\u306E\u540D\u524D (\u5206\u304B\u308C\u305F\u9053\u304C\u307E\u3068\u307E\u308B\u3068\u3053\u308D)")), allOf: z2.array(z2.string()).optional().describe(t("\u901A\u5E38 (\u3059\u3079\u3066\u8981\u308B) \u306B\u623B\u3059\u5165\u529B\u306E\u540D\u524D")), optional: z2.array(z2.string()).optional().describe(t("\u4EFB\u610F (\u7121\u304F\u3066\u3082\u7740\u624B\u3067\u304D\u308B) \u306B\u3059\u308B\u5165\u529B\u306E\u540D\u524D")), required: z2.array(z2.string()).optional().describe(t("\u5FC5\u9808\u306B\u623B\u3059\u5165\u529B\u306E\u540D\u524D")), describe: z2.array(z2.string()).optional().describe(t('\u5165\u51FA\u529B\u306E\u8AAC\u660E: "<\u540D\u524D>=<\u8AAC\u660E>" (\u540C\u540D\u304C\u4E21\u65B9\u306B\u3042\u308C\u3070 in:<\u540D\u524D> / out:<\u540D\u524D>)')) } }, async (a) => {
|
|
8485
|
+
server.registerTool("boxglow_port", { description: t("\u30DC\u30C3\u30AF\u30B9\u306B\u5165\u529B / \u51FA\u529B\u3092\u8DB3\u3059\u3001\u540D\u524D\u3092\u5909\u3048\u308B\u3001\u51FA\u529B\u306E\u4E88\u5B9A\u6210\u679C\u7269 (expect) \u3068\u62C5\u5F53 (self) \u3092\u6C7A\u3081\u308B\u3002anyOf \u306E\u5165\u529B\u306F\u5408\u6D41 (\u3069\u308C\u304B 1 \u3064\u304C\u5C4A\u3051\u3070\u3088\u3044) \u306B\u3059\u308B"), inputSchema: { block: block2, in: z2.array(z2.string()).optional(), out: z2.array(z2.string()).optional(), policy: z2.array(z2.string()).optional().describe(t("\u65B9\u91DD\u3068\u3057\u3066\u914D\u308B\u51FA\u529B\u306E\u540D\u524D (\u7DDA\u3092\u5F15\u304B\u305A\u306B\u7BC4\u56F2\u306E\u7BB1\u3059\u3079\u3066\u306B\u5C4A\u304F\u3002\u6280\u8853\u9078\u5B9A\u306A\u3069\u5168\u4F53\u306B\u52B9\u304F\u6C7A\u5B9A)")), policyScope: z2.string().optional().describe(t("\u65B9\u91DD\u306E\u7BC4\u56F2: all = \u8A08\u753B\u5168\u4F53\u3001<block> = \u305D\u306E\u7BB1\u306E\u4E2D\u3001\u7701\u7565 = \u540C\u3058\u89AA\u306E\u4E2D")), advisory: z2.boolean().optional().describe(t("\u65B9\u91DD\u3092\u53C2\u8003\u306B\u3059\u308B (\u6C7A\u307E\u3063\u3066\u3044\u306A\u304F\u3066\u3082\u7740\u624B\u3092\u5F85\u305F\u305B\u306A\u3044)")), noPolicy: z2.array(z2.string()).optional().describe(t("\u65B9\u91DD\u3092\u3084\u3081\u308B\u51FA\u529B\u306E\u540D\u524D")), skipPolicy: z2.array(z2.string()).optional().describe(t("\u3053\u306E\u7BB1\u3067\u306F\u53D7\u3051\u53D6\u3089\u306A\u3044\u65B9\u91DD (<\u7BB1>.<\u51FA\u529B\u540D>)")), remove: z2.array(z2.string()).optional().describe(t("\u6D88\u3059\u30DD\u30FC\u30C8\u306E\u540D\u524D (\u5165\u529B\u3092\u6D88\u3059\u3068\u3001\u4F7F\u3046\u7BB1\u306E\u5165\u529B\u3082\u6D88\u3048\u308B\u3002\u540C\u540D\u304C\u4E21\u65B9\u306B\u3042\u308C\u3070 in:<\u540D\u524D> / out:<\u540D\u524D>)")), expect: z2.array(z2.string()).optional().describe(t('\u4E88\u5B9A\u6210\u679C\u7269: "<\u51FA\u529B\u540D>=<kind>:<hint>" (kind \u306F file / dir / url / doc / note / decision / result\u3001hint \u306F\u30D1\u30B9\u306E\u898B\u5F53\u3084\u984C\u540D)')), self: z2.array(z2.string()).optional().describe(t("\u5B50\u306B\u4EFB\u305B\u305A\u3001\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B\u306E\u540D\u524D (\u7D71\u5408\u30FB\u691C\u8A3C\u306A\u3069\u3002\u5B50\u3092\u6301\u3064\u30DC\u30C3\u30AF\u30B9\u3060\u3051)")), noSelf: z2.array(z2.string()).optional().describe(t("\u81EA\u8EAB\u304C\u4F5C\u308B\u5370\u3092\u5916\u3059\u51FA\u529B\u306E\u540D\u524D")), rename: z2.string().optional().describe(t("\u65E7=\u65B0")), anyOf: z2.array(z2.string()).optional().describe(t("\u5408\u6D41\u306B\u3059\u308B\u5165\u529B\u306E\u540D\u524D (\u5206\u304B\u308C\u305F\u9053\u304C\u307E\u3068\u307E\u308B\u3068\u3053\u308D)")), allOf: z2.array(z2.string()).optional().describe(t("\u901A\u5E38 (\u3059\u3079\u3066\u8981\u308B) \u306B\u623B\u3059\u5165\u529B\u306E\u540D\u524D")), optional: z2.array(z2.string()).optional().describe(t("\u4EFB\u610F (\u7121\u304F\u3066\u3082\u7740\u624B\u3067\u304D\u308B) \u306B\u3059\u308B\u5165\u529B\u306E\u540D\u524D")), required: z2.array(z2.string()).optional().describe(t("\u5FC5\u9808\u306B\u623B\u3059\u5165\u529B\u306E\u540D\u524D")), describe: z2.array(z2.string()).optional().describe(t('\u5165\u51FA\u529B\u306E\u8AAC\u660E: "<\u540D\u524D>=<\u8AAC\u660E>" (\u540C\u540D\u304C\u4E21\u65B9\u306B\u3042\u308C\u3070 in:<\u540D\u524D> / out:<\u540D\u524D>)')), acceptDraft: z2.array(z2.string()).optional().describe(t("\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u3067\u3082\u7740\u624B\u3057\u3066\u3088\u3044\u5165\u529B\u306E\u540D\u524D")), noAcceptDraft: z2.array(z2.string()).optional().describe(t("\u78BA\u5B9A\u3057\u305F\u8CC7\u6599\u3092\u5F85\u3064 (\u65E2\u5B9A) \u306B\u623B\u3059\u5165\u529B\u306E\u540D\u524D")) } }, async (a) => {
|
|
8418
8486
|
const argv = ["port", a.block];
|
|
8419
8487
|
opt(argv, "in", a.in);
|
|
8420
8488
|
opt(argv, "out", a.out);
|
|
@@ -8433,6 +8501,8 @@ function registerTools(server, run2) {
|
|
|
8433
8501
|
opt(argv, "optional", a.optional);
|
|
8434
8502
|
opt(argv, "required", a.required);
|
|
8435
8503
|
opt(argv, "describe", a.describe);
|
|
8504
|
+
opt(argv, "accept-draft", a.acceptDraft);
|
|
8505
|
+
opt(argv, "no-accept-draft", a.noAcceptDraft);
|
|
8436
8506
|
return safe(run2, argv);
|
|
8437
8507
|
});
|
|
8438
8508
|
server.registerTool("boxglow_branch", {
|
|
@@ -8554,8 +8624,10 @@ function registerTools(server, run2) {
|
|
|
8554
8624
|
});
|
|
8555
8625
|
server.registerTool("boxglow_lint", { description: t("\u8A08\u753B (\u307E\u305F\u306F\u30DC\u30C3\u30AF\u30B9\u306E\u914D\u4E0B) \u306E\u691C\u67FB: \u5FC5\u305A\u76F4\u3059 (\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u5B8C\u4E86\u6761\u4EF6\u306E\u6B20\u843D\u3001\u89AA\u51FA\u529B\u306E\u62C5\u5F53\u306E\u672A\u5B9A\u30FB\u91CD\u8907\u3001\u6392\u4ED6\u306E\u9053\u306E\u4E21\u65B9\u3092\u5FC5\u9808) \u3068\u898B\u76F4\u3057\u5019\u88DC (\u5B50\u304C 1 \u500B\u3001\u3064\u306A\u304C\u3089\u306A\u3044\u51FA\u529B\u3001\u5F62\u3060\u3051\u306E\u8A18\u5165\u3001\u9053\u306E\u5148\u304C\u7121\u3044\u5206\u5C90\u3001\u5165\u529B 1 \u672C\u306E\u5408\u6D41\u3001\u5144\u5F1F\u306E\u540C\u3058\u4E88\u5B9A\u6210\u679C\u7269) \u3092\u5206\u3051\u3066\u8FD4\u3059"), inputSchema: { block: z2.string().optional().describe(t("\u7701\u7565\u3059\u308B\u3068\u8A08\u753B\u5168\u4F53")) }, annotations: { readOnlyHint: true } }, async ({ block: b }) => safe(run2, ["lint", ...b ? [b] : [], "--json"]));
|
|
8556
8626
|
server.registerTool("boxglow_validate", { description: t("\u8A08\u753B\u306E\u554F\u984C (\u3064\u306A\u304C\u3063\u3066\u3044\u306A\u3044\u5165\u51FA\u529B\u306A\u3069) \u3092\u691C\u67FB\u3059\u308B"), inputSchema: {}, annotations: { readOnlyHint: true } }, async () => safe(run2, ["validate"]));
|
|
8557
|
-
server.registerTool("boxglow_artifact", { description: t('\u6210\u679C\u7269\u3060\u3051\u4ED8\u3051\u308B (\u5B8C\u4E86\u306B\u306F\u3057\u306A\u3044)\u3002block \u306B "inputs" \u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u8A08\u753B\u306E\u6700\u4E0A\u4F4D\u306E\u5165\u529B (Inputs) \u306B\u8CC7\u6599\u3092\u4ED8\u3051\u308B (input \u3067\u5165\u529B\u540D\u3092\u9078\u3076)\u3002\u5165\u529B\u306B\u8CC7\u6599\u304C\u7121\u3044\u3068\u3001\u305D\u308C\u3092\u4F7F\u3046\u7BB1\u306F\u7740\u624B\u3067\u304D\u306A\u3044'), inputSchema: { block: block2, path: z2.string().describe(t("\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D1\u30B9 \u307E\u305F\u306F URL")), title: z2.string().optional(), output: z2.string().optional().describe(t("\u4ED8\u3051\u308B\u51FA\u529B\u306E\u540D\u524D (\u7BB1\u306E\u3068\u304D)")), input: z2.string().optional().describe(t("\u4ED8\u3051\u308B\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306E\u540D\u524D (block \u304C inputs \u306E\u3068\u304D)")), remove: z2.boolean().optional().describe(t("true \u306A\u3089 path \u306E\u6210\u679C\u7269\u30FB\u8CC7\u6599\u3092\u5916\u3059 (\u984C\u540D\u304B\u30D1\u30B9\u304B URL \u3067\u63A2\u3059)")), contextToken: z2.string().optional() } }, async (a) => {
|
|
8558
|
-
const argv = a.remove ? ["artifact", a.block, "--remove", a.path] : ["artifact", a.block, a.path];
|
|
8627
|
+
server.registerTool("boxglow_artifact", { description: t('\u6210\u679C\u7269\u3060\u3051\u4ED8\u3051\u308B (\u5B8C\u4E86\u306B\u306F\u3057\u306A\u3044)\u3002block \u306B "inputs" \u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\u8A08\u753B\u306E\u6700\u4E0A\u4F4D\u306E\u5165\u529B (Inputs) \u306B\u8CC7\u6599\u3092\u4ED8\u3051\u308B (input \u3067\u5165\u529B\u540D\u3092\u9078\u3076)\u3002\u5165\u529B\u306B\u8CC7\u6599\u304C\u7121\u3044\u3068\u3001\u305D\u308C\u3092\u4F7F\u3046\u7BB1\u306F\u7740\u624B\u3067\u304D\u306A\u3044'), inputSchema: { block: block2, path: z2.string().describe(t("\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D1\u30B9 \u307E\u305F\u306F URL")), title: z2.string().optional(), output: z2.string().optional().describe(t("\u4ED8\u3051\u308B\u51FA\u529B\u306E\u540D\u524D (\u7BB1\u306E\u3068\u304D)")), input: z2.string().optional().describe(t("\u4ED8\u3051\u308B\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306E\u540D\u524D (block \u304C inputs \u306E\u3068\u304D)")), remove: z2.boolean().optional().describe(t("true \u306A\u3089 path \u306E\u6210\u679C\u7269\u30FB\u8CC7\u6599\u3092\u5916\u3059 (\u984C\u540D\u304B\u30D1\u30B9\u304B URL \u3067\u63A2\u3059)")), draft: z2.boolean().optional().describe(t("\u4F5C\u6210\u4E2D\u3068\u3057\u3066\u4ED8\u3051\u308B (\u4F7F\u3046\u5074\u306E\u7BB1\u306F\u5F85\u3063\u305F\u307E\u307E\u3002\u4F7F\u3046\u5074\u306E\u5165\u529B\u304C acceptDraft \u306A\u3089\u7740\u624B\u3067\u304D\u308B\u3002\u5B8C\u4E86\u3067\u78BA\u5B9A\u306B\u306A\u308B)")), final: z2.boolean().optional().describe(t("true \u306A\u3089 path \u306E\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u3092\u78BA\u5B9A\u306B\u3059\u308B (all \u3067\u3059\u3079\u3066)")), link: z2.boolean().optional().describe(t("\u51FA\u529B\u3067\u306F\u306A\u304F\u3001\u7BB1\u306E\u53C2\u8003\u8CC7\u6599 (Links) \u306B\u4ED8\u3051\u308B (\u4F7F\u3046\u5074\u306B\u306F\u6E21\u3089\u306A\u3044)")), contextToken: z2.string().optional() } }, async (a) => {
|
|
8628
|
+
const argv = a.remove ? ["artifact", a.block, "--remove", a.path] : a.final ? ["artifact", a.block, "--final", a.path] : ["artifact", a.block, a.path];
|
|
8629
|
+
if (a.draft) argv.push("--draft");
|
|
8630
|
+
if (a.link) argv.push("--link");
|
|
8559
8631
|
opt(argv, "title", a.title);
|
|
8560
8632
|
opt(argv, "output", a.output);
|
|
8561
8633
|
opt(argv, "input", a.input);
|
|
@@ -8577,13 +8649,46 @@ async function startMcp(run2) {
|
|
|
8577
8649
|
|
|
8578
8650
|
// cli/serve.ts
|
|
8579
8651
|
import { createServer } from "node:http";
|
|
8580
|
-
import { existsSync as
|
|
8581
|
-
import { basename as basename3, dirname as
|
|
8652
|
+
import { existsSync as existsSync9, mkdirSync as mkdirSync7, readFileSync as readFileSync10, realpathSync as realpathSync3, statSync as statSync6, watch, writeFileSync as writeFileSync5 } from "node:fs";
|
|
8653
|
+
import { basename as basename3, dirname as dirname7, extname, isAbsolute as isAbsolute2, join as join9, relative, resolve as resolve4 } from "node:path";
|
|
8582
8654
|
import { spawn } from "node:child_process";
|
|
8583
8655
|
|
|
8656
|
+
// cli/attached-file.ts
|
|
8657
|
+
import { existsSync as existsSync5, statSync as statSync3 } from "node:fs";
|
|
8658
|
+
import { dirname as dirname4, isAbsolute, join as join6, resolve as resolve3 } from "node:path";
|
|
8659
|
+
function gitRootOf(dir2) {
|
|
8660
|
+
let cur = resolve3(dir2);
|
|
8661
|
+
for (let i = 0; i < 64; i++) {
|
|
8662
|
+
if (existsSync5(join6(cur, ".git"))) return cur;
|
|
8663
|
+
const up = dirname4(cur);
|
|
8664
|
+
if (up === cur) return null;
|
|
8665
|
+
cur = up;
|
|
8666
|
+
}
|
|
8667
|
+
return null;
|
|
8668
|
+
}
|
|
8669
|
+
function attachedFileBases(planFile) {
|
|
8670
|
+
const planDir = dirname4(resolve3(planFile));
|
|
8671
|
+
const root = gitRootOf(planDir);
|
|
8672
|
+
return [.../* @__PURE__ */ new Set([planDir, ...root ? [root] : []])];
|
|
8673
|
+
}
|
|
8674
|
+
function resolveAttachedFile(planFile, path) {
|
|
8675
|
+
let p = path.trim();
|
|
8676
|
+
if (p.startsWith("file://")) p = decodeURIComponent(p.slice("file://".length));
|
|
8677
|
+
p = p.replace(/[?#].*$/, "");
|
|
8678
|
+
if (!p) return null;
|
|
8679
|
+
const candidates = isAbsolute(p) ? [p] : attachedFileBases(planFile).map((base) => resolve3(base, p));
|
|
8680
|
+
for (const c of candidates) {
|
|
8681
|
+
try {
|
|
8682
|
+
if (existsSync5(c) && statSync3(c).isFile()) return c;
|
|
8683
|
+
} catch {
|
|
8684
|
+
}
|
|
8685
|
+
}
|
|
8686
|
+
return null;
|
|
8687
|
+
}
|
|
8688
|
+
|
|
8584
8689
|
// cli/sync/host.ts
|
|
8585
8690
|
import { randomUUID as randomUUID7 } from "node:crypto";
|
|
8586
|
-
import { existsSync as
|
|
8691
|
+
import { existsSync as existsSync8, readFileSync as readFileSync9, statSync as statSync5 } from "node:fs";
|
|
8587
8692
|
|
|
8588
8693
|
// src/sync/billing.ts
|
|
8589
8694
|
function parseBilling2(value) {
|
|
@@ -8670,9 +8775,9 @@ function parseSummary(v) {
|
|
|
8670
8775
|
}
|
|
8671
8776
|
|
|
8672
8777
|
// cli/sync/agent-config.ts
|
|
8673
|
-
import { existsSync as
|
|
8778
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync5, readFileSync as readFileSync6, writeFileSync as writeFileSync4 } from "node:fs";
|
|
8674
8779
|
import { homedir as homedir2 } from "node:os";
|
|
8675
|
-
import { dirname as
|
|
8780
|
+
import { dirname as dirname5, join as join7 } from "node:path";
|
|
8676
8781
|
|
|
8677
8782
|
// node_modules/smol-toml/dist/error.js
|
|
8678
8783
|
function getLineColFromPtr(string, ptr) {
|
|
@@ -9602,29 +9707,29 @@ function mergeCodexConfig(existing, server, token) {
|
|
|
9602
9707
|
// cli/sync/agent-config.ts
|
|
9603
9708
|
function writeAgentConfig(target, server, token, dir2) {
|
|
9604
9709
|
if (target === "codex") {
|
|
9605
|
-
const path2 =
|
|
9606
|
-
mkdirSync5(
|
|
9607
|
-
writeFileSync4(path2, mergeCodexConfig(
|
|
9710
|
+
const path2 = join7(homedir2(), ".codex", "config.toml");
|
|
9711
|
+
mkdirSync5(dirname5(path2), { recursive: true });
|
|
9712
|
+
writeFileSync4(path2, mergeCodexConfig(existsSync6(path2) ? readFileSync6(path2, "utf8") : null, server, token), { mode: 384 });
|
|
9608
9713
|
return { path: path2, gitignored: true };
|
|
9609
9714
|
}
|
|
9610
|
-
const path =
|
|
9611
|
-
writeFileSync4(path, mergeMcpJson(
|
|
9612
|
-
const gi =
|
|
9613
|
-
if (!
|
|
9715
|
+
const path = join7(dir2, ".mcp.json");
|
|
9716
|
+
writeFileSync4(path, mergeMcpJson(existsSync6(path) ? readFileSync6(path, "utf8") : null, server, token));
|
|
9717
|
+
const gi = join7(dir2, ".gitignore");
|
|
9718
|
+
if (!existsSync6(gi)) return { path, gitignored: false };
|
|
9614
9719
|
const next = gitignoreWithMcpJson(readFileSync6(gi, "utf8"));
|
|
9615
9720
|
if (next !== null) writeFileSync4(gi, next);
|
|
9616
9721
|
return { path, gitignored: true };
|
|
9617
9722
|
}
|
|
9618
9723
|
|
|
9619
9724
|
// cli/sync/host.ts
|
|
9620
|
-
import { dirname as
|
|
9725
|
+
import { dirname as dirname6 } from "node:path";
|
|
9621
9726
|
|
|
9622
9727
|
// cli/sync/command.ts
|
|
9623
9728
|
import { readFileSync as readFileSync8 } from "node:fs";
|
|
9624
9729
|
|
|
9625
9730
|
// cli/sync/watch.ts
|
|
9626
|
-
import { existsSync as
|
|
9627
|
-
import { join as
|
|
9731
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync6, readdirSync as readdirSync3, readFileSync as readFileSync7, statSync as statSync4 } from "node:fs";
|
|
9732
|
+
import { join as join8 } from "node:path";
|
|
9628
9733
|
var DEBOUNCE_MS = 2e3;
|
|
9629
9734
|
var MAX_WAIT_MS = 1e4;
|
|
9630
9735
|
var POLL_MS = 3e4;
|
|
@@ -9634,7 +9739,7 @@ var RETRY_MS = 5e3;
|
|
|
9634
9739
|
var RETRY_MAX_MS = 6e4;
|
|
9635
9740
|
function signature(file) {
|
|
9636
9741
|
try {
|
|
9637
|
-
const st =
|
|
9742
|
+
const st = statSync4(file);
|
|
9638
9743
|
return `${st.mtimeMs}:${st.size}`;
|
|
9639
9744
|
} catch {
|
|
9640
9745
|
return "none";
|
|
@@ -9648,7 +9753,7 @@ function contentHash(file) {
|
|
|
9648
9753
|
}
|
|
9649
9754
|
}
|
|
9650
9755
|
function bindingsFor(server) {
|
|
9651
|
-
const root =
|
|
9756
|
+
const root = join8(configDir(), "sync");
|
|
9652
9757
|
let names = [];
|
|
9653
9758
|
try {
|
|
9654
9759
|
names = readdirSync3(root);
|
|
@@ -9657,8 +9762,8 @@ function bindingsFor(server) {
|
|
|
9657
9762
|
}
|
|
9658
9763
|
const states = [], unreadable = [];
|
|
9659
9764
|
for (const name of names) {
|
|
9660
|
-
const dir2 =
|
|
9661
|
-
if (!
|
|
9765
|
+
const dir2 = join8(root, name);
|
|
9766
|
+
if (!existsSync7(join8(dir2, "state.json"))) continue;
|
|
9662
9767
|
try {
|
|
9663
9768
|
const state = new StateStore(dir2).read();
|
|
9664
9769
|
if (state && state.binding.server === normalizeServer(server)) states.push({ dir: dir2, state });
|
|
@@ -9669,9 +9774,9 @@ function bindingsFor(server) {
|
|
|
9669
9774
|
return { states, unreadable };
|
|
9670
9775
|
}
|
|
9671
9776
|
function lockWatch(server) {
|
|
9672
|
-
const root =
|
|
9777
|
+
const root = join8(configDir(), "sync");
|
|
9673
9778
|
mkdirSync6(root, { recursive: true, mode: 448 });
|
|
9674
|
-
const path =
|
|
9779
|
+
const path = join8(root, `watch-${hashOf(normalizeServer(server)).slice(0, 16)}`);
|
|
9675
9780
|
try {
|
|
9676
9781
|
return { unlock: lockFile(path, { waitMs: 0 }), path };
|
|
9677
9782
|
} catch (e) {
|
|
@@ -10511,7 +10616,7 @@ var SyncHost = class {
|
|
|
10511
10616
|
if (resolved?.source === "env") return "env:" + hashOf(resolved.token).slice(0, 16);
|
|
10512
10617
|
const path = credentialsPath(this.server);
|
|
10513
10618
|
try {
|
|
10514
|
-
const st =
|
|
10619
|
+
const st = statSync5(path);
|
|
10515
10620
|
return `stored:${st.mtimeMs}:${st.size}:${hashOf(readFileSync9(path, "utf8")).slice(0, 16)}`;
|
|
10516
10621
|
} catch {
|
|
10517
10622
|
return "none";
|
|
@@ -10989,7 +11094,7 @@ var SyncHost = class {
|
|
|
10989
11094
|
state.connected = void 0;
|
|
10990
11095
|
if (action.kind === "connectAgent") {
|
|
10991
11096
|
try {
|
|
10992
|
-
const written2 = writeAgentConfig(action.target, this.server, created.token, file ?
|
|
11097
|
+
const written2 = writeAgentConfig(action.target, this.server, created.token, file ? dirname6(file) : process.cwd());
|
|
10993
11098
|
state.newToken = void 0;
|
|
10994
11099
|
state.connected = { target: action.target, wrote: true, path: written2.path, gitignored: written2.gitignored };
|
|
10995
11100
|
} catch (e) {
|
|
@@ -11271,7 +11376,7 @@ var SyncHost = class {
|
|
|
11271
11376
|
return;
|
|
11272
11377
|
}
|
|
11273
11378
|
const target = realFile(destination);
|
|
11274
|
-
if (action.destination === "new" && (
|
|
11379
|
+
if (action.destination === "new" && (existsSync8(target) || bindingsOf(target).bindings.length))
|
|
11275
11380
|
throw new SyncDestinationError(t("\u4FDD\u5B58\u5148\u306B\u306F\u65E2\u306B\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u3059\u3002\u5225\u306E\u540D\u524D\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002"));
|
|
11276
11381
|
if (this.startups.get(file) !== op || this.stopping || this.stopped) return;
|
|
11277
11382
|
if (op.credentials !== this.credentialsGeneration()) throw new Error("Credentials changed");
|
|
@@ -11809,6 +11914,8 @@ var HttpError = class extends Error {
|
|
|
11809
11914
|
status;
|
|
11810
11915
|
};
|
|
11811
11916
|
var ASSETS_DIR = "boxglow.assets";
|
|
11917
|
+
var ATTACHED_MIME = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".gif": "image/gif", ".webp": "image/webp", ".pdf": "application/pdf", ".mp4": "video/mp4", ".webm": "video/webm", ".mp3": "audio/mpeg", ".wav": "audio/wav" };
|
|
11918
|
+
var MAX_ATTACHED = 50 * 1024 * 1024;
|
|
11812
11919
|
var ASSET_MIME = { ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".gif": "image/gif", ".webp": "image/webp", ".svg": "image/svg+xml" };
|
|
11813
11920
|
var MAX_ASSET = 10 * 1024 * 1024;
|
|
11814
11921
|
function readRawBody(req, limit) {
|
|
@@ -11845,9 +11952,9 @@ function readBody(req, limit = MAX_BODY) {
|
|
|
11845
11952
|
}
|
|
11846
11953
|
function startServe(opts) {
|
|
11847
11954
|
const { file, dist, log } = opts;
|
|
11848
|
-
if (!
|
|
11849
|
-
if (!
|
|
11850
|
-
if (!
|
|
11955
|
+
if (!existsSync9(join9(dist, "index.html"))) throw new Error(t("Web \u30A2\u30D7\u30EA\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093: {dist} (npm run build \u3067 dist/ \u3092\u4F5C\u3063\u3066\u304F\u3060\u3055\u3044)", { dist }));
|
|
11956
|
+
if (!existsSync9(file)) {
|
|
11957
|
+
if (!existsSync9(dirname7(file))) throw new Error(t("\u30D5\u30A9\u30EB\u30C0\u304C\u3042\u308A\u307E\u305B\u3093: {dir}", { dir: dirname7(file) }));
|
|
11851
11958
|
log(t("\u30D5\u30A1\u30A4\u30EB\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093: {file} (\u753B\u9762\u304B\u3089\u8A08\u753B\u3092\u4F5C\u308B\u304B\u3001\u30B5\u30FC\u30D0\u30FC\u306E\u8A08\u753B\u3092\u53D7\u3051\u53D6\u308B\u3068\u3001\u3053\u3053\u306B\u4FDD\u5B58\u3057\u307E\u3059)", { file }));
|
|
11852
11959
|
}
|
|
11853
11960
|
const children = [];
|
|
@@ -11873,7 +11980,7 @@ data: ${data}
|
|
|
11873
11980
|
destinationPicker: "sibling",
|
|
11874
11981
|
chooseDestination: async (source, name) => {
|
|
11875
11982
|
if (!name || !/^[^./\\][^/\\:<>"|?*]*\.json$/.test(name) || /[\x00-\x1f]/.test(name) || /^(con|prn|aux|nul|com[1-9]|lpt[1-9])\./i.test(name)) throw new SyncDestinationError(t("\u4FDD\u5B58\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30D5\u30A9\u30EB\u30C0\u3092\u542B\u3081\u305A\u3001.json\u3067\u7D42\u308F\u308B\u540D\u524D\u3092\u6307\u5B9A\u3057\u307E\u3059\u3002"));
|
|
11876
|
-
return
|
|
11983
|
+
return join9(dirname7(source), name);
|
|
11877
11984
|
},
|
|
11878
11985
|
onOpened: async (target) => {
|
|
11879
11986
|
const child = startServe({ file: target, port: 0, dist, open: false, log, sync: { server: opts.sync.server, allowEnvironmentToken: opts.sync.allowEnvironmentToken, autoEnable: false } });
|
|
@@ -11893,7 +12000,7 @@ data: ${data}
|
|
|
11893
12000
|
let timer;
|
|
11894
12001
|
let watcher;
|
|
11895
12002
|
try {
|
|
11896
|
-
watcher = watch(
|
|
12003
|
+
watcher = watch(dirname7(file), (_ev, name) => {
|
|
11897
12004
|
if (name && String(name) !== basename3(file)) return;
|
|
11898
12005
|
clearTimeout(timer);
|
|
11899
12006
|
timer = setTimeout(broadcast, 80);
|
|
@@ -11916,7 +12023,7 @@ data: ${data}
|
|
|
11916
12023
|
const url = new URL(req.url ?? "/", `http://${req.headers.host}`);
|
|
11917
12024
|
if (url.pathname === "/api/project") {
|
|
11918
12025
|
if (req.method === "GET") {
|
|
11919
|
-
if (!
|
|
12026
|
+
if (!existsSync9(file)) {
|
|
11920
12027
|
send(404, JSON.stringify({ code: "no-file", file: basename3(file) }), "application/json; charset=utf-8", { "x-boxglow-file": encodeURIComponent(basename3(file)), "x-boxglow-version": APP_VERSION, "x-boxglow-protocol": String(SAVE_PROTOCOL) });
|
|
11921
12028
|
return;
|
|
11922
12029
|
}
|
|
@@ -11978,20 +12085,36 @@ data: ${JSON.stringify(lastSync ?? syncHost.status(file))}
|
|
|
11978
12085
|
});
|
|
11979
12086
|
return;
|
|
11980
12087
|
}
|
|
12088
|
+
if (url.pathname === "/api/file") {
|
|
12089
|
+
if (req.method !== "GET" && req.method !== "HEAD") throw new HttpError(405, t("\u3053\u306E\u30E1\u30BD\u30C3\u30C9\u306F\u4F7F\u3048\u307E\u305B\u3093"));
|
|
12090
|
+
const asked = url.searchParams.get("path") ?? "";
|
|
12091
|
+
const found = resolveAttachedFile(file, asked);
|
|
12092
|
+
if (!found) throw new HttpError(404, t("\u30D5\u30A1\u30A4\u30EB\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093: {path}", { path: asked }));
|
|
12093
|
+
const real = realpathSync3(found);
|
|
12094
|
+
const inside2 = attachedFileBases(file).some((base2) => {
|
|
12095
|
+
const rel = relative(realpathSync3(base2), real);
|
|
12096
|
+
return rel !== "" && !rel.startsWith("..") && !isAbsolute2(rel);
|
|
12097
|
+
});
|
|
12098
|
+
if (!inside2) throw new HttpError(403, t("\u8A08\u753B\u306E\u30D5\u30A9\u30EB\u30C0\u306E\u5916\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u8868\u793A\u3067\u304D\u307E\u305B\u3093: {path}", { path: asked }));
|
|
12099
|
+
if (statSync6(real).size > MAX_ATTACHED) throw new HttpError(413, t("\u30D5\u30A1\u30A4\u30EB\u304C\u5927\u304D\u3059\u304E\u3066\u8868\u793A\u3067\u304D\u307E\u305B\u3093: {path}", { path: asked }));
|
|
12100
|
+
const type = ATTACHED_MIME[extname(real).toLowerCase()] ?? "text/plain; charset=utf-8";
|
|
12101
|
+
send(200, req.method === "HEAD" ? "" : readFileSync10(real), type, type === "application/pdf" ? {} : { "content-security-policy": "sandbox; default-src 'none'; img-src 'self'; media-src 'self'; style-src 'unsafe-inline'" });
|
|
12102
|
+
return;
|
|
12103
|
+
}
|
|
11981
12104
|
if (url.pathname.startsWith("/api/assets/")) {
|
|
11982
|
-
const assetsDir =
|
|
12105
|
+
const assetsDir = join9(dirname7(file), ASSETS_DIR);
|
|
11983
12106
|
const name = decodeURIComponent(url.pathname.slice("/api/assets/".length)).replace(/^boxglow\.assets\//, "");
|
|
11984
12107
|
if (!/^[^/\\]+$/.test(name) || name.startsWith(".") || !ASSET_MIME[extname(name).toLowerCase()]) throw new HttpError(400, t("\u3053\u306E\u540D\u524D\u306E\u753B\u50CF\u306F\u6271\u3048\u307E\u305B\u3093: {name}", { name }));
|
|
11985
|
-
const target2 =
|
|
12108
|
+
const target2 = join9(assetsDir, name);
|
|
11986
12109
|
if (req.method === "GET" || req.method === "HEAD") {
|
|
11987
|
-
if (!
|
|
12110
|
+
if (!existsSync9(target2) || !statSync6(target2).isFile()) throw new HttpError(404, t("\u753B\u50CF\u304C\u3042\u308A\u307E\u305B\u3093: {name}", { name }));
|
|
11988
12111
|
send(200, req.method === "HEAD" ? "" : readFileSync10(target2), ASSET_MIME[extname(name).toLowerCase()], { "cache-control": "no-cache" });
|
|
11989
12112
|
return;
|
|
11990
12113
|
}
|
|
11991
12114
|
if (req.method === "PUT") {
|
|
11992
12115
|
const bytes = await readRawBody(req, MAX_ASSET);
|
|
11993
12116
|
mkdirSync7(assetsDir, { recursive: true });
|
|
11994
|
-
if (
|
|
12117
|
+
if (existsSync9(target2)) throw new HttpError(409, t("\u540C\u3058\u540D\u524D\u306E\u753B\u50CF\u304C\u3042\u308A\u307E\u3059: {name}", { name }));
|
|
11995
12118
|
writeFileSync5(target2, bytes);
|
|
11996
12119
|
send(200, JSON.stringify({ ok: true, path: `${ASSETS_DIR}/${name}` }));
|
|
11997
12120
|
return;
|
|
@@ -12000,13 +12123,13 @@ data: ${JSON.stringify(lastSync ?? syncHost.status(file))}
|
|
|
12000
12123
|
}
|
|
12001
12124
|
if (req.method !== "GET" && req.method !== "HEAD") throw new HttpError(405, t("\u3053\u306E\u30E1\u30BD\u30C3\u30C9\u306F\u4F7F\u3048\u307E\u305B\u3093"));
|
|
12002
12125
|
const base = realpathSync3(dist);
|
|
12003
|
-
const target =
|
|
12126
|
+
const target = resolve4(base, "." + decodeURIComponent(url.pathname));
|
|
12004
12127
|
const inside = (path2) => {
|
|
12005
12128
|
const rel = relative(base, path2);
|
|
12006
12129
|
return rel !== ".." && !rel.startsWith("../") && !rel.startsWith("..\\");
|
|
12007
12130
|
};
|
|
12008
12131
|
if (!inside(target)) throw new HttpError(403, t("\u3053\u306E\u30D1\u30B9\u306F\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093"));
|
|
12009
|
-
const path =
|
|
12132
|
+
const path = existsSync9(target) && statSync6(target).isFile() ? realpathSync3(target) : join9(base, "index.html");
|
|
12010
12133
|
if (!inside(path)) throw new HttpError(403, t("\u3053\u306E\u30D1\u30B9\u306F\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093"));
|
|
12011
12134
|
send(200, req.method === "HEAD" ? "" : readFileSync10(path), MIME[extname(path)] ?? "application/octet-stream");
|
|
12012
12135
|
} catch (e) {
|
|
@@ -12042,24 +12165,24 @@ data: ${JSON.stringify(lastSync ?? syncHost.status(file))}
|
|
|
12042
12165
|
}
|
|
12043
12166
|
|
|
12044
12167
|
// cli/plan-io.ts
|
|
12045
|
-
import { existsSync as
|
|
12046
|
-
import { dirname as
|
|
12168
|
+
import { existsSync as existsSync10, readFileSync as readFileSync11 } from "node:fs";
|
|
12169
|
+
import { dirname as dirname8, join as join10, resolve as resolve5 } from "node:path";
|
|
12047
12170
|
var filePlanIO = {
|
|
12048
12171
|
locate(opt2, forInit) {
|
|
12049
|
-
if (opt2) return
|
|
12050
|
-
if (process.env.BOXGLOW_FILE) return
|
|
12172
|
+
if (opt2) return resolve5(opt2);
|
|
12173
|
+
if (process.env.BOXGLOW_FILE) return resolve5(process.env.BOXGLOW_FILE);
|
|
12051
12174
|
let dir2 = process.cwd();
|
|
12052
12175
|
for (let i = 0; i < 12; i++) {
|
|
12053
|
-
const candidate =
|
|
12054
|
-
if (
|
|
12055
|
-
const parent =
|
|
12176
|
+
const candidate = join10(dir2, "boxglow.json");
|
|
12177
|
+
if (existsSync10(candidate)) return candidate;
|
|
12178
|
+
const parent = dirname8(dir2);
|
|
12056
12179
|
if (parent === dir2) break;
|
|
12057
12180
|
dir2 = parent;
|
|
12058
12181
|
}
|
|
12059
|
-
if (forInit) return
|
|
12182
|
+
if (forInit) return join10(process.cwd(), "boxglow.json");
|
|
12060
12183
|
throw new Error(t("boxglow.json \u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093 (--file \u3067\u6307\u5B9A\u3059\u308B\u304B\u3001`boxglow init` \u3067\u4F5C\u3063\u3066\u304F\u3060\u3055\u3044)"));
|
|
12061
12184
|
},
|
|
12062
|
-
exists: (path) =>
|
|
12185
|
+
exists: (path) => existsSync10(path),
|
|
12063
12186
|
read: (path) => readFileSync11(path, "utf8"),
|
|
12064
12187
|
commit: (path, text2, expected, opts) => commitFile(path, text2, expected, opts)
|
|
12065
12188
|
};
|
|
@@ -12136,7 +12259,16 @@ function agentContext(p, blockId) {
|
|
|
12136
12259
|
sentBack: sentBackTo(p, id).map((x) => ({ from: x.from.title, by: x.record.by, at: x.record.at, note: x.record.note })),
|
|
12137
12260
|
decisions: b.decisions.map((d) => ({ id: d.id, question: d.question, context: d.context, options: d.options, answer: d.answer, history: d.history })),
|
|
12138
12261
|
handoff: p.handoffs?.[id],
|
|
12139
|
-
ports: Object.values(p.ports).filter((port2) => port2.blockId === id).sort((a, b2) => a.id.localeCompare(b2.id)).map((port2) => ({
|
|
12262
|
+
ports: Object.values(p.ports).filter((port2) => port2.blockId === id).sort((a, b2) => a.id.localeCompare(b2.id)).map((port2) => ({
|
|
12263
|
+
id: port2.id,
|
|
12264
|
+
direction: port2.direction,
|
|
12265
|
+
name: port2.name,
|
|
12266
|
+
description: port2.description,
|
|
12267
|
+
required: port2.required,
|
|
12268
|
+
artifacts: port2.artifacts,
|
|
12269
|
+
...port2.acceptDraft ? { acceptDraft: true } : {},
|
|
12270
|
+
...port2.direction === "in" && hasDraftOnly(p, port2.id) ? { draftOnly: true } : {}
|
|
12271
|
+
}))
|
|
12140
12272
|
};
|
|
12141
12273
|
}),
|
|
12142
12274
|
bundledOutputs: [...bundledOutputs.entries()].sort(([a], [b]) => a.localeCompare(b)).map(([, v]) => v),
|
|
@@ -12205,6 +12337,8 @@ function briefContext(p, blockId) {
|
|
|
12205
12337
|
artifacts: port2.artifacts,
|
|
12206
12338
|
sources,
|
|
12207
12339
|
ready,
|
|
12340
|
+
...hasDraftOnly(p, port2.id) ? { draftOnly: true } : {},
|
|
12341
|
+
...port2.acceptDraft ? { acceptDraft: true } : {},
|
|
12208
12342
|
missing: !!port2.required && !ready && !skippedPath,
|
|
12209
12343
|
...skippedPath ? { skippedPath: true } : {}
|
|
12210
12344
|
};
|
|
@@ -12311,12 +12445,12 @@ function isCurrentToken(p, token) {
|
|
|
12311
12445
|
}
|
|
12312
12446
|
|
|
12313
12447
|
// cli/setup-agent.ts
|
|
12314
|
-
import { existsSync as
|
|
12315
|
-
import { dirname as
|
|
12448
|
+
import { existsSync as existsSync11, mkdirSync as mkdirSync8, readFileSync as readFileSync12, writeFileSync as writeFileSync6 } from "node:fs";
|
|
12449
|
+
import { dirname as dirname9, join as join11 } from "node:path";
|
|
12316
12450
|
var BEGIN = "<!-- boxglow:begin -->";
|
|
12317
12451
|
var END = "<!-- boxglow:end -->";
|
|
12318
12452
|
function readObject(path) {
|
|
12319
|
-
if (!
|
|
12453
|
+
if (!existsSync11(path)) return {};
|
|
12320
12454
|
const value = JSON.parse(readFileSync12(path, "utf8"));
|
|
12321
12455
|
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error(t("\u8A2D\u5B9A\u306E\u5F62\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093: {where}", { where: path }));
|
|
12322
12456
|
return value;
|
|
@@ -12399,8 +12533,8 @@ ${body}
|
|
|
12399
12533
|
${identity}
|
|
12400
12534
|
${END}
|
|
12401
12535
|
`;
|
|
12402
|
-
const path =
|
|
12403
|
-
const cur =
|
|
12536
|
+
const path = join11(root, name);
|
|
12537
|
+
const cur = existsSync11(path) ? readFileSync12(path, "utf8") : "";
|
|
12404
12538
|
const begin = cur.indexOf(BEGIN);
|
|
12405
12539
|
const end = cur.indexOf(END);
|
|
12406
12540
|
if (begin < 0 !== end < 0 || begin >= 0 && end < begin) throw new Error(t("Boxglow \u306E\u5370 (boxglow:begin / boxglow:end) \u304C\u6B63\u3057\u304F\u5BFE\u306B\u306A\u3063\u3066\u3044\u307E\u305B\u3093: {path}", { path }));
|
|
@@ -12420,8 +12554,8 @@ dependencies:
|
|
|
12420
12554
|
value: boxglow
|
|
12421
12555
|
transport: stdio
|
|
12422
12556
|
`);
|
|
12423
|
-
const tomlPath =
|
|
12424
|
-
const toml =
|
|
12557
|
+
const tomlPath = join11(root, ".codex/config.toml");
|
|
12558
|
+
const toml = existsSync11(tomlPath) ? readFileSync12(tomlPath, "utf8") : "";
|
|
12425
12559
|
let parsed;
|
|
12426
12560
|
try {
|
|
12427
12561
|
parsed = parse(toml);
|
|
@@ -12443,7 +12577,7 @@ default_tools_approval_mode = "auto"
|
|
|
12443
12577
|
}
|
|
12444
12578
|
files.set(".codex/config.toml", candidate);
|
|
12445
12579
|
}
|
|
12446
|
-
const hooksFile = readObject(
|
|
12580
|
+
const hooksFile = readObject(join11(root, ".codex/hooks.json"));
|
|
12447
12581
|
const hooks = object(hooksFile.hooks, "hooks");
|
|
12448
12582
|
if (mergeHooks(hooks, "codex")) {
|
|
12449
12583
|
hooksFile.hooks = hooks;
|
|
@@ -12459,7 +12593,7 @@ ${r.body.replace(/"""/g, '\\"\\"\\"')}
|
|
|
12459
12593
|
}
|
|
12460
12594
|
if (claude) {
|
|
12461
12595
|
files.set(".claude/skills/boxglow/SKILL.md", skill);
|
|
12462
|
-
const settings = readObject(
|
|
12596
|
+
const settings = readObject(join11(root, ".claude/settings.json"));
|
|
12463
12597
|
const hooks = object(settings.hooks, "hooks");
|
|
12464
12598
|
let changed2 = mergeHooks(hooks, "claude-code");
|
|
12465
12599
|
if (changed2) settings.hooks = hooks;
|
|
@@ -12488,7 +12622,7 @@ tools: Bash, Read
|
|
|
12488
12622
|
|
|
12489
12623
|
${r.body}
|
|
12490
12624
|
`);
|
|
12491
|
-
const mcp = readObject(
|
|
12625
|
+
const mcp = readObject(join11(root, ".mcp.json"));
|
|
12492
12626
|
const servers = object(mcp.mcpServers, "mcpServers");
|
|
12493
12627
|
if (!servers.boxglow) {
|
|
12494
12628
|
servers.boxglow = { command: "npx", args: ["-y", "boxglow", "mcp", "--actor", "claude-code"] };
|
|
@@ -12498,9 +12632,9 @@ ${r.body}
|
|
|
12498
12632
|
}
|
|
12499
12633
|
const changed = [];
|
|
12500
12634
|
for (const [name, text2] of files) {
|
|
12501
|
-
const path =
|
|
12502
|
-
if (
|
|
12503
|
-
mkdirSync8(
|
|
12635
|
+
const path = join11(root, name);
|
|
12636
|
+
if (existsSync11(path) && readFileSync12(path, "utf8") === text2) continue;
|
|
12637
|
+
mkdirSync8(dirname9(path), { recursive: true });
|
|
12504
12638
|
writeFileSync6(path, text2, "utf8");
|
|
12505
12639
|
changed.push(name);
|
|
12506
12640
|
}
|
|
@@ -12511,8 +12645,8 @@ function checkAgentSetup(root, agent) {
|
|
|
12511
12645
|
const claude = agent !== "codex";
|
|
12512
12646
|
const lines = [];
|
|
12513
12647
|
const has = (rel, test) => {
|
|
12514
|
-
const p =
|
|
12515
|
-
if (!
|
|
12648
|
+
const p = join11(root, rel);
|
|
12649
|
+
if (!existsSync11(p)) return false;
|
|
12516
12650
|
return test ? test(readFileSync12(p, "utf8")) : true;
|
|
12517
12651
|
};
|
|
12518
12652
|
const hooksOk = (rel, actor) => has(rel, (text2) => {
|
|
@@ -12730,16 +12864,16 @@ function resumeReport(project, options = {}) {
|
|
|
12730
12864
|
}
|
|
12731
12865
|
|
|
12732
12866
|
// cli/hooks.ts
|
|
12733
|
-
import { appendFileSync, existsSync as
|
|
12734
|
-
import { join as
|
|
12867
|
+
import { appendFileSync, existsSync as existsSync12, mkdirSync as mkdirSync9, readFileSync as readFileSync13, writeFileSync as writeFileSync7 } from "node:fs";
|
|
12868
|
+
import { join as join12 } from "node:path";
|
|
12735
12869
|
import { createHash as createHash4 } from "node:crypto";
|
|
12736
12870
|
var sessionMark = (id) => id ? createHash4("sha256").update(id).digest("hex").slice(0, 8) : "";
|
|
12737
|
-
var hookLogPath = () =>
|
|
12871
|
+
var hookLogPath = () => join12(configDir(), "hooks.log");
|
|
12738
12872
|
function recordHook(entry) {
|
|
12739
12873
|
try {
|
|
12740
12874
|
const path = hookLogPath();
|
|
12741
12875
|
mkdirSync9(configDir(), { recursive: true });
|
|
12742
|
-
const lines =
|
|
12876
|
+
const lines = existsSync12(path) ? readFileSync13(path, "utf8").split("\n").filter(Boolean) : [];
|
|
12743
12877
|
lines.push(JSON.stringify(entry));
|
|
12744
12878
|
writeFileSync7(path, lines.slice(-200).join("\n") + "\n");
|
|
12745
12879
|
} catch {
|
|
@@ -12748,7 +12882,7 @@ function recordHook(entry) {
|
|
|
12748
12882
|
function readHookLog(cwd) {
|
|
12749
12883
|
try {
|
|
12750
12884
|
const path = hookLogPath();
|
|
12751
|
-
if (!
|
|
12885
|
+
if (!existsSync12(path)) return [];
|
|
12752
12886
|
const all = readFileSync13(path, "utf8").split("\n").filter(Boolean).map((l) => {
|
|
12753
12887
|
try {
|
|
12754
12888
|
return JSON.parse(l);
|
|
@@ -13413,20 +13547,20 @@ function reviewable(p, blockId) {
|
|
|
13413
13547
|
}
|
|
13414
13548
|
|
|
13415
13549
|
// cli/main.ts
|
|
13416
|
-
import { existsSync as
|
|
13550
|
+
import { existsSync as existsSync14, readFileSync as readFileSync14, writeFileSync as writeFileSync8 } from "node:fs";
|
|
13417
13551
|
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
13418
13552
|
|
|
13419
13553
|
// docs/AGENTS_SNIPPET.md
|
|
13420
|
-
var AGENTS_SNIPPET_default = '# Boxglow \u3092\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u4F7F\u308F\u305B\u308B\u6307\u793A\u66F8 (AGENTS.md / CLAUDE.md \u306B\u8CBC\u308B)\n\n\u4E0B\u306E\u300C---\u300D\u306E\u9593\u3092\u305D\u306E\u307E\u307E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E AGENTS.md (Codex) \u3084 CLAUDE.md (Claude Code) \u306B\u8CBC\u308B\u3002\nboxglow.json \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u76F4\u4E0B\u306B\u7F6E\u304F (`npx boxglow init --name "<\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D>"`)\u3002\n\n---\n\n## Boxglow (\u8A08\u753B\u3068\u9032\u6357\u306E\u5171\u6709)\n\n\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u8A08\u753B\u3068\u9032\u6357\u306F `boxglow.json` \u304C\u6B63\u672C\u3002\u4EBA\u9593\u306F Boxglow \u306E\u753B\u9762\u3067\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u898B\u3066\u3044\u308B\u3002\n\u30D5\u30A1\u30A4\u30EB\u3092\u76F4\u63A5\u7DE8\u96C6\u305B\u305A\u3001\u5FC5\u305A `npx boxglow` \u30B3\u30DE\u30F3\u30C9\u3067\u66F4\u65B0\u3059\u308B\u3053\u3068 (\u7D50\u7DDA\u30EB\u30FC\u30EB\u3068\u5C65\u6B74\u304C\u4FDD\u305F\u308C\u308B)\u3002\n\n\u30D6\u30ED\u30C3\u30AF = \u300C\u5165\u529B\u304B\u3089\u51FA\u529B (\u6210\u679C\u7269) \u3092\u4F5C\u308B\u30BF\u30B9\u30AF\u300D\u3002\u51FA\u529B\u306E\u6210\u679C\u7269\u304C\u78BA\u5B9A\u3057\u305F\u3089\u5B8C\u4E86 (WhiteBox)\u3002\n\u72B6\u614B: BlackBox (\u51FA\u529B\u3060\u3051\u6C7A\u3081\u305F) \u2192 GrayBox (\u7740\u624B\u4E2D) \u2192 WhiteBox (\u5B8C\u4E86)\u3002\n\n### \u4F5C\u696D\u306E\u305F\u3073\u306B\u5B88\u308B\u3053\u3068\n\n1. **\u6700\u521D\u306B\u8AAD\u3080**: `npx boxglow resume` (\u307E\u305F\u306F `npx boxglow status --brief`) \u3067\u3001\u4F5C\u696D\u4E2D\u30FB\u5224\u65AD\u5F85\u3061\u30FBAI \u672A\u78BA\u8A8D\u306E\u56DE\u7B54\u30FB\u6B21\u306E\u5019\u88DC\u30FB\u672A\u5B8C\u4E86\u306E\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u8AAD\u3080\u3002\u524D\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u7D9A\u304D\u306F\u3001\u3053\u3053\u306B\u51FA\u308B\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u304B\u3089\u518D\u958B\u3059\u308B\u3002`npx boxglow show <block>` \u3067\u62C5\u5F53\u3059\u308B\u30DC\u30C3\u30AF\u30B9\u306E\u5165\u51FA\u529B\u3092\u78BA\u8A8D\u3059\u308B\n2. **\u6E96\u5099\u3092\u78BA\u8A8D**: \u53D6\u308A\u304B\u304B\u308B\u524D\u306B `npx boxglow context <block>` \u3092\u8AAD\u3080\u3002\u51FA\u529B\u306E `readiness` \u304C\u6E96\u5099\u306E\u72B6\u614B: `state` \u304C `ready` \u306A\u3089\u7740\u624B\u3067\u304D\u308B\u3002`unprepared` (\u8981\u5177\u4F53\u5316) \u306A\u3089 `unprepared` \u306E\u7406\u7531\u3068 `next` \u306E\u6B21\u306E\u4E00\u624B\u306B\u5F93\u3063\u3066\u5148\u306B\u5177\u4F53\u5316\u3059\u308B\u3002`waiting` \u306F\u5FC5\u9808\u306E\u5165\u529B\u304B\u5206\u5C90\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u308B\n3. **\u53D7\u3051\u6301\u3061\u3001\u5177\u4F53\u5316**: \u5177\u4F53\u5316\u3084\u5206\u89E3\u306E\u524D\u306B `npx boxglow claim <block>` \u3067\u53D7\u3051\u6301\u3061\u3060\u3051\u3092\u53D6\u308B (\u5B9F\u884C\u4E2D\u306B\u306F\u306A\u3089\u306A\u3044\u3002\u53D7\u3051\u6301\u3061\u5236\u5FA1\u304C\u7121\u52B9\u306A\u8A08\u753B\u3067\u306F\u300C\u53D6\u5F97\u4E0D\u8981\u300D\u3067\u6B63\u5E38\u7D42\u4E86\u3059\u308B)\u3002\u305D\u306E\u3046\u3048\u3067\u4E0D\u8DB3\u3092\u57CB\u3081\u308B:\n - \u51FA\u529B\u306E\u4E88\u5B9A\u6210\u679C\u7269: `npx boxglow port <block> --expect "<\u51FA\u529B\u540D>=file:src/x.ts"` (kind \u306F file / dir / url / doc / note / decision / result\u3002hint \u306F\u30D1\u30B9\u306E\u898B\u5F53\u3084\u984C\u540D\u3002\u307E\u3060\u4F5C\u3063\u3066\u3044\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u3067\u3088\u3044)\n - \u5B8C\u4E86\u6761\u4EF6: `npx boxglow scope <block> --acceptance "<\u5B8C\u4E86\u3068\u5224\u65AD\u3059\u308B\u6761\u4EF6>"`\u3002\u51E6\u7406\u306E\u7BC4\u56F2\u306F `--goal`\u3002\u51FA\u529B\u3092\u4F5C\u308B\u3046\u3048\u3067\u5B88\u308B\u6761\u4EF6 (\u6027\u80FD\u30FB\u54C1\u8CEA\u30FB\u30B5\u30A4\u30BA\u30FB\u5BF8\u6CD5\u30FB\u6D88\u8CBB\u96FB\u529B\u306A\u3069) \u306F `--constraints`\n - 1 \u3064\u306E\u30DC\u30C3\u30AF\u30B9\u3067\u51FA\u529B\u3092\u4F5C\u308B\u898B\u901A\u3057\u304C\u7ACB\u305F\u306A\u3044\u306A\u3089 `npx boxglow split <block> --spec \'<JSON>\'` \u3067\u4E2D\u306B\u5C0F\u3055\u306A\u30DC\u30C3\u30AF\u30B9\u3092\u7F6E\u304F\u3002\u4ECA\u56DE\u7740\u624B\u3059\u308B\u5B50\u3060\u3051 expect / acceptance \u3092\u66F8\u304D\u3001\u5148\u306E\u5B50\u306F\u984C\u540D\u3068\u51FA\u529B\u3060\u3051\u3067\u3088\u3044 (\u8981\u5177\u4F53\u5316\u3068\u3057\u3066\u6B8B\u308B)\u3002\u5165\u529B\u306F\u4E0D\u660E\u306A\u3089\u7701\u7565\u3057\u3066\u3088\u3044 (\u81EA\u52D5\u3067\u4E0A\u306E\u968E\u5C64\u306E\u5165\u529B\u306B\u306A\u308B)\n - \u5BFE\u8C61\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u5206\u304B\u3089\u306A\u3044\u3068\u304D\u306F\u3001\u67B6\u7A7A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u66F8\u304B\u305A\u300C\u5BFE\u8C61\u3092\u7279\u5B9A\u3059\u308B\u8ABF\u67FB\u300D\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u51FA\u529B `note` \u3067\u4F5C\u3063\u3066\u59CB\u3081\u308B\n4. **\u7740\u624B\u3092\u8A18\u9332**: \u6E96\u5099\u304C\u3067\u304D\u305F\u3089 `npx boxglow context <block>` \u3092\u8AAD\u307F\u76F4\u3057\u3066\u304B\u3089 `npx boxglow start <block> --note "<\u4F55\u3092\u3059\u308B\u304B>"`\u3002\u540C\u6642\u306B\u9032\u3081\u308B\u30DC\u30C3\u30AF\u30B9\u306F 1\u301C2 \u500B\u307E\u3067\u3002\n start \u3057\u305F\u30DC\u30C3\u30AF\u30B9\u306B\u300C\u4ECA\u3053\u3053\u300D(\u672C\u5F53\u306B\u3044\u307E\u4F5C\u696D\u3057\u3066\u3044\u308B\u30DC\u30C3\u30AF\u30B9\u3002\u8907\u6570\u306E AI \u3084\u4EBA\u304C\u3044\u308C\u3070\u3001\u3044\u304F\u3064\u3067\u3082) \u304C\u4ED8\u304D\u3001\u753B\u9762\u3067\u592A\u3044\u67A0\u3068 NOW \u306E\u672D\u304C\u4ED8\u304F\u3002\u5225\u306E\u30DC\u30C3\u30AF\u30B9\u306B\u3082\u4ED8\u3051\u308B\u3068\u304D\u306F `npx boxglow now <block>` (\u5916\u3059\u3068\u304D\u306F `--off`\u3001\u5168\u90E8\u6D88\u3059\u3068\u304D\u306F `now none`)\u3002done / leave \u3067\u305D\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u5206\u304C\u5916\u308C\u308B\u3002\u4EBA\u3082\u753B\u9762\u306E\u72B6\u614B\u30BF\u30D6\u306E NOW \u3067\u4ED8\u3051\u5916\u3057\u3059\u308B\n \u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306E\u8981\u6C42 (guard) \u304C\u6709\u52B9\u306A\u8A08\u753B\u3067\u306F\u3001\u51FA\u529B\u306E `contextToken` (\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3) \u3092\u4ED8\u3051\u308B:\n `npx boxglow start <block> --note "<\u4F55\u3092\u3059\u308B\u304B>" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` (\u4E0B\u306E\u300C\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3068\u5F15\u304D\u7D99\u304E\u300D\u3092\u53C2\u7167)\n \u8981\u5177\u4F53\u5316\u306E\u30DC\u30C3\u30AF\u30B9\u3078\u306E start \u306F\u65E2\u5B9A\u3067\u306F\u8B66\u544A (\u7406\u7531\u3068\u6B21\u306E\u4E00\u624B\u304C\u51FA\u308B)\u3002`policy --unprepared reject` \u306E\u8A08\u753B\u3067\u306F\u958B\u59CB\u3067\u304D\u306A\u3044 (`--reason` \u3067\u306F\u901A\u308C\u306A\u3044\u3002\u4EBA\u306E\u64CD\u4F5C\u306F\u901A\u308B)\u3002\u51FA\u529B\u3092\u5B50\u306B\u4EFB\u305B\u304D\u308A\u306E\u89AA\u3082\u5B9F\u884C\u3059\u308B\u3082\u306E\u304C\u7121\u3044\u306E\u3067\u3001\u5B50\u3092 start \u3059\u308B\n5. **\u5B8C\u4E86\u3092\u8A18\u9332**: \u51FA\u529B\u306E\u6210\u679C\u7269\u304C\u3067\u304D\u305F\u3089 `npx boxglow done <block> --artifact "<\u540D\u524D>=<\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D1\u30B9>" --checked "<\u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C>"`\u3002\u691C\u67FB\u7D50\u679C\u306F\u6C7A\u307E\u3063\u305F 3 \u3064\u3067\u6B8B\u3059: `--checked` (\u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C\u3002\u4F8B: "vitest 53 \u4EF6\u6210\u529F; e2e home 34/34")\u3001`--not-checked` (\u8A66\u3057\u3066\u3044\u306A\u3044\u3053\u3068)\u3001`--limits` (\u6B8B\u308B\u5236\u9650\u30FB\u6CE8\u610F)\u3002\u30B3\u30FC\u30C9\u4EE5\u5916\u306E\u6210\u679C\u7269 (\u6587\u66F8\u306A\u3069) \u306F\u300C\u78BA\u8A8D\u3057\u305F\u3053\u3068\u300D\u3092 `--checked` \u306B\u66F8\u304F\u3002\u7BB1\u306B\u6B8B\u308A\u3001context \u3068 show \u306B\u51FA\u308B\u3002\n guard \u304C\u6709\u52B9\u306A\u3089 `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u3092\u4ED8\u3051\u308B (\u76F4\u524D\u306E\u81EA\u5206\u306E\u64CD\u4F5C\u306E\u51FA\u529B\u306B\u300C\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\u300D\u304C\u51FA\u3066\u3044\u308C\u3070\u3001\u305D\u308C\u3092\u4F7F\u3046)\u3002\n HEAD \u306B\u30B3\u30DF\u30C3\u30C8\u6E08\u307F\u3067\u5185\u5BB9\u304C\u4E00\u81F4\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u300C\u30B3\u30DF\u30C3\u30C8 + \u30D1\u30B9 + \u4E2D\u8EAB\u306E\u30CF\u30C3\u30B7\u30E5\u300D\u3067\u8A18\u9332\u3055\u308C\u308B (\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306F\u3057\u306A\u3044)\u3002\u672A\u30B3\u30DF\u30C3\u30C8\u30FB\u672A\u8FFD\u8DE1\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30ED\u30FC\u30AB\u30EB\u53C2\u7167\u3068\u3057\u3066\u6B8B\u308A\u3001\u30B3\u30DF\u30C3\u30C8\u3057\u305F\u5F8C\u306E `npx boxglow check` \u3067 Git \u306E\u53C2\u7167\u306B\u88DC\u5B8C\u3055\u308C\u308B\u3002\u8A18\u9332\u306E\u305F\u3081\u3060\u3051\u306B\u30B3\u30DF\u30C3\u30C8\u3057\u306A\u3044\u3002\u5168\u968E\u5C64\u304C\u5FC5\u8981\u306A\u3089 `npx boxglow status` \u3092\u8AAD\u3080\u3002PR \u3084\u5916\u90E8\u8CC7\u6599\u306F URL \u3067\u3082\u3088\u3044\u3002\n \u6210\u679C\u7269\u3060\u3051\u5148\u306B\u4ED8\u3051\u308B\u306A\u3089 `npx boxglow artifact <block> <\u30D1\u30B9>`\u3002\u9032\u6357\u306E\u9014\u4E2D\u7D4C\u904E\u306F `npx boxglow set <block> --progress 60`\n6. **\u4EBA\u9593\u306E\u5224\u65AD\u304C\u8981\u308B**: `npx boxglow ask <block> "<\u8CEA\u554F>" --options "A|B"`\u3002\u56DE\u7B54\u304C\u3042\u308B\u307E\u3067\u305D\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u9032\u3081\u305A\u3001\u4ED6\u306E\u30DC\u30C3\u30AF\u30B9\u3078\u79FB\u308B\u3002\u4EBA\u306E\u56DE\u7B54\u306F `status` \u306E\u300C\u56DE\u7B54\u3042\u308A\u300D\u306B\u51FA\u308B\u3002\u8AAD\u3093\u3060\u3089 `npx boxglow ack <block>` \u3067\u5F15\u304D\u53D6\u308B (\u305D\u306E\u30DC\u30C3\u30AF\u30B9\u306E `start` / `done` / `set` \u306A\u3069\u3067\u3082\u81EA\u52D5\u3067\u5F15\u304D\u53D6\u3089\u308C\u308B)\u3002\u5F15\u304D\u53D6\u308B\u307E\u3067\u4EBA\u306E\u753B\u9762\u306B\u306F\u300CAI \u672A\u78BA\u8A8D\u300D\u3068\u3057\u3066\u6B8B\u308A\u3001\u4EBA\u304C\u7B54\u3048\u3092\u76F4\u305B\u308B\u3002\u56DE\u7B54\u306E\u4E2D\u306B\u554F\u3044\u8FD4\u3057\u304C\u3042\u308C\u3070\u3001`ask` \u3068 `answer --by <\u81EA\u5206>` \u3067\u81EA\u5206\u306E\u7B54\u3048\u3082\u8A18\u9332\u3059\u308B\n7. **\u8A70\u307E\u3063\u305F\u3089**: \u5165\u529B (\u524D\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u6210\u679C\u7269\u30FB\u8CC7\u6599) \u304C\u8DB3\u308A\u306A\u3044\u3053\u3068\u304C\u539F\u56E0\u306A\u3089\u3001\u8A70\u307E\u308A\u306B\u3057\u306A\u3044\u3002`npx boxglow show <block>` \u3067\u5165\u529B\u306E\u914D\u7DDA\u3092\u78BA\u304B\u3081\u3001\u8DB3\u308A\u306A\u3044\u3082\u306E\u3092\u4F5C\u308B\u30DC\u30C3\u30AF\u30B9\u304C\u7121\u3051\u308C\u3070 `npx boxglow add` \u3067\u5916 (\u4E0A\u6D41) \u306B\u4F5C\u308A\u3001`npx boxglow connect` \u3067\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u5165\u529B\u306B\u3064\u306A\u3050 (\u914D\u7DDA\u304C\u300C\u5F85\u3061\u300D\u306E\u8272\u3067\u6B8B\u308A\u3001\u4F55\u3092\u5F85\u3063\u3066\u3044\u308B\u304B\u304C\u56F3\u3067\u898B\u3048\u308B)\u3002\u9078\u629E\u80A2\u304B\u3089\u9078\u3093\u3067\u3082\u3089\u3048\u3070\u9032\u3081\u308B\u306A\u3089 `ask`\u3002\u305D\u308C\u4EE5\u5916\u306E\u3001\u8A08\u753B\u306E\u5916\u306B\u3042\u308B\u969C\u5BB3 (\u74B0\u5883\u304C\u52D5\u304B\u306A\u3044\u3001\u6A29\u9650\u3084\u30AD\u30FC\u304C\u7121\u3044\u3001\u5916\u90E8\u306E\u8FD4\u4E8B\u5F85\u3061\u3001\u539F\u56E0\u306E\u5206\u304B\u3089\u306A\u3044\u5931\u6557) \u3060\u3051\u3092 `npx boxglow blocked <block> --note "<\u56F0\u3063\u3066\u3044\u308B\u3053\u3068>"` \u3067\u8A18\u9332\u3059\u308B \u8A55\u4FA1\u3084\u691C\u67FB\u3067\u524D\u306E\u6210\u679C\u7269\u304C\u901A\u3089\u306A\u304B\u3063\u305F\u3068\u304D\u306F\u3001\u7DDA\u3067\u623B\u3055\u305A (\u5FAA\u74B0\u306B\u306A\u308B) `npx boxglow sendback <\u8A55\u4FA1\u306E\u7BB1> --to <\u4F5C\u308A\u76F4\u3059\u7BB1> --note "<\u7406\u7531>"` \u3067\u5DEE\u3057\u623B\u3059 (\u305D\u306E\u7BB1\u306F In Progress \u306B\u623B\u308A\u3001\u6210\u679C\u7269\u306F\u5DEE\u3057\u623B\u3057\u6E08\u307F\u3068\u3057\u3066\u6B8B\u308B\u3002\u7406\u7531\u306F context \u306B\u51FA\u308B)\u3002\n8. **\u6210\u679C\u7269\u306E\u78BA\u8A8D**: \u30D5\u30A1\u30A4\u30EB\u3092\u79FB\u52D5\u30FB\u6539\u540D\u3057\u305F\u3089 `npx boxglow check` \u3092\u5B9F\u884C\u3059\u308B (\u79FB\u52D5\u3092\u691C\u51FA\u3057\u3066\u30D1\u30B9\u3092\u4ED8\u3051\u66FF\u3048\u308B\u3002\u898B\u3064\u304B\u3089\u306A\u3051\u308C\u3070\u5370\u304C\u4ED8\u304F)\n9. **\u9032\u6357\u3084\u6C17\u3065\u304D\u3092\u6B8B\u3059**: `npx boxglow log <block> "<\u672C\u6587>"` \u3067\u3001\u65E5\u4ED8\u3068\u66F8\u304D\u624B\u3064\u304D\u306E\u4F5C\u696D\u8A18\u9332\u3092\u30DC\u30C3\u30AF\u30B9\u306B\u8DB3\u3059 (Markdown \u53EF\u3002\u4EBA\u306F\u753B\u9762\u306E\u300C\u8A18\u9332\u300D\u30BF\u30D6\u3067\u540C\u3058\u3082\u306E\u3092\u898B\u3066\u66F8\u304F)\u3002\u5F15\u304D\u7D99\u304E\u30E1\u30E2 (checkpoint) \u306F 1 \u3064\u3092\u4E0A\u66F8\u304D\u3059\u308B\u304C\u3001\u8A18\u9332\u306F\u7A4D\u307F\u4E0A\u304C\u308B\n10. **\u4E2D\u65AD\u30FB\u5F15\u304D\u7D99\u304E\u306E\u524D\u306B**: \u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u7D42\u308F\u308A\u30FB\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306E\u5727\u7E2E\u30FB\u4ED6\u306E AI \u3084\u4EBA\u3078\u306E\u5F15\u304D\u7D99\u304E\u306E\u524D\u306B\u3001`npx boxglow checkpoint <block> --note "\u5206\u304B\u3063\u305F\u3053\u3068; \u6B21\u306B\u3059\u308B\u3053\u3068; \u672A\u89E3\u6C7A\u306E\u3053\u3068"` \u3067\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u6B8B\u3059 (guard \u304C\u6709\u52B9\u306A\u3089 `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u3092\u4ED8\u3051\u308B)\u3002\u4F1A\u8A71\u306E\u5C65\u6B74\u304C\u6D88\u3048\u3066\u3082\u8A08\u753B\u306E\u4E2D\u306B\u6B8B\u308A\u3001\u6B21\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u304C `resume` \u3068 `context` \u3067\u8AAD\u3080\n11. **\u5831\u544A**: \u4F5C\u696D\u306E\u6700\u5F8C\u306B `npx boxglow status --brief` \u306E\u5185\u5BB9\u3092\u8981\u7D04\u3057\u3066\u5831\u544A\u3059\u308B\n\n### \u69CB\u9020\u306E\u7D04\u675F\n\n- **\u307E\u3060\u6C7A\u307E\u3063\u3066\u3044\u306A\u3044\u5206\u304B\u308C\u9053\u306F\u5206\u5C90\u3067\u8868\u3059**: \u8A08\u753B\u3092\u4F5C\u308B\u6642\u70B9\u3067\u3001\u5224\u65AD\u6B21\u7B2C\u3067\u5F8C\u306E\u4F5C\u696D (\u9053) \u304C\u5909\u308F\u308B\u3068\u304D\u306F `npx boxglow branch "<\u984C\u540D>" --options "A|B" --question "<\u554F\u3044>" --context "<\u5224\u65AD\u6750\u6599>"` \u3067\u5206\u5C90\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u4F5C\u308B\u3002\u9078\u629E\u80A2\u3054\u3068\u306B\u9053 (\u51FA\u529B) \u304C\u3067\u304D\u308B\u306E\u3067\u3001\u305D\u308C\u305E\u308C\u306E\u9053\u306E\u6700\u521D\u306E\u30DC\u30C3\u30AF\u30B9\u3078 `connect` \u3059\u308B\u3002\u9053\u304C\u5F8C\u3067 1 \u3064\u306B\u307E\u3068\u307E\u308B\u3068\u3053\u308D\u306B\u306F `npx boxglow join --title "<\u984C\u540D>"` \u3067\u5408\u6D41\u306E\u90E8\u54C1\u3092\u7F6E\u304D\u3001\u305D\u308C\u305E\u308C\u306E\u9053\u306E\u6700\u5F8C\u306E\u51FA\u529B\u3092\u3053\u306E\u90E8\u54C1\u3078 `connect` \u3057\u3001\u90E8\u54C1\u306E\u51FA\u529B\u3092\u5148\u306E\u7BB1\u3078\u3064\u306A\u3050 (\u3069\u308C\u304B 1 \u3064\u306E\u9053\u304C\u5C4A\u3051\u3070\u5148\u3078\u9032\u3080)\u3002\u4EBA\u304C\u7B54\u3048\u308B\u3068\u3001\u9078\u3070\u306A\u304B\u3063\u305F\u9053\u306E\u5148\u306F\u300C\u898B\u9001\u308A\u300D\u306B\u306A\u308A\u3001\u9032\u6357\u3068\u6B21\u306E\u5019\u88DC\u304B\u3089\u5916\u308C\u308B\u3002\u3059\u3067\u306B\u4F5C\u3063\u305F\u30DC\u30C3\u30AF\u30B9\u304C\u5B9F\u306F\u6C7A\u307E\u3063\u3066\u3044\u306A\u3044\u5206\u304B\u308C\u9053\u3060\u3068\u5206\u304B\u3063\u305F\u3089\u3001`npx boxglow branch --box <block> --options "A|B" --question "<\u554F\u3044>"` \u3067\u5206\u5C90\u306B\u5909\u3048\u308B (\u4ECA\u306E\u51FA\u529B\u304C 1 \u3064\u76EE\u306E\u9078\u629E\u80A2\u306E\u9053\u306B\u306A\u308A\u3001\u7DDA\u306F\u6B8B\u308B)\u3002\u7B54\u3048\u304C\u51FA\u308B\u524D\u306E\u9053\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u300C\u5206\u5C90\u5F85\u3061\u300D\u3067\u3001\u7740\u624B\u3059\u308B\u3068\u8B66\u544A\u3055\u308C\u308B (\u5148\u306B\u4E0B\u8ABF\u3079\u3059\u308B\u306A\u3069\u7406\u7531\u304C\u3042\u308C\u3070 `--reason` \u3067\u8A18\u9332\u3059\u308B)\n- \u6700\u4E0A\u4F4D\u306B\u306F\u300C\u5165\u529B\u30CE\u30FC\u30C9\u300D\u300C\u6700\u7D42\u6210\u679C\u7269\u30CE\u30FC\u30C9\u300D\u3068\u300C\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u300D\u3060\u3051\u304C\u3042\u308B\u3002\u30BF\u30B9\u30AF\u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u4E2D\u306B\u7F6E\u304F (`add` \u306E\u65E2\u5B9A\u306E\u89AA\u306F\u6700\u521D\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9)\n- \u968E\u5C64\u306E\u6DF1\u3055\u306B\u5236\u9650\u306F\u306A\u3044\u3002`split` \u306F\u4F55\u6BB5\u3067\u3082\u4F7F\u3048\u308B\n- \u5225\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3082\u4F7F\u3048\u305D\u3046\u306A\u30DC\u30C3\u30AF\u30B9 (\u4F8B: \u5165\u529B\u753B\u50CF\u306E\u30E2\u30CE\u30AF\u30ED\u5316) \u306F `npx boxglow export-block <block> --out <\u540D\u524D>.boxglow-block.json` \u3067\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306B\u3057\u3001\n `npx boxglow import-block <path> --parent <block>` \u3067\u633F\u5165\u3059\u308B\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306E `boxglow-blocks/` \u306B\u7F6E\u3044\u3066\u5171\u6709\u3057\u3066\u3088\u3044\n\n\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u304C\u591A\u3044\u3068\u304D\u306F `npx boxglow group "<\u30B0\u30EB\u30FC\u30D7\u540D>"` \u3067\u30B0\u30EB\u30FC\u30D7\u3092\u4F5C\u308A\u3001`npx boxglow group-set <\u5165\u529B\u540D> <\u30B0\u30EB\u30FC\u30D7\u540D>` \u3067\u5206\u3051\u308B (\u4F8B: PCIe \u4ED5\u69D8\u66F8 / DDR \u4ED5\u69D8\u66F8)\u3002\n\n### split \u306E JSON \u5F62\u5F0F\n\n```json\n{\n "blocks": [\n { "title": "\u5BFE\u8C61\u7B87\u6240\u3092\u7279\u5B9A\u3059\u308B", "inputs": ["\u518D\u73FE\u624B\u9806"], "outputs": ["\u8ABF\u67FB\u30E1\u30E2"],\n "expect": "note:\u5BFE\u8C61\u306E\u30D5\u30A1\u30A4\u30EB\u3068\u51E6\u7406\u3001\u6839\u62E0\u3001\u5909\u66F4\u5019\u88DC\u3001\u78BA\u8A8D\u65B9\u6CD5\u3001\u672A\u6C7A\u4E8B\u9805", "acceptance": "\u5909\u66F4\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u3068\u51E6\u7406\u304C\u6C7A\u307E\u308A\u3001\u5F8C\u7D9A\u306E\u30DC\u30C3\u30AF\u30B9\u306B expect \u3068 acceptance \u3092\u8A2D\u5B9A\u3067\u304D\u308B\u3002\u307E\u305F\u306F\u3001\u8A2D\u5B9A\u3067\u304D\u306A\u3044\u7406\u7531\u3068\u5FC5\u8981\u306A\u5224\u65AD\u304C\u5206\u304B\u308B",\n "goal": "\u518D\u73FE\u3057\u3066\u7D4C\u8DEF\u3092\u8FFD\u3046\u3002\u88FD\u54C1\u30B3\u30FC\u30C9\u306E\u4FEE\u6B63\u306F\u4ECA\u56DE\u306E\u7BC4\u56F2\u5916" },\n { "title": "\u4FDD\u5B58\u306E\u518D\u8A66\u884C\u5F8C\u306B\u540C\u671F\u72B6\u614B\u3092\u53D6\u308A\u76F4\u3059", "inputs": ["\u8ABF\u67FB\u30E1\u30E2"], "outputs": ["\u4FEE\u6B63"],\n "expect": "file:src/sync/state.ts", "acceptance": "\u4FDD\u5B58\u3092\u4E00\u5EA6\u5931\u6557\u3055\u305B\u3001\u518D\u4FDD\u5B58\u5F8C\u306B\u540C\u671F\u72B6\u614B\u3068\u64CD\u4F5C\u304C\u623B\u308B (\u30C6\u30B9\u30C8\u3067\u78BA\u8A8D)" },\n { "title": "\u30EA\u30EA\u30FC\u30B9\u30CE\u30FC\u30C8\u3092\u66F8\u304F", "inputs": ["\u4FEE\u6B63"], "outputs": ["\u30CE\u30FC\u30C8"] }\n ],\n "connections": [\n { "from": "parent.\u518D\u73FE\u624B\u9806", "to": "\u5BFE\u8C61\u7B87\u6240\u3092\u7279\u5B9A\u3059\u308B.\u518D\u73FE\u624B\u9806" },\n { "from": "\u5BFE\u8C61\u7B87\u6240\u3092\u7279\u5B9A\u3059\u308B.\u8ABF\u67FB\u30E1\u30E2", "to": "\u4FDD\u5B58\u306E\u518D\u8A66\u884C\u5F8C\u306B\u540C\u671F\u72B6\u614B\u3092\u53D6\u308A\u76F4\u3059" },\n { "from": "\u4FDD\u5B58\u306E\u518D\u8A66\u884C\u5F8C\u306B\u540C\u671F\u72B6\u614B\u3092\u53D6\u308A\u76F4\u3059.\u4FEE\u6B63", "to": "\u30EA\u30EA\u30FC\u30B9\u30CE\u30FC\u30C8\u3092\u66F8\u304F" },\n { "from": "\u30EA\u30EA\u30FC\u30B9\u30CE\u30FC\u30C8\u3092\u66F8\u304F.\u30CE\u30FC\u30C8", "to": "parent.\u51FA\u529B" }\n ]\n}\n```\n\n`expect` (\u4E88\u5B9A\u6210\u679C\u7269: `"kind:hint"` \u307E\u305F\u306F `{ "kind", "hint" }`)\u3001`acceptance` (\u5B8C\u4E86\u6761\u4EF6)\u3001`goal` (\u4ECA\u56DE\u884C\u3046\u51E6\u7406) \u306F\u4ECA\u56DE\u7740\u624B\u3059\u308B\u5B50\u3060\u3051\u306B\u66F8\u304F\u3002\n3 \u3064\u76EE\u306E\u5B50\u306E\u3088\u3046\u306B\u984C\u540D\u3068\u51FA\u529B\u3060\u3051\u306E\u5B50\u306F\u300C\u8981\u5177\u4F53\u5316\u300D\u3068\u3057\u3066\u6B8B\u308A\u3001\u7740\u624B\u3059\u308B\u756A\u306B\u306A\u3063\u3066\u304B\u3089 `port --expect` / `scope --acceptance` \u3067\u6C7A\u3081\u308B\u3002\n\u89AA\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B (\u5B50\u306E\u6210\u679C\u3092\u7D71\u5408\u3059\u308B\u306A\u3069) \u306F `"parentMakes": ["\u51FA\u529B\u540D"]` \u3067\u5370\u3092\u4ED8\u3051\u308B (\u5B50\u306E\u7D50\u7DDA\u3068\u91CD\u306A\u308B\u3068\u300C\u62C5\u5F53\u304C\u91CD\u8907\u300D\u3068\u6848\u5185\u3055\u308C\u308B)\u3002\n`"splitBy": "\u5DE5\u7A0B"` \u3067\u76F4\u4E0B\u306E\u5B50\u306E\u5206\u3051\u65B9\u3092\u4E00\u8A9E\u3067\u6B8B\u3059 (\u5DE5\u7A0B / \u6210\u679C\u7269 / \u6A5F\u80FD \u306A\u3069\u3002`set <block> --split-by` \u3067\u3082\u66F8\u3051\u308B)\u3002\u540C\u3058\u968E\u5C64\u306E\u5B50\u306F\u540C\u3058\u5206\u3051\u65B9\u30FB\u540C\u3058\u5177\u4F53\u5EA6\u306B\u305D\u308D\u3048\u308B\u3002\n`split` \u304C\u4FDD\u5B58\u3057\u306A\u3044\u306E\u306F\u58CA\u308C\u305F\u69CB\u9020 (\u7D50\u7DDA\u5148\u304C\u7121\u3044\u3001\u5FAA\u74B0\u3001\u5F62\u306E\u9055\u3046 expect) \u3060\u3051\u3002\u5B50\u304C 1 \u500B\u3001\u89AA\u306E\u51FA\u529B\u3092\u4F5C\u308B\u5B50\u304C\u307E\u3060\u7121\u3044\u3001\u3068\u3044\u3063\u305F\u9014\u4E2D\u306E\u5206\u89E3\u306F\u4FDD\u5B58\u3055\u308C\u3001\u4E0D\u8DB3\u3068\u3057\u3066\u8868\u793A\u3055\u308C\u308B\u3002\n\u5206\u89E3\u306E\u5F8C\u3068\u7740\u624B\u306E\u524D\u306B `npx boxglow lint <block>` \u3092\u8AAD\u3080\u3002\u300C\u5FC5\u305A\u76F4\u3059\u300D(\u89AA\u51FA\u529B\u306E\u62C5\u5F53\u306E\u672A\u5B9A\u30FB\u91CD\u8907\u3001\u540C\u3058\u5206\u5C90\u306E\u6392\u4ED6\u306E\u9053\u306E\u4E21\u65B9\u3092\u5FC5\u9808\u306B\u3057\u3066\u3044\u308B\u3001\u4F5C\u696D\u4E2D\u306A\u306E\u306B\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u5B8C\u4E86\u6761\u4EF6\u304C\u7121\u3044\u3001\u691C\u67FB\u306E\u5BFE\u8C61\u305D\u306E\u3082\u306E\u306E\u6B20\u843D) \u306F\u76F4\u3057\u3066\u304B\u3089\u9032\u3080\u3002\n\u300C\u7740\u624B\u306E\u524D\u306B\u57CB\u3081\u308B\u300D(\u307E\u3060\u59CB\u3081\u3066\u3044\u306A\u3044\u30DC\u30C3\u30AF\u30B9\u306E\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u5B8C\u4E86\u6761\u4EF6) \u306F\u3001\u305D\u306E\u5B50\u306E\u7740\u624B\u306E\u756A\u3067\u57CB\u3081\u308C\u3070\u3088\u3044 (\u5148\u306E\u4ED5\u4E8B\u306E\u5206\u3092\u4ECA\u3001\u5F62\u3060\u3051\u66F8\u304B\u306A\u3044)\u3002\n\u300C\u898B\u76F4\u3057\u5019\u88DC\u300D(\u5B50\u304C 1 \u500B\u3001\u3069\u3053\u306B\u3082\u3064\u306A\u304C\u3089\u306A\u3044\u51FA\u529B\u3001\u5F62\u3060\u3051\u306E\u8A18\u5165\u3001\u9053\u306E\u5148\u304C\u7121\u3044\u5206\u5C90\u3001\u5165\u529B 1 \u672C\u306E\u5408\u6D41\u3001\u5144\u5F1F\u306E\u540C\u3058\u4E88\u5B9A\u6210\u679C\u7269) \u306F\u5185\u5BB9\u3092\u898B\u3066\u5224\u65AD\u3059\u308B (\u6A5F\u68B0\u306F\u62D2\u5426\u3057\u306A\u3044)\u3002`context` \u306B\u3082\u4EF6\u6570\u3068\u4E0A\u4F4D 3 \u4EF6\u304C\u51FA\u308B\u3002\n\n**\u5185\u5BB9\u306E\u30EC\u30D3\u30E5\u30FC (\u610F\u5473\u306F\u6A5F\u68B0\u3067\u306F\u5224\u5B9A\u3067\u304D\u306A\u3044\u306E\u3067\u3001AI \u304B\u4EBA\u304C\u6750\u6599\u3092\u8AAD\u3093\u3067\u8A55\u4FA1\u3057\u3001\u6839\u62E0\u3092\u6B8B\u3059)**\n- \u5206\u89E3\u3057\u305F\u5F8C: `npx boxglow review-split <\u89AA>` \u3067\u6750\u6599 (\u89AA\u306E\u76EE\u7684\u30FB\u5236\u7D04\u30FB\u5B8C\u4E86\u6761\u4EF6\u30FB\u5165\u51FA\u529B\u3001\u5B50\u306E\u5BFE\u8C61\u30FB\u5165\u51FA\u529B\u30FB\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u5B8C\u4E86\u6761\u4EF6\u3001\u7D50\u7DDA) \u3068\u30C1\u30A7\u30C3\u30AF\u9805\u76EE\u3092\u8AAD\u307F\u3001\u8A55\u4FA1\u3057\u305F\u3089 `npx boxglow split-ok <\u89AA> --note "<\u6839\u62E0: \u4F55\u3092\u78BA\u8A8D\u3057\u305F\u304B>"` \u3067\u8A18\u9332\u3059\u308B\u3002\n- \u7740\u624B\u3059\u308B\u524D: `npx boxglow review-box <block>` \u3067\u6750\u6599 (\u5BFE\u8C61\u30FB\u51E6\u7406\u30FB\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u78BA\u8A8D\u65B9\u6CD5\u3001\u5165\u529B\u306E\u4F9B\u7D66\u5143\u3001\u4E0A\u6D41\u306E\u5206\u5C90\u306E\u7B54\u3048) \u3092\u8AAD\u307F\u3001`npx boxglow box-ok <block> --note "<\u6839\u62E0>"` \u3067\u8A18\u9332\u3059\u308B\u3002\n- \u8A18\u9332\u306F\u300C\u8A55\u4FA1\u3057\u305F\u3068\u7533\u544A\u3057\u6839\u62E0\u3092\u6B8B\u3057\u305F\u8A18\u9332\u300D\u3067\u3042\u308A\u3001\u59A5\u5F53\u6027\u306E\u8A3C\u660E\u3067\u306F\u306A\u3044\u3002\u6750\u6599\u304C\u5909\u308F\u308B\u3068 `context` \u306E `reviews` \u304C `stale` (\u4F55\u304C\u5909\u308F\u3063\u305F\u304B\u3068\u3001\u4F55\u3092\u78BA\u8A8D\u3059\u308C\u3070\u3088\u3044\u304B\u306E\u6848\u5185\u3064\u304D) \u306B\u306A\u308B\u3002`stale` \u306F\u300C\u5206\u89E3\u304C\u4E0D\u6B63\u300D\u3067\u306F\u306A\u304F\u300C\u524D\u56DE\u306E\u78BA\u8A8D\u5F8C\u306B\u6750\u6599\u304C\u5909\u308F\u3063\u305F\u300D\u3068\u3044\u3046\u610F\u5473\u3002\u4F4D\u7F6E\u3084\u914D\u8272\u3001\u9032\u6357\u3001\u62C5\u5F53\u306E\u5909\u66F4\u3067\u306F\u53E4\u304F\u306A\u3089\u306A\u3044\u3002\u5206\u89E3\u306E\u8A18\u9332\u306F\u5206\u5C90\u306E\u7B54\u3048\u3067\u306F\u53E4\u304F\u306A\u3089\u305A\u3001\u7740\u624B\u6E96\u5099\u306E\u8A18\u9332\u306F\u7B54\u3048\u304C\u5909\u308F\u308B\u3068\u53E4\u304F\u306A\u308B\u3002\n- \u5148\u306E\u5B50\u3092\u7740\u624B\u306E\u756A\u3067\u5177\u4F53\u5316\u3059\u308B\u3068\u3001\u89AA\u306E\u5206\u89E3\u306E\u8A18\u9332\u306F\u5FC5\u305A `stale` \u306B\u306A\u308B (\u5B50\u306E expect / acceptance \u3082\u6750\u6599\u306E\u305F\u3081)\u3002\u305D\u306E\u5B50\u306E expect\u30FBscope \u3092\u4E00\u901A\u308A\u66F8\u304D\u7D42\u3048\u3066\u304B\u3089\u3001\u5909\u308F\u3063\u305F\u5B50\u3068\u3001\u89AA\u306E\u5B8C\u4E86\u6761\u4EF6\u30FB\u5BFE\u8C61\u5916\u7BC4\u56F2\u30FB\u5144\u5F1F\u3068\u306E\u5206\u62C5\u3078\u306E\u5F71\u97FF\u3060\u3051\u3092\u78BA\u8A8D\u3057\u3001\u6574\u5408\u3059\u308C\u3070 `split-ok <\u89AA> --note "B181 \u306E\u5177\u4F53\u5316\u3092\u78BA\u8A8D\u3002\u89AA\u306E\u5BFE\u8C61\u5916\u7BC4\u56F2\u306B\u5165\u3089\u305A\u3001B182 \u3068\u306E\u5206\u62C5\u306F\u91CD\u8907\u3057\u306A\u3044"` \u306E\u3088\u3046\u306B\u66F4\u65B0\u3059\u308B\u3002port \u3084 scope \u306E\u64CD\u4F5C\u3054\u3068\u306B\u518D\u78BA\u8A8D\u306F\u3057\u306A\u3044\u3002\u8907\u6570\u306E\u5B50\u3092\u540C\u6642\u306B\u5177\u4F53\u5316\u3057\u305F\u3089\u3001\u307E\u3068\u3081\u3066\u78BA\u8A8D\u3057\u3066\u3088\u3044\u3002\n- \u7740\u624B\u306E\u6761\u4EF6\u306B\u306F\u3057\u3066\u3044\u306A\u3044 (\u65E2\u5B9A\u3067\u3082 reject \u306E\u8A08\u753B\u3067\u3082)\u3002`start` \u3092\u6B62\u3081\u308B\u306E\u306F\u8981\u5177\u4F53\u5316\u3068\u5165\u529B\u5F85\u3061\u3060\u3051\u3002\n\n**\u5206\u5C90\u30FB\u5408\u6D41\u3092 AI \u304C\u4F7F\u3046**\n- `ask` \u306B\u9078\u629E\u80A2\u3092\u4ED8\u3051\u305F\u3068\u304D\u3001\u7B54\u3048\u3067\u5F8C\u306E\u4F5C\u696D\u304C\u5206\u304B\u308C\u308B\u306A\u3089 `--branch` \u3092\u4ED8\u3051\u308B: \u305D\u306E\u30DC\u30C3\u30AF\u30B9\u304C\u5206\u5C90\u306B\u306A\u308A\u3001\u9078\u629E\u80A2\u3054\u3068\u306E\u9053 (\u51FA\u529B) \u304C\u3067\u304D\u308B\u3002\u5404\u9053\u306E\u6700\u521D\u306E\u30DC\u30C3\u30AF\u30B9\u3078 `connect` \u3057\u3001\u9053\u304C\u307E\u3068\u307E\u308B\u3068\u3053\u308D\u306B `join` \u3092\u7F6E\u304F\u3002\n- `split` \u306E JSON \u3067\u3082\u4F5C\u308C\u308B: \u5B50\u306B `"branch": { "question": "...", "options": ["A", "B"] }` \u3067\u5206\u5C90\u306E\u30DC\u30C3\u30AF\u30B9 (\u51FA\u529B\u306F\u9078\u629E\u80A2\u306E\u540D\u524D)\u3001`"join": true` \u3067\u5408\u6D41\u306E\u90E8\u54C1\u3002\u4F8B:\n `{ "blocks": [{ "title": "\u8A8D\u8A3C\u65B9\u5F0F\u3092\u6C7A\u3081\u308B", "branch": { "question": "\u3069\u308C?", "options": ["\u30E1\u30FC\u30EB", "OAuth"] } }, { "title": "\u30E1\u30FC\u30EB\u3067\u5B9F\u88C5", "outputs": ["\u8A8D\u8A3C"] }, { "title": "OAuth \u3067\u5B9F\u88C5", "outputs": ["\u8A8D\u8A3C"] }, { "title": "\u5408\u6D41", "join": true }], "connections": [{ "from": "\u8A8D\u8A3C\u65B9\u5F0F\u3092\u6C7A\u3081\u308B.\u30E1\u30FC\u30EB", "to": "\u30E1\u30FC\u30EB\u3067\u5B9F\u88C5" }, { "from": "\u8A8D\u8A3C\u65B9\u5F0F\u3092\u6C7A\u3081\u308B.OAuth", "to": "OAuth \u3067\u5B9F\u88C5" }, { "from": "\u30E1\u30FC\u30EB\u3067\u5B9F\u88C5.\u8A8D\u8A3C", "to": "\u5408\u6D41" }, { "from": "OAuth \u3067\u5B9F\u88C5.\u8A8D\u8A3C", "to": "\u5408\u6D41" }, { "from": "\u5408\u6D41.\u5408\u6D41", "to": "parent.\u8A8D\u8A3C" }] }`\n- `lint` \u306F\u3001\u540C\u3058\u5206\u5C90\u306E\u6392\u4ED6\u306E\u9053\u306E\u4E21\u65B9\u3092 1 \u3064\u306E\u30DC\u30C3\u30AF\u30B9\u304C\u5FC5\u9808\u306B\u3057\u3066\u3044\u308B (\u4E21\u65B9\u304C\u5C4A\u304F\u3053\u3068\u306F\u306A\u3044) \u3092\u300C\u5FC5\u305A\u76F4\u3059\u300D\u3001\u9053\u306E\u5148\u304C\u7121\u3044\u30FB\u5408\u6D41\u306E\u5165\u529B\u304C 1 \u672C\u3092\u300C\u898B\u76F4\u3057\u5019\u88DC\u300D\u3068\u3057\u3066\u51FA\u3059\u3002\n`parent.<\u540D\u524D>` \u306F\u5206\u89E3\u3059\u308B\u30DC\u30C3\u30AF\u30B9\u81EA\u8EAB\u306E\u5165\u529B / \u51FA\u529B\u3002`<block>` \u306F\u77ED\u3044 ID (B12 \u306A\u3069\u3002status \u306B\u51FA\u308B) \u304B\u984C\u540D\u3002\n\u51FA\u529B\u306F\u4F5C\u308B\u7269\u3054\u3068\u306B 1 \u672C (1 \u3064\u306E\u4F5C\u696D\u3067\u8907\u6570\u306E\u7269\u304C\u3067\u304D\u308B\u306A\u3089 outputs \u306B\u5168\u90E8\u66F8\u304F\u30022 \u672C\u76EE\u4EE5\u964D\u306E expect \u306F `port <block> --expect "<\u51FA\u529B\u540D>=<kind>:<hint>"`)\u3002\u7DDA\u3067\u3064\u306A\u304C\u308B\u5165\u51FA\u529B\u306F\u540C\u3058\u540D\u524D\u306B\u306A\u308B (\u3069\u3061\u3089\u5074\u3067\u5909\u3048\u3066\u3082\u3001\u3064\u306A\u304C\u308B\u5148\u3082\u5909\u308F\u308B)\u3002\u984C\u540D\u306F\u300C\u4F55\u3092\u4F5C\u308B\u304B\u300D\u304C\u5206\u304B\u308B\u77ED\u3044\u8A00\u8449\u306B\u3059\u308B\u3002\n\u671F\u65E5\u3084\u6642\u9593\u306F `npx boxglow set <block> --due 2026-10-15 --start 2026-10-01 --estimate 8 --hours 3.5` \u3067\u8A18\u9332\u3059\u308B\u3002\n\u30DC\u30C3\u30AF\u30B9\u306B\u306F\u4ED5\u4E8B\u306E\u7A2E\u985E (\u30AB\u30C6\u30B4\u30EA) \u3092\u4ED8\u3051\u308B: `--category design` (\u8A2D\u8A08) / build (\u5B9F\u88C5) / verify (\u691C\u8A3C) / evaluate (\u8A55\u4FA1) / study (\u691C\u8A0E) / research (\u8ABF\u67FB) / ui (\u30C7\u30B6\u30A4\u30F3) / improve (\u6539\u5584) / fix (\u8AB2\u984C\u89E3\u6C7A) / docs (\u6587\u66F8) / ops (\u904B\u7528) / other (\u305D\u306E\u4ED6: \u8FF7\u3063\u305F\u3068\u304D)\u3002add \u306E\u3068\u304D\u306B\u4ED8\u3051\u3001\u5909\u3048\u308B\u306A\u3089 `npx boxglow set <block> --category verify`\u3002\n\u7D50\u7DDA\u306E\u53D7\u3051\u5074\u306F\u984C\u540D\u3060\u3051\u3067\u3088\u3044 (`npx boxglow connect "A.\u8A2D\u8A08\u66F8" "B"` \u3067 B \u306B\u5165\u529B\u300C\u8A2D\u8A08\u66F8\u300D\u304C\u4F5C\u3089\u308C\u3066\u3064\u306A\u304C\u308B\u3002\u968E\u5C64\u304C\u9055\u3063\u3066\u3082\u9014\u4E2D\u306E\u7BB1\u306B\u5165\u51FA\u529B\u3092\u4F5C\u3063\u3066\u901A\u308B\u3002split \u306E connections \u3082 `to: "B"` \u3067\u3088\u3044)\u3002\u7DDA\u3067\u3064\u306A\u304C\u308B\u5165\u51FA\u529B\u306F\u540C\u3058\u540D\u524D\u306B\u306A\u308B (\u3064\u306A\u3044\u3060\u6642\u70B9\u3067\u305D\u308D\u3044\u3001\u3069\u3061\u3089\u5074\u3067\u540D\u524D\u3092\u5909\u3048\u3066\u3082\u3001\u3064\u306A\u304C\u308B\u5148\u304C\u4E00\u7DD2\u306B\u5909\u308F\u308B)\u3002\u65E2\u5B58\u306E\u30DC\u30C3\u30AF\u30B9\u306B\u5165\u51FA\u529B\u3092\u8DB3\u3059 / \u540D\u524D\u3092\u5909\u3048\u308B\u306E\u306F `npx boxglow port <block> --in <\u540D\u524D> --out <\u540D\u524D> --remove <\u540D\u524D> --rename <\u65E7>=<\u65B0>` (\u5165\u529B\u3092\u6D88\u3059\u3068\u3001\u4F7F\u3046\u7BB1\u306E\u5165\u529B\u3082\u6D88\u3048\u308B\u3002\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306F `port inputs`\u3002\u9593\u9055\u3048\u305F\u554F\u3044\u306F `npx boxglow unask <block>` \u3067\u53D6\u308A\u4E0B\u3052\u308B) (`project` = \u6700\u521D\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u3002\u6700\u7D42\u6210\u679C\u7269\u306E\u540D\u524D\u3082\u3053\u308C\u3067\u5909\u3048\u308B)\u3002\u7DDA\u3092\u5916\u3059\u306E\u306F `npx boxglow disconnect <\u984C\u540D.\u51FA\u529B\u540D> <\u984C\u540D.\u5165\u529B\u540D>`\u3001\u30DC\u30C3\u30AF\u30B9\u305D\u306E\u3082\u306E\u3092\u6D88\u3059\u306E\u306F `npx boxglow remove <block>` (\u4E2D\u306B\u30DC\u30C3\u30AF\u30B9\u304C\u3042\u308C\u3070 `--force`)\u3002MCP \u30C4\u30FC\u30EB (`boxglow_status` / `boxglow_start` / `boxglow_done` / `boxglow_ask` \u306A\u3069\u3002\u5229\u7528\u3059\u308B\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u767B\u9332\u6E08\u307F\u306A\u3089\u4F7F\u3048\u308B\u3002`.mcp.json` \u306F Claude Code \u5411\u3051\u3067\u3001Codex \u306F\u5225\u9014\u767B\u9332\u3059\u308B) \u306F\u540C\u3058\u30B3\u30DE\u30F3\u30C9\u306E\u5225\u306E\u5165\u53E3\u3067\u3001\u3069\u3061\u3089\u3067\u66F8\u3044\u3066\u3082\u540C\u3058\u30D5\u30A1\u30A4\u30EB\u304C\u66F4\u65B0\u3055\u308C\u308B\u3002\u8A08\u753B\u306E\u6587\u66F8\u306F `npx boxglow export --out docs/ROADMAP.md`\u3002\n**\u5168\u4F53\u306B\u52B9\u304F\u6C7A\u5B9A\u306F\u65B9\u91DD\u306B\u3059\u308B**: \u6280\u8853\u9078\u5B9A\u30FB\u4F7F\u3046\u30A8\u30F3\u30B8\u30F3\u30FB\u753B\u98A8\u306E\u6C7A\u307E\u308A\u306A\u3069\u3001\u591A\u304F\u306E\u7BB1\u306B\u52B9\u304F\u6C7A\u5B9A\u3092\u51FA\u529B\u306B\u6301\u3064\u7BB1\u306F\u3001\u305D\u306E\u51FA\u529B\u3092\u65B9\u91DD\u306B\u3059\u308B (`npx boxglow port <block> --policy "<\u51FA\u529B\u540D>"`\u3002\u7BC4\u56F2\u306F\u65E2\u5B9A\u3067\u540C\u3058\u89AA\u306E\u4E2D\u3001`--policy-scope all` \u3067\u8A08\u753B\u5168\u4F53\u3001`--advisory` \u3067\u53C2\u8003)\u3002\u7DDA\u3092\u5F15\u304B\u305A\u306B\u7BC4\u56F2\u306E\u7BB1\u3059\u3079\u3066\u3078\u5C4A\u304D\u3001\u6C7A\u307E\u308B\u307E\u3067\u7BC4\u56F2\u306E\u672A\u7740\u624B\u306E\u7BB1\u306F\u300C\u65B9\u91DD\u5F85\u3061\u300D\u306B\u306A\u308B (\u9032\u3081\u3066\u3044\u308B\u7BB1\u306F\u6B62\u307E\u3089\u306A\u3044)\u3002`context` \u306E `policies` \u306B\u4E2D\u8EAB\u304C\u51FA\u308B\u306E\u3067\u3001\u4F5C\u696D\u306E\u524D\u306B\u8AAD\u3080\u3002\u95A2\u4FC2\u306A\u3044\u7BB1\u306F `--skip-policy "<\u7BB1>.<\u51FA\u529B\u540D>"` \u3067\u5916\u3059\u3002\u5B8C\u4E86\u5F8C\u306B\u65B9\u91DD\u304C\u5909\u308F\u308B\u3068 `policyChanged` \u306B\u51FA\u308B (\u78BA\u304B\u3081\u76F4\u3059)\u30021 \u672C\u305A\u3064\u7DDA\u3067\u3064\u306A\u304C\u306A\u3044\u3002\n\n\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u306F\u3001\u65B9\u91DD (README \u3084\u4F9D\u983C\u6587) \u304B\u3089\u6700\u4E0A\u4F4D\u306E\u5927\u9805\u76EE 3\u301C7 \u500B\u3092\u5148\u306B\u4F5C\u308A\u3001\u4EBA\u306B `ask` \u3067\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u7740\u624B\u3059\u308B\u5927\u9805\u76EE\u3060\u3051\u3092 `split` \u3067\u5206\u89E3\u3059\u308B (\u5148\u306E\u6BB5\u968E\u306F\u7C97\u3044\u307E\u307E)\u3002`ask` \u306E\u8CEA\u554F\u306F\u305D\u308C\u3060\u3051\u3067\u5224\u65AD\u3067\u304D\u308B\u3088\u3046\u306B\u66F8\u304D\u3001\u524D\u63D0\u30FB\u6BD4\u8F03\u30FB\u5F71\u97FF\u306F `--context` \u306B\u5165\u308C\u308B (\u300C\u3053\u308C\u3067\u3088\u3044\u3067\u3059\u304B\u300D\u306E\u3088\u3046\u306B\u5916\u3092\u6307\u3055\u306A\u3044)\u3002\u5019\u88DC\u304B\u3089 1 \u3064\u3092\u9078\u3076\u5834\u9762\u3067\u306F\u3001\u81EA\u5206\u3067\u6C7A\u3081\u308B\u3068\u304D\u3082 `ask ... --options "A|B|C"` \u3068 `answer --by <\u81EA\u5206>` \u3067\u8A18\u9332\u3057\u3001\u9078\u3070\u306A\u304B\u3063\u305F\u5019\u88DC\u3092\u6B8B\u3059\u3002\u65B9\u91DD\u8EE2\u63DB\u306F `reopen <block> --note <\u7406\u7531>`\u3002\u3059\u3079\u3066 CLI \u3060\u3051\u3067\u6210\u7ACB\u3059\u308B (\u753B\u9762\u306F\u4EBA\u304C\u898B\u308B\u305F\u3081\u306E\u3082\u306E)\u3002\u4EBA\u304C\u3044\u306A\u3044\u904B\u7528\u306A\u3089\u3001AI \u304C `answer --by <\u81EA\u5206>` \u3067\u5224\u65AD\u3092\u8A18\u9332\u3057\u3066\u9032\u3081\u308B\u3002\n\u51FA\u529B\u306E\u540D\u524D\u306F\u300C\u5177\u4F53\u7684\u306A\u6210\u679C\u7269\u300D\u306B\u3059\u308B (\u4F8B: `\u8A2D\u8A08\u66F8 docs/design.md`\u3001`PR #12`\u3001`\u516C\u958B URL`\u3001`\u30C6\u30B9\u30C8\u7D50\u679C (vitest 53 \u4EF6)`)\u3002\u300C\u6A5F\u80FD\u4E00\u5F0F\u300D\u300C\u6240\u898B\u300D\u306E\u3088\u3046\u306A\u62BD\u8C61\u7684\u306A\u540D\u524D\u306F\u907F\u3051\u3001done \u306E\u3068\u304D\u306F\u5FC5\u305A --artifact \u3067\u30D5\u30A1\u30A4\u30EB\u30FBURL\u30FB\u30B3\u30DF\u30C3\u30C8\u3092\u4ED8\u3051\u308B\u3002\n\u3059\u3079\u3066\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u300C\u5165\u529B \u2192 \u51FA\u529B\u300D\u304C\u4F55\u304B\u306B\u3064\u306A\u304C\u3063\u3066\u3044\u308B\u3088\u3046\u306B\u3059\u308B (\u3064\u306A\u304C\u3063\u3066\u3044\u306A\u3044\u30DC\u30C3\u30AF\u30B9\u306F\u8A08\u753B\u306E\u7A74\u3002\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u30CE\u30FC\u30C9\u306F\u3001\u672A\u63A5\u7D9A\u306E\u5165\u529B\u304C\u81EA\u52D5\u3067\u4E0A\u304C\u308B)\u3002\n\u8907\u6570\u4EBA\u3067\u540C\u3058 boxglow.json \u3092\u7DE8\u96C6\u3059\u308B\u306A\u3089\u3001\u5404\u81EA\u306E clone \u3067\u4E00\u5EA6 `npx boxglow git-setup` \u3092\u5B9F\u884C\u3059\u308B (\u30DC\u30C3\u30AF\u30B9\u306E\u5358\u4F4D\u3067\u81EA\u52D5\u30DE\u30FC\u30B8\u3055\u308C\u3001\u5225\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u5909\u66F4\u306F\u885D\u7A81\u3057\u306A\u3044)\u3002\n\u8907\u6570\u30EA\u30DD\u30B8\u30C8\u30EA\u3092 1 \u3064\u306E\u8A08\u753B\u3067\u7BA1\u7406\u3059\u308B\u3068\u304D\u306F\u3001boxglow.json \u3092\u4E0A\u306E\u30D5\u30A9\u30EB\u30C0\u306B\u7F6E\u304D\u3001\u5404\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u306F\u74B0\u5883\u5909\u6570 BOXGLOW_FILE \u306B\u305D\u306E\u5834\u6240\u3092\u5165\u308C\u308B (\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u3054\u3068\u306B 1 \u3064\u3002`npx boxglow project "\u540D\u524D" --repo <\u30D1\u30B9>`)\u3002\n\u5165\u529B\u306F\u65E2\u5B9A\u3067\u5FC5\u9808\u3002\u7121\u304F\u3066\u3082\u7740\u624B\u3067\u304D\u308B\u5165\u529B\u306F `npx boxglow port <block> --optional <\u5165\u529B\u540D>` \u3067\u300C\u4EFB\u610F\u300D\u306B\u3059\u308B (\u623B\u3059\u306E\u306F `--required`)\u3002\u5165\u51FA\u529B\u306E\u8AAC\u660E\u306F `--describe "<\u540D\u524D>=<\u8AAC\u660E>"`\u3002status \u306E\u300C\u6B21\u306E\u5019\u88DC\u300D\u306F\u5FC5\u9808\u306E\u5165\u529B\u304C\u305D\u308D\u3063\u305F\u30DC\u30C3\u30AF\u30B9\u304B\u3089\u4E26\u3076 (\u300C\u7740\u624B\u3067\u304D\u308B\u300D/\u300C\u5FC5\u9808\u306E\u5165\u529B\u5F85\u3061\u300D\u304C\u4ED8\u304F)\u3002\u8A08\u753B\u306E\u6700\u4E0A\u4F4D\u306E\u5165\u529B (Inputs) \u306B\u8CC7\u6599 (\u4ED5\u69D8\u66F8\u30FB\u30B7\u30CA\u30EA\u30AA\u306A\u3069\u306E\u30D5\u30A1\u30A4\u30EB\u3084 URL) \u304C\u7121\u3044\u3068\u3001\u305D\u308C\u3092\u4F7F\u3046\u7BB1\u306F\u3059\u3079\u3066\u5165\u529B\u5F85\u3061\u306B\u306A\u308B\u3002\u8CC7\u6599\u304C\u624B\u5143\u306B\u3042\u308C\u3070\u3001\u4EBA\u306B\u983C\u307E\u305A\u306B `npx boxglow artifact inputs <\u30D1\u30B9\u304B URL> --input <\u5165\u529B\u540D>` (MCP \u306F `boxglow_artifact` \u306B block: "inputs") \u3067\u81EA\u5206\u3067\u4ED8\u3051\u308B\u3002\u9593\u9055\u3048\u3066\u4ED8\u3051\u305F\u6210\u679C\u7269\u30FB\u8CC7\u6599\u306F `npx boxglow artifact <block|inputs> --remove <\u984C\u540D\u304B\u30D1\u30B9>` \u3067\u5916\u3059\u3002\u6E08\u3093\u3060\u7BB1\u306B\u300C\u65B9\u91DD: \u78BA\u304B\u3081\u76F4\u3057\u300D\u304C\u4ED8\u3044\u305F\u3089\u3001\u4F5C\u696D\u304C\u65B9\u91DD\u306B\u5408\u3063\u3066\u3044\u308B\u304B\u3092\u78BA\u304B\u3081\u3001\u5408\u3063\u3066\u3044\u308C\u3070 `npx boxglow ack <block> --policy` \u3067\u5370\u3092\u6D88\u3059 (\u5408\u3063\u3066\u3044\u306A\u3051\u308C\u3070 reopen \u3057\u3066\u76F4\u3059)\u3002\n\u5165\u529B\u306E\u8AAC\u660E\u306F\u66F8\u304B\u306A\u3044 (\u3064\u306A\u304C\u3063\u305F\u51FA\u529B\u5074\u306E\u8AAC\u660E\u304C\u4F7F\u308F\u308C\u308B)\u3002\u51FA\u529B\u306E\u8AAC\u660E\u306B\u5F62\u5F0F\u30FB\u5236\u7D04\u3092\u66F8\u304F\u3002\n\n\n### \u81EA\u52D5\u3067\u52D5\u304F\u4ED5\u7D44\u307F (hooks)\n\n`setup-agent` \u306F Claude Code / Codex \u306E hooks \u306B `boxglow hook` \u3092\u767B\u9332\u3059\u308B\u3002\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u958B\u59CB\u30FB\u518D\u958B\u30FB\u5727\u7E2E\u306E\u5F8C\u306B\u306F\u8A08\u753B\u306E\u518D\u958B\u306E\u6982\u8981 (resume) \u304C\u81EA\u52D5\u3067\u6587\u8108\u306B\u5165\u308B\u3002\u5FDC\u7B54\u3092\u7D42\u3048\u308B\u3068\u304D\u3001\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3067 start \u3057\u305F\u7BB1\u306B\u5F15\u304D\u7D99\u304E (done \u304B checkpoint) \u304C\u7121\u3051\u308C\u3070\u300C\u8A18\u9332\u3057\u3066\u304B\u3089\u7D42\u3048\u308B\u300D\u3088\u3046\u7D9A\u884C\u304C\u6307\u793A\u3055\u308C\u308B (log \u306F\u9032\u6357\u306E\u30E1\u30E2\u3067\u3001\u5F15\u304D\u7D99\u304E\u306E\u4EE3\u308F\u308A\u306B\u306A\u3089\u306A\u3044)\u3002boxglow.json \u3092 Edit / Write / apply_patch \u3067\u76F4\u63A5\u66F8\u304D\u63DB\u3048\u308B\u64CD\u4F5C\u306F\u6B62\u3081\u3089\u308C\u308B (CLI \u304B MCP \u3067\u66F4\u65B0\u3059\u308B)\u3002\u3053\u308C\u3089\u306F\u6307\u793A\u306E\u4EE3\u308F\u308A\u3067\u306F\u306A\u304F\u3001\u5FD8\u308C\u305F\u3068\u304D\u306E\u4FDD\u967A\u306A\u306E\u3067\u3001\u4E0A\u306E\u624B\u9806\u3069\u304A\u308A\u306B\u81EA\u5206\u3067\u8A18\u9332\u3059\u308B\u3002\n\n### \u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3068\u5F15\u304D\u7D99\u304E\n\n\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306E\u8981\u6C42 (guard) \u306F\u3001AI \u304C\u53E4\u3044\u6307\u793A\u306E\u307E\u307E\u4F5C\u696D\u3092\u9032\u3081\u308B\u306E\u3092\u9632\u3050\u4ED5\u7D44\u307F\u3002`setup-agent` \u304C\u6709\u52B9\u306B\u3059\u308B (\u305D\u308C\u4EE5\u5916\u306E\u8A08\u753B\u3067\u306F `npx boxglow guard on`)\u3002\n\u6709\u52B9\u306A\u8A08\u753B\u3067\u306F\u3001AI \u306E `start` / `done` / `set` / `split` / `artifact` / `ack` / `blocked` / `review` / `leave` / `checkpoint` \u306B `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u304C\u8981\u308B\u3002\u4EBA\u306E\u64CD\u4F5C (`--actor human`) \u306B\u306F\u8981\u6C42\u3055\u308C\u306A\u3044\u3002\n\n```\nnpx boxglow context B12 # \u5224\u65AD (\u5F15\u304D\u53D6\u308A\u6E08\u307F\u306E\u56DE\u7B54\u3092\u542B\u3080)\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6\u30FB\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u8AAD\u3080\u3002\u51FA\u529B\u306E contextToken \u304C\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\nnpx boxglow start B12 --note "<\u4F55\u3092\u3059\u308B\u304B>" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\nnpx boxglow ask B12 "<\u8CEA\u554F>" --options "A|B" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\n# \u2192 \u51FA\u529B\u306E\u6700\u5F8C\u306E\u884C: \u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\nnpx boxglow done B12 --artifact "<\u540D\u524D>=<\u30D1\u30B9>" --context-token <\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\n```\n\n- **\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u5909\u308F\u308B\u5834\u5408 (\u8AAD\u307F\u76F4\u3057\u304C\u8981\u308B)**: \u4EBA\u304C\u56DE\u7B54\u3057\u305F\u30FB\u56DE\u7B54\u3092\u76F4\u3057\u305F\u3001\u4EBA\u304C\u6307\u793A (\u984C\u540D\u30FB\u8AAC\u660E\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6) \u3092\u5909\u3048\u305F\u3001\u4ED6\u306E AI \u3084\u4EBA\u304C\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u66F4\u65B0\u3057\u305F\u3002\u89AA\u3084\u5165\u529B\u5143\u306E\u30DC\u30C3\u30AF\u30B9\u3067\u8D77\u304D\u305F\u5834\u5408\u3082\u540C\u3058\u3002\u53E4\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306F\u62D2\u5426\u3055\u308C\u308B\u306E\u3067\u3001`context` \u3092\u8AAD\u307F\u76F4\u3057\u3001\u5909\u308F\u3063\u305F\u5185\u5BB9\u3092\u4F5C\u696D\u306B\u53CD\u6620\u3057\u3066\u304B\u3089\u3084\u308A\u76F4\u3059\n- **\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u5909\u308F\u3089\u306A\u3044\u5834\u5408**: `start` / `blocked` / `review` / `leave` / `ack`\u3001\u9032\u6357\u30FB\u72B6\u614B\u30FB\u671F\u65E5\u30FB\u30AB\u30C6\u30B4\u30EA\u306E\u5909\u66F4\u3001`check` \u306B\u3088\u308B\u6210\u679C\u7269\u306E\u78BA\u8A8D\u3001\u753B\u9762\u3067\u306E\u914D\u7F6E\u306E\u5909\u66F4\u3002\u540C\u3058\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u3044\u7D9A\u3051\u3089\u308C\u308B\n- **\u81EA\u5206\u3067\u66F4\u65B0\u3067\u304D\u308B\u5834\u5408**: \u81EA\u5206\u306E `ask` / `artifact` / `done` / `set` / `split` / `checkpoint` \u306A\u3069\u3067\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u304C\u5909\u308F\u3063\u305F\u3068\u304D\u306F\u3001\u305D\u306E\u51FA\u529B\u306E\u6700\u5F8C\u306E\u884C\u306B\u300C\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\u300D\u304C\u51FA\u308B\u3002\u81EA\u5206\u3067\u5909\u3048\u305F\u5185\u5BB9\u306F\u5206\u304B\u3063\u3066\u3044\u308B\u306E\u3067\u3001\u8AAD\u307F\u76F4\u3055\u305A\u306B\u6B21\u306E\u64CD\u4F5C\u3078\u4F7F\u3046\u3002`ask` / `decision` / `answer` / `reopen` \u306F\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u7121\u3057\u3067\u3082\u5B9F\u884C\u3067\u304D\u308B\u304C\u3001\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u51FA\u308B\u306E\u306F\u6700\u65B0\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u4ED8\u3051\u305F\u3068\u304D\u3060\u3051\n- **\u6700\u521D\u306F\u77ED\u3044\u5F62\u3067\u8AAD\u3080**: `npx boxglow context <block> --brief` \u306F\u3001\u5BFE\u8C61\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u60C5\u5831 (\u8AAC\u660E\u30FB\u7BC4\u56F2\u30FB\u5224\u65AD\u30FB\u5F15\u304D\u7D99\u304E\u30FB\u5165\u51FA\u529B\u30FB\u6210\u679C\u7269) \u306F\u5168\u90E8\u3001\u8A08\u753B\u5168\u4F53\u306E\u8AAC\u660E\u3001\u89AA\u3068\u5165\u529B\u5143\u306E\u984C\u540D\u30FB\u72B6\u614B\u30FB\u5224\u65AD (\u6750\u6599\u3068\u9078\u629E\u80A2\u3064\u304D\u3002\u524D\u306E\u56DE\u7B54\u306E\u5C65\u6B74\u306F\u7701\u304F)\u30FB\u5BFE\u8C61\u306B\u3064\u306A\u304C\u308B\u51FA\u529B\u3092\u51FA\u3059\u3002\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306F `--brief` \u306A\u3057\u3068\u540C\u3058\u306A\u306E\u3067\u3001\u305D\u306E\u307E\u307E `--context-token` \u306B\u4F7F\u3048\u308B\u3002`target.missingInputs` (\u4E0D\u8DB3\u3057\u3066\u3044\u308B\u5FC5\u9808\u306E\u5165\u529B) \u3068 `target.inputs[].sources` (\u3069\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u3069\u306E\u51FA\u529B\u304B\u30FB\u6210\u679C\u7269\u306E\u53C2\u7167) \u3092\u5148\u306B\u898B\u308B\u3002`omitted` \u306B\u7701\u3044\u305F\u4EF6\u6570\u304C\u51FA\u308B\u3002\u7701\u304B\u308C\u305F\u8AAC\u660E\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6\u30FB\u5F15\u304D\u7D99\u304E\u304C\u4F5C\u696D\u306B\u95A2\u308F\u308A\u305D\u3046\u306A\u3089\u3001`--brief` \u306A\u3057\u3067\u8AAD\u3080\u304B\u3001\u305D\u306E\u30DC\u30C3\u30AF\u30B9\u306E `context` \u3092\u8AAD\u3080\n- **\u77ED\u3044\u5F62\u3067\u59CB\u3081\u308B\u524D\u63D0**: \u7BC4\u56F2 (scope) \u3092 1 \u9805\u76EE\u3067\u3082\u8A2D\u5B9A\u3057\u305F\u89AA\u30FB\u5165\u529B\u5143\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u8AAC\u660E\u306F\u3001\u77ED\u3044\u5F62\u3067\u306F\u7701\u304B\u308C\u308B (`omitted.descriptions` \u306B\u4EF6\u6570)\u3002\u7BC4\u56F2\u3092\u8A2D\u5B9A\u3059\u308B\u3068\u304D\u306F\u3001\u8AAC\u660E\u306B\u66F8\u3044\u305F\u5236\u7D04 (\u4E92\u63DB\u6027\u30FB\u7981\u6B62\u4E8B\u9805\u30FB\u671F\u9650\u306A\u3069) \u3092\u7BC4\u56F2\u3078\u5199\u3057\u7D42\u3048\u3066\u304B\u3089\u306B\u3059\u308B\u3002\u5199\u3057\u305F\u304B\u5206\u304B\u3089\u306A\u3044\u8A08\u753B\u30FB`omitted.descriptions` \u304C 0 \u3067\u306A\u3044\u8A08\u753B\u3067\u306F\u3001\u7740\u624B\u524D\u306B `--brief` \u306A\u3057\u3067 1 \u5EA6\u8AAD\u3080\u3002\u77ED\u3044\u5F62\u306F\u8ABF\u67FB\u306E\u51FA\u767A\u70B9\u3067\u3001\u305D\u308C\u3060\u3051\u8AAD\u3081\u3070\u5341\u5206\u3068\u3044\u3046\u4FDD\u8A3C\u3067\u306F\u306A\u3044\n- \u77ED\u3044\u5F62\u3067\u3082\u7528\u304C\u8DB3\u308A\u308B\u3088\u3046\u306B\u66F8\u304F: \u4F5C\u696D\u3092\u7E1B\u308B\u6761\u4EF6\u306F\u8AAC\u660E\u306E\u4E2D\u306B\u57CB\u3081\u305A\u306B scope (non-goals / constraints / acceptance / consult) \u306B\u66F8\u304F\u3002\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u306F\u6700\u65B0\u306E 1 \u4EF6\u3060\u3051\u304C\u6B8B\u308B\u306E\u3067\u3001\u672A\u89E3\u6C7A\u306E\u70B9\u30FB\u6CE8\u610F\u70B9\u30FB\u6B21\u306E\u624B\u9806\u3092\u6BCE\u56DE\u66F8\u304D\u76F4\u3057\u3066\u6301\u3061\u8D8A\u3059\u3002\u8ABF\u3079\u59CB\u3081\u308B\u5834\u6240\u306F\u3001\u5BFE\u8C61\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u8AAC\u660E\u306B\u6B21\u306E\u5F62\u3067\u66F8\u304F (\u51FA\u767A\u70B9\u3067\u3042\u308A\u3001\u305D\u306E\u30D5\u30A1\u30A4\u30EB\u3060\u3051\u8AAD\u3081\u3070\u8DB3\u308A\u308B\u3068\u3044\u3046\u610F\u5473\u3067\u306F\u306A\u3044):\n `\u5909\u66F4\u5019\u88DC: <\u30D1\u30B9> \u2014 <\u8ABF\u3079\u59CB\u3081\u308B\u7406\u7531>` / `\u95A2\u9023\u691C\u67FB: <\u30D1\u30B9\u307E\u305F\u306F\u30B3\u30DE\u30F3\u30C9> \u2014 <\u78BA\u304B\u3081\u308B\u3053\u3068>`\n- \u53E4\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u901A\u3059\u305F\u3081\u306B guard \u3092\u7121\u52B9\u306B\u3057\u306A\u3044 (AI \u304C `guard off` \u3059\u308B\u306B\u306F\u6700\u65B0\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u8981\u308B)\n- MCP \u3067\u306F `boxglow_context` \u3068\u3001\u5404\u30C4\u30FC\u30EB\u306E `contextToken` \u5F15\u6570\u3092\u4F7F\u3046 (\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306F\u30C4\u30FC\u30EB\u306E\u7D50\u679C\u306E\u6700\u5F8C\u306E\u884C\u306B\u51FA\u308B)\n- \u300C\u4ED6\u306E Boxglow \u304C\u66F8\u304D\u8FBC\u307F\u4E2D (\u30ED\u30C3\u30AF\u4E2D)\u300D\u3068\u51FA\u3066\u3001\u5C11\u3057\u5F85\u3063\u3066\u3084\u308A\u76F4\u3057\u3066\u3082\u89E3\u3051\u306A\u3044\u3068\u304D\u306F\u3001`npx boxglow unlock` \u306E\u8868\u793A (\u6301\u3061\u4E3B\u3068\u5224\u5B9A) \u3092\u4EBA\u306B\u898B\u305B\u3066\u89E3\u9664\u3092\u983C\u3080\u3002\u81EA\u5206\u3067 `--actor human` \u3092\u4ED8\u3051\u305F\u308A\u3001\u30ED\u30C3\u30AF\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u76F4\u63A5\u6D88\u3057\u305F\u308A\u3057\u306A\u3044\n\n### \u7740\u624B\u30FB\u5B8C\u4E86\u3001\u4ECA\u56DE\u306E\u7BC4\u56F2\u3001\u8A18\u9332\u306E\u9BAE\u5EA6\n\n- \u6700\u521D\u306B resume \u306E\u73FE\u6CC1 (\u6D3B\u52D5\u30FB\u5224\u65AD\u5F85\u3061\u30FB\u672A\u78BA\u8A8D\u56DE\u7B54) \u3092\u8AAD\u3080\u3002\u5019\u88DC\u306F\u300C\u4ECA\u56DE\u306E\u7BC4\u56F2 / \u305D\u306E\u4ED6\u300D\u306E\u5404\u7D44\u3067\u300C\u7740\u624B\u3067\u304D\u308B / \u8981\u5177\u4F53\u5316 / \u5165\u529B\u5F85\u3061\u300D\u306B\u5206\u304B\u308C\u3001\u8981\u5177\u4F53\u5316\u306E\u7406\u7531\u3068\u4E0D\u8DB3\u3059\u308B\u5165\u529B\u540D\u304C\u51FA\u308B\u3002\u8981\u5177\u4F53\u5316\u3084\u5165\u529B\u5F85\u3061\u3092\u3001\u6E96\u5099\u6E08\u307F\u3068\u53D6\u308A\u9055\u3048\u306A\u3044\u3002\n- \u300C\u7740\u624B\u3067\u304D\u308B\u300D(Ready) \u306F\u3001\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B\u304C\u3042\u308A\u3001\u305D\u306E\u4E88\u5B9A\u6210\u679C\u7269 (expect) \u3068\u5B8C\u4E86\u6761\u4EF6 (acceptance) \u304C\u66F8\u304B\u308C\u3001\u5FC5\u9808\u306E\u5165\u529B\u304C\u305D\u308D\u3063\u3066\u3044\u308B\u3001\u3068\u3044\u3046\u6A5F\u68B0\u691C\u67FB\u306E\u7D50\u679C\u3002\u5185\u5BB9\u304C\u5177\u4F53\u7684\u304B\u3069\u3046\u304B\u307E\u3067\u306F\u4FDD\u8A3C\u3057\u306A\u3044 (`expect = src/`\u3001`acceptance = \u52D5\u4F5C\u3059\u308B` \u3067\u3082\u901A\u308B)\u3002\u5BFE\u8C61\u30FB\u51E6\u7406\u30FB\u6210\u679C\u30FB\u78BA\u8A8D\u65B9\u6CD5\u3092\u7B2C\u4E09\u8005\u304C\u8FFD\u3048\u308B\u3088\u3046\u306B\u66F8\u304F\u3002\n- \u30DC\u30C3\u30AF\u30B9\u306E\u4EFB\u610F5\u9805\u76EE\u3092 scope \u3067\u8A2D\u5B9A\u3059\u308B\u3002goal = \u4ECA\u56DE\u9054\u6210\u3059\u308B\u3053\u3068\u3001non-goals = \u4ECA\u56DE\u306F\u6271\u308F\u306A\u3044\u3053\u3068\u3001acceptance = \u5B8C\u4E86\u3068\u5224\u65AD\u3059\u308B\u6761\u4EF6\u3001consult = \u7BC4\u56F2\u3092\u5E83\u3052\u308B\u524D\u306B\u76F8\u8AC7\u3059\u308B\u6761\u4EF6\u3002context \u306E\u5148\u982D\u3067\u5BFE\u8C61\u3068\u89AA\u306E\u7BC4\u56F2\u3092\u8AAD\u307F\u3001\u7740\u624B\u524D\u3068\u5B8C\u4E86\u524D\u306B\u7167\u5408\u3059\u308B\u3002\u5B8C\u4E86\u6761\u4EF6\u306E\u672C\u6587\u3092AI\u304C\u6E80\u305F\u3057\u305F\u304B\u306F\u81EA\u52D5\u5224\u5B9A\u3057\u306A\u3044\u3002\n- scope B12 --goal "\u9054\u6210\u3059\u308B\u3053\u3068" --non-goals "\u4ECA\u56DE\u6271\u308F\u306A\u3044\u3053\u3068" --acceptance "\u78BA\u8A8D\u3059\u308B\u6761\u4EF6" --consult "\u76F8\u8AC7\u3059\u308B\u6761\u4EF6" \u3067\u8A2D\u5B9A\u3059\u308B\u3002scope B12 \u306F\u8868\u793A\u3060\u3051\u3002\u5404\u9805\u76EE\u306B none \u307E\u305F\u306F\u7A7A\u6587\u5B57\u3092\u6E21\u3059\u3068\u6D88\u3059\u3002\u753B\u9762\u3067\u306F\u8A73\u7D30\u30D1\u30CD\u30EB\u306E\u300C\u305D\u306E\u4ED6\u300D\u30BF\u30D6 \u2192\u300C\u4F5C\u696D\u7BC4\u56F2\u3092\u7DE8\u96C6\u300D\u3002\u8A18\u5165\u6E08\u307F\u306E\u9805\u76EE\u3060\u3051\u304C\u300C\u4ECA\u56DE\u306E\u7BC4\u56F2\u300D\u306B\u51FA\u308B\u3002\n- focus B12 \u3067\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u3068\u914D\u4E0B\u3092\u6B21\u5019\u88DC\u306E\u5148\u982D\u306B\u3059\u308B\u3002focus \u306F\u73FE\u5728\u306E\u5BFE\u8C61\u306E\u8868\u793A\u3001focus none \u306F\u89E3\u9664\u3002\u5BFE\u8C61\u5916\u3082\u5225\u306E\u7D44\u306B\u6B8B\u308B\u3002\u5019\u88DC\u306B\u51FA\u308B\u3053\u3068\u81EA\u4F53\u306F\u4F5C\u696D\u7BC4\u56F2\u306E\u62E1\u5927\u3084\u516C\u958B\u3092\u8A31\u53EF\u3057\u306A\u3044\u3002\n- start \u306E\u5FC5\u9808\u5165\u529B\u4E0D\u8DB3\u306F\u65E2\u5B9A\u3067\u8B66\u544A\u3059\u308B\u304C\u3001\u5F93\u6765\u3069\u304A\u308A\u958B\u59CB\u3067\u304D\u308B\u3002\u5148\u884C\u4F5C\u696D\u304C\u5FC5\u8981\u306A\u3089 --reason "\u5148\u306B\u884C\u3046\u7406\u7531" \u3092\u4ED8\u3051\u308B\u3002\u8B66\u544A\u306F\u51FA\u305A\u3001\u7406\u7531\u306F\u6D3B\u52D5\u3068\u30ED\u30B0\u306B\u6B8B\u308B\u3002done \u306E\u51FA\u529B\u6210\u679C\u7269\u306A\u3057\u3082\u65E2\u5B9A\u3067\u8B66\u544A\u306E\u307F\u3002\u65E2\u5B58\u306E\u51FA\u529B\u6210\u679C\u7269\u307E\u305F\u306F --artifact \u3092\u6570\u3048\u3001\u30DC\u30C3\u30AF\u30B9\u306E\u53C2\u8003\u8CC7\u6599\u306F\u6570\u3048\u306A\u3044\u3002\n- \u8A08\u753B\u3067\u9078\u3076\u5834\u5408\u3060\u3051 policy --start reject --done reject --unprepared reject \u306B\u3059\u308B\u3002\u305D\u308C\u305E\u308C warn \u306B\u623B\u305B\u308B\u3002\u5165\u529B\u5F85\u3061\u306E\u62D2\u5426\u3067\u3082\u7406\u7531\u4ED8\u304D\u306E\u958B\u59CB\u306F\u53EF\u80FD\u3060\u304C\u3001\u8981\u5177\u4F53\u5316\u306E\u62D2\u5426\u306F\u7406\u7531\u3067\u306F\u901A\u308C\u306A\u3044 (\u5148\u306B\u5177\u4F53\u5316\u3059\u308B)\u3002\u6210\u679C\u7269\u306A\u3057\u306E\u62D2\u5426\u306F set --status white \u306B\u3082\u52B9\u304F\u3002\u4EBA\u306E\u64CD\u4F5C (\u753B\u9762 / --actor human) \u306F\u62D2\u5426\u3057\u306A\u3044\u3002AI\u304C\u62D2\u5426\u3092\u907F\u3051\u308B\u305F\u3081\u306B\u4EBA\u3092\u540D\u4E57\u3063\u305F\u308A\u3001\u8A2D\u5B9A\u3092\u5F31\u3081\u305F\u308A\u3057\u306A\u3044\u3002\n- guard \u6709\u52B9\u6642\u3001scope \u306E\u5909\u66F4\u3001focus \u306E\u8A2D\u5B9A\u30FB\u89E3\u9664\u3001policy \u306E\u5909\u66F4\u306B\u3082 --context-token \u304C\u5FC5\u8981\u3002scope/focus/policy \u3092\u5909\u3048\u308B\u3068\u65B0\u3057\u3044\u30C8\u30FC\u30AF\u30F3\u304C\u51FA\u308B\u306E\u3067\u3001\u6B21\u306E\u64CD\u4F5C\u306F\u305D\u308C\u3092\u4F7F\u3046\u3002\u8868\u793A\u3060\u3051\u306B\u306F\u4E0D\u8981\u3002\n- resume \u306F\u5B8C\u4E86\u6E08\u307F\u306E\u5F15\u304D\u7D99\u304E\u672C\u6587\u3092\u96A0\u3057\u3001\u4EF6\u6570\u3060\u3051\u793A\u3059\u3002\u5C65\u6B74\u304C\u5FC5\u8981\u306A\u5834\u5408\u3060\u3051 resume --include-completed \u3067\u5C55\u958B\u3059\u308B (context / show \u3067\u306F\u500B\u5225\u306B\u8AAD\u3081\u308B)\u3002\n- \u8AAC\u660E\u306F descriptionUpdatedAt\u3001\u72B6\u614B\u306F statusChangedAt\u3001\u5F15\u304D\u7D99\u304E\u306F\u65E2\u5B58\u306E at \u3067\u65E5\u6642\u3092\u78BA\u8A8D\u3067\u304D\u308B\u3002\u72B6\u614B\u5909\u66F4\u3088\u308A\u53E4\u3044\u30E1\u30E2\u306F\u305D\u306E\u65E8\u3092\u793A\u3059\u3002\u65E7\u8A18\u9332\u306E\u4E0D\u660E\u306A\u65E5\u6642\u306F\u88DC\u308F\u306A\u3044\u3002\u300C\u65B0\u3057\u3044\u8A18\u9332\u300D\u306F\u771F\u507D\u306E\u4FDD\u8A3C\u3067\u306F\u306A\u3044\u3002\n- Done \u3067\u53E4\u3044\u72B6\u6CC1\u8AAC\u660E\u304C\u6B8B\u308B\u53EF\u80FD\u6027\u304C\u3042\u308B\u5834\u5408\u3001CLI\u30FB\u8A73\u7D30\u30D1\u30CD\u30EB\u30FBresume \u306B\u898B\u76F4\u3057\u6848\u5185\u304C\u51FA\u308B\u3002\u672C\u6587\u306F\u81EA\u52D5\u3067\u6D88\u3055\u306A\u3044\u3002\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3001\u5FC5\u8981\u306A\u3089 set B12 --note "\u73FE\u5728\u306E\u8AAC\u660E" (none \u3067\u6D88\u53BB) \u307E\u305F\u306F\u753B\u9762\u306E Notes \u3067\u76F4\u3059\u3002\n- MCP \u306F boxglow_scope / boxglow_focus / boxglow_policy\u3001boxglow_claim\u3001boxglow_port \u306E expect / self\u3001boxglow_start \u306E reason\u3001boxglow_resume \u306E includeCompleted \u3092\u4F7F\u3046\u3002\u5909\u66F4\u306B\u306F contextToken \u3092\u4ED8\u3051\u308B\u3002\n- \u30C7\u30FC\u30BF\u5F62\u5F0F\u306F v5 \u306E\u307E\u307E\u3067\u5168\u9805\u76EE\u306F\u4EFB\u610F\u3002\u65E7\u7248 (0.4.2\u4EE5\u524D) \u306F\u65B0\u3057\u3044\u898F\u5247\u3092\u5B9F\u884C\u305B\u305A\u3001\u4FDD\u5B58\u6642\u306B\u8A08\u753B\u306E workflowPolicy / focusBlockId \u3092\u843D\u3068\u3059\u3002\u3053\u308C\u3089\u3092\u4F7F\u3046\u8A08\u753B\u306E\u66F8\u304D\u624B (CLI\u30FBserve\u30FB\u753B\u9762\u30FB\u62E1\u5F35\u5185\u306E\u30A2\u30D7\u30EA) \u306F\u5BFE\u5FDC\u3057\u305F\u30D3\u30EB\u30C9\u306B\u63C3\u3048\u308B\u3002\u7248\u756A\u53F7\u3060\u3051\u3067\u306A\u304F\u30D3\u30EB\u30C9\u65E5\u6642\u3082\u78BA\u8A8D\u3059\u308B\u3002\n\n\n### Sync decisions\n\nAI may only sync already bound projects and inspect comparisons. If sync stops for a conflict or a human choice, summarize the differences and use ask to notify the user. Never resolve conflicts, create a new binding, relink, recover, adopt, restore, or confirm an account. A human must use the UI or explicitly run CLI with --actor human. AI must never add --actor human, including after a chat answer; record the answer and wait for the human to apply the sync choice.\n\nCodex\u306F\u5168CLI\u547C\u3073\u51FA\u3057\u306B `--actor codex`\u3001Claude Code\u306F `--actor claude-code` \u3092\u660E\u793A\u3059\u308B\u3002WSL\u306A\u3069\u3067\u306F\u5B9F\u884C\u74B0\u5883\u306E\u5370\u304C\u6E21\u3089\u306A\u3044\u3053\u3068\u304C\u3042\u308B\u3002\u30B5\u30D6\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306F `codex-\u4F5C\u696D\u540D` \u306A\u3069\u306B\u5206\u3051\u3001\u4EBA\u3092\u540D\u4E57\u3089\u306A\u3044\u3002\n\n### \u4E26\u5217\u4F5C\u696D\u306E\u53D7\u3051\u6301\u3061\n\n\u8A08\u753B\u3067\u53D7\u3051\u6301\u3061\u304C\u6709\u52B9\u306A\u3089\u3001CLI\u5B9F\u884C\u3054\u3068\u306B\u4E00\u610F\u306E `BOXGLOW_INSTANCE_ID` \u3092\u56FA\u5B9A\u3057\u3001`claims` \u3068 `context` \u3092\u8AAD\u3093\u3067\u304B\u3089 `claim` (\u5177\u4F53\u5316\u30FB\u5206\u89E3\u306E\u524D) \u307E\u305F\u306F `start` (\u5B9F\u884C) \u3059\u308B\u3002`claim` \u3067\u53D6\u3063\u305F\u53D7\u3051\u6301\u3061\u306F\u3001\u305D\u306E\u307E\u307E `start` \u306B\u5F15\u304D\u7D99\u304C\u308C\u308B\u3002\u72EC\u7ACB\u3057\u305F\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u9593\u3067\u5B9F\u884CID\u3092\u5171\u6709\u3057\u306A\u3044\u3002\u65E2\u5B9A\u306F\u30DC\u30C3\u30AF\u30B9\u306E\u307F\u3001\u5FC5\u8981\u306A\u3089 `--scope subtree`\u3002\u6210\u529F\u3057\u305FCLAIM\u884C\u306Etoken\u3092\u4FDD\u6301\u3057\u3001\u4FDD\u5B58\u3059\u308B\u64CD\u4F5C\u306B `--claim-token` \u3092\u4ED8\u3051\u308B\u3002MCP\u306F\u5B9F\u884CID\u3068\u53D7\u9818\u8A3C\u3092\u81EA\u52D5\u3067\u4FDD\u6301\u3059\u308B\u30025\u5206\u3054\u3068 (\u671F\u9650\u304C\u77ED\u3051\u308C\u3070\u534A\u5206\u4EE5\u5185) \u306B `claim-renew` / `boxglow_claim_renew` \u3092\u547C\u3073\u3001\u4E2D\u65AD\u524D\u306Fcheckpoint\u3002done/leave\u306F\u5BFE\u8C61\u306E\u53D7\u3051\u6301\u3061\u3092\u89E3\u653E\u3059\u308B\u3002\u671F\u9650\u5207\u308C\u3084\u4E16\u4EE3\u9055\u3044\u3092\u7121\u8996\u305B\u305A\u3001\u6700\u65B0context\u3092\u78BA\u8A8D\u3057\u3066\u53D6\u308A\u76F4\u3059\u3002\u540C\u540Dactor\u3067\u3082\u5225\u5B9F\u884C\u306E\u53D7\u3051\u6301\u3061\u306F\u596A\u308F\u306A\u3044\u3002\u8A2D\u5B9A\u30FB\u5F37\u5236\u89E3\u9664\u30FB\u540C\u671F\u7AF6\u5408\u306E\u89E3\u6C7A\u306F\u4EBA\u306B\u4F9D\u983C\u3057\u3001AI\u304Chuman\u3092\u540D\u4E57\u3063\u3066\u4EE3\u884C\u3057\u306A\u3044\u3002\u5171\u6709\u30D5\u30A1\u30A4\u30EB\u4EE5\u5916\u306E\u540C\u671F\u30B3\u30D4\u30FC\u9593\u306B\u306F\u6392\u4ED6\u4FDD\u8A3C\u304C\u306A\u3044\u3002\u8A73\u3057\u304F\u306F `docs/CLAIMS.md`\u3002\n\n\u4ED6\u8005\u306E\u5B9F\u884CID\u30FB\u53D7\u9818\u8A3C\u3092\u4F7F\u308F\u306A\u3044\u3002\u8A08\u753B\u3084claims\u306E\u51FA\u529B\u304B\u3089\u4ED6\u8005\u306E\u53D7\u9818\u8A3C\u3092\u7D44\u307F\u7ACB\u3066\u308B\u3053\u3068\u3082\u7981\u6B62\u3002MCP\u518D\u8D77\u52D5\u5F8C\u306E\u540C\u540Dactor\u3082\u5225\u5B9F\u884C\u306A\u306E\u3067\u3001\u81EA\u52D5\u3067\u5F15\u304D\u7D99\u304C\u305A\u671F\u9650\u3092\u5F85\u3064\u304B\u4EBA\u306B\u89E3\u9664\u3092\u983C\u3080\u3002\n\n\u5165\u529B\u306E\u81EA\u52D5\u5F15\u304D\u4E0A\u3052\u306F\u5143\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u7BC4\u56F2\u3067\u6271\u3046\u3002\u5171\u6709\u5165\u529B\u306E\u5185\u5BB9\u5909\u66F4\u3084\u5225\u30DC\u30C3\u30AF\u30B9\u3078\u306E\u914D\u7F6E\u5909\u66F4\u306B\u306F\u3001\u5F71\u97FF\u3059\u308B\u7BC4\u56F2\u306E\u53D6\u5F97\u3082\u5FC5\u8981\u3002focus\u3084group\u306A\u3069\u8A08\u753B\u5168\u4F53\u306E\u8A2D\u5B9A\u306B\u306F `context root` \u2192 `claim root` \u3067root\u3092\u53D6\u5F97\u3057\u3001\u305D\u306ECLAIM\u3092\u6E21\u3059 (`start root` \u3067\u3082\u53D6\u308C\u308B\u304C\u3001\u5B9F\u884C\u4E2D\u306B\u306F\u3057\u306A\u3044 `claim` \u3092\u4F7F\u3046)\u3002root\u306E\u307F\u306E\u53D6\u5F97\u306F\u901A\u5E38\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u542B\u307E\u306A\u3044\u3002\u8A08\u753B\u8A2D\u5B9A\u306E\u5909\u66F4\u306Froot\u306E\u307F\u3067\u8DB3\u308A\u308B\u3002root\u306Esubtree\u306F\u4E26\u884C\u4F5C\u696D\u3092\u5168\u90E8\u6B62\u3081\u308B\u306E\u3067\u3001AI\u306F\u4F7F\u308F\u305A\u4EBA\u306B\u76F8\u8AC7\u3059\u308B\u3002root\u306E\u7D42\u4E86\u306F `leave root`\u3002context guard\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3082\u5F15\u304D\u7D9A\u304D\u5FC5\u8981\u3002\n\n---\n\n\u540C\u671F\u306E\u4EBA\u5C02\u7528\u64CD\u4F5C\u306F\u3001\u5F37\u5236\u7684\u306A\u6A29\u9650\u5206\u96E2\u3067\u306F\u306A\u304F\u8AA4\u64CD\u4F5C\u306E\u9632\u6B62\u3067\u3059\u3002AI \u306F `--actor human` \u3092\u540D\u4E57\u3089\u305A\u3001\u6BD4\u8F03\u3068\u505C\u6B62\u7406\u7531\u3092\u4EBA\u3078\u4F1D\u3048\u3066\u304F\u3060\u3055\u3044\u3002MCP \u3068 AI \u3068\u3057\u3066\u8B58\u5225\u3057\u305F CLI \u306F\u3001\u4EBA\u7528\u306E\u9078\u629E\u30B3\u30DE\u30F3\u30C9\u3092\u51FA\u529B\u3057\u307E\u305B\u3093\u3002\n\n\u4EBA\u306ECLI\u64CD\u4F5C\u306F `--actor human:\u540D\u524D` \u3082\u53D7\u3051\u4ED8\u3051\u307E\u3059\u3002AI\u306F\u3053\u306E\u5F62\u3067\u3082\u4EBA\u3092\u540D\u4E57\u3089\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002AI\u5411\u3051\u505C\u6B62\u6587\u306E `boxglow sync --help` \u306F\u3001AI\u74B0\u5883\u3092\u5F15\u304D\u7D99\u3044\u3060\u4EBA\u3078\u306E\u6848\u5185\u3067\u3059\u3002AI\u306E\u4EE3\u884C\u8A31\u53EF\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002\n';
|
|
13554
|
+
var AGENTS_SNIPPET_default = '# Boxglow \u3092\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u4F7F\u308F\u305B\u308B\u6307\u793A\u66F8 (AGENTS.md / CLAUDE.md \u306B\u8CBC\u308B)\n\n\u4E0B\u306E\u300C---\u300D\u306E\u9593\u3092\u305D\u306E\u307E\u307E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E AGENTS.md (Codex) \u3084 CLAUDE.md (Claude Code) \u306B\u8CBC\u308B\u3002\nboxglow.json \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u76F4\u4E0B\u306B\u7F6E\u304F (`npx boxglow init --name "<\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D>"`)\u3002\n\n---\n\n## Boxglow (\u8A08\u753B\u3068\u9032\u6357\u306E\u5171\u6709)\n\n\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u8A08\u753B\u3068\u9032\u6357\u306F `boxglow.json` \u304C\u6B63\u672C\u3002\u4EBA\u9593\u306F Boxglow \u306E\u753B\u9762\u3067\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u898B\u3066\u3044\u308B\u3002\n\u30D5\u30A1\u30A4\u30EB\u3092\u76F4\u63A5\u7DE8\u96C6\u305B\u305A\u3001\u5FC5\u305A `npx boxglow` \u30B3\u30DE\u30F3\u30C9\u3067\u66F4\u65B0\u3059\u308B\u3053\u3068 (\u7D50\u7DDA\u30EB\u30FC\u30EB\u3068\u5C65\u6B74\u304C\u4FDD\u305F\u308C\u308B)\u3002\n\n\u30D6\u30ED\u30C3\u30AF = \u300C\u5165\u529B\u304B\u3089\u51FA\u529B (\u6210\u679C\u7269) \u3092\u4F5C\u308B\u30BF\u30B9\u30AF\u300D\u3002\u51FA\u529B\u306E\u6210\u679C\u7269\u304C\u78BA\u5B9A\u3057\u305F\u3089\u5B8C\u4E86 (WhiteBox)\u3002\n\u72B6\u614B: BlackBox (\u51FA\u529B\u3060\u3051\u6C7A\u3081\u305F) \u2192 GrayBox (\u7740\u624B\u4E2D) \u2192 WhiteBox (\u5B8C\u4E86)\u3002\n\n### \u4F5C\u696D\u306E\u305F\u3073\u306B\u5B88\u308B\u3053\u3068\n\n1. **\u6700\u521D\u306B\u8AAD\u3080**: `npx boxglow resume` (\u307E\u305F\u306F `npx boxglow status --brief`) \u3067\u3001\u4F5C\u696D\u4E2D\u30FB\u5224\u65AD\u5F85\u3061\u30FBAI \u672A\u78BA\u8A8D\u306E\u56DE\u7B54\u30FB\u6B21\u306E\u5019\u88DC\u30FB\u672A\u5B8C\u4E86\u306E\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u8AAD\u3080\u3002\u524D\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u7D9A\u304D\u306F\u3001\u3053\u3053\u306B\u51FA\u308B\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u304B\u3089\u518D\u958B\u3059\u308B\u3002`npx boxglow show <block>` \u3067\u62C5\u5F53\u3059\u308B\u30DC\u30C3\u30AF\u30B9\u306E\u5165\u51FA\u529B\u3092\u78BA\u8A8D\u3059\u308B\n2. **\u6E96\u5099\u3092\u78BA\u8A8D**: \u53D6\u308A\u304B\u304B\u308B\u524D\u306B `npx boxglow context <block>` \u3092\u8AAD\u3080\u3002\u51FA\u529B\u306E `readiness` \u304C\u6E96\u5099\u306E\u72B6\u614B: `state` \u304C `ready` \u306A\u3089\u7740\u624B\u3067\u304D\u308B\u3002`unprepared` (\u8981\u5177\u4F53\u5316) \u306A\u3089 `unprepared` \u306E\u7406\u7531\u3068 `next` \u306E\u6B21\u306E\u4E00\u624B\u306B\u5F93\u3063\u3066\u5148\u306B\u5177\u4F53\u5316\u3059\u308B\u3002`waiting` \u306F\u5FC5\u9808\u306E\u5165\u529B\u304B\u5206\u5C90\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u308B\n3. **\u53D7\u3051\u6301\u3061\u3001\u5177\u4F53\u5316**: \u5177\u4F53\u5316\u3084\u5206\u89E3\u306E\u524D\u306B `npx boxglow claim <block>` \u3067\u53D7\u3051\u6301\u3061\u3060\u3051\u3092\u53D6\u308B (\u5B9F\u884C\u4E2D\u306B\u306F\u306A\u3089\u306A\u3044\u3002\u53D7\u3051\u6301\u3061\u5236\u5FA1\u304C\u7121\u52B9\u306A\u8A08\u753B\u3067\u306F\u300C\u53D6\u5F97\u4E0D\u8981\u300D\u3067\u6B63\u5E38\u7D42\u4E86\u3059\u308B)\u3002\u305D\u306E\u3046\u3048\u3067\u4E0D\u8DB3\u3092\u57CB\u3081\u308B:\n - \u51FA\u529B\u306E\u4E88\u5B9A\u6210\u679C\u7269: `npx boxglow port <block> --expect "<\u51FA\u529B\u540D>=file:src/x.ts"` (kind \u306F file / dir / url / doc / note / decision / result\u3002hint \u306F\u30D1\u30B9\u306E\u898B\u5F53\u3084\u984C\u540D\u3002\u307E\u3060\u4F5C\u3063\u3066\u3044\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u3067\u3088\u3044)\n - \u5B8C\u4E86\u6761\u4EF6: `npx boxglow scope <block> --acceptance "<\u5B8C\u4E86\u3068\u5224\u65AD\u3059\u308B\u6761\u4EF6>"`\u3002\u51E6\u7406\u306E\u7BC4\u56F2\u306F `--goal`\u3002\u51FA\u529B\u3092\u4F5C\u308B\u3046\u3048\u3067\u5B88\u308B\u6761\u4EF6 (\u6027\u80FD\u30FB\u54C1\u8CEA\u30FB\u30B5\u30A4\u30BA\u30FB\u5BF8\u6CD5\u30FB\u6D88\u8CBB\u96FB\u529B\u306A\u3069) \u306F `--constraints`\n - 1 \u3064\u306E\u30DC\u30C3\u30AF\u30B9\u3067\u51FA\u529B\u3092\u4F5C\u308B\u898B\u901A\u3057\u304C\u7ACB\u305F\u306A\u3044\u306A\u3089 `npx boxglow split <block> --spec \'<JSON>\'` \u3067\u4E2D\u306B\u5C0F\u3055\u306A\u30DC\u30C3\u30AF\u30B9\u3092\u7F6E\u304F\u3002\u4ECA\u56DE\u7740\u624B\u3059\u308B\u5B50\u3060\u3051 expect / acceptance \u3092\u66F8\u304D\u3001\u5148\u306E\u5B50\u306F\u984C\u540D\u3068\u51FA\u529B\u3060\u3051\u3067\u3088\u3044 (\u8981\u5177\u4F53\u5316\u3068\u3057\u3066\u6B8B\u308B)\u3002\u5165\u529B\u306F\u4E0D\u660E\u306A\u3089\u7701\u7565\u3057\u3066\u3088\u3044 (\u81EA\u52D5\u3067\u4E0A\u306E\u968E\u5C64\u306E\u5165\u529B\u306B\u306A\u308B)\n - \u5BFE\u8C61\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u5206\u304B\u3089\u306A\u3044\u3068\u304D\u306F\u3001\u67B6\u7A7A\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u66F8\u304B\u305A\u300C\u5BFE\u8C61\u3092\u7279\u5B9A\u3059\u308B\u8ABF\u67FB\u300D\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u51FA\u529B `note` \u3067\u4F5C\u3063\u3066\u59CB\u3081\u308B\n4. **\u7740\u624B\u3092\u8A18\u9332**: \u6E96\u5099\u304C\u3067\u304D\u305F\u3089 `npx boxglow context <block>` \u3092\u8AAD\u307F\u76F4\u3057\u3066\u304B\u3089 `npx boxglow start <block> --note "<\u4F55\u3092\u3059\u308B\u304B>"`\u3002\u540C\u6642\u306B\u9032\u3081\u308B\u30DC\u30C3\u30AF\u30B9\u306F 1\u301C2 \u500B\u307E\u3067\u3002\n start \u3057\u305F\u30DC\u30C3\u30AF\u30B9\u306B\u300C\u4ECA\u3053\u3053\u300D(\u672C\u5F53\u306B\u3044\u307E\u4F5C\u696D\u3057\u3066\u3044\u308B\u30DC\u30C3\u30AF\u30B9\u3002\u8907\u6570\u306E AI \u3084\u4EBA\u304C\u3044\u308C\u3070\u3001\u3044\u304F\u3064\u3067\u3082) \u304C\u4ED8\u304D\u3001\u753B\u9762\u3067\u592A\u3044\u67A0\u3068 NOW \u306E\u672D\u304C\u4ED8\u304F\u3002\u5225\u306E\u30DC\u30C3\u30AF\u30B9\u306B\u3082\u4ED8\u3051\u308B\u3068\u304D\u306F `npx boxglow now <block>` (\u5916\u3059\u3068\u304D\u306F `--off`\u3001\u5168\u90E8\u6D88\u3059\u3068\u304D\u306F `now none`)\u3002done / leave \u3067\u305D\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u5206\u304C\u5916\u308C\u308B\u3002\u4EBA\u3082\u753B\u9762\u306E\u72B6\u614B\u30BF\u30D6\u306E NOW \u3067\u4ED8\u3051\u5916\u3057\u3059\u308B\n \u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306E\u8981\u6C42 (guard) \u304C\u6709\u52B9\u306A\u8A08\u753B\u3067\u306F\u3001\u51FA\u529B\u306E `contextToken` (\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3) \u3092\u4ED8\u3051\u308B:\n `npx boxglow start <block> --note "<\u4F55\u3092\u3059\u308B\u304B>" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` (\u4E0B\u306E\u300C\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3068\u5F15\u304D\u7D99\u304E\u300D\u3092\u53C2\u7167)\n \u8981\u5177\u4F53\u5316\u306E\u30DC\u30C3\u30AF\u30B9\u3078\u306E start \u306F\u65E2\u5B9A\u3067\u306F\u8B66\u544A (\u7406\u7531\u3068\u6B21\u306E\u4E00\u624B\u304C\u51FA\u308B)\u3002`policy --unprepared reject` \u306E\u8A08\u753B\u3067\u306F\u958B\u59CB\u3067\u304D\u306A\u3044 (`--reason` \u3067\u306F\u901A\u308C\u306A\u3044\u3002\u4EBA\u306E\u64CD\u4F5C\u306F\u901A\u308B)\u3002\u51FA\u529B\u3092\u5B50\u306B\u4EFB\u305B\u304D\u308A\u306E\u89AA\u3082\u5B9F\u884C\u3059\u308B\u3082\u306E\u304C\u7121\u3044\u306E\u3067\u3001\u5B50\u3092 start \u3059\u308B\n5. **\u5B8C\u4E86\u3092\u8A18\u9332**: \u51FA\u529B\u306E\u6210\u679C\u7269\u304C\u3067\u304D\u305F\u3089 `npx boxglow done <block> --artifact "<\u540D\u524D>=<\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D1\u30B9>" --checked "<\u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C>"`\u3002\u691C\u67FB\u7D50\u679C\u306F\u6C7A\u307E\u3063\u305F 3 \u3064\u3067\u6B8B\u3059: `--checked` (\u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C\u3002\u4F8B: "vitest 53 \u4EF6\u6210\u529F; e2e home 34/34")\u3001`--not-checked` (\u8A66\u3057\u3066\u3044\u306A\u3044\u3053\u3068)\u3001`--limits` (\u6B8B\u308B\u5236\u9650\u30FB\u6CE8\u610F)\u3002\u30B3\u30FC\u30C9\u4EE5\u5916\u306E\u6210\u679C\u7269 (\u6587\u66F8\u306A\u3069) \u306F\u300C\u78BA\u8A8D\u3057\u305F\u3053\u3068\u300D\u3092 `--checked` \u306B\u66F8\u304F\u3002\u7BB1\u306B\u6B8B\u308A\u3001context \u3068 show \u306B\u51FA\u308B\u3002\n guard \u304C\u6709\u52B9\u306A\u3089 `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u3092\u4ED8\u3051\u308B (\u76F4\u524D\u306E\u81EA\u5206\u306E\u64CD\u4F5C\u306E\u51FA\u529B\u306B\u300C\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\u300D\u304C\u51FA\u3066\u3044\u308C\u3070\u3001\u305D\u308C\u3092\u4F7F\u3046)\u3002\n HEAD \u306B\u30B3\u30DF\u30C3\u30C8\u6E08\u307F\u3067\u5185\u5BB9\u304C\u4E00\u81F4\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u300C\u30B3\u30DF\u30C3\u30C8 + \u30D1\u30B9 + \u4E2D\u8EAB\u306E\u30CF\u30C3\u30B7\u30E5\u300D\u3067\u8A18\u9332\u3055\u308C\u308B (\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306F\u3057\u306A\u3044)\u3002\u672A\u30B3\u30DF\u30C3\u30C8\u30FB\u672A\u8FFD\u8DE1\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30ED\u30FC\u30AB\u30EB\u53C2\u7167\u3068\u3057\u3066\u6B8B\u308A\u3001\u30B3\u30DF\u30C3\u30C8\u3057\u305F\u5F8C\u306E `npx boxglow check` \u3067 Git \u306E\u53C2\u7167\u306B\u88DC\u5B8C\u3055\u308C\u308B\u3002\u8A18\u9332\u306E\u305F\u3081\u3060\u3051\u306B\u30B3\u30DF\u30C3\u30C8\u3057\u306A\u3044\u3002\u5168\u968E\u5C64\u304C\u5FC5\u8981\u306A\u3089 `npx boxglow status` \u3092\u8AAD\u3080\u3002PR \u3084\u5916\u90E8\u8CC7\u6599\u306F URL \u3067\u3082\u3088\u3044\u3002\n \u6210\u679C\u7269\u3060\u3051\u5148\u306B\u4ED8\u3051\u308B\u306A\u3089 `npx boxglow artifact <block> <\u30D1\u30B9>`\u3002\u9032\u6357\u306E\u9014\u4E2D\u7D4C\u904E\u306F `npx boxglow set <block> --progress 60`\n6. **\u4EBA\u9593\u306E\u5224\u65AD\u304C\u8981\u308B**: `npx boxglow ask <block> "<\u8CEA\u554F>" --options "A|B"`\u3002\u56DE\u7B54\u304C\u3042\u308B\u307E\u3067\u305D\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u9032\u3081\u305A\u3001\u4ED6\u306E\u30DC\u30C3\u30AF\u30B9\u3078\u79FB\u308B\u3002\u4EBA\u306E\u56DE\u7B54\u306F `status` \u306E\u300C\u56DE\u7B54\u3042\u308A\u300D\u306B\u51FA\u308B\u3002\u8AAD\u3093\u3060\u3089 `npx boxglow ack <block>` \u3067\u5F15\u304D\u53D6\u308B (\u305D\u306E\u30DC\u30C3\u30AF\u30B9\u306E `start` / `done` / `set` \u306A\u3069\u3067\u3082\u81EA\u52D5\u3067\u5F15\u304D\u53D6\u3089\u308C\u308B)\u3002\u5F15\u304D\u53D6\u308B\u307E\u3067\u4EBA\u306E\u753B\u9762\u306B\u306F\u300CAI \u672A\u78BA\u8A8D\u300D\u3068\u3057\u3066\u6B8B\u308A\u3001\u4EBA\u304C\u7B54\u3048\u3092\u76F4\u305B\u308B\u3002\u56DE\u7B54\u306E\u4E2D\u306B\u554F\u3044\u8FD4\u3057\u304C\u3042\u308C\u3070\u3001`ask` \u3068 `answer --by <\u81EA\u5206>` \u3067\u81EA\u5206\u306E\u7B54\u3048\u3082\u8A18\u9332\u3059\u308B\n7. **\u8A70\u307E\u3063\u305F\u3089**: \u5165\u529B (\u524D\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u6210\u679C\u7269\u30FB\u8CC7\u6599) \u304C\u8DB3\u308A\u306A\u3044\u3053\u3068\u304C\u539F\u56E0\u306A\u3089\u3001\u8A70\u307E\u308A\u306B\u3057\u306A\u3044\u3002`npx boxglow show <block>` \u3067\u5165\u529B\u306E\u914D\u7DDA\u3092\u78BA\u304B\u3081\u3001\u8DB3\u308A\u306A\u3044\u3082\u306E\u3092\u4F5C\u308B\u30DC\u30C3\u30AF\u30B9\u304C\u7121\u3051\u308C\u3070 `npx boxglow add` \u3067\u5916 (\u4E0A\u6D41) \u306B\u4F5C\u308A\u3001`npx boxglow connect` \u3067\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u5165\u529B\u306B\u3064\u306A\u3050 (\u914D\u7DDA\u304C\u300C\u5F85\u3061\u300D\u306E\u8272\u3067\u6B8B\u308A\u3001\u4F55\u3092\u5F85\u3063\u3066\u3044\u308B\u304B\u304C\u56F3\u3067\u898B\u3048\u308B)\u3002\u9078\u629E\u80A2\u304B\u3089\u9078\u3093\u3067\u3082\u3089\u3048\u3070\u9032\u3081\u308B\u306A\u3089 `ask`\u3002\u305D\u308C\u4EE5\u5916\u306E\u3001\u8A08\u753B\u306E\u5916\u306B\u3042\u308B\u969C\u5BB3 (\u74B0\u5883\u304C\u52D5\u304B\u306A\u3044\u3001\u6A29\u9650\u3084\u30AD\u30FC\u304C\u7121\u3044\u3001\u5916\u90E8\u306E\u8FD4\u4E8B\u5F85\u3061\u3001\u539F\u56E0\u306E\u5206\u304B\u3089\u306A\u3044\u5931\u6557) \u3060\u3051\u3092 `npx boxglow blocked <block> --note "<\u56F0\u3063\u3066\u3044\u308B\u3053\u3068>"` \u3067\u8A18\u9332\u3059\u308B \u8A55\u4FA1\u3084\u691C\u67FB\u3067\u524D\u306E\u6210\u679C\u7269\u304C\u901A\u3089\u306A\u304B\u3063\u305F\u3068\u304D\u306F\u3001\u7DDA\u3067\u623B\u3055\u305A (\u5FAA\u74B0\u306B\u306A\u308B) `npx boxglow sendback <\u8A55\u4FA1\u306E\u7BB1> --to <\u4F5C\u308A\u76F4\u3059\u7BB1> --note "<\u7406\u7531>"` \u3067\u5DEE\u3057\u623B\u3059 (\u305D\u306E\u7BB1\u306F In Progress \u306B\u623B\u308A\u3001\u6210\u679C\u7269\u306F\u5DEE\u3057\u623B\u3057\u6E08\u307F\u3068\u3057\u3066\u6B8B\u308B\u3002\u7406\u7531\u306F context \u306B\u51FA\u308B)\u3002\n8. **\u6210\u679C\u7269\u306E\u78BA\u8A8D**: \u30D5\u30A1\u30A4\u30EB\u3092\u79FB\u52D5\u30FB\u6539\u540D\u3057\u305F\u3089 `npx boxglow check` \u3092\u5B9F\u884C\u3059\u308B (\u79FB\u52D5\u3092\u691C\u51FA\u3057\u3066\u30D1\u30B9\u3092\u4ED8\u3051\u66FF\u3048\u308B\u3002\u898B\u3064\u304B\u3089\u306A\u3051\u308C\u3070\u5370\u304C\u4ED8\u304F)\n9. **\u9032\u6357\u3084\u6C17\u3065\u304D\u3092\u6B8B\u3059**: `npx boxglow log <block> "<\u672C\u6587>"` \u3067\u3001\u65E5\u4ED8\u3068\u66F8\u304D\u624B\u3064\u304D\u306E\u4F5C\u696D\u8A18\u9332\u3092\u30DC\u30C3\u30AF\u30B9\u306B\u8DB3\u3059 (Markdown \u53EF\u3002\u4EBA\u306F\u753B\u9762\u306E\u300C\u8A18\u9332\u300D\u30BF\u30D6\u3067\u540C\u3058\u3082\u306E\u3092\u898B\u3066\u66F8\u304F)\u3002\u5F15\u304D\u7D99\u304E\u30E1\u30E2 (checkpoint) \u306F 1 \u3064\u3092\u4E0A\u66F8\u304D\u3059\u308B\u304C\u3001\u8A18\u9332\u306F\u7A4D\u307F\u4E0A\u304C\u308B\n10. **\u4E2D\u65AD\u30FB\u5F15\u304D\u7D99\u304E\u306E\u524D\u306B**: \u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u7D42\u308F\u308A\u30FB\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306E\u5727\u7E2E\u30FB\u4ED6\u306E AI \u3084\u4EBA\u3078\u306E\u5F15\u304D\u7D99\u304E\u306E\u524D\u306B\u3001`npx boxglow checkpoint <block> --note "\u5206\u304B\u3063\u305F\u3053\u3068; \u6B21\u306B\u3059\u308B\u3053\u3068; \u672A\u89E3\u6C7A\u306E\u3053\u3068"` \u3067\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u6B8B\u3059 (guard \u304C\u6709\u52B9\u306A\u3089 `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u3092\u4ED8\u3051\u308B)\u3002\u4F1A\u8A71\u306E\u5C65\u6B74\u304C\u6D88\u3048\u3066\u3082\u8A08\u753B\u306E\u4E2D\u306B\u6B8B\u308A\u3001\u6B21\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u304C `resume` \u3068 `context` \u3067\u8AAD\u3080\n11. **\u5831\u544A**: \u4F5C\u696D\u306E\u6700\u5F8C\u306B `npx boxglow status --brief` \u306E\u5185\u5BB9\u3092\u8981\u7D04\u3057\u3066\u5831\u544A\u3059\u308B\n\n### \u69CB\u9020\u306E\u7D04\u675F\n\n- **\u307E\u3060\u6C7A\u307E\u3063\u3066\u3044\u306A\u3044\u5206\u304B\u308C\u9053\u306F\u5206\u5C90\u3067\u8868\u3059**: \u8A08\u753B\u3092\u4F5C\u308B\u6642\u70B9\u3067\u3001\u5224\u65AD\u6B21\u7B2C\u3067\u5F8C\u306E\u4F5C\u696D (\u9053) \u304C\u5909\u308F\u308B\u3068\u304D\u306F `npx boxglow branch "<\u984C\u540D>" --options "A|B" --question "<\u554F\u3044>" --context "<\u5224\u65AD\u6750\u6599>"` \u3067\u5206\u5C90\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u4F5C\u308B\u3002\u9078\u629E\u80A2\u3054\u3068\u306B\u9053 (\u51FA\u529B) \u304C\u3067\u304D\u308B\u306E\u3067\u3001\u305D\u308C\u305E\u308C\u306E\u9053\u306E\u6700\u521D\u306E\u30DC\u30C3\u30AF\u30B9\u3078 `connect` \u3059\u308B\u3002\u9053\u304C\u5F8C\u3067 1 \u3064\u306B\u307E\u3068\u307E\u308B\u3068\u3053\u308D\u306B\u306F `npx boxglow join --title "<\u984C\u540D>"` \u3067\u5408\u6D41\u306E\u90E8\u54C1\u3092\u7F6E\u304D\u3001\u305D\u308C\u305E\u308C\u306E\u9053\u306E\u6700\u5F8C\u306E\u51FA\u529B\u3092\u3053\u306E\u90E8\u54C1\u3078 `connect` \u3057\u3001\u90E8\u54C1\u306E\u51FA\u529B\u3092\u5148\u306E\u7BB1\u3078\u3064\u306A\u3050 (\u3069\u308C\u304B 1 \u3064\u306E\u9053\u304C\u5C4A\u3051\u3070\u5148\u3078\u9032\u3080)\u3002\u4EBA\u304C\u7B54\u3048\u308B\u3068\u3001\u9078\u3070\u306A\u304B\u3063\u305F\u9053\u306E\u5148\u306F\u300C\u898B\u9001\u308A\u300D\u306B\u306A\u308A\u3001\u9032\u6357\u3068\u6B21\u306E\u5019\u88DC\u304B\u3089\u5916\u308C\u308B\u3002\u3059\u3067\u306B\u4F5C\u3063\u305F\u30DC\u30C3\u30AF\u30B9\u304C\u5B9F\u306F\u6C7A\u307E\u3063\u3066\u3044\u306A\u3044\u5206\u304B\u308C\u9053\u3060\u3068\u5206\u304B\u3063\u305F\u3089\u3001`npx boxglow branch --box <block> --options "A|B" --question "<\u554F\u3044>"` \u3067\u5206\u5C90\u306B\u5909\u3048\u308B (\u4ECA\u306E\u51FA\u529B\u304C 1 \u3064\u76EE\u306E\u9078\u629E\u80A2\u306E\u9053\u306B\u306A\u308A\u3001\u7DDA\u306F\u6B8B\u308B)\u3002\u7B54\u3048\u304C\u51FA\u308B\u524D\u306E\u9053\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u300C\u5206\u5C90\u5F85\u3061\u300D\u3067\u3001\u7740\u624B\u3059\u308B\u3068\u8B66\u544A\u3055\u308C\u308B (\u5148\u306B\u4E0B\u8ABF\u3079\u3059\u308B\u306A\u3069\u7406\u7531\u304C\u3042\u308C\u3070 `--reason` \u3067\u8A18\u9332\u3059\u308B)\n- \u6700\u4E0A\u4F4D\u306B\u306F\u300C\u5165\u529B\u30CE\u30FC\u30C9\u300D\u300C\u6700\u7D42\u6210\u679C\u7269\u30CE\u30FC\u30C9\u300D\u3068\u300C\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u300D\u3060\u3051\u304C\u3042\u308B\u3002\u30BF\u30B9\u30AF\u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u4E2D\u306B\u7F6E\u304F (`add` \u306E\u65E2\u5B9A\u306E\u89AA\u306F\u6700\u521D\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9)\n- \u968E\u5C64\u306E\u6DF1\u3055\u306B\u5236\u9650\u306F\u306A\u3044\u3002`split` \u306F\u4F55\u6BB5\u3067\u3082\u4F7F\u3048\u308B\n- \u5225\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3082\u4F7F\u3048\u305D\u3046\u306A\u30DC\u30C3\u30AF\u30B9 (\u4F8B: \u5165\u529B\u753B\u50CF\u306E\u30E2\u30CE\u30AF\u30ED\u5316) \u306F `npx boxglow export-block <block> --out <\u540D\u524D>.boxglow-block.json` \u3067\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306B\u3057\u3001\n `npx boxglow import-block <path> --parent <block>` \u3067\u633F\u5165\u3059\u308B\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306E `boxglow-blocks/` \u306B\u7F6E\u3044\u3066\u5171\u6709\u3057\u3066\u3088\u3044\n\n\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u304C\u591A\u3044\u3068\u304D\u306F `npx boxglow group "<\u30B0\u30EB\u30FC\u30D7\u540D>"` \u3067\u30B0\u30EB\u30FC\u30D7\u3092\u4F5C\u308A\u3001`npx boxglow group-set <\u5165\u529B\u540D> <\u30B0\u30EB\u30FC\u30D7\u540D>` \u3067\u5206\u3051\u308B (\u4F8B: PCIe \u4ED5\u69D8\u66F8 / DDR \u4ED5\u69D8\u66F8)\u3002\n\n### split \u306E JSON \u5F62\u5F0F\n\n```json\n{\n "blocks": [\n { "title": "\u5BFE\u8C61\u7B87\u6240\u3092\u7279\u5B9A\u3059\u308B", "inputs": ["\u518D\u73FE\u624B\u9806"], "outputs": ["\u8ABF\u67FB\u30E1\u30E2"],\n "expect": "note:\u5BFE\u8C61\u306E\u30D5\u30A1\u30A4\u30EB\u3068\u51E6\u7406\u3001\u6839\u62E0\u3001\u5909\u66F4\u5019\u88DC\u3001\u78BA\u8A8D\u65B9\u6CD5\u3001\u672A\u6C7A\u4E8B\u9805", "acceptance": "\u5909\u66F4\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u3068\u51E6\u7406\u304C\u6C7A\u307E\u308A\u3001\u5F8C\u7D9A\u306E\u30DC\u30C3\u30AF\u30B9\u306B expect \u3068 acceptance \u3092\u8A2D\u5B9A\u3067\u304D\u308B\u3002\u307E\u305F\u306F\u3001\u8A2D\u5B9A\u3067\u304D\u306A\u3044\u7406\u7531\u3068\u5FC5\u8981\u306A\u5224\u65AD\u304C\u5206\u304B\u308B",\n "goal": "\u518D\u73FE\u3057\u3066\u7D4C\u8DEF\u3092\u8FFD\u3046\u3002\u88FD\u54C1\u30B3\u30FC\u30C9\u306E\u4FEE\u6B63\u306F\u4ECA\u56DE\u306E\u7BC4\u56F2\u5916" },\n { "title": "\u4FDD\u5B58\u306E\u518D\u8A66\u884C\u5F8C\u306B\u540C\u671F\u72B6\u614B\u3092\u53D6\u308A\u76F4\u3059", "inputs": ["\u8ABF\u67FB\u30E1\u30E2"], "outputs": ["\u4FEE\u6B63"],\n "expect": "file:src/sync/state.ts", "acceptance": "\u4FDD\u5B58\u3092\u4E00\u5EA6\u5931\u6557\u3055\u305B\u3001\u518D\u4FDD\u5B58\u5F8C\u306B\u540C\u671F\u72B6\u614B\u3068\u64CD\u4F5C\u304C\u623B\u308B (\u30C6\u30B9\u30C8\u3067\u78BA\u8A8D)" },\n { "title": "\u30EA\u30EA\u30FC\u30B9\u30CE\u30FC\u30C8\u3092\u66F8\u304F", "inputs": ["\u4FEE\u6B63"], "outputs": ["\u30CE\u30FC\u30C8"] }\n ],\n "connections": [\n { "from": "parent.\u518D\u73FE\u624B\u9806", "to": "\u5BFE\u8C61\u7B87\u6240\u3092\u7279\u5B9A\u3059\u308B.\u518D\u73FE\u624B\u9806" },\n { "from": "\u5BFE\u8C61\u7B87\u6240\u3092\u7279\u5B9A\u3059\u308B.\u8ABF\u67FB\u30E1\u30E2", "to": "\u4FDD\u5B58\u306E\u518D\u8A66\u884C\u5F8C\u306B\u540C\u671F\u72B6\u614B\u3092\u53D6\u308A\u76F4\u3059" },\n { "from": "\u4FDD\u5B58\u306E\u518D\u8A66\u884C\u5F8C\u306B\u540C\u671F\u72B6\u614B\u3092\u53D6\u308A\u76F4\u3059.\u4FEE\u6B63", "to": "\u30EA\u30EA\u30FC\u30B9\u30CE\u30FC\u30C8\u3092\u66F8\u304F" },\n { "from": "\u30EA\u30EA\u30FC\u30B9\u30CE\u30FC\u30C8\u3092\u66F8\u304F.\u30CE\u30FC\u30C8", "to": "parent.\u51FA\u529B" }\n ]\n}\n```\n\n`expect` (\u4E88\u5B9A\u6210\u679C\u7269: `"kind:hint"` \u307E\u305F\u306F `{ "kind", "hint" }`)\u3001`acceptance` (\u5B8C\u4E86\u6761\u4EF6)\u3001`goal` (\u4ECA\u56DE\u884C\u3046\u51E6\u7406) \u306F\u4ECA\u56DE\u7740\u624B\u3059\u308B\u5B50\u3060\u3051\u306B\u66F8\u304F\u3002\n3 \u3064\u76EE\u306E\u5B50\u306E\u3088\u3046\u306B\u984C\u540D\u3068\u51FA\u529B\u3060\u3051\u306E\u5B50\u306F\u300C\u8981\u5177\u4F53\u5316\u300D\u3068\u3057\u3066\u6B8B\u308A\u3001\u7740\u624B\u3059\u308B\u756A\u306B\u306A\u3063\u3066\u304B\u3089 `port --expect` / `scope --acceptance` \u3067\u6C7A\u3081\u308B\u3002\n\u89AA\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B (\u5B50\u306E\u6210\u679C\u3092\u7D71\u5408\u3059\u308B\u306A\u3069) \u306F `"parentMakes": ["\u51FA\u529B\u540D"]` \u3067\u5370\u3092\u4ED8\u3051\u308B (\u5B50\u306E\u7D50\u7DDA\u3068\u91CD\u306A\u308B\u3068\u300C\u62C5\u5F53\u304C\u91CD\u8907\u300D\u3068\u6848\u5185\u3055\u308C\u308B)\u3002\n`"splitBy": "\u5DE5\u7A0B"` \u3067\u76F4\u4E0B\u306E\u5B50\u306E\u5206\u3051\u65B9\u3092\u4E00\u8A9E\u3067\u6B8B\u3059 (\u5DE5\u7A0B / \u6210\u679C\u7269 / \u6A5F\u80FD \u306A\u3069\u3002`set <block> --split-by` \u3067\u3082\u66F8\u3051\u308B)\u3002\u540C\u3058\u968E\u5C64\u306E\u5B50\u306F\u540C\u3058\u5206\u3051\u65B9\u30FB\u540C\u3058\u5177\u4F53\u5EA6\u306B\u305D\u308D\u3048\u308B\u3002\n`split` \u304C\u4FDD\u5B58\u3057\u306A\u3044\u306E\u306F\u58CA\u308C\u305F\u69CB\u9020 (\u7D50\u7DDA\u5148\u304C\u7121\u3044\u3001\u5FAA\u74B0\u3001\u5F62\u306E\u9055\u3046 expect) \u3060\u3051\u3002\u5B50\u304C 1 \u500B\u3001\u89AA\u306E\u51FA\u529B\u3092\u4F5C\u308B\u5B50\u304C\u307E\u3060\u7121\u3044\u3001\u3068\u3044\u3063\u305F\u9014\u4E2D\u306E\u5206\u89E3\u306F\u4FDD\u5B58\u3055\u308C\u3001\u4E0D\u8DB3\u3068\u3057\u3066\u8868\u793A\u3055\u308C\u308B\u3002\n\u5206\u89E3\u306E\u5F8C\u3068\u7740\u624B\u306E\u524D\u306B `npx boxglow lint <block>` \u3092\u8AAD\u3080\u3002\u300C\u5FC5\u305A\u76F4\u3059\u300D(\u89AA\u51FA\u529B\u306E\u62C5\u5F53\u306E\u672A\u5B9A\u30FB\u91CD\u8907\u3001\u540C\u3058\u5206\u5C90\u306E\u6392\u4ED6\u306E\u9053\u306E\u4E21\u65B9\u3092\u5FC5\u9808\u306B\u3057\u3066\u3044\u308B\u3001\u4F5C\u696D\u4E2D\u306A\u306E\u306B\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u5B8C\u4E86\u6761\u4EF6\u304C\u7121\u3044\u3001\u691C\u67FB\u306E\u5BFE\u8C61\u305D\u306E\u3082\u306E\u306E\u6B20\u843D) \u306F\u76F4\u3057\u3066\u304B\u3089\u9032\u3080\u3002\n\u300C\u7740\u624B\u306E\u524D\u306B\u57CB\u3081\u308B\u300D(\u307E\u3060\u59CB\u3081\u3066\u3044\u306A\u3044\u30DC\u30C3\u30AF\u30B9\u306E\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u5B8C\u4E86\u6761\u4EF6) \u306F\u3001\u305D\u306E\u5B50\u306E\u7740\u624B\u306E\u756A\u3067\u57CB\u3081\u308C\u3070\u3088\u3044 (\u5148\u306E\u4ED5\u4E8B\u306E\u5206\u3092\u4ECA\u3001\u5F62\u3060\u3051\u66F8\u304B\u306A\u3044)\u3002\n\u300C\u898B\u76F4\u3057\u5019\u88DC\u300D(\u5B50\u304C 1 \u500B\u3001\u3069\u3053\u306B\u3082\u3064\u306A\u304C\u3089\u306A\u3044\u51FA\u529B\u3001\u5F62\u3060\u3051\u306E\u8A18\u5165\u3001\u9053\u306E\u5148\u304C\u7121\u3044\u5206\u5C90\u3001\u5165\u529B 1 \u672C\u306E\u5408\u6D41\u3001\u5144\u5F1F\u306E\u540C\u3058\u4E88\u5B9A\u6210\u679C\u7269) \u306F\u5185\u5BB9\u3092\u898B\u3066\u5224\u65AD\u3059\u308B (\u6A5F\u68B0\u306F\u62D2\u5426\u3057\u306A\u3044)\u3002`context` \u306B\u3082\u4EF6\u6570\u3068\u4E0A\u4F4D 3 \u4EF6\u304C\u51FA\u308B\u3002\n\n**\u5185\u5BB9\u306E\u30EC\u30D3\u30E5\u30FC (\u610F\u5473\u306F\u6A5F\u68B0\u3067\u306F\u5224\u5B9A\u3067\u304D\u306A\u3044\u306E\u3067\u3001AI \u304B\u4EBA\u304C\u6750\u6599\u3092\u8AAD\u3093\u3067\u8A55\u4FA1\u3057\u3001\u6839\u62E0\u3092\u6B8B\u3059)**\n- \u5206\u89E3\u3057\u305F\u5F8C: `npx boxglow review-split <\u89AA>` \u3067\u6750\u6599 (\u89AA\u306E\u76EE\u7684\u30FB\u5236\u7D04\u30FB\u5B8C\u4E86\u6761\u4EF6\u30FB\u5165\u51FA\u529B\u3001\u5B50\u306E\u5BFE\u8C61\u30FB\u5165\u51FA\u529B\u30FB\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u5B8C\u4E86\u6761\u4EF6\u3001\u7D50\u7DDA) \u3068\u30C1\u30A7\u30C3\u30AF\u9805\u76EE\u3092\u8AAD\u307F\u3001\u8A55\u4FA1\u3057\u305F\u3089 `npx boxglow split-ok <\u89AA> --note "<\u6839\u62E0: \u4F55\u3092\u78BA\u8A8D\u3057\u305F\u304B>"` \u3067\u8A18\u9332\u3059\u308B\u3002\n- \u7740\u624B\u3059\u308B\u524D: `npx boxglow review-box <block>` \u3067\u6750\u6599 (\u5BFE\u8C61\u30FB\u51E6\u7406\u30FB\u4E88\u5B9A\u6210\u679C\u7269\u30FB\u78BA\u8A8D\u65B9\u6CD5\u3001\u5165\u529B\u306E\u4F9B\u7D66\u5143\u3001\u4E0A\u6D41\u306E\u5206\u5C90\u306E\u7B54\u3048) \u3092\u8AAD\u307F\u3001`npx boxglow box-ok <block> --note "<\u6839\u62E0>"` \u3067\u8A18\u9332\u3059\u308B\u3002\n- \u8A18\u9332\u306F\u300C\u8A55\u4FA1\u3057\u305F\u3068\u7533\u544A\u3057\u6839\u62E0\u3092\u6B8B\u3057\u305F\u8A18\u9332\u300D\u3067\u3042\u308A\u3001\u59A5\u5F53\u6027\u306E\u8A3C\u660E\u3067\u306F\u306A\u3044\u3002\u6750\u6599\u304C\u5909\u308F\u308B\u3068 `context` \u306E `reviews` \u304C `stale` (\u4F55\u304C\u5909\u308F\u3063\u305F\u304B\u3068\u3001\u4F55\u3092\u78BA\u8A8D\u3059\u308C\u3070\u3088\u3044\u304B\u306E\u6848\u5185\u3064\u304D) \u306B\u306A\u308B\u3002`stale` \u306F\u300C\u5206\u89E3\u304C\u4E0D\u6B63\u300D\u3067\u306F\u306A\u304F\u300C\u524D\u56DE\u306E\u78BA\u8A8D\u5F8C\u306B\u6750\u6599\u304C\u5909\u308F\u3063\u305F\u300D\u3068\u3044\u3046\u610F\u5473\u3002\u4F4D\u7F6E\u3084\u914D\u8272\u3001\u9032\u6357\u3001\u62C5\u5F53\u306E\u5909\u66F4\u3067\u306F\u53E4\u304F\u306A\u3089\u306A\u3044\u3002\u5206\u89E3\u306E\u8A18\u9332\u306F\u5206\u5C90\u306E\u7B54\u3048\u3067\u306F\u53E4\u304F\u306A\u3089\u305A\u3001\u7740\u624B\u6E96\u5099\u306E\u8A18\u9332\u306F\u7B54\u3048\u304C\u5909\u308F\u308B\u3068\u53E4\u304F\u306A\u308B\u3002\n- \u5148\u306E\u5B50\u3092\u7740\u624B\u306E\u756A\u3067\u5177\u4F53\u5316\u3059\u308B\u3068\u3001\u89AA\u306E\u5206\u89E3\u306E\u8A18\u9332\u306F\u5FC5\u305A `stale` \u306B\u306A\u308B (\u5B50\u306E expect / acceptance \u3082\u6750\u6599\u306E\u305F\u3081)\u3002\u305D\u306E\u5B50\u306E expect\u30FBscope \u3092\u4E00\u901A\u308A\u66F8\u304D\u7D42\u3048\u3066\u304B\u3089\u3001\u5909\u308F\u3063\u305F\u5B50\u3068\u3001\u89AA\u306E\u5B8C\u4E86\u6761\u4EF6\u30FB\u5BFE\u8C61\u5916\u7BC4\u56F2\u30FB\u5144\u5F1F\u3068\u306E\u5206\u62C5\u3078\u306E\u5F71\u97FF\u3060\u3051\u3092\u78BA\u8A8D\u3057\u3001\u6574\u5408\u3059\u308C\u3070 `split-ok <\u89AA> --note "B181 \u306E\u5177\u4F53\u5316\u3092\u78BA\u8A8D\u3002\u89AA\u306E\u5BFE\u8C61\u5916\u7BC4\u56F2\u306B\u5165\u3089\u305A\u3001B182 \u3068\u306E\u5206\u62C5\u306F\u91CD\u8907\u3057\u306A\u3044"` \u306E\u3088\u3046\u306B\u66F4\u65B0\u3059\u308B\u3002port \u3084 scope \u306E\u64CD\u4F5C\u3054\u3068\u306B\u518D\u78BA\u8A8D\u306F\u3057\u306A\u3044\u3002\u8907\u6570\u306E\u5B50\u3092\u540C\u6642\u306B\u5177\u4F53\u5316\u3057\u305F\u3089\u3001\u307E\u3068\u3081\u3066\u78BA\u8A8D\u3057\u3066\u3088\u3044\u3002\n- \u7740\u624B\u306E\u6761\u4EF6\u306B\u306F\u3057\u3066\u3044\u306A\u3044 (\u65E2\u5B9A\u3067\u3082 reject \u306E\u8A08\u753B\u3067\u3082)\u3002`start` \u3092\u6B62\u3081\u308B\u306E\u306F\u8981\u5177\u4F53\u5316\u3068\u5165\u529B\u5F85\u3061\u3060\u3051\u3002\n\n**\u5206\u5C90\u30FB\u5408\u6D41\u3092 AI \u304C\u4F7F\u3046**\n- `ask` \u306B\u9078\u629E\u80A2\u3092\u4ED8\u3051\u305F\u3068\u304D\u3001\u7B54\u3048\u3067\u5F8C\u306E\u4F5C\u696D\u304C\u5206\u304B\u308C\u308B\u306A\u3089 `--branch` \u3092\u4ED8\u3051\u308B: \u305D\u306E\u30DC\u30C3\u30AF\u30B9\u304C\u5206\u5C90\u306B\u306A\u308A\u3001\u9078\u629E\u80A2\u3054\u3068\u306E\u9053 (\u51FA\u529B) \u304C\u3067\u304D\u308B\u3002\u5404\u9053\u306E\u6700\u521D\u306E\u30DC\u30C3\u30AF\u30B9\u3078 `connect` \u3057\u3001\u9053\u304C\u307E\u3068\u307E\u308B\u3068\u3053\u308D\u306B `join` \u3092\u7F6E\u304F\u3002\n- `split` \u306E JSON \u3067\u3082\u4F5C\u308C\u308B: \u5B50\u306B `"branch": { "question": "...", "options": ["A", "B"] }` \u3067\u5206\u5C90\u306E\u30DC\u30C3\u30AF\u30B9 (\u51FA\u529B\u306F\u9078\u629E\u80A2\u306E\u540D\u524D)\u3001`"join": true` \u3067\u5408\u6D41\u306E\u90E8\u54C1\u3002\u4F8B:\n `{ "blocks": [{ "title": "\u8A8D\u8A3C\u65B9\u5F0F\u3092\u6C7A\u3081\u308B", "branch": { "question": "\u3069\u308C?", "options": ["\u30E1\u30FC\u30EB", "OAuth"] } }, { "title": "\u30E1\u30FC\u30EB\u3067\u5B9F\u88C5", "outputs": ["\u8A8D\u8A3C"] }, { "title": "OAuth \u3067\u5B9F\u88C5", "outputs": ["\u8A8D\u8A3C"] }, { "title": "\u5408\u6D41", "join": true }], "connections": [{ "from": "\u8A8D\u8A3C\u65B9\u5F0F\u3092\u6C7A\u3081\u308B.\u30E1\u30FC\u30EB", "to": "\u30E1\u30FC\u30EB\u3067\u5B9F\u88C5" }, { "from": "\u8A8D\u8A3C\u65B9\u5F0F\u3092\u6C7A\u3081\u308B.OAuth", "to": "OAuth \u3067\u5B9F\u88C5" }, { "from": "\u30E1\u30FC\u30EB\u3067\u5B9F\u88C5.\u8A8D\u8A3C", "to": "\u5408\u6D41" }, { "from": "OAuth \u3067\u5B9F\u88C5.\u8A8D\u8A3C", "to": "\u5408\u6D41" }, { "from": "\u5408\u6D41.\u5408\u6D41", "to": "parent.\u8A8D\u8A3C" }] }`\n- `lint` \u306F\u3001\u540C\u3058\u5206\u5C90\u306E\u6392\u4ED6\u306E\u9053\u306E\u4E21\u65B9\u3092 1 \u3064\u306E\u30DC\u30C3\u30AF\u30B9\u304C\u5FC5\u9808\u306B\u3057\u3066\u3044\u308B (\u4E21\u65B9\u304C\u5C4A\u304F\u3053\u3068\u306F\u306A\u3044) \u3092\u300C\u5FC5\u305A\u76F4\u3059\u300D\u3001\u9053\u306E\u5148\u304C\u7121\u3044\u30FB\u5408\u6D41\u306E\u5165\u529B\u304C 1 \u672C\u3092\u300C\u898B\u76F4\u3057\u5019\u88DC\u300D\u3068\u3057\u3066\u51FA\u3059\u3002\n`parent.<\u540D\u524D>` \u306F\u5206\u89E3\u3059\u308B\u30DC\u30C3\u30AF\u30B9\u81EA\u8EAB\u306E\u5165\u529B / \u51FA\u529B\u3002`<block>` \u306F\u77ED\u3044 ID (B12 \u306A\u3069\u3002status \u306B\u51FA\u308B) \u304B\u984C\u540D\u3002\n\u51FA\u529B\u306F\u4F5C\u308B\u7269\u3054\u3068\u306B 1 \u672C (1 \u3064\u306E\u4F5C\u696D\u3067\u8907\u6570\u306E\u7269\u304C\u3067\u304D\u308B\u306A\u3089 outputs \u306B\u5168\u90E8\u66F8\u304F\u30022 \u672C\u76EE\u4EE5\u964D\u306E expect \u306F `port <block> --expect "<\u51FA\u529B\u540D>=<kind>:<hint>"`)\u3002\u7DDA\u3067\u3064\u306A\u304C\u308B\u5165\u51FA\u529B\u306F\u540C\u3058\u540D\u524D\u306B\u306A\u308B (\u3069\u3061\u3089\u5074\u3067\u5909\u3048\u3066\u3082\u3001\u3064\u306A\u304C\u308B\u5148\u3082\u5909\u308F\u308B)\u3002\u984C\u540D\u306F\u300C\u4F55\u3092\u4F5C\u308B\u304B\u300D\u304C\u5206\u304B\u308B\u77ED\u3044\u8A00\u8449\u306B\u3059\u308B\u3002\n\u671F\u65E5\u3084\u6642\u9593\u306F `npx boxglow set <block> --due 2026-10-15 --start 2026-10-01 --estimate 8 --hours 3.5` \u3067\u8A18\u9332\u3059\u308B\u3002\n\u30DC\u30C3\u30AF\u30B9\u306B\u306F\u4ED5\u4E8B\u306E\u7A2E\u985E (\u30AB\u30C6\u30B4\u30EA) \u3092\u4ED8\u3051\u308B: `--category design` (\u8A2D\u8A08) / build (\u5B9F\u88C5) / verify (\u691C\u8A3C) / evaluate (\u8A55\u4FA1) / study (\u691C\u8A0E) / research (\u8ABF\u67FB) / ui (\u30C7\u30B6\u30A4\u30F3) / improve (\u6539\u5584) / fix (\u8AB2\u984C\u89E3\u6C7A) / docs (\u6587\u66F8) / ops (\u904B\u7528) / other (\u305D\u306E\u4ED6: \u8FF7\u3063\u305F\u3068\u304D)\u3002add \u306E\u3068\u304D\u306B\u4ED8\u3051\u3001\u5909\u3048\u308B\u306A\u3089 `npx boxglow set <block> --category verify`\u3002\n\u7D50\u7DDA\u306E\u53D7\u3051\u5074\u306F\u984C\u540D\u3060\u3051\u3067\u3088\u3044 (`npx boxglow connect "A.\u8A2D\u8A08\u66F8" "B"` \u3067 B \u306B\u5165\u529B\u300C\u8A2D\u8A08\u66F8\u300D\u304C\u4F5C\u3089\u308C\u3066\u3064\u306A\u304C\u308B\u3002\u968E\u5C64\u304C\u9055\u3063\u3066\u3082\u9014\u4E2D\u306E\u7BB1\u306B\u5165\u51FA\u529B\u3092\u4F5C\u3063\u3066\u901A\u308B\u3002split \u306E connections \u3082 `to: "B"` \u3067\u3088\u3044)\u3002\u7DDA\u3067\u3064\u306A\u304C\u308B\u5165\u51FA\u529B\u306F\u540C\u3058\u540D\u524D\u306B\u306A\u308B (\u3064\u306A\u3044\u3060\u6642\u70B9\u3067\u305D\u308D\u3044\u3001\u3069\u3061\u3089\u5074\u3067\u540D\u524D\u3092\u5909\u3048\u3066\u3082\u3001\u3064\u306A\u304C\u308B\u5148\u304C\u4E00\u7DD2\u306B\u5909\u308F\u308B)\u3002\u65E2\u5B58\u306E\u30DC\u30C3\u30AF\u30B9\u306B\u5165\u51FA\u529B\u3092\u8DB3\u3059 / \u540D\u524D\u3092\u5909\u3048\u308B\u306E\u306F `npx boxglow port <block> --in <\u540D\u524D> --out <\u540D\u524D> --remove <\u540D\u524D> --rename <\u65E7>=<\u65B0>` (\u5165\u529B\u3092\u6D88\u3059\u3068\u3001\u4F7F\u3046\u7BB1\u306E\u5165\u529B\u3082\u6D88\u3048\u308B\u3002\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306F `port inputs`\u3002\u9593\u9055\u3048\u305F\u554F\u3044\u306F `npx boxglow unask <block>` \u3067\u53D6\u308A\u4E0B\u3052\u308B) (`project` = \u6700\u521D\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u3002\u6700\u7D42\u6210\u679C\u7269\u306E\u540D\u524D\u3082\u3053\u308C\u3067\u5909\u3048\u308B)\u3002\u7DDA\u3092\u5916\u3059\u306E\u306F `npx boxglow disconnect <\u984C\u540D.\u51FA\u529B\u540D> <\u984C\u540D.\u5165\u529B\u540D>`\u3001\u30DC\u30C3\u30AF\u30B9\u305D\u306E\u3082\u306E\u3092\u6D88\u3059\u306E\u306F `npx boxglow remove <block>` (\u4E2D\u306B\u30DC\u30C3\u30AF\u30B9\u304C\u3042\u308C\u3070 `--force`)\u3002MCP \u30C4\u30FC\u30EB (`boxglow_status` / `boxglow_start` / `boxglow_done` / `boxglow_ask` \u306A\u3069\u3002\u5229\u7528\u3059\u308B\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u767B\u9332\u6E08\u307F\u306A\u3089\u4F7F\u3048\u308B\u3002`.mcp.json` \u306F Claude Code \u5411\u3051\u3067\u3001Codex \u306F\u5225\u9014\u767B\u9332\u3059\u308B) \u306F\u540C\u3058\u30B3\u30DE\u30F3\u30C9\u306E\u5225\u306E\u5165\u53E3\u3067\u3001\u3069\u3061\u3089\u3067\u66F8\u3044\u3066\u3082\u540C\u3058\u30D5\u30A1\u30A4\u30EB\u304C\u66F4\u65B0\u3055\u308C\u308B\u3002\u8A08\u753B\u306E\u6587\u66F8\u306F `npx boxglow export --out docs/ROADMAP.md`\u3002\n**\u5168\u4F53\u306B\u52B9\u304F\u6C7A\u5B9A\u306F\u65B9\u91DD\u306B\u3059\u308B**: \u6280\u8853\u9078\u5B9A\u30FB\u4F7F\u3046\u30A8\u30F3\u30B8\u30F3\u30FB\u753B\u98A8\u306E\u6C7A\u307E\u308A\u306A\u3069\u3001\u591A\u304F\u306E\u7BB1\u306B\u52B9\u304F\u6C7A\u5B9A\u3092\u51FA\u529B\u306B\u6301\u3064\u7BB1\u306F\u3001\u305D\u306E\u51FA\u529B\u3092\u65B9\u91DD\u306B\u3059\u308B (`npx boxglow port <block> --policy "<\u51FA\u529B\u540D>"`\u3002\u7BC4\u56F2\u306F\u65E2\u5B9A\u3067\u540C\u3058\u89AA\u306E\u4E2D\u3001`--policy-scope all` \u3067\u8A08\u753B\u5168\u4F53\u3001`--advisory` \u3067\u53C2\u8003)\u3002\u7DDA\u3092\u5F15\u304B\u305A\u306B\u7BC4\u56F2\u306E\u7BB1\u3059\u3079\u3066\u3078\u5C4A\u304D\u3001\u6C7A\u307E\u308B\u307E\u3067\u7BC4\u56F2\u306E\u672A\u7740\u624B\u306E\u7BB1\u306F\u300C\u65B9\u91DD\u5F85\u3061\u300D\u306B\u306A\u308B (\u9032\u3081\u3066\u3044\u308B\u7BB1\u306F\u6B62\u307E\u3089\u306A\u3044)\u3002`context` \u306E `policies` \u306B\u4E2D\u8EAB\u304C\u51FA\u308B\u306E\u3067\u3001\u4F5C\u696D\u306E\u524D\u306B\u8AAD\u3080\u3002\u95A2\u4FC2\u306A\u3044\u7BB1\u306F `--skip-policy "<\u7BB1>.<\u51FA\u529B\u540D>"` \u3067\u5916\u3059\u3002\u5B8C\u4E86\u5F8C\u306B\u65B9\u91DD\u304C\u5909\u308F\u308B\u3068 `policyChanged` \u306B\u51FA\u308B (\u78BA\u304B\u3081\u76F4\u3059)\u30021 \u672C\u305A\u3064\u7DDA\u3067\u3064\u306A\u304C\u306A\u3044\u3002\n\n\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u306F\u3001\u65B9\u91DD (README \u3084\u4F9D\u983C\u6587) \u304B\u3089\u6700\u4E0A\u4F4D\u306E\u5927\u9805\u76EE 3\u301C7 \u500B\u3092\u5148\u306B\u4F5C\u308A\u3001\u4EBA\u306B `ask` \u3067\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u7740\u624B\u3059\u308B\u5927\u9805\u76EE\u3060\u3051\u3092 `split` \u3067\u5206\u89E3\u3059\u308B (\u5148\u306E\u6BB5\u968E\u306F\u7C97\u3044\u307E\u307E)\u3002`ask` \u306E\u8CEA\u554F\u306F\u305D\u308C\u3060\u3051\u3067\u5224\u65AD\u3067\u304D\u308B\u3088\u3046\u306B\u66F8\u304D\u3001\u524D\u63D0\u30FB\u6BD4\u8F03\u30FB\u5F71\u97FF\u306F `--context` \u306B\u5165\u308C\u308B (\u300C\u3053\u308C\u3067\u3088\u3044\u3067\u3059\u304B\u300D\u306E\u3088\u3046\u306B\u5916\u3092\u6307\u3055\u306A\u3044)\u3002\u5019\u88DC\u304B\u3089 1 \u3064\u3092\u9078\u3076\u5834\u9762\u3067\u306F\u3001\u81EA\u5206\u3067\u6C7A\u3081\u308B\u3068\u304D\u3082 `ask ... --options "A|B|C"` \u3068 `answer --by <\u81EA\u5206>` \u3067\u8A18\u9332\u3057\u3001\u9078\u3070\u306A\u304B\u3063\u305F\u5019\u88DC\u3092\u6B8B\u3059\u3002\u65B9\u91DD\u8EE2\u63DB\u306F `reopen <block> --note <\u7406\u7531>`\u3002\u3059\u3079\u3066 CLI \u3060\u3051\u3067\u6210\u7ACB\u3059\u308B (\u753B\u9762\u306F\u4EBA\u304C\u898B\u308B\u305F\u3081\u306E\u3082\u306E)\u3002\u4EBA\u304C\u3044\u306A\u3044\u904B\u7528\u306A\u3089\u3001AI \u304C `answer --by <\u81EA\u5206>` \u3067\u5224\u65AD\u3092\u8A18\u9332\u3057\u3066\u9032\u3081\u308B\u3002\n\u51FA\u529B\u306E\u540D\u524D\u306F\u300C\u5177\u4F53\u7684\u306A\u6210\u679C\u7269\u300D\u306B\u3059\u308B (\u4F8B: `\u8A2D\u8A08\u66F8 docs/design.md`\u3001`PR #12`\u3001`\u516C\u958B URL`\u3001`\u30C6\u30B9\u30C8\u7D50\u679C (vitest 53 \u4EF6)`)\u3002\u300C\u6A5F\u80FD\u4E00\u5F0F\u300D\u300C\u6240\u898B\u300D\u306E\u3088\u3046\u306A\u62BD\u8C61\u7684\u306A\u540D\u524D\u306F\u907F\u3051\u3001done \u306E\u3068\u304D\u306F\u5FC5\u305A --artifact \u3067\u30D5\u30A1\u30A4\u30EB\u30FBURL\u30FB\u30B3\u30DF\u30C3\u30C8\u3092\u4ED8\u3051\u308B\u3002\n\u3059\u3079\u3066\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u300C\u5165\u529B \u2192 \u51FA\u529B\u300D\u304C\u4F55\u304B\u306B\u3064\u306A\u304C\u3063\u3066\u3044\u308B\u3088\u3046\u306B\u3059\u308B (\u3064\u306A\u304C\u3063\u3066\u3044\u306A\u3044\u30DC\u30C3\u30AF\u30B9\u306F\u8A08\u753B\u306E\u7A74\u3002\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u30CE\u30FC\u30C9\u306F\u3001\u672A\u63A5\u7D9A\u306E\u5165\u529B\u304C\u81EA\u52D5\u3067\u4E0A\u304C\u308B)\u3002\n\u8907\u6570\u4EBA\u3067\u540C\u3058 boxglow.json \u3092\u7DE8\u96C6\u3059\u308B\u306A\u3089\u3001\u5404\u81EA\u306E clone \u3067\u4E00\u5EA6 `npx boxglow git-setup` \u3092\u5B9F\u884C\u3059\u308B (\u30DC\u30C3\u30AF\u30B9\u306E\u5358\u4F4D\u3067\u81EA\u52D5\u30DE\u30FC\u30B8\u3055\u308C\u3001\u5225\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u5909\u66F4\u306F\u885D\u7A81\u3057\u306A\u3044)\u3002\n\u8907\u6570\u30EA\u30DD\u30B8\u30C8\u30EA\u3092 1 \u3064\u306E\u8A08\u753B\u3067\u7BA1\u7406\u3059\u308B\u3068\u304D\u306F\u3001boxglow.json \u3092\u4E0A\u306E\u30D5\u30A9\u30EB\u30C0\u306B\u7F6E\u304D\u3001\u5404\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u306F\u74B0\u5883\u5909\u6570 BOXGLOW_FILE \u306B\u305D\u306E\u5834\u6240\u3092\u5165\u308C\u308B (\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u3054\u3068\u306B 1 \u3064\u3002`npx boxglow project "\u540D\u524D" --repo <\u30D1\u30B9>`)\u3002\n\u5165\u529B\u306F\u65E2\u5B9A\u3067\u5FC5\u9808\u3002\u7121\u304F\u3066\u3082\u7740\u624B\u3067\u304D\u308B\u5165\u529B\u306F `npx boxglow port <block> --optional <\u5165\u529B\u540D>` \u3067\u300C\u4EFB\u610F\u300D\u306B\u3059\u308B (\u623B\u3059\u306E\u306F `--required`)\u3002\u5165\u51FA\u529B\u306E\u8AAC\u660E\u306F `--describe "<\u540D\u524D>=<\u8AAC\u660E>"`\u3002status \u306E\u300C\u6B21\u306E\u5019\u88DC\u300D\u306F\u5FC5\u9808\u306E\u5165\u529B\u304C\u305D\u308D\u3063\u305F\u30DC\u30C3\u30AF\u30B9\u304B\u3089\u4E26\u3076 (\u300C\u7740\u624B\u3067\u304D\u308B\u300D/\u300C\u5FC5\u9808\u306E\u5165\u529B\u5F85\u3061\u300D\u304C\u4ED8\u304F)\u3002\u8A08\u753B\u306E\u6700\u4E0A\u4F4D\u306E\u5165\u529B (Inputs) \u306B\u8CC7\u6599 (\u4ED5\u69D8\u66F8\u30FB\u30B7\u30CA\u30EA\u30AA\u306A\u3069\u306E\u30D5\u30A1\u30A4\u30EB\u3084 URL) \u304C\u7121\u3044\u3068\u3001\u305D\u308C\u3092\u4F7F\u3046\u7BB1\u306F\u3059\u3079\u3066\u5165\u529B\u5F85\u3061\u306B\u306A\u308B\u3002\u8CC7\u6599\u304C\u624B\u5143\u306B\u3042\u308C\u3070\u3001\u4EBA\u306B\u983C\u307E\u305A\u306B `npx boxglow artifact inputs <\u30D1\u30B9\u304B URL> --input <\u5165\u529B\u540D>` (MCP \u306F `boxglow_artifact` \u306B block: "inputs") \u3067\u81EA\u5206\u3067\u4ED8\u3051\u308B\u3002\u4F5C\u308A\u304B\u3051\u306E\u8CC7\u6599 (\u5BF8\u6CD5\u304C\u672A\u78BA\u5B9A\u306E\u30C7\u30B6\u30A4\u30F3\u306A\u3069) \u306F\u3001\u4ED8\u3051\u305A\u306B\u304A\u304F\u306E\u3067\u3082\u5B8C\u6210\u6271\u3044\u3067\u4ED8\u3051\u308B\u306E\u3067\u3082\u306A\u304F\u3001`npx boxglow artifact <block> <\u30D1\u30B9> --draft` \u3067\u300C\u4F5C\u6210\u4E2D\u300D\u3068\u3057\u3066\u51FA\u529B\u306B\u4ED8\u3051\u308B\u3002\u4F7F\u3046\u5074\u306E\u7BB1\u306F\u5F85\u3063\u305F\u307E\u307E\u3060\u304C\u3001\u4F5C\u308A\u304B\u3051\u3067\u59CB\u3081\u3066\u3088\u3044\u5165\u529B\u306A\u3089\u4F7F\u3046\u5074\u3067 `npx boxglow port <block> --accept-draft <\u5165\u529B\u540D>` \u306B\u3059\u308B\u3068\u7740\u624B\u3067\u304D\u308B (\u4EBA\u306B\u78BA\u304B\u3081\u305F\u3044\u3068\u304D\u306F ask \u3067\u805E\u304F)\u3002\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u306F\u3001\u305D\u306E\u7BB1\u3092 done \u306B\u3059\u308B\u3068\u78BA\u5B9A\u306B\u306A\u308B (\u9014\u4E2D\u3067\u78BA\u5B9A\u3059\u308B\u306A\u3089 `artifact <block> --final <\u984C\u540D>`)\u3002\u4F7F\u3046\u5074\u306B\u6E21\u3055\u306A\u3044\u53C2\u8003\u8CC7\u6599\u306F `--link` \u3067\u7BB1\u306E\u53C2\u8003\u8CC7\u6599\u306B\u4ED8\u3051\u308B\u3002\u9593\u9055\u3048\u3066\u4ED8\u3051\u305F\u6210\u679C\u7269\u30FB\u8CC7\u6599\u306F `npx boxglow artifact <block|inputs> --remove <\u984C\u540D\u304B\u30D1\u30B9>` \u3067\u5916\u3059\u3002\u6E08\u3093\u3060\u7BB1\u306B\u300C\u65B9\u91DD: \u78BA\u304B\u3081\u76F4\u3057\u300D\u304C\u4ED8\u3044\u305F\u3089\u3001\u4F5C\u696D\u304C\u65B9\u91DD\u306B\u5408\u3063\u3066\u3044\u308B\u304B\u3092\u78BA\u304B\u3081\u3001\u5408\u3063\u3066\u3044\u308C\u3070 `npx boxglow ack <block> --policy` \u3067\u5370\u3092\u6D88\u3059 (\u5408\u3063\u3066\u3044\u306A\u3051\u308C\u3070 reopen \u3057\u3066\u76F4\u3059)\u3002\n\u5165\u529B\u306E\u8AAC\u660E\u306F\u66F8\u304B\u306A\u3044 (\u3064\u306A\u304C\u3063\u305F\u51FA\u529B\u5074\u306E\u8AAC\u660E\u304C\u4F7F\u308F\u308C\u308B)\u3002\u51FA\u529B\u306E\u8AAC\u660E\u306B\u5F62\u5F0F\u30FB\u5236\u7D04\u3092\u66F8\u304F\u3002\n\n\n### \u81EA\u52D5\u3067\u52D5\u304F\u4ED5\u7D44\u307F (hooks)\n\n`setup-agent` \u306F Claude Code / Codex \u306E hooks \u306B `boxglow hook` \u3092\u767B\u9332\u3059\u308B\u3002\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u958B\u59CB\u30FB\u518D\u958B\u30FB\u5727\u7E2E\u306E\u5F8C\u306B\u306F\u8A08\u753B\u306E\u518D\u958B\u306E\u6982\u8981 (resume) \u304C\u81EA\u52D5\u3067\u6587\u8108\u306B\u5165\u308B\u3002\u5FDC\u7B54\u3092\u7D42\u3048\u308B\u3068\u304D\u3001\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3067 start \u3057\u305F\u7BB1\u306B\u5F15\u304D\u7D99\u304E (done \u304B checkpoint) \u304C\u7121\u3051\u308C\u3070\u300C\u8A18\u9332\u3057\u3066\u304B\u3089\u7D42\u3048\u308B\u300D\u3088\u3046\u7D9A\u884C\u304C\u6307\u793A\u3055\u308C\u308B (log \u306F\u9032\u6357\u306E\u30E1\u30E2\u3067\u3001\u5F15\u304D\u7D99\u304E\u306E\u4EE3\u308F\u308A\u306B\u306A\u3089\u306A\u3044)\u3002boxglow.json \u3092 Edit / Write / apply_patch \u3067\u76F4\u63A5\u66F8\u304D\u63DB\u3048\u308B\u64CD\u4F5C\u306F\u6B62\u3081\u3089\u308C\u308B (CLI \u304B MCP \u3067\u66F4\u65B0\u3059\u308B)\u3002\u3053\u308C\u3089\u306F\u6307\u793A\u306E\u4EE3\u308F\u308A\u3067\u306F\u306A\u304F\u3001\u5FD8\u308C\u305F\u3068\u304D\u306E\u4FDD\u967A\u306A\u306E\u3067\u3001\u4E0A\u306E\u624B\u9806\u3069\u304A\u308A\u306B\u81EA\u5206\u3067\u8A18\u9332\u3059\u308B\u3002\n\n### \u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3068\u5F15\u304D\u7D99\u304E\n\n\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306E\u8981\u6C42 (guard) \u306F\u3001AI \u304C\u53E4\u3044\u6307\u793A\u306E\u307E\u307E\u4F5C\u696D\u3092\u9032\u3081\u308B\u306E\u3092\u9632\u3050\u4ED5\u7D44\u307F\u3002`setup-agent` \u304C\u6709\u52B9\u306B\u3059\u308B (\u305D\u308C\u4EE5\u5916\u306E\u8A08\u753B\u3067\u306F `npx boxglow guard on`)\u3002\n\u6709\u52B9\u306A\u8A08\u753B\u3067\u306F\u3001AI \u306E `start` / `done` / `set` / `split` / `artifact` / `ack` / `blocked` / `review` / `leave` / `checkpoint` \u306B `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u304C\u8981\u308B\u3002\u4EBA\u306E\u64CD\u4F5C (`--actor human`) \u306B\u306F\u8981\u6C42\u3055\u308C\u306A\u3044\u3002\n\n```\nnpx boxglow context B12 # \u5224\u65AD (\u5F15\u304D\u53D6\u308A\u6E08\u307F\u306E\u56DE\u7B54\u3092\u542B\u3080)\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6\u30FB\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u8AAD\u3080\u3002\u51FA\u529B\u306E contextToken \u304C\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\nnpx boxglow start B12 --note "<\u4F55\u3092\u3059\u308B\u304B>" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\nnpx boxglow ask B12 "<\u8CEA\u554F>" --options "A|B" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\n# \u2192 \u51FA\u529B\u306E\u6700\u5F8C\u306E\u884C: \u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\nnpx boxglow done B12 --artifact "<\u540D\u524D>=<\u30D1\u30B9>" --context-token <\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\n```\n\n- **\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u5909\u308F\u308B\u5834\u5408 (\u8AAD\u307F\u76F4\u3057\u304C\u8981\u308B)**: \u4EBA\u304C\u56DE\u7B54\u3057\u305F\u30FB\u56DE\u7B54\u3092\u76F4\u3057\u305F\u3001\u4EBA\u304C\u6307\u793A (\u984C\u540D\u30FB\u8AAC\u660E\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6) \u3092\u5909\u3048\u305F\u3001\u4ED6\u306E AI \u3084\u4EBA\u304C\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u66F4\u65B0\u3057\u305F\u3002\u89AA\u3084\u5165\u529B\u5143\u306E\u30DC\u30C3\u30AF\u30B9\u3067\u8D77\u304D\u305F\u5834\u5408\u3082\u540C\u3058\u3002\u53E4\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306F\u62D2\u5426\u3055\u308C\u308B\u306E\u3067\u3001`context` \u3092\u8AAD\u307F\u76F4\u3057\u3001\u5909\u308F\u3063\u305F\u5185\u5BB9\u3092\u4F5C\u696D\u306B\u53CD\u6620\u3057\u3066\u304B\u3089\u3084\u308A\u76F4\u3059\n- **\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u5909\u308F\u3089\u306A\u3044\u5834\u5408**: `start` / `blocked` / `review` / `leave` / `ack`\u3001\u9032\u6357\u30FB\u72B6\u614B\u30FB\u671F\u65E5\u30FB\u30AB\u30C6\u30B4\u30EA\u306E\u5909\u66F4\u3001`check` \u306B\u3088\u308B\u6210\u679C\u7269\u306E\u78BA\u8A8D\u3001\u753B\u9762\u3067\u306E\u914D\u7F6E\u306E\u5909\u66F4\u3002\u540C\u3058\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u3044\u7D9A\u3051\u3089\u308C\u308B\n- **\u81EA\u5206\u3067\u66F4\u65B0\u3067\u304D\u308B\u5834\u5408**: \u81EA\u5206\u306E `ask` / `artifact` / `done` / `set` / `split` / `checkpoint` \u306A\u3069\u3067\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u304C\u5909\u308F\u3063\u305F\u3068\u304D\u306F\u3001\u305D\u306E\u51FA\u529B\u306E\u6700\u5F8C\u306E\u884C\u306B\u300C\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\u300D\u304C\u51FA\u308B\u3002\u81EA\u5206\u3067\u5909\u3048\u305F\u5185\u5BB9\u306F\u5206\u304B\u3063\u3066\u3044\u308B\u306E\u3067\u3001\u8AAD\u307F\u76F4\u3055\u305A\u306B\u6B21\u306E\u64CD\u4F5C\u3078\u4F7F\u3046\u3002`ask` / `decision` / `answer` / `reopen` \u306F\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u7121\u3057\u3067\u3082\u5B9F\u884C\u3067\u304D\u308B\u304C\u3001\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u51FA\u308B\u306E\u306F\u6700\u65B0\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u4ED8\u3051\u305F\u3068\u304D\u3060\u3051\n- **\u6700\u521D\u306F\u77ED\u3044\u5F62\u3067\u8AAD\u3080**: `npx boxglow context <block> --brief` \u306F\u3001\u5BFE\u8C61\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u60C5\u5831 (\u8AAC\u660E\u30FB\u7BC4\u56F2\u30FB\u5224\u65AD\u30FB\u5F15\u304D\u7D99\u304E\u30FB\u5165\u51FA\u529B\u30FB\u6210\u679C\u7269) \u306F\u5168\u90E8\u3001\u8A08\u753B\u5168\u4F53\u306E\u8AAC\u660E\u3001\u89AA\u3068\u5165\u529B\u5143\u306E\u984C\u540D\u30FB\u72B6\u614B\u30FB\u5224\u65AD (\u6750\u6599\u3068\u9078\u629E\u80A2\u3064\u304D\u3002\u524D\u306E\u56DE\u7B54\u306E\u5C65\u6B74\u306F\u7701\u304F)\u30FB\u5BFE\u8C61\u306B\u3064\u306A\u304C\u308B\u51FA\u529B\u3092\u51FA\u3059\u3002\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306F `--brief` \u306A\u3057\u3068\u540C\u3058\u306A\u306E\u3067\u3001\u305D\u306E\u307E\u307E `--context-token` \u306B\u4F7F\u3048\u308B\u3002`target.missingInputs` (\u4E0D\u8DB3\u3057\u3066\u3044\u308B\u5FC5\u9808\u306E\u5165\u529B) \u3068 `target.inputs[].sources` (\u3069\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u3069\u306E\u51FA\u529B\u304B\u30FB\u6210\u679C\u7269\u306E\u53C2\u7167) \u3092\u5148\u306B\u898B\u308B\u3002`omitted` \u306B\u7701\u3044\u305F\u4EF6\u6570\u304C\u51FA\u308B\u3002\u7701\u304B\u308C\u305F\u8AAC\u660E\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6\u30FB\u5F15\u304D\u7D99\u304E\u304C\u4F5C\u696D\u306B\u95A2\u308F\u308A\u305D\u3046\u306A\u3089\u3001`--brief` \u306A\u3057\u3067\u8AAD\u3080\u304B\u3001\u305D\u306E\u30DC\u30C3\u30AF\u30B9\u306E `context` \u3092\u8AAD\u3080\n- **\u77ED\u3044\u5F62\u3067\u59CB\u3081\u308B\u524D\u63D0**: \u7BC4\u56F2 (scope) \u3092 1 \u9805\u76EE\u3067\u3082\u8A2D\u5B9A\u3057\u305F\u89AA\u30FB\u5165\u529B\u5143\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u8AAC\u660E\u306F\u3001\u77ED\u3044\u5F62\u3067\u306F\u7701\u304B\u308C\u308B (`omitted.descriptions` \u306B\u4EF6\u6570)\u3002\u7BC4\u56F2\u3092\u8A2D\u5B9A\u3059\u308B\u3068\u304D\u306F\u3001\u8AAC\u660E\u306B\u66F8\u3044\u305F\u5236\u7D04 (\u4E92\u63DB\u6027\u30FB\u7981\u6B62\u4E8B\u9805\u30FB\u671F\u9650\u306A\u3069) \u3092\u7BC4\u56F2\u3078\u5199\u3057\u7D42\u3048\u3066\u304B\u3089\u306B\u3059\u308B\u3002\u5199\u3057\u305F\u304B\u5206\u304B\u3089\u306A\u3044\u8A08\u753B\u30FB`omitted.descriptions` \u304C 0 \u3067\u306A\u3044\u8A08\u753B\u3067\u306F\u3001\u7740\u624B\u524D\u306B `--brief` \u306A\u3057\u3067 1 \u5EA6\u8AAD\u3080\u3002\u77ED\u3044\u5F62\u306F\u8ABF\u67FB\u306E\u51FA\u767A\u70B9\u3067\u3001\u305D\u308C\u3060\u3051\u8AAD\u3081\u3070\u5341\u5206\u3068\u3044\u3046\u4FDD\u8A3C\u3067\u306F\u306A\u3044\n- \u77ED\u3044\u5F62\u3067\u3082\u7528\u304C\u8DB3\u308A\u308B\u3088\u3046\u306B\u66F8\u304F: \u4F5C\u696D\u3092\u7E1B\u308B\u6761\u4EF6\u306F\u8AAC\u660E\u306E\u4E2D\u306B\u57CB\u3081\u305A\u306B scope (non-goals / constraints / acceptance / consult) \u306B\u66F8\u304F\u3002\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u306F\u6700\u65B0\u306E 1 \u4EF6\u3060\u3051\u304C\u6B8B\u308B\u306E\u3067\u3001\u672A\u89E3\u6C7A\u306E\u70B9\u30FB\u6CE8\u610F\u70B9\u30FB\u6B21\u306E\u624B\u9806\u3092\u6BCE\u56DE\u66F8\u304D\u76F4\u3057\u3066\u6301\u3061\u8D8A\u3059\u3002\u8ABF\u3079\u59CB\u3081\u308B\u5834\u6240\u306F\u3001\u5BFE\u8C61\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u8AAC\u660E\u306B\u6B21\u306E\u5F62\u3067\u66F8\u304F (\u51FA\u767A\u70B9\u3067\u3042\u308A\u3001\u305D\u306E\u30D5\u30A1\u30A4\u30EB\u3060\u3051\u8AAD\u3081\u3070\u8DB3\u308A\u308B\u3068\u3044\u3046\u610F\u5473\u3067\u306F\u306A\u3044):\n `\u5909\u66F4\u5019\u88DC: <\u30D1\u30B9> \u2014 <\u8ABF\u3079\u59CB\u3081\u308B\u7406\u7531>` / `\u95A2\u9023\u691C\u67FB: <\u30D1\u30B9\u307E\u305F\u306F\u30B3\u30DE\u30F3\u30C9> \u2014 <\u78BA\u304B\u3081\u308B\u3053\u3068>`\n- \u53E4\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u901A\u3059\u305F\u3081\u306B guard \u3092\u7121\u52B9\u306B\u3057\u306A\u3044 (AI \u304C `guard off` \u3059\u308B\u306B\u306F\u6700\u65B0\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u8981\u308B)\n- MCP \u3067\u306F `boxglow_context` \u3068\u3001\u5404\u30C4\u30FC\u30EB\u306E `contextToken` \u5F15\u6570\u3092\u4F7F\u3046 (\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306F\u30C4\u30FC\u30EB\u306E\u7D50\u679C\u306E\u6700\u5F8C\u306E\u884C\u306B\u51FA\u308B)\n- \u300C\u4ED6\u306E Boxglow \u304C\u66F8\u304D\u8FBC\u307F\u4E2D (\u30ED\u30C3\u30AF\u4E2D)\u300D\u3068\u51FA\u3066\u3001\u5C11\u3057\u5F85\u3063\u3066\u3084\u308A\u76F4\u3057\u3066\u3082\u89E3\u3051\u306A\u3044\u3068\u304D\u306F\u3001`npx boxglow unlock` \u306E\u8868\u793A (\u6301\u3061\u4E3B\u3068\u5224\u5B9A) \u3092\u4EBA\u306B\u898B\u305B\u3066\u89E3\u9664\u3092\u983C\u3080\u3002\u81EA\u5206\u3067 `--actor human` \u3092\u4ED8\u3051\u305F\u308A\u3001\u30ED\u30C3\u30AF\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u76F4\u63A5\u6D88\u3057\u305F\u308A\u3057\u306A\u3044\n\n### \u7740\u624B\u30FB\u5B8C\u4E86\u3001\u4ECA\u56DE\u306E\u7BC4\u56F2\u3001\u8A18\u9332\u306E\u9BAE\u5EA6\n\n- \u6700\u521D\u306B resume \u306E\u73FE\u6CC1 (\u6D3B\u52D5\u30FB\u5224\u65AD\u5F85\u3061\u30FB\u672A\u78BA\u8A8D\u56DE\u7B54) \u3092\u8AAD\u3080\u3002\u5019\u88DC\u306F\u300C\u4ECA\u56DE\u306E\u7BC4\u56F2 / \u305D\u306E\u4ED6\u300D\u306E\u5404\u7D44\u3067\u300C\u7740\u624B\u3067\u304D\u308B / \u8981\u5177\u4F53\u5316 / \u5165\u529B\u5F85\u3061\u300D\u306B\u5206\u304B\u308C\u3001\u8981\u5177\u4F53\u5316\u306E\u7406\u7531\u3068\u4E0D\u8DB3\u3059\u308B\u5165\u529B\u540D\u304C\u51FA\u308B\u3002\u8981\u5177\u4F53\u5316\u3084\u5165\u529B\u5F85\u3061\u3092\u3001\u6E96\u5099\u6E08\u307F\u3068\u53D6\u308A\u9055\u3048\u306A\u3044\u3002\n- \u300C\u7740\u624B\u3067\u304D\u308B\u300D(Ready) \u306F\u3001\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B\u304C\u3042\u308A\u3001\u305D\u306E\u4E88\u5B9A\u6210\u679C\u7269 (expect) \u3068\u5B8C\u4E86\u6761\u4EF6 (acceptance) \u304C\u66F8\u304B\u308C\u3001\u5FC5\u9808\u306E\u5165\u529B\u304C\u305D\u308D\u3063\u3066\u3044\u308B\u3001\u3068\u3044\u3046\u6A5F\u68B0\u691C\u67FB\u306E\u7D50\u679C\u3002\u5185\u5BB9\u304C\u5177\u4F53\u7684\u304B\u3069\u3046\u304B\u307E\u3067\u306F\u4FDD\u8A3C\u3057\u306A\u3044 (`expect = src/`\u3001`acceptance = \u52D5\u4F5C\u3059\u308B` \u3067\u3082\u901A\u308B)\u3002\u5BFE\u8C61\u30FB\u51E6\u7406\u30FB\u6210\u679C\u30FB\u78BA\u8A8D\u65B9\u6CD5\u3092\u7B2C\u4E09\u8005\u304C\u8FFD\u3048\u308B\u3088\u3046\u306B\u66F8\u304F\u3002\n- \u30DC\u30C3\u30AF\u30B9\u306E\u4EFB\u610F5\u9805\u76EE\u3092 scope \u3067\u8A2D\u5B9A\u3059\u308B\u3002goal = \u4ECA\u56DE\u9054\u6210\u3059\u308B\u3053\u3068\u3001non-goals = \u4ECA\u56DE\u306F\u6271\u308F\u306A\u3044\u3053\u3068\u3001acceptance = \u5B8C\u4E86\u3068\u5224\u65AD\u3059\u308B\u6761\u4EF6\u3001consult = \u7BC4\u56F2\u3092\u5E83\u3052\u308B\u524D\u306B\u76F8\u8AC7\u3059\u308B\u6761\u4EF6\u3002context \u306E\u5148\u982D\u3067\u5BFE\u8C61\u3068\u89AA\u306E\u7BC4\u56F2\u3092\u8AAD\u307F\u3001\u7740\u624B\u524D\u3068\u5B8C\u4E86\u524D\u306B\u7167\u5408\u3059\u308B\u3002\u5B8C\u4E86\u6761\u4EF6\u306E\u672C\u6587\u3092AI\u304C\u6E80\u305F\u3057\u305F\u304B\u306F\u81EA\u52D5\u5224\u5B9A\u3057\u306A\u3044\u3002\n- scope B12 --goal "\u9054\u6210\u3059\u308B\u3053\u3068" --non-goals "\u4ECA\u56DE\u6271\u308F\u306A\u3044\u3053\u3068" --acceptance "\u78BA\u8A8D\u3059\u308B\u6761\u4EF6" --consult "\u76F8\u8AC7\u3059\u308B\u6761\u4EF6" \u3067\u8A2D\u5B9A\u3059\u308B\u3002scope B12 \u306F\u8868\u793A\u3060\u3051\u3002\u5404\u9805\u76EE\u306B none \u307E\u305F\u306F\u7A7A\u6587\u5B57\u3092\u6E21\u3059\u3068\u6D88\u3059\u3002\u753B\u9762\u3067\u306F\u8A73\u7D30\u30D1\u30CD\u30EB\u306E\u300C\u305D\u306E\u4ED6\u300D\u30BF\u30D6 \u2192\u300C\u4F5C\u696D\u7BC4\u56F2\u3092\u7DE8\u96C6\u300D\u3002\u8A18\u5165\u6E08\u307F\u306E\u9805\u76EE\u3060\u3051\u304C\u300C\u4ECA\u56DE\u306E\u7BC4\u56F2\u300D\u306B\u51FA\u308B\u3002\n- focus B12 \u3067\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u3068\u914D\u4E0B\u3092\u6B21\u5019\u88DC\u306E\u5148\u982D\u306B\u3059\u308B\u3002focus \u306F\u73FE\u5728\u306E\u5BFE\u8C61\u306E\u8868\u793A\u3001focus none \u306F\u89E3\u9664\u3002\u5BFE\u8C61\u5916\u3082\u5225\u306E\u7D44\u306B\u6B8B\u308B\u3002\u5019\u88DC\u306B\u51FA\u308B\u3053\u3068\u81EA\u4F53\u306F\u4F5C\u696D\u7BC4\u56F2\u306E\u62E1\u5927\u3084\u516C\u958B\u3092\u8A31\u53EF\u3057\u306A\u3044\u3002\n- start \u306E\u5FC5\u9808\u5165\u529B\u4E0D\u8DB3\u306F\u65E2\u5B9A\u3067\u8B66\u544A\u3059\u308B\u304C\u3001\u5F93\u6765\u3069\u304A\u308A\u958B\u59CB\u3067\u304D\u308B\u3002\u5148\u884C\u4F5C\u696D\u304C\u5FC5\u8981\u306A\u3089 --reason "\u5148\u306B\u884C\u3046\u7406\u7531" \u3092\u4ED8\u3051\u308B\u3002\u8B66\u544A\u306F\u51FA\u305A\u3001\u7406\u7531\u306F\u6D3B\u52D5\u3068\u30ED\u30B0\u306B\u6B8B\u308B\u3002done \u306E\u51FA\u529B\u6210\u679C\u7269\u306A\u3057\u3082\u65E2\u5B9A\u3067\u8B66\u544A\u306E\u307F\u3002\u65E2\u5B58\u306E\u51FA\u529B\u6210\u679C\u7269\u307E\u305F\u306F --artifact \u3092\u6570\u3048\u3001\u30DC\u30C3\u30AF\u30B9\u306E\u53C2\u8003\u8CC7\u6599\u306F\u6570\u3048\u306A\u3044\u3002\n- \u8A08\u753B\u3067\u9078\u3076\u5834\u5408\u3060\u3051 policy --start reject --done reject --unprepared reject \u306B\u3059\u308B\u3002\u305D\u308C\u305E\u308C warn \u306B\u623B\u305B\u308B\u3002\u5165\u529B\u5F85\u3061\u306E\u62D2\u5426\u3067\u3082\u7406\u7531\u4ED8\u304D\u306E\u958B\u59CB\u306F\u53EF\u80FD\u3060\u304C\u3001\u8981\u5177\u4F53\u5316\u306E\u62D2\u5426\u306F\u7406\u7531\u3067\u306F\u901A\u308C\u306A\u3044 (\u5148\u306B\u5177\u4F53\u5316\u3059\u308B)\u3002\u6210\u679C\u7269\u306A\u3057\u306E\u62D2\u5426\u306F set --status white \u306B\u3082\u52B9\u304F\u3002\u4EBA\u306E\u64CD\u4F5C (\u753B\u9762 / --actor human) \u306F\u62D2\u5426\u3057\u306A\u3044\u3002AI\u304C\u62D2\u5426\u3092\u907F\u3051\u308B\u305F\u3081\u306B\u4EBA\u3092\u540D\u4E57\u3063\u305F\u308A\u3001\u8A2D\u5B9A\u3092\u5F31\u3081\u305F\u308A\u3057\u306A\u3044\u3002\n- guard \u6709\u52B9\u6642\u3001scope \u306E\u5909\u66F4\u3001focus \u306E\u8A2D\u5B9A\u30FB\u89E3\u9664\u3001policy \u306E\u5909\u66F4\u306B\u3082 --context-token \u304C\u5FC5\u8981\u3002scope/focus/policy \u3092\u5909\u3048\u308B\u3068\u65B0\u3057\u3044\u30C8\u30FC\u30AF\u30F3\u304C\u51FA\u308B\u306E\u3067\u3001\u6B21\u306E\u64CD\u4F5C\u306F\u305D\u308C\u3092\u4F7F\u3046\u3002\u8868\u793A\u3060\u3051\u306B\u306F\u4E0D\u8981\u3002\n- resume \u306F\u5B8C\u4E86\u6E08\u307F\u306E\u5F15\u304D\u7D99\u304E\u672C\u6587\u3092\u96A0\u3057\u3001\u4EF6\u6570\u3060\u3051\u793A\u3059\u3002\u5C65\u6B74\u304C\u5FC5\u8981\u306A\u5834\u5408\u3060\u3051 resume --include-completed \u3067\u5C55\u958B\u3059\u308B (context / show \u3067\u306F\u500B\u5225\u306B\u8AAD\u3081\u308B)\u3002\n- \u8AAC\u660E\u306F descriptionUpdatedAt\u3001\u72B6\u614B\u306F statusChangedAt\u3001\u5F15\u304D\u7D99\u304E\u306F\u65E2\u5B58\u306E at \u3067\u65E5\u6642\u3092\u78BA\u8A8D\u3067\u304D\u308B\u3002\u72B6\u614B\u5909\u66F4\u3088\u308A\u53E4\u3044\u30E1\u30E2\u306F\u305D\u306E\u65E8\u3092\u793A\u3059\u3002\u65E7\u8A18\u9332\u306E\u4E0D\u660E\u306A\u65E5\u6642\u306F\u88DC\u308F\u306A\u3044\u3002\u300C\u65B0\u3057\u3044\u8A18\u9332\u300D\u306F\u771F\u507D\u306E\u4FDD\u8A3C\u3067\u306F\u306A\u3044\u3002\n- Done \u3067\u53E4\u3044\u72B6\u6CC1\u8AAC\u660E\u304C\u6B8B\u308B\u53EF\u80FD\u6027\u304C\u3042\u308B\u5834\u5408\u3001CLI\u30FB\u8A73\u7D30\u30D1\u30CD\u30EB\u30FBresume \u306B\u898B\u76F4\u3057\u6848\u5185\u304C\u51FA\u308B\u3002\u672C\u6587\u306F\u81EA\u52D5\u3067\u6D88\u3055\u306A\u3044\u3002\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3001\u5FC5\u8981\u306A\u3089 set B12 --note "\u73FE\u5728\u306E\u8AAC\u660E" (none \u3067\u6D88\u53BB) \u307E\u305F\u306F\u753B\u9762\u306E Notes \u3067\u76F4\u3059\u3002\n- MCP \u306F boxglow_scope / boxglow_focus / boxglow_policy\u3001boxglow_claim\u3001boxglow_port \u306E expect / self\u3001boxglow_start \u306E reason\u3001boxglow_resume \u306E includeCompleted \u3092\u4F7F\u3046\u3002\u5909\u66F4\u306B\u306F contextToken \u3092\u4ED8\u3051\u308B\u3002\n- \u30C7\u30FC\u30BF\u5F62\u5F0F\u306F v5 \u306E\u307E\u307E\u3067\u5168\u9805\u76EE\u306F\u4EFB\u610F\u3002\u65E7\u7248 (0.4.2\u4EE5\u524D) \u306F\u65B0\u3057\u3044\u898F\u5247\u3092\u5B9F\u884C\u305B\u305A\u3001\u4FDD\u5B58\u6642\u306B\u8A08\u753B\u306E workflowPolicy / focusBlockId \u3092\u843D\u3068\u3059\u3002\u3053\u308C\u3089\u3092\u4F7F\u3046\u8A08\u753B\u306E\u66F8\u304D\u624B (CLI\u30FBserve\u30FB\u753B\u9762\u30FB\u62E1\u5F35\u5185\u306E\u30A2\u30D7\u30EA) \u306F\u5BFE\u5FDC\u3057\u305F\u30D3\u30EB\u30C9\u306B\u63C3\u3048\u308B\u3002\u7248\u756A\u53F7\u3060\u3051\u3067\u306A\u304F\u30D3\u30EB\u30C9\u65E5\u6642\u3082\u78BA\u8A8D\u3059\u308B\u3002\n\n\n### Sync decisions\n\nAI may only sync already bound projects and inspect comparisons. If sync stops for a conflict or a human choice, summarize the differences and use ask to notify the user. Never resolve conflicts, create a new binding, relink, recover, adopt, restore, or confirm an account. A human must use the UI or explicitly run CLI with --actor human. AI must never add --actor human, including after a chat answer; record the answer and wait for the human to apply the sync choice.\n\nCodex\u306F\u5168CLI\u547C\u3073\u51FA\u3057\u306B `--actor codex`\u3001Claude Code\u306F `--actor claude-code` \u3092\u660E\u793A\u3059\u308B\u3002WSL\u306A\u3069\u3067\u306F\u5B9F\u884C\u74B0\u5883\u306E\u5370\u304C\u6E21\u3089\u306A\u3044\u3053\u3068\u304C\u3042\u308B\u3002\u30B5\u30D6\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306F `codex-\u4F5C\u696D\u540D` \u306A\u3069\u306B\u5206\u3051\u3001\u4EBA\u3092\u540D\u4E57\u3089\u306A\u3044\u3002\n\n### \u4E26\u5217\u4F5C\u696D\u306E\u53D7\u3051\u6301\u3061\n\n\u8A08\u753B\u3067\u53D7\u3051\u6301\u3061\u304C\u6709\u52B9\u306A\u3089\u3001CLI\u5B9F\u884C\u3054\u3068\u306B\u4E00\u610F\u306E `BOXGLOW_INSTANCE_ID` \u3092\u56FA\u5B9A\u3057\u3001`claims` \u3068 `context` \u3092\u8AAD\u3093\u3067\u304B\u3089 `claim` (\u5177\u4F53\u5316\u30FB\u5206\u89E3\u306E\u524D) \u307E\u305F\u306F `start` (\u5B9F\u884C) \u3059\u308B\u3002`claim` \u3067\u53D6\u3063\u305F\u53D7\u3051\u6301\u3061\u306F\u3001\u305D\u306E\u307E\u307E `start` \u306B\u5F15\u304D\u7D99\u304C\u308C\u308B\u3002\u72EC\u7ACB\u3057\u305F\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u9593\u3067\u5B9F\u884CID\u3092\u5171\u6709\u3057\u306A\u3044\u3002\u65E2\u5B9A\u306F\u30DC\u30C3\u30AF\u30B9\u306E\u307F\u3001\u5FC5\u8981\u306A\u3089 `--scope subtree`\u3002\u6210\u529F\u3057\u305FCLAIM\u884C\u306Etoken\u3092\u4FDD\u6301\u3057\u3001\u4FDD\u5B58\u3059\u308B\u64CD\u4F5C\u306B `--claim-token` \u3092\u4ED8\u3051\u308B\u3002MCP\u306F\u5B9F\u884CID\u3068\u53D7\u9818\u8A3C\u3092\u81EA\u52D5\u3067\u4FDD\u6301\u3059\u308B\u30025\u5206\u3054\u3068 (\u671F\u9650\u304C\u77ED\u3051\u308C\u3070\u534A\u5206\u4EE5\u5185) \u306B `claim-renew` / `boxglow_claim_renew` \u3092\u547C\u3073\u3001\u4E2D\u65AD\u524D\u306Fcheckpoint\u3002done/leave\u306F\u5BFE\u8C61\u306E\u53D7\u3051\u6301\u3061\u3092\u89E3\u653E\u3059\u308B\u3002\u671F\u9650\u5207\u308C\u3084\u4E16\u4EE3\u9055\u3044\u3092\u7121\u8996\u305B\u305A\u3001\u6700\u65B0context\u3092\u78BA\u8A8D\u3057\u3066\u53D6\u308A\u76F4\u3059\u3002\u540C\u540Dactor\u3067\u3082\u5225\u5B9F\u884C\u306E\u53D7\u3051\u6301\u3061\u306F\u596A\u308F\u306A\u3044\u3002\u8A2D\u5B9A\u30FB\u5F37\u5236\u89E3\u9664\u30FB\u540C\u671F\u7AF6\u5408\u306E\u89E3\u6C7A\u306F\u4EBA\u306B\u4F9D\u983C\u3057\u3001AI\u304Chuman\u3092\u540D\u4E57\u3063\u3066\u4EE3\u884C\u3057\u306A\u3044\u3002\u5171\u6709\u30D5\u30A1\u30A4\u30EB\u4EE5\u5916\u306E\u540C\u671F\u30B3\u30D4\u30FC\u9593\u306B\u306F\u6392\u4ED6\u4FDD\u8A3C\u304C\u306A\u3044\u3002\u8A73\u3057\u304F\u306F `docs/CLAIMS.md`\u3002\n\n\u4ED6\u8005\u306E\u5B9F\u884CID\u30FB\u53D7\u9818\u8A3C\u3092\u4F7F\u308F\u306A\u3044\u3002\u8A08\u753B\u3084claims\u306E\u51FA\u529B\u304B\u3089\u4ED6\u8005\u306E\u53D7\u9818\u8A3C\u3092\u7D44\u307F\u7ACB\u3066\u308B\u3053\u3068\u3082\u7981\u6B62\u3002MCP\u518D\u8D77\u52D5\u5F8C\u306E\u540C\u540Dactor\u3082\u5225\u5B9F\u884C\u306A\u306E\u3067\u3001\u81EA\u52D5\u3067\u5F15\u304D\u7D99\u304C\u305A\u671F\u9650\u3092\u5F85\u3064\u304B\u4EBA\u306B\u89E3\u9664\u3092\u983C\u3080\u3002\n\n\u5165\u529B\u306E\u81EA\u52D5\u5F15\u304D\u4E0A\u3052\u306F\u5143\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u7BC4\u56F2\u3067\u6271\u3046\u3002\u5171\u6709\u5165\u529B\u306E\u5185\u5BB9\u5909\u66F4\u3084\u5225\u30DC\u30C3\u30AF\u30B9\u3078\u306E\u914D\u7F6E\u5909\u66F4\u306B\u306F\u3001\u5F71\u97FF\u3059\u308B\u7BC4\u56F2\u306E\u53D6\u5F97\u3082\u5FC5\u8981\u3002focus\u3084group\u306A\u3069\u8A08\u753B\u5168\u4F53\u306E\u8A2D\u5B9A\u306B\u306F `context root` \u2192 `claim root` \u3067root\u3092\u53D6\u5F97\u3057\u3001\u305D\u306ECLAIM\u3092\u6E21\u3059 (`start root` \u3067\u3082\u53D6\u308C\u308B\u304C\u3001\u5B9F\u884C\u4E2D\u306B\u306F\u3057\u306A\u3044 `claim` \u3092\u4F7F\u3046)\u3002root\u306E\u307F\u306E\u53D6\u5F97\u306F\u901A\u5E38\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u542B\u307E\u306A\u3044\u3002\u8A08\u753B\u8A2D\u5B9A\u306E\u5909\u66F4\u306Froot\u306E\u307F\u3067\u8DB3\u308A\u308B\u3002root\u306Esubtree\u306F\u4E26\u884C\u4F5C\u696D\u3092\u5168\u90E8\u6B62\u3081\u308B\u306E\u3067\u3001AI\u306F\u4F7F\u308F\u305A\u4EBA\u306B\u76F8\u8AC7\u3059\u308B\u3002root\u306E\u7D42\u4E86\u306F `leave root`\u3002context guard\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3082\u5F15\u304D\u7D9A\u304D\u5FC5\u8981\u3002\n\n---\n\n\u540C\u671F\u306E\u4EBA\u5C02\u7528\u64CD\u4F5C\u306F\u3001\u5F37\u5236\u7684\u306A\u6A29\u9650\u5206\u96E2\u3067\u306F\u306A\u304F\u8AA4\u64CD\u4F5C\u306E\u9632\u6B62\u3067\u3059\u3002AI \u306F `--actor human` \u3092\u540D\u4E57\u3089\u305A\u3001\u6BD4\u8F03\u3068\u505C\u6B62\u7406\u7531\u3092\u4EBA\u3078\u4F1D\u3048\u3066\u304F\u3060\u3055\u3044\u3002MCP \u3068 AI \u3068\u3057\u3066\u8B58\u5225\u3057\u305F CLI \u306F\u3001\u4EBA\u7528\u306E\u9078\u629E\u30B3\u30DE\u30F3\u30C9\u3092\u51FA\u529B\u3057\u307E\u305B\u3093\u3002\n\n\u4EBA\u306ECLI\u64CD\u4F5C\u306F `--actor human:\u540D\u524D` \u3082\u53D7\u3051\u4ED8\u3051\u307E\u3059\u3002AI\u306F\u3053\u306E\u5F62\u3067\u3082\u4EBA\u3092\u540D\u4E57\u3089\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002AI\u5411\u3051\u505C\u6B62\u6587\u306E `boxglow sync --help` \u306F\u3001AI\u74B0\u5883\u3092\u5F15\u304D\u7D99\u3044\u3060\u4EBA\u3078\u306E\u6848\u5185\u3067\u3059\u3002AI\u306E\u4EE3\u884C\u8A31\u53EF\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002\n';
|
|
13421
13555
|
|
|
13422
13556
|
// docs/AGENTS_SNIPPET.en.md
|
|
13423
|
-
var AGENTS_SNIPPET_en_default = '# Instructions for agents using Boxglow (paste into AGENTS.md / CLAUDE.md)\n\nPaste the part between the "---" lines below, as is, into your repository\'s AGENTS.md (Codex) or CLAUDE.md (Claude Code).\nPut boxglow.json at the repository root (`npx boxglow init --name "<project name>"`).\n\n---\n\n## Boxglow (shared plan and progress)\n\n`boxglow.json` is the source of truth for this repository\'s plan and progress. Humans watch this file on the Boxglow screen.\nDo not edit the file directly; always update it with `npx boxglow` commands (this keeps the wiring rules and the history intact).\n\nA block = "a task that turns inputs into an output (deliverable)". It is done (WhiteBox) once the output\'s deliverable is settled.\nStatus: BlackBox (only the output is decided) \u2192 GrayBox (in progress) \u2192 WhiteBox (done).\n\n### What to do every time you work\n\n1. **Read first**: read `npx boxglow resume` (or `npx boxglow status --brief`) for work in progress, pending decisions, unread answers, next candidates, and handoffs for unfinished boxes. To continue a previous session, start from the handoff notes shown there. Check the inputs and outputs of your box with `npx boxglow show <block>`\n2. **Check readiness**: before taking on a box, read `npx boxglow context <block>`. Its `readiness` is the state of preparation: `state: "ready"` means you can start. `"unprepared"` (needs detail) means you add detail first, following the reasons in `unprepared` and the commands in `next`. `"waiting"` means a required input or a branch answer is missing\n3. **Hold, then add detail**: before adding detail or splitting, hold the box with `npx boxglow claim <block>` (this does not start it; on a plan without claims it prints "not needed" and succeeds). Then fill in what is missing:\n - the output\'s planned deliverable: `npx boxglow port <block> --expect "<output>=file:src/x.ts"` (kind: file / dir / url / doc / note / decision / result; hint: a path or title. The file need not exist yet)\n - the acceptance criteria: `npx boxglow scope <block> --acceptance "<when it counts as done>"`; the work itself with `--goal`; what the output must respect (performance, quality, size, dimensions, power, ...) with `--constraints`\n - when you cannot see how to produce the output with a single box, place smaller boxes inside it with `npx boxglow split <block> --spec \'<JSON>\'`. Write expect / acceptance only for the children you will start now; later children need only a title and an output (they stay "needs detail"). Inputs can be omitted if unknown (they automatically become inputs of the level above)\n - when you do not know which files are involved, do not invent paths: add a box "find the target" with a `note` output and start that\n4. **Record the start**: once ready, read `npx boxglow context <block>` again, then run `npx boxglow start <block> --note "<what you will do>"`. Work on at most 1-2 boxes at a time.\n The started box is marked "now" (the boxes being worked on right now; any number when several agents or people work; a thick frame and a NOW tag on the canvas). Add another with `npx boxglow now <block>` (`--off` removes one, `now none` clears all); done / leave remove that box. People toggle it with the NOW button on the Status tab\n On a plan with the context guard on, pass the `contextToken` (context token) from the context output:\n `npx boxglow start <block> --note "<what you will do>" --context-token <context token>` (see "Context token and handoff" below)\n Starting a box that still needs detail warns by default (with the reasons and the next commands). On a plan with `policy --unprepared reject` it is refused (`--reason` does not bypass it; human actions are allowed). A parent whose outputs are all made by its children has nothing to run itself: start the child instead\n5. **Record completion**: when the output\'s deliverable exists, run `npx boxglow done <block> --artifact "<name>=<path in the repository>"`. Record the verification in three fixed fields: `--checked` (checks run and their results, e.g. "vitest 53 passed; e2e home 34/34"), `--not-checked` (what was not tried), `--limits` (remaining limits / caveats). For non-code deliverables (documents etc.) write what you confirmed in `--checked`. It stays on the box and shows in context / show.\n With the guard on, add `--context-token <context token>` (if your previous command printed "New context token: <token>", use that one).\n An unchanged file already committed to HEAD is recorded as "commit + path + content hash" (nothing is uploaded). Uncommitted or untracked files remain local file references, and `npx boxglow check` turns them into Git references once they are committed; do not create a commit solely to satisfy Boxglow. Use full `npx boxglow status` when you need the entire tree. For PRs and external material, a URL is fine.\n To attach a deliverable ahead of completion, use `npx boxglow artifact <block> <path>`. Record progress along the way with `npx boxglow set <block> --progress 60`\n6. **When a human decision is needed**: `npx boxglow ask <block> "<question>" --options "A|B"`. Do not proceed with that box until it is answered; move on to another box. A human\'s answer appears under "Answered" in `status`. After reading it, acknowledge it with `npx boxglow ack <block>` (`start` / `done` / `set` etc. on that box also acknowledge it automatically). Until you acknowledge it, it stays on the human\'s screen as "Not read by the AI yet" and the human can still revise the answer. If the answer contains a question back to you, record your own answer too with `ask` and `answer --by <yourself>`\n7. **When you are stuck**: If the cause is a missing input (a deliverable of an earlier box, or material), do not mark the box as blocked. Check its input wires with `npx boxglow show <block>`; if no box produces what is missing, create one outside (upstream) with `npx boxglow add` and wire it to this box\'s input with `npx boxglow connect` (the wire stays in the waiting color, so the diagram shows what the box is waiting for). If a choice between options would let you continue, use `ask`. Record only obstacles outside the plan (an environment that does not work, missing permissions or keys, waiting for an outside reply, a failure with no known cause) with `npx boxglow blocked <block> --note "<what is in the way>"` When a check or evaluation rejects an earlier deliverable, do not wire backwards (it would be a cycle): `npx boxglow sendback <evaluating box> --to <box to redo> --note "<reason>"` sends it back (that box returns to In Progress, its artifacts are kept as rejected, and the reason appears in context).\n8. **Check deliverables**: after moving or renaming files, run `npx boxglow check` (it detects the move and updates the path; if the file cannot be found, it is flagged)\n9. **Keep progress and findings**: `npx boxglow log <block> "<text>"` adds a dated, signed work-log entry to the box (Markdown). People read and write the same log in the Log tab. The handoff note (checkpoint) is overwritten; log entries accumulate\n10. **Before an interruption or a handoff**: before the session ends, the context is compacted, or you hand over to another AI or a person, save a handoff note with `npx boxglow checkpoint <block> --note "Findings; next steps; unresolved questions"` (with the guard on, add `--context-token <context token>`). It stays in the plan even when the chat history is gone, and the next session reads it with `resume` and `context`\n11. **Report**: at the end of your work, summarize `npx boxglow status --brief` and report it\n\n### Structural rules\n\n- **Show an undecided fork as a branch**: when, at planning time, later work (a path) depends on a decision that has not been made, create a branch box with `npx boxglow branch "<title>" --options "A|B" --question "<question>" --context "<background>"`. Each option becomes a path (output); `connect` each one to the first box of that path. Where the paths come together again, add a merge part with `npx boxglow join --title "<title>"`, `connect` the last output of each path to it, and connect its output to the next box (any one path arriving is enough). Once a person answers, the boxes on the paths not chosen are skipped and drop out of progress and next candidates. If a box you already made turns out to be an undecided fork, turn it into a branch with `npx boxglow branch --box <block> --options "A|B" --question "<question>"` (its output becomes the first option\'s path; wires stay). Before the answer, boxes on the paths wait for the branch and starting them warns (record a reason with `--reason`, e.g. for early research)\n- The top level contains only the "input node", the "final deliverable node" and "project boxes". Tasks go inside a project box (the default parent of `add` is the first project box)\n- There is no limit on depth. `split` can be used at any level\n- A box that could be reused in another project (e.g. converting input images to monochrome) can be turned into a template with `npx boxglow export-block <block> --out <name>.boxglow-block.json` and\n inserted with `npx boxglow import-block <path> --parent <block>`. You may share templates by putting them in the repository\'s `boxglow-blocks/`\n\nWhen there are many top-level inputs, create a group with `npx boxglow group "<group name>"` and sort inputs into it with `npx boxglow group-set <input name> <group name>` (e.g. PCIe spec / DDR spec).\n\n### JSON format for split\n\n```json\n{\n "blocks": [\n { "title": "Find the target", "inputs": ["Repro steps"], "outputs": ["Notes"],\n "expect": "note:the files and code paths involved, evidence, candidate changes, how to check, open questions", "acceptance": "the files and code to change are known and the following boxes can be given expect and acceptance; or the reason they cannot, and the decision needed, is clear",\n "goal": "reproduce and trace the path; changing product code is out of scope here" },\n { "title": "Refresh sync state after a retried save", "inputs": ["Notes"], "outputs": ["Fix"],\n "expect": "file:src/sync/state.ts", "acceptance": "fail one save, retry, and the sync state and actions come back (covered by a test)" },\n { "title": "Write the release note", "inputs": ["Fix"], "outputs": ["Note"] }\n ],\n "connections": [\n { "from": "parent.Repro steps", "to": "Find the target.Repro steps" },\n { "from": "Find the target.Notes", "to": "Refresh sync state after a retried save" },\n { "from": "Refresh sync state after a retried save.Fix", "to": "Write the release note" },\n { "from": "Write the release note.Note", "to": "parent.Output" }\n ]\n}\n```\n\n`expect` (planned deliverable: `"kind:hint"` or `{ "kind", "hint" }`), `acceptance` and `goal` go only on the children you will start now.\nA child with just a title and an output, like the third one, stays "needs detail" until its turn; then set them with `port --expect` / `scope --acceptance`.\nOutputs the parent makes itself (integrating the children\'s results, for example) are marked with `"parentMakes": ["<output>"]` (if a child\'s wire also feeds it, readiness reports two makers).\n`"splitBy": "stage"` records in one word how the direct children are divided (stage / deliverable / feature; also `set <block> --split-by`). Siblings should follow the same division and the same level of detail.\n`split` refuses to save only a broken structure (a wire to nothing, a cycle, a malformed expect). Unfinished breakdowns (a single child, a parent output nobody makes yet) are saved and reported as gaps.\nAfter a split and before a start, read `npx boxglow lint <block>`. Fix the "must fix" items (parent outputs with no or two makers, both exclusive paths of one branch required, a box in progress without expect / acceptance, gaps on the box you are checking) before going on.\n"Fill in before starting" items (expect / acceptance of boxes not started yet) are filled when that child\'s turn comes (do not write token entries for later work now).\n"Review" items (a single child, unconnected outputs, token entries, empty branch paths, single-input merges, siblings with the same expect) are for you to judge (the tool never refuses on them). `context` also prints the counts and the top three.\n\n**Content review (meaning cannot be checked by the tool: an AI or a person reads the material, judges, and records the basis)**\n- After a split: read `npx boxglow review-split <parent>` (the parent\'s goal, constraints, acceptance and ports; the children\'s targets, ports, planned deliverables and acceptance; the wiring; a checklist). When reviewed, record it with `npx boxglow split-ok <parent> --note "<basis: what you checked>"`.\n- Before a start: read `npx boxglow review-box <block>` (target, work, planned deliverable, checks, input sources, upstream branch answers) and record with `npx boxglow box-ok <block> --note "<basis>"`.\n- A record says "reviewed, with this basis"; it does not prove validity. When the material changes, `reviews` in `context` becomes `stale` (with what changed and what to check). `stale` does not mean the breakdown is wrong; it means the material changed after the last review. Position, colours, progress and assignees do not make it stale. The breakdown record is not affected by branch answers; the readiness record is.\n- Adding detail to a later child at its turn always makes the parent\'s breakdown record `stale` (the children\'s expect / acceptance are part of the material). Finish that child\'s expect and scope first, then check only the changed child\'s effect on the parent\'s acceptance and nonGoals and on the division among siblings; if it still fits, update it with `split-ok <parent> --note "Checked B181\'s detail: not in the parent\'s nonGoals, no overlap with B182"`. Do not re-review after every port or scope command; several children detailed together can be checked together.\n- It is not a condition for `start` (in default or reject plans). Only needs-detail and missing inputs stop a start.\n\n**Branches and merges for agents**\n- When an `ask` has options and the answer changes the work that follows, add `--branch`: the box becomes a branch with one path (output) per option. `connect` each path to its first box, and put a `join` where the paths come together.\n- The split JSON can make them too: a child with `"branch": { "question": "...", "options": ["A", "B"] }` becomes a branch box (its outputs are the option names), `"join": true` a merge part. Example:\n `{ "blocks": [{ "title": "Choose auth", "branch": { "question": "Which?", "options": ["Mail", "OAuth"] } }, { "title": "Mail impl", "outputs": ["Auth"] }, { "title": "OAuth impl", "outputs": ["Auth"] }, { "title": "Merge", "join": true }], "connections": [{ "from": "Choose auth.Mail", "to": "Mail impl" }, { "from": "Choose auth.OAuth", "to": "OAuth impl" }, { "from": "Mail impl.Auth", "to": "Merge" }, { "from": "OAuth impl.Auth", "to": "Merge" }, { "from": "Merge.Merge", "to": "parent.Auth" }] }`\n- `lint` reports a box that requires inputs from both exclusive paths of one branch (they never both arrive) as must-fix, and empty paths or single-input merges as review items.\n`parent.<name>` is an input / output of the box being split. `<block>` is a short ID (such as B12; shown in status) or a title.\nA box has one output per thing it makes (when one piece of work produces several things, list them all in outputs; set expect for the second and later ones with `port <block> --expect "<output>=<kind>:<hint>"`). Connected inputs and outputs share one name (renaming either end renames the other). Make the title a short phrase that tells "what is made".\nRecord dates and hours with `npx boxglow set <block> --due 2026-10-15 --start 2026-10-01 --estimate 8 --hours 3.5`.\nGive each box a kind of work (category): `--category design` / build / verify / evaluate / study / research / ui / improve / fix / docs / ops / other (other: when unsure). Set it at add time; to change it, use `npx boxglow set <block> --category verify`.\nThe receiving side of a connection can be just a title (`npx boxglow connect "A.Design doc" "B"` creates an input "Design doc" on B and connects it; boxes in other levels work too, the ports in between are created automatically. In split\'s connections, `to: "B"` also works). Connected inputs and outputs share one name (they are aligned when connected, and renaming either end renames everything on the same wire). To add inputs / outputs to an existing box or rename them, use `npx boxglow port <block> --in <name> --out <name> --remove <name> --rename <old>=<new>` (removing an input also removes the inputs of the boxes that use it; top-level inputs are `port inputs`; withdraw a mistaken question with `npx boxglow unask <block>`) (`project` = the first project box. This also renames the final deliverable). Remove a wire with `npx boxglow disconnect <title.output name> <title.input name>`, and remove a box itself with `npx boxglow remove <block>` (`--force` if it has boxes inside). The MCP tools (`boxglow_status` / `boxglow_start` / `boxglow_done` / `boxglow_ask` etc.; available after registration in your agent; `.mcp.json` is the Claude Code configuration) are another entry point to the same commands, and either way updates the same file. Export the plan as a document with `npx boxglow export --out docs/ROADMAP.md`.\n\n**Share project-wide decisions as policies**: when a box decides something many boxes depend on (technology choice, engine, art style), make that output a policy (`npx boxglow port <block> --policy "<output>"`; scope defaults to the same parent, `--policy-scope all` for the whole plan, `--advisory` to not block). It reaches every box in scope without wires, and the boxes in scope that have not started wait for it until it is decided (work in progress is not stopped). Read `policies` in `context` before working. Exclude unrelated boxes with `--skip-policy "<box>.<output>"`. If a policy changes after a box is done, it appears in `policyChanged` (check it again). Do not wire it to each box.\nIn a new project, first create 3-7 top-level items from the direction (the README or the request), confirm them with a human via `ask`, and then `split` only the item you are about to start (leave later stages coarse). Write each `ask` question so that it can be decided on its own, and put the premises, comparison and impact in `--context` (do not point outside the question, as in "Is this OK?"). When choosing one of several candidates, even if you decide by yourself, record it with `ask ... --options "A|B|C"` and `answer --by <yourself>` so that the candidates you did not choose are kept. To change direction, use `reopen <block> --note <reason>`. Everything works with the CLI alone (the screen is for humans to watch). If no human is in the loop, the AI records its decisions with `answer --by <yourself>` and proceeds.\nName each output after a "concrete deliverable" (e.g. `Design doc docs/design.md`, `PR #12`, `Public URL`, `Test results (vitest, 53 tests)`). Avoid abstract names such as "feature set" or "findings", and always attach a file, URL or commit with --artifact when you run done.\nMake sure every box\'s "input \u2192 output" is connected to something (an unconnected box is a hole in the plan. Unconnected inputs are raised to the top-level input node automatically).\nIf several people edit the same boxglow.json, each of them runs `npx boxglow git-setup` once in their own clone (changes are merged automatically per box, and changes to different boxes do not conflict).\nTo manage several repositories with one plan, put boxglow.json in the folder above them and set the environment variable BOXGLOW_FILE to its location in each repository (one project box per repository: `npx boxglow project "name" --repo <path>`).\nInputs are required by default. Mark an input as optional with `npx boxglow port <block> --optional <input name>` if work can start without it (`--required` turns it back). Describe a port with `--describe "<name>=<description>"`. "Next candidates" in status lists boxes whose required inputs are ready first (each is marked "ready to start" or "waiting for required inputs"). When a top-level plan input (Inputs) has no material (a spec, a scenario or other file or URL), every box that uses it waits. If the material is in the repository, attach it yourself instead of asking a person: `npx boxglow artifact inputs <path or URL> --input <input name>` (MCP: `boxglow_artifact` with block "inputs"). Remove a deliverable or material attached by mistake with `npx boxglow artifact <block|inputs> --remove <title or path>`. When a finished box shows "Policy: check again", check that the work matches the policy; if it does, clear the mark with `npx boxglow ack <block> --policy` (if not, reopen and fix it).\nDo not write descriptions for inputs (the description of the connected output is used). Write the format and constraints in the output\'s description.\n\n\n### What runs automatically (hooks)\n\n`setup-agent` registers `boxglow hook` in the Claude Code / Codex hooks. After a session starts, resumes or is compacted, the plan\'s resume summary is injected into the context automatically. When you are about to finish a reply while a box started in this session has no handoff (done or checkpoint), you are told to record first and continue (a log entry is a progress note, not a handoff). Editing boxglow.json directly with Edit / Write / apply_patch is blocked (update it through the CLI or MCP). These are a safety net, not a substitute for the steps above: keep recording as instructed.\n\n### Context token and handoff\n\nThe context guard keeps an AI from continuing work on outdated instructions. `setup-agent` turns it on (on other plans, run `npx boxglow guard on`).\nWhile it is on, an AI\'s `start` / `done` / `set` / `split` / `artifact` / `ack` / `blocked` / `review` / `leave` / `checkpoint` need `--context-token <context token>`. Commands run by a person (`--actor human`) do not.\n\n```\nnpx boxglow context B12 # read the decisions (including acknowledged answers), input/output contracts and handoff notes. contextToken in the output is the context token\nnpx boxglow start B12 --note "<what you will do>" --context-token <context token>\nnpx boxglow ask B12 "<question>" --options "A|B" --context-token <context token>\n# -> last line of the output: New context token: <token>\nnpx boxglow done B12 --artifact "<name>=<path>" --context-token <new context token>\n```\n\n- **The context token changes (you must reread)** when a person answers a decision or revises an answer, a person changes the instructions (title, description, input/output contracts), or another AI or a person updates the handoff note. The same applies when this happens on a parent box or an input provider. The old context token is rejected: reread `context`, take the change into account in your work, then retry\n- **The context token does not change** on `start` / `blocked` / `review` / `leave` / `ack`, on changes to progress, status, dates or category, when `check` verifies deliverables, or when boxes are moved on the screen. Keep using the same context token\n- **You can update it yourself**: when your own `ask` / `artifact` / `done` / `set` / `split` / `checkpoint` etc. changes the context, the last line of its output is "New context token: <token>". You already know what you changed, so use it for the next command without rereading. `ask` / `decision` / `answer` / `reopen` run without a context token, but they print the new context token only when you pass the latest one\n- **Read the short form first**: `npx boxglow context <block> --brief` prints everything about the box itself (description, scope, decisions, handoff, inputs/outputs, deliverables) plus the plan description and, for parents and input providers, title, status, decisions (with their context and options; the history of earlier answers is left out) and the outputs that feed the box. The context token is the same as without `--brief`, so pass it to `--context-token` as is. Look at `target.missingInputs` (required inputs that are not ready) and `target.inputs[].sources` (which output of which box, with references to its deliverables) first. `omitted` counts what was left out. If an omitted description, contract or handoff may matter to your work, read without `--brief`, or read `context` of that box\n- **Precondition for starting from the short form**: the description of a parent or input provider that has any scope field set is left out of the short form (counted in `omitted.descriptions`). Set a scope only after moving the constraints written in the description (compatibility, prohibitions, deadlines) into it. On a plan where you cannot tell, or when `omitted.descriptions` is not 0, read once without `--brief` before you start. The short form is a starting point, not a guarantee that nothing else matters\n- Write so that the short form is enough: put the conditions that bind the work in the scope (non-goals / constraints / acceptance / consult) instead of burying them in a description. Only the latest handoff note is kept, so carry the open points, cautions and next steps forward each time you write one. Say where to start looking in the description of the box, in this form (a starting point, not a claim that those files are all there is to read):\n `Change candidates: <path> \u2014 <why to start there>` / `Related checks: <path or command> \u2014 <what it verifies>`\n- Do not turn the guard off to get past an old context token (an AI needs the latest context token to run `guard off`)\n- With MCP, use `boxglow_context` and the `contextToken` argument of each tool (the new context token is the last line of the tool result)\n- If "Another Boxglow writer holds the file lock" persists after waiting and retrying, show the output of `npx boxglow unlock` (owner and verdict) to a person and ask them to remove it. Never add `--actor human` yourself or delete the lock folder directly\n\n### Readiness, current scope, and fresh resume information\n\n- Read current activity, pending decisions, and unread answers first. Candidates are grouped by current scope / other candidates, then ready / needs detail / waiting for inputs, with the reasons and missing input names. A candidate that needs detail or is waiting is not ready.\n- "Ready" is a mechanical check: the box makes at least one output itself, that output has a planned deliverable (expect), the acceptance criteria are written, and required inputs are in. It does not judge whether the text is specific (`expect = src/`, `acceptance = works` pass). Write them so a third party can follow the target, the work, the result and how it is checked.\n- Four optional scope fields are available: goal, non-goals, acceptance, and consult (when to consult before expanding scope). Read the target and parent scopes at the start of context before starting and finishing. Textual acceptance criteria are not automatically evaluated.\n- Use scope B12 --goal "Goal" --non-goals "Excluded" --acceptance "Checks" --consult "When to ask". scope B12 only reads; none or an empty string clears a field. In the inspector, use the More tab \u2192 Edit work scope. Only populated fields appear in the collapsed scope section.\n- focus B12 prioritizes that box and its descendants; focus reads the selection, and focus none clears it. Other candidates remain in a separate group. Being listed does not authorize expanding scope or publishing.\n- Missing required inputs warn on start by default but still allow the start. Supply --reason "Why starting early is appropriate" to proceed without a warning and save the reason in both activity and the log. Artifact-free done also remains warning-only by default. Existing output artifacts or --artifact count; reference material on the box does not.\n- Only enable strict checks when selected for the plan: policy --start reject --done reject --unprepared reject. Each can return to warn. A recorded start reason overrides the missing-input rejection, but not the needs-detail one (add detail first). The artifact requirement also applies to set --status white. Human operations (UI / --actor human) are never rejected. Do not impersonate a human or weaken policy to bypass rejection.\n- With guard enabled, scope writes, focus selection/clearing, and policy writes require --context-token. These changes print a new token: use it next. Read-only forms need no token.\n- resume hides completed handoff bodies and shows their count. Request resume --include-completed only when history is needed; context / show can still read individual notes.\n- descriptionUpdatedAt dates description changes; statusChangedAt dates status changes; handoffs use their existing at field. Notes predating a status change are marked. Unknown legacy dates stay unknown, and recency does not establish truth.\n- After Done, CLI, inspector, and resume flag descriptions that may still describe an earlier state. Text is never rewritten automatically. Review it, then update with set B12 --note "Current description" (none clears it) or Notes in the UI.\n- MCP: boxglow_scope / boxglow_focus / boxglow_policy, boxglow_claim, expect / self on boxglow_port, reason on boxglow_start, and includeCompleted on boxglow_resume. Pass contextToken for writes.\n- All data fields are optional; schema v5 is unchanged. Old versions (0.4.2 and earlier) do not enforce these checks and drop workflowPolicy / focusBlockId when saving. Align all writers (CLI, serve, web app, bundled extension app) to a supporting build before using these settings. Check build time as well as version.\n\n\n### Sync decisions\n\nAI may only sync already bound projects and inspect comparisons. If sync stops for a conflict or a human choice, summarize the differences and use ask to notify the user. Never resolve conflicts, create a new binding, relink, recover, adopt, restore, or confirm an account. A human must use the UI or explicitly run CLI with --actor human. AI must never add --actor human, including after a chat answer; record the answer and wait for the human to apply the sync choice.\n\nCodex must pass `--actor codex` on every CLI call; Claude Code must pass `--actor claude-code`. Execution markers may not survive a WSL boundary. Give subagents names such as `codex-task`; never impersonate a human.\n\n### Claims for parallel work\n\nWhen claims are enabled for the plan, fix a unique `BOXGLOW_INSTANCE_ID` for each independent CLI session. Do not share it between agents. Read `claims` and `context`, then acquire with `claim` (before adding detail or splitting) or `start` (to run); a claim taken with `claim` carries over to `start` (default block scope, `--scope subtree` for descendants). Keep the token from the successful CLAIM line and pass `--claim-token` on writes. MCP keeps its own instance ID and acquired receipts automatically. Renew with `claim-renew` / `boxglow_claim_renew` every 5 minutes (or within half the lease for shorter leases); checkpoint before handoff. done/leave releases the target claim. On expiry or a generation mismatch, reread context and acquire again. The same actor name does not make another instance yours. Ask a person to change claim settings, force release, or resolve sync conflicts; never impersonate human. Synced copies on different devices are not protected by a distributed lock. See `docs/CLAIMS.md`.\n\nNever use another instance\u2019s ID or receipt, including receipts reconstructed from plan data or claims output. After MCP restarts, the same actor is still a different instance: wait for expiry or ask a person to release it; never take it over automatically.\n\nAutomatically promoted inputs belong to the original box\u2019s scope. Changes to shared input content or other boxes\u2019 layout require claims for all affected boxes. For plan settings such as focus or group, use `context root` \u2192 `claim root` and pass that CLAIM receipt (`start root` also works, but `claim` does not mark it in progress). A block-scoped root claim does not include ordinary boxes and is sufficient for plan settings. A subtree claim on root blocks all parallel work: AI agents must not use it and must consult a person. End it with `leave root`. Context-guard tokens are still required.\n\n---\n\nHuman-only sync operations prevent accidental actions; they are not enforced authorization or OS-level isolation. AI must never identify itself with `--actor human`. Report the comparison and stop reason to the user. MCP and AI-identified CLI output do not provide executable human choice commands.\n\nHuman CLI actions also accept `--actor human:name`; AI must not impersonate a human using either form. The `boxglow sync --help` hint in AI halt output is for humans who inherited an AI environment, not permission for AI to apply their choice.\n';
|
|
13557
|
+
var AGENTS_SNIPPET_en_default = '# Instructions for agents using Boxglow (paste into AGENTS.md / CLAUDE.md)\n\nPaste the part between the "---" lines below, as is, into your repository\'s AGENTS.md (Codex) or CLAUDE.md (Claude Code).\nPut boxglow.json at the repository root (`npx boxglow init --name "<project name>"`).\n\n---\n\n## Boxglow (shared plan and progress)\n\n`boxglow.json` is the source of truth for this repository\'s plan and progress. Humans watch this file on the Boxglow screen.\nDo not edit the file directly; always update it with `npx boxglow` commands (this keeps the wiring rules and the history intact).\n\nA block = "a task that turns inputs into an output (deliverable)". It is done (WhiteBox) once the output\'s deliverable is settled.\nStatus: BlackBox (only the output is decided) \u2192 GrayBox (in progress) \u2192 WhiteBox (done).\n\n### What to do every time you work\n\n1. **Read first**: read `npx boxglow resume` (or `npx boxglow status --brief`) for work in progress, pending decisions, unread answers, next candidates, and handoffs for unfinished boxes. To continue a previous session, start from the handoff notes shown there. Check the inputs and outputs of your box with `npx boxglow show <block>`\n2. **Check readiness**: before taking on a box, read `npx boxglow context <block>`. Its `readiness` is the state of preparation: `state: "ready"` means you can start. `"unprepared"` (needs detail) means you add detail first, following the reasons in `unprepared` and the commands in `next`. `"waiting"` means a required input or a branch answer is missing\n3. **Hold, then add detail**: before adding detail or splitting, hold the box with `npx boxglow claim <block>` (this does not start it; on a plan without claims it prints "not needed" and succeeds). Then fill in what is missing:\n - the output\'s planned deliverable: `npx boxglow port <block> --expect "<output>=file:src/x.ts"` (kind: file / dir / url / doc / note / decision / result; hint: a path or title. The file need not exist yet)\n - the acceptance criteria: `npx boxglow scope <block> --acceptance "<when it counts as done>"`; the work itself with `--goal`; what the output must respect (performance, quality, size, dimensions, power, ...) with `--constraints`\n - when you cannot see how to produce the output with a single box, place smaller boxes inside it with `npx boxglow split <block> --spec \'<JSON>\'`. Write expect / acceptance only for the children you will start now; later children need only a title and an output (they stay "needs detail"). Inputs can be omitted if unknown (they automatically become inputs of the level above)\n - when you do not know which files are involved, do not invent paths: add a box "find the target" with a `note` output and start that\n4. **Record the start**: once ready, read `npx boxglow context <block>` again, then run `npx boxglow start <block> --note "<what you will do>"`. Work on at most 1-2 boxes at a time.\n The started box is marked "now" (the boxes being worked on right now; any number when several agents or people work; a thick frame and a NOW tag on the canvas). Add another with `npx boxglow now <block>` (`--off` removes one, `now none` clears all); done / leave remove that box. People toggle it with the NOW button on the Status tab\n On a plan with the context guard on, pass the `contextToken` (context token) from the context output:\n `npx boxglow start <block> --note "<what you will do>" --context-token <context token>` (see "Context token and handoff" below)\n Starting a box that still needs detail warns by default (with the reasons and the next commands). On a plan with `policy --unprepared reject` it is refused (`--reason` does not bypass it; human actions are allowed). A parent whose outputs are all made by its children has nothing to run itself: start the child instead\n5. **Record completion**: when the output\'s deliverable exists, run `npx boxglow done <block> --artifact "<name>=<path in the repository>"`. Record the verification in three fixed fields: `--checked` (checks run and their results, e.g. "vitest 53 passed; e2e home 34/34"), `--not-checked` (what was not tried), `--limits` (remaining limits / caveats). For non-code deliverables (documents etc.) write what you confirmed in `--checked`. It stays on the box and shows in context / show.\n With the guard on, add `--context-token <context token>` (if your previous command printed "New context token: <token>", use that one).\n An unchanged file already committed to HEAD is recorded as "commit + path + content hash" (nothing is uploaded). Uncommitted or untracked files remain local file references, and `npx boxglow check` turns them into Git references once they are committed; do not create a commit solely to satisfy Boxglow. Use full `npx boxglow status` when you need the entire tree. For PRs and external material, a URL is fine.\n To attach a deliverable ahead of completion, use `npx boxglow artifact <block> <path>`. Record progress along the way with `npx boxglow set <block> --progress 60`\n6. **When a human decision is needed**: `npx boxglow ask <block> "<question>" --options "A|B"`. Do not proceed with that box until it is answered; move on to another box. A human\'s answer appears under "Answered" in `status`. After reading it, acknowledge it with `npx boxglow ack <block>` (`start` / `done` / `set` etc. on that box also acknowledge it automatically). Until you acknowledge it, it stays on the human\'s screen as "Not read by the AI yet" and the human can still revise the answer. If the answer contains a question back to you, record your own answer too with `ask` and `answer --by <yourself>`\n7. **When you are stuck**: If the cause is a missing input (a deliverable of an earlier box, or material), do not mark the box as blocked. Check its input wires with `npx boxglow show <block>`; if no box produces what is missing, create one outside (upstream) with `npx boxglow add` and wire it to this box\'s input with `npx boxglow connect` (the wire stays in the waiting color, so the diagram shows what the box is waiting for). If a choice between options would let you continue, use `ask`. Record only obstacles outside the plan (an environment that does not work, missing permissions or keys, waiting for an outside reply, a failure with no known cause) with `npx boxglow blocked <block> --note "<what is in the way>"` When a check or evaluation rejects an earlier deliverable, do not wire backwards (it would be a cycle): `npx boxglow sendback <evaluating box> --to <box to redo> --note "<reason>"` sends it back (that box returns to In Progress, its artifacts are kept as rejected, and the reason appears in context).\n8. **Check deliverables**: after moving or renaming files, run `npx boxglow check` (it detects the move and updates the path; if the file cannot be found, it is flagged)\n9. **Keep progress and findings**: `npx boxglow log <block> "<text>"` adds a dated, signed work-log entry to the box (Markdown). People read and write the same log in the Log tab. The handoff note (checkpoint) is overwritten; log entries accumulate\n10. **Before an interruption or a handoff**: before the session ends, the context is compacted, or you hand over to another AI or a person, save a handoff note with `npx boxglow checkpoint <block> --note "Findings; next steps; unresolved questions"` (with the guard on, add `--context-token <context token>`). It stays in the plan even when the chat history is gone, and the next session reads it with `resume` and `context`\n11. **Report**: at the end of your work, summarize `npx boxglow status --brief` and report it\n\n### Structural rules\n\n- **Show an undecided fork as a branch**: when, at planning time, later work (a path) depends on a decision that has not been made, create a branch box with `npx boxglow branch "<title>" --options "A|B" --question "<question>" --context "<background>"`. Each option becomes a path (output); `connect` each one to the first box of that path. Where the paths come together again, add a merge part with `npx boxglow join --title "<title>"`, `connect` the last output of each path to it, and connect its output to the next box (any one path arriving is enough). Once a person answers, the boxes on the paths not chosen are skipped and drop out of progress and next candidates. If a box you already made turns out to be an undecided fork, turn it into a branch with `npx boxglow branch --box <block> --options "A|B" --question "<question>"` (its output becomes the first option\'s path; wires stay). Before the answer, boxes on the paths wait for the branch and starting them warns (record a reason with `--reason`, e.g. for early research)\n- The top level contains only the "input node", the "final deliverable node" and "project boxes". Tasks go inside a project box (the default parent of `add` is the first project box)\n- There is no limit on depth. `split` can be used at any level\n- A box that could be reused in another project (e.g. converting input images to monochrome) can be turned into a template with `npx boxglow export-block <block> --out <name>.boxglow-block.json` and\n inserted with `npx boxglow import-block <path> --parent <block>`. You may share templates by putting them in the repository\'s `boxglow-blocks/`\n\nWhen there are many top-level inputs, create a group with `npx boxglow group "<group name>"` and sort inputs into it with `npx boxglow group-set <input name> <group name>` (e.g. PCIe spec / DDR spec).\n\n### JSON format for split\n\n```json\n{\n "blocks": [\n { "title": "Find the target", "inputs": ["Repro steps"], "outputs": ["Notes"],\n "expect": "note:the files and code paths involved, evidence, candidate changes, how to check, open questions", "acceptance": "the files and code to change are known and the following boxes can be given expect and acceptance; or the reason they cannot, and the decision needed, is clear",\n "goal": "reproduce and trace the path; changing product code is out of scope here" },\n { "title": "Refresh sync state after a retried save", "inputs": ["Notes"], "outputs": ["Fix"],\n "expect": "file:src/sync/state.ts", "acceptance": "fail one save, retry, and the sync state and actions come back (covered by a test)" },\n { "title": "Write the release note", "inputs": ["Fix"], "outputs": ["Note"] }\n ],\n "connections": [\n { "from": "parent.Repro steps", "to": "Find the target.Repro steps" },\n { "from": "Find the target.Notes", "to": "Refresh sync state after a retried save" },\n { "from": "Refresh sync state after a retried save.Fix", "to": "Write the release note" },\n { "from": "Write the release note.Note", "to": "parent.Output" }\n ]\n}\n```\n\n`expect` (planned deliverable: `"kind:hint"` or `{ "kind", "hint" }`), `acceptance` and `goal` go only on the children you will start now.\nA child with just a title and an output, like the third one, stays "needs detail" until its turn; then set them with `port --expect` / `scope --acceptance`.\nOutputs the parent makes itself (integrating the children\'s results, for example) are marked with `"parentMakes": ["<output>"]` (if a child\'s wire also feeds it, readiness reports two makers).\n`"splitBy": "stage"` records in one word how the direct children are divided (stage / deliverable / feature; also `set <block> --split-by`). Siblings should follow the same division and the same level of detail.\n`split` refuses to save only a broken structure (a wire to nothing, a cycle, a malformed expect). Unfinished breakdowns (a single child, a parent output nobody makes yet) are saved and reported as gaps.\nAfter a split and before a start, read `npx boxglow lint <block>`. Fix the "must fix" items (parent outputs with no or two makers, both exclusive paths of one branch required, a box in progress without expect / acceptance, gaps on the box you are checking) before going on.\n"Fill in before starting" items (expect / acceptance of boxes not started yet) are filled when that child\'s turn comes (do not write token entries for later work now).\n"Review" items (a single child, unconnected outputs, token entries, empty branch paths, single-input merges, siblings with the same expect) are for you to judge (the tool never refuses on them). `context` also prints the counts and the top three.\n\n**Content review (meaning cannot be checked by the tool: an AI or a person reads the material, judges, and records the basis)**\n- After a split: read `npx boxglow review-split <parent>` (the parent\'s goal, constraints, acceptance and ports; the children\'s targets, ports, planned deliverables and acceptance; the wiring; a checklist). When reviewed, record it with `npx boxglow split-ok <parent> --note "<basis: what you checked>"`.\n- Before a start: read `npx boxglow review-box <block>` (target, work, planned deliverable, checks, input sources, upstream branch answers) and record with `npx boxglow box-ok <block> --note "<basis>"`.\n- A record says "reviewed, with this basis"; it does not prove validity. When the material changes, `reviews` in `context` becomes `stale` (with what changed and what to check). `stale` does not mean the breakdown is wrong; it means the material changed after the last review. Position, colours, progress and assignees do not make it stale. The breakdown record is not affected by branch answers; the readiness record is.\n- Adding detail to a later child at its turn always makes the parent\'s breakdown record `stale` (the children\'s expect / acceptance are part of the material). Finish that child\'s expect and scope first, then check only the changed child\'s effect on the parent\'s acceptance and nonGoals and on the division among siblings; if it still fits, update it with `split-ok <parent> --note "Checked B181\'s detail: not in the parent\'s nonGoals, no overlap with B182"`. Do not re-review after every port or scope command; several children detailed together can be checked together.\n- It is not a condition for `start` (in default or reject plans). Only needs-detail and missing inputs stop a start.\n\n**Branches and merges for agents**\n- When an `ask` has options and the answer changes the work that follows, add `--branch`: the box becomes a branch with one path (output) per option. `connect` each path to its first box, and put a `join` where the paths come together.\n- The split JSON can make them too: a child with `"branch": { "question": "...", "options": ["A", "B"] }` becomes a branch box (its outputs are the option names), `"join": true` a merge part. Example:\n `{ "blocks": [{ "title": "Choose auth", "branch": { "question": "Which?", "options": ["Mail", "OAuth"] } }, { "title": "Mail impl", "outputs": ["Auth"] }, { "title": "OAuth impl", "outputs": ["Auth"] }, { "title": "Merge", "join": true }], "connections": [{ "from": "Choose auth.Mail", "to": "Mail impl" }, { "from": "Choose auth.OAuth", "to": "OAuth impl" }, { "from": "Mail impl.Auth", "to": "Merge" }, { "from": "OAuth impl.Auth", "to": "Merge" }, { "from": "Merge.Merge", "to": "parent.Auth" }] }`\n- `lint` reports a box that requires inputs from both exclusive paths of one branch (they never both arrive) as must-fix, and empty paths or single-input merges as review items.\n`parent.<name>` is an input / output of the box being split. `<block>` is a short ID (such as B12; shown in status) or a title.\nA box has one output per thing it makes (when one piece of work produces several things, list them all in outputs; set expect for the second and later ones with `port <block> --expect "<output>=<kind>:<hint>"`). Connected inputs and outputs share one name (renaming either end renames the other). Make the title a short phrase that tells "what is made".\nRecord dates and hours with `npx boxglow set <block> --due 2026-10-15 --start 2026-10-01 --estimate 8 --hours 3.5`.\nGive each box a kind of work (category): `--category design` / build / verify / evaluate / study / research / ui / improve / fix / docs / ops / other (other: when unsure). Set it at add time; to change it, use `npx boxglow set <block> --category verify`.\nThe receiving side of a connection can be just a title (`npx boxglow connect "A.Design doc" "B"` creates an input "Design doc" on B and connects it; boxes in other levels work too, the ports in between are created automatically. In split\'s connections, `to: "B"` also works). Connected inputs and outputs share one name (they are aligned when connected, and renaming either end renames everything on the same wire). To add inputs / outputs to an existing box or rename them, use `npx boxglow port <block> --in <name> --out <name> --remove <name> --rename <old>=<new>` (removing an input also removes the inputs of the boxes that use it; top-level inputs are `port inputs`; withdraw a mistaken question with `npx boxglow unask <block>`) (`project` = the first project box. This also renames the final deliverable). Remove a wire with `npx boxglow disconnect <title.output name> <title.input name>`, and remove a box itself with `npx boxglow remove <block>` (`--force` if it has boxes inside). The MCP tools (`boxglow_status` / `boxglow_start` / `boxglow_done` / `boxglow_ask` etc.; available after registration in your agent; `.mcp.json` is the Claude Code configuration) are another entry point to the same commands, and either way updates the same file. Export the plan as a document with `npx boxglow export --out docs/ROADMAP.md`.\n\n**Share project-wide decisions as policies**: when a box decides something many boxes depend on (technology choice, engine, art style), make that output a policy (`npx boxglow port <block> --policy "<output>"`; scope defaults to the same parent, `--policy-scope all` for the whole plan, `--advisory` to not block). It reaches every box in scope without wires, and the boxes in scope that have not started wait for it until it is decided (work in progress is not stopped). Read `policies` in `context` before working. Exclude unrelated boxes with `--skip-policy "<box>.<output>"`. If a policy changes after a box is done, it appears in `policyChanged` (check it again). Do not wire it to each box.\nIn a new project, first create 3-7 top-level items from the direction (the README or the request), confirm them with a human via `ask`, and then `split` only the item you are about to start (leave later stages coarse). Write each `ask` question so that it can be decided on its own, and put the premises, comparison and impact in `--context` (do not point outside the question, as in "Is this OK?"). When choosing one of several candidates, even if you decide by yourself, record it with `ask ... --options "A|B|C"` and `answer --by <yourself>` so that the candidates you did not choose are kept. To change direction, use `reopen <block> --note <reason>`. Everything works with the CLI alone (the screen is for humans to watch). If no human is in the loop, the AI records its decisions with `answer --by <yourself>` and proceeds.\nName each output after a "concrete deliverable" (e.g. `Design doc docs/design.md`, `PR #12`, `Public URL`, `Test results (vitest, 53 tests)`). Avoid abstract names such as "feature set" or "findings", and always attach a file, URL or commit with --artifact when you run done.\nMake sure every box\'s "input \u2192 output" is connected to something (an unconnected box is a hole in the plan. Unconnected inputs are raised to the top-level input node automatically).\nIf several people edit the same boxglow.json, each of them runs `npx boxglow git-setup` once in their own clone (changes are merged automatically per box, and changes to different boxes do not conflict).\nTo manage several repositories with one plan, put boxglow.json in the folder above them and set the environment variable BOXGLOW_FILE to its location in each repository (one project box per repository: `npx boxglow project "name" --repo <path>`).\nInputs are required by default. Mark an input as optional with `npx boxglow port <block> --optional <input name>` if work can start without it (`--required` turns it back). Describe a port with `--describe "<name>=<description>"`. "Next candidates" in status lists boxes whose required inputs are ready first (each is marked "ready to start" or "waiting for required inputs"). When a top-level plan input (Inputs) has no material (a spec, a scenario or other file or URL), every box that uses it waits. If the material is in the repository, attach it yourself instead of asking a person: `npx boxglow artifact inputs <path or URL> --input <input name>` (MCP: `boxglow_artifact` with block "inputs"). Work-in-progress material (for example a design whose dimensions are not settled yet) is neither left unattached nor attached as final: attach it to the output as work in progress with `npx boxglow artifact <block> <path> --draft`. Boxes using it keep waiting, but if one may start from the draft, mark its input with `npx boxglow port <block> --accept-draft <input name>` (ask a person with ask when unsure). Finishing the box with done confirms its drafts (`artifact <block> --final <title>` confirms one earlier). Reference material that should not be passed on goes to the box itself with `--link`. Remove a deliverable or material attached by mistake with `npx boxglow artifact <block|inputs> --remove <title or path>`. When a finished box shows "Policy: check again", check that the work matches the policy; if it does, clear the mark with `npx boxglow ack <block> --policy` (if not, reopen and fix it).\nDo not write descriptions for inputs (the description of the connected output is used). Write the format and constraints in the output\'s description.\n\n\n### What runs automatically (hooks)\n\n`setup-agent` registers `boxglow hook` in the Claude Code / Codex hooks. After a session starts, resumes or is compacted, the plan\'s resume summary is injected into the context automatically. When you are about to finish a reply while a box started in this session has no handoff (done or checkpoint), you are told to record first and continue (a log entry is a progress note, not a handoff). Editing boxglow.json directly with Edit / Write / apply_patch is blocked (update it through the CLI or MCP). These are a safety net, not a substitute for the steps above: keep recording as instructed.\n\n### Context token and handoff\n\nThe context guard keeps an AI from continuing work on outdated instructions. `setup-agent` turns it on (on other plans, run `npx boxglow guard on`).\nWhile it is on, an AI\'s `start` / `done` / `set` / `split` / `artifact` / `ack` / `blocked` / `review` / `leave` / `checkpoint` need `--context-token <context token>`. Commands run by a person (`--actor human`) do not.\n\n```\nnpx boxglow context B12 # read the decisions (including acknowledged answers), input/output contracts and handoff notes. contextToken in the output is the context token\nnpx boxglow start B12 --note "<what you will do>" --context-token <context token>\nnpx boxglow ask B12 "<question>" --options "A|B" --context-token <context token>\n# -> last line of the output: New context token: <token>\nnpx boxglow done B12 --artifact "<name>=<path>" --context-token <new context token>\n```\n\n- **The context token changes (you must reread)** when a person answers a decision or revises an answer, a person changes the instructions (title, description, input/output contracts), or another AI or a person updates the handoff note. The same applies when this happens on a parent box or an input provider. The old context token is rejected: reread `context`, take the change into account in your work, then retry\n- **The context token does not change** on `start` / `blocked` / `review` / `leave` / `ack`, on changes to progress, status, dates or category, when `check` verifies deliverables, or when boxes are moved on the screen. Keep using the same context token\n- **You can update it yourself**: when your own `ask` / `artifact` / `done` / `set` / `split` / `checkpoint` etc. changes the context, the last line of its output is "New context token: <token>". You already know what you changed, so use it for the next command without rereading. `ask` / `decision` / `answer` / `reopen` run without a context token, but they print the new context token only when you pass the latest one\n- **Read the short form first**: `npx boxglow context <block> --brief` prints everything about the box itself (description, scope, decisions, handoff, inputs/outputs, deliverables) plus the plan description and, for parents and input providers, title, status, decisions (with their context and options; the history of earlier answers is left out) and the outputs that feed the box. The context token is the same as without `--brief`, so pass it to `--context-token` as is. Look at `target.missingInputs` (required inputs that are not ready) and `target.inputs[].sources` (which output of which box, with references to its deliverables) first. `omitted` counts what was left out. If an omitted description, contract or handoff may matter to your work, read without `--brief`, or read `context` of that box\n- **Precondition for starting from the short form**: the description of a parent or input provider that has any scope field set is left out of the short form (counted in `omitted.descriptions`). Set a scope only after moving the constraints written in the description (compatibility, prohibitions, deadlines) into it. On a plan where you cannot tell, or when `omitted.descriptions` is not 0, read once without `--brief` before you start. The short form is a starting point, not a guarantee that nothing else matters\n- Write so that the short form is enough: put the conditions that bind the work in the scope (non-goals / constraints / acceptance / consult) instead of burying them in a description. Only the latest handoff note is kept, so carry the open points, cautions and next steps forward each time you write one. Say where to start looking in the description of the box, in this form (a starting point, not a claim that those files are all there is to read):\n `Change candidates: <path> \u2014 <why to start there>` / `Related checks: <path or command> \u2014 <what it verifies>`\n- Do not turn the guard off to get past an old context token (an AI needs the latest context token to run `guard off`)\n- With MCP, use `boxglow_context` and the `contextToken` argument of each tool (the new context token is the last line of the tool result)\n- If "Another Boxglow writer holds the file lock" persists after waiting and retrying, show the output of `npx boxglow unlock` (owner and verdict) to a person and ask them to remove it. Never add `--actor human` yourself or delete the lock folder directly\n\n### Readiness, current scope, and fresh resume information\n\n- Read current activity, pending decisions, and unread answers first. Candidates are grouped by current scope / other candidates, then ready / needs detail / waiting for inputs, with the reasons and missing input names. A candidate that needs detail or is waiting is not ready.\n- "Ready" is a mechanical check: the box makes at least one output itself, that output has a planned deliverable (expect), the acceptance criteria are written, and required inputs are in. It does not judge whether the text is specific (`expect = src/`, `acceptance = works` pass). Write them so a third party can follow the target, the work, the result and how it is checked.\n- Four optional scope fields are available: goal, non-goals, acceptance, and consult (when to consult before expanding scope). Read the target and parent scopes at the start of context before starting and finishing. Textual acceptance criteria are not automatically evaluated.\n- Use scope B12 --goal "Goal" --non-goals "Excluded" --acceptance "Checks" --consult "When to ask". scope B12 only reads; none or an empty string clears a field. In the inspector, use the More tab \u2192 Edit work scope. Only populated fields appear in the collapsed scope section.\n- focus B12 prioritizes that box and its descendants; focus reads the selection, and focus none clears it. Other candidates remain in a separate group. Being listed does not authorize expanding scope or publishing.\n- Missing required inputs warn on start by default but still allow the start. Supply --reason "Why starting early is appropriate" to proceed without a warning and save the reason in both activity and the log. Artifact-free done also remains warning-only by default. Existing output artifacts or --artifact count; reference material on the box does not.\n- Only enable strict checks when selected for the plan: policy --start reject --done reject --unprepared reject. Each can return to warn. A recorded start reason overrides the missing-input rejection, but not the needs-detail one (add detail first). The artifact requirement also applies to set --status white. Human operations (UI / --actor human) are never rejected. Do not impersonate a human or weaken policy to bypass rejection.\n- With guard enabled, scope writes, focus selection/clearing, and policy writes require --context-token. These changes print a new token: use it next. Read-only forms need no token.\n- resume hides completed handoff bodies and shows their count. Request resume --include-completed only when history is needed; context / show can still read individual notes.\n- descriptionUpdatedAt dates description changes; statusChangedAt dates status changes; handoffs use their existing at field. Notes predating a status change are marked. Unknown legacy dates stay unknown, and recency does not establish truth.\n- After Done, CLI, inspector, and resume flag descriptions that may still describe an earlier state. Text is never rewritten automatically. Review it, then update with set B12 --note "Current description" (none clears it) or Notes in the UI.\n- MCP: boxglow_scope / boxglow_focus / boxglow_policy, boxglow_claim, expect / self on boxglow_port, reason on boxglow_start, and includeCompleted on boxglow_resume. Pass contextToken for writes.\n- All data fields are optional; schema v5 is unchanged. Old versions (0.4.2 and earlier) do not enforce these checks and drop workflowPolicy / focusBlockId when saving. Align all writers (CLI, serve, web app, bundled extension app) to a supporting build before using these settings. Check build time as well as version.\n\n\n### Sync decisions\n\nAI may only sync already bound projects and inspect comparisons. If sync stops for a conflict or a human choice, summarize the differences and use ask to notify the user. Never resolve conflicts, create a new binding, relink, recover, adopt, restore, or confirm an account. A human must use the UI or explicitly run CLI with --actor human. AI must never add --actor human, including after a chat answer; record the answer and wait for the human to apply the sync choice.\n\nCodex must pass `--actor codex` on every CLI call; Claude Code must pass `--actor claude-code`. Execution markers may not survive a WSL boundary. Give subagents names such as `codex-task`; never impersonate a human.\n\n### Claims for parallel work\n\nWhen claims are enabled for the plan, fix a unique `BOXGLOW_INSTANCE_ID` for each independent CLI session. Do not share it between agents. Read `claims` and `context`, then acquire with `claim` (before adding detail or splitting) or `start` (to run); a claim taken with `claim` carries over to `start` (default block scope, `--scope subtree` for descendants). Keep the token from the successful CLAIM line and pass `--claim-token` on writes. MCP keeps its own instance ID and acquired receipts automatically. Renew with `claim-renew` / `boxglow_claim_renew` every 5 minutes (or within half the lease for shorter leases); checkpoint before handoff. done/leave releases the target claim. On expiry or a generation mismatch, reread context and acquire again. The same actor name does not make another instance yours. Ask a person to change claim settings, force release, or resolve sync conflicts; never impersonate human. Synced copies on different devices are not protected by a distributed lock. See `docs/CLAIMS.md`.\n\nNever use another instance\u2019s ID or receipt, including receipts reconstructed from plan data or claims output. After MCP restarts, the same actor is still a different instance: wait for expiry or ask a person to release it; never take it over automatically.\n\nAutomatically promoted inputs belong to the original box\u2019s scope. Changes to shared input content or other boxes\u2019 layout require claims for all affected boxes. For plan settings such as focus or group, use `context root` \u2192 `claim root` and pass that CLAIM receipt (`start root` also works, but `claim` does not mark it in progress). A block-scoped root claim does not include ordinary boxes and is sufficient for plan settings. A subtree claim on root blocks all parallel work: AI agents must not use it and must consult a person. End it with `leave root`. Context-guard tokens are still required.\n\n---\n\nHuman-only sync operations prevent accidental actions; they are not enforced authorization or OS-level isolation. AI must never identify itself with `--actor human`. Report the comparison and stop reason to the user. MCP and AI-identified CLI output do not provide executable human choice commands.\n\nHuman CLI actions also accept `--actor human:name`; AI must not impersonate a human using either form. The `boxglow sync --help` hint in AI halt output is for humans who inherited an AI environment, not permission for AI to apply their choice.\n';
|
|
13424
13558
|
|
|
13425
13559
|
// .claude/skills/boxglow/SKILL.md
|
|
13426
|
-
var SKILL_default = '---\nname: boxglow\ndescription: Boxglow (boxglow.json) \u3067\u8A08\u753B\u3068\u9032\u6357\u3092\u4EBA\u9593\u3068\u5171\u6709\u3059\u308B\u3002\u4F5C\u696D\u306E\u958B\u59CB\u30FB\u5206\u89E3\u30FB\u5B8C\u4E86\u30FB\u5224\u65AD\u5F85\u3061\u3092 npx boxglow \u3067\u8A18\u9332\u3059\u308B\u3002\u300C\u9032\u6357\u3092 Boxglow \u306B\u8A18\u9332\u3057\u3066\u300D\u300Cboxglow \u3067\u72B6\u6CC1\u3092\u898B\u3066\u300D\u300C/boxglow\u300D\u3067\u4F7F\u7528\u3002\n---\n\n# Boxglow \u3067\u8A08\u753B\u3068\u9032\u6357\u3092\u5171\u6709\u3059\u308B\n\n\u30EA\u30DD\u30B8\u30C8\u30EA\u76F4\u4E0B\u306E `boxglow.json` \u304C\u8A08\u753B\u306E\u6B63\u672C\u3002\u4EBA\u9593\u306F Boxglow \u306E\u753B\u9762 (https://boxglow.app/ \u3067\u300Cboxglow.json \u3092\u958B\u304F\u300D) \u3067\u898B\u3066\u3044\u308B\u3002\n\u76F4\u63A5\u7DE8\u96C6\u305B\u305A `npx boxglow` \u3067\u66F4\u65B0\u3059\u308B\u3002\n\n## \u6700\u521D\u306E\u8A08\u753B\u3065\u304F\u308A (\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u3068\u304D)\n\n1. \u65B9\u91DD (README\u3001\u4F9D\u983C\u6587\u3001\u8981\u4EF6\u30E1\u30E2) \u3092\u8AAD\u307F\u3001`npx boxglow init --name "<\u540D\u524D>"` \u306E\u3042\u3068\u3001\u6700\u4E0A\u4F4D\u306B\u5927\u9805\u76EE (3\u301C7 \u500B) \u3092 `add` \u3067\u7F6E\u304F\u3002\n \u5404\u5927\u9805\u76EE\u306B\u306F\u300C\u5165\u529B (\u4F55\u3092\u4F7F\u3046\u304B)\u300D\u3068\u300C\u51FA\u529B (\u5177\u4F53\u7684\u306A\u6210\u679C\u7269: \u30D5\u30A1\u30A4\u30EB\u30FBURL\u30FBPR)\u300D\u3092\u5FC5\u305A\u66F8\u304D\u3001\u6700\u7D42\u6210\u679C\u7269\u307E\u3067\u7DDA\u3067\u3064\u306A\u3050 (`connect`)\n2. \u4F5C\u3063\u305F\u3089 `npx boxglow ask <\u6700\u521D\u306E\u5927\u9805\u76EE> "\u3053\u306E\u5927\u9805\u76EE\u306E\u5206\u3051\u65B9\u3067\u3088\u3044\u3067\u3059\u304B?" --options "\u3088\u3044|\u76F4\u3057\u305F\u3044"` \u3067\u4EBA\u306E\u78BA\u8A8D\u3092\u53D6\u308B\u3002\n \u4EBA\u306F\u753B\u9762\u3067\u3082\u3001`npx boxglow answer <block> "<\u56DE\u7B54>"` \u3067\u3082\u3001\u30C1\u30E3\u30C3\u30C8\u3067\u3082\u7B54\u3048\u3089\u308C\u308B\u3002\u30C1\u30E3\u30C3\u30C8\u3067\u7B54\u3048\u304C\u8FD4\u3063\u305F\u3089 AI \u304C `answer --by human` \u3067\u8A18\u9332\u3059\u308B\u3002\n \u4EBA\u304C\u753B\u9762\u3092\u4F7F\u308F\u306A\u3044\u904B\u7528 (AI \u3060\u3051\u3067\u9032\u3081\u308B\u6307\u793A\u304C\u3042\u308B\u3068\u304D) \u306F\u3001AI \u81EA\u8EAB\u304C `answer --by claude-code "<\u5224\u65AD\u3068\u7406\u7531>"` \u3067\u8A18\u9332\u3057\u3066\u5148\u3078\u9032\u3080\u3002\u5224\u65AD\u306E\u8A18\u9332\u3092\u6B8B\u3059\u3053\u3068\u304C\u76EE\u7684\u3067\u3001\u753B\u9762\u306F\u5FC5\u9808\u3067\u306F\u306A\u3044\n3. \u7740\u624B\u3059\u308B\u5927\u9805\u76EE\u3060\u3051\u3092 `split` \u3067\u5206\u89E3\u3059\u308B (\u5148\u306E\u6BB5\u968E\u306F\u7C97\u3044\u307E\u307E\u3002\u9032\u3081\u306A\u304C\u3089\u7D30\u304B\u304F\u3059\u308B)\n\n## \u624B\u9806\n\n1. `npx boxglow resume` (\u307E\u305F\u306F `npx boxglow status --brief`) \u3092\u8AAD\u3080\u3002\u4F5C\u696D\u4E2D\u306E\u30DC\u30C3\u30AF\u30B9\u3001\u5224\u65AD\u5F85\u3061\u3001AI \u672A\u78BA\u8A8D\u306E\u56DE\u7B54\u3001\u6B21\u306E\u5019\u88DC\u3001\u672A\u5B8C\u4E86\u306E\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u628A\u63E1\u3059\u308B\u3002\u5168\u968E\u5C64\u304C\u8981\u308B\u3068\u304D\u306F `npx boxglow status`\n2. \u62C5\u5F53\u3059\u308B\u30DC\u30C3\u30AF\u30B9\u3092\u6C7A\u3081\u305F\u3089 `npx boxglow context <block>` \u3092\u8AAD\u3080\u3002\u51FA\u529B\u306E `readiness.state` \u304C `ready` \u306A\u3089\u7740\u624B\u3067\u304D\u308B\u3002`unprepared` (\u8981\u5177\u4F53\u5316) \u306A\u3089 `unprepared` \u306E\u7406\u7531\u3068 `next` \u306E\u6B21\u306E\u4E00\u624B\u306B\u5F93\u3063\u3066\u5148\u306B\u5177\u4F53\u5316\u3059\u308B\u3002`waiting` \u306F\u5FC5\u9808\u306E\u5165\u529B\u304B\u5206\u5C90\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u308B\n3. \u5177\u4F53\u5316\u3084\u5206\u89E3\u306E\u524D\u306B `npx boxglow claim <block>` \u3067\u53D7\u3051\u6301\u3061\u3060\u3051\u3092\u53D6\u308B (\u5B9F\u884C\u4E2D\u306B\u306F\u306A\u3089\u306A\u3044\u3002\u53D7\u3051\u6301\u3061\u5236\u5FA1\u304C\u7121\u52B9\u306A\u8A08\u753B\u3067\u306F\u300C\u53D6\u5F97\u4E0D\u8981\u300D\u3067\u6B63\u5E38\u7D42\u4E86\u3059\u308B)\u3002\u4E0D\u8DB3\u3092\u57CB\u3081\u308B:\n \u51FA\u529B\u306E\u4E88\u5B9A\u6210\u679C\u7269 `npx boxglow port <block> --expect "<\u51FA\u529B\u540D>=file:src/x.ts"` (kind \u306F file / dir / url / doc / note / decision / result\u3002\u307E\u3060\u7121\u3044\u30D5\u30A1\u30A4\u30EB\u3067\u3088\u3044)\u3001\u5B8C\u4E86\u6761\u4EF6 `npx boxglow scope <block> --acceptance "<\u5B8C\u4E86\u3068\u5224\u65AD\u3059\u308B\u6761\u4EF6>"`\u3002\n \u5927\u304D\u3044\u30DC\u30C3\u30AF\u30B9\u306F `npx boxglow split <block> --spec \'<JSON>\'` \u3067\u5206\u89E3\u3059\u308B (\u5F62\u5F0F\u306F `npx boxglow help`)\u3002\u4ECA\u56DE\u7740\u624B\u3059\u308B\u5B50\u3060\u3051 expect / acceptance \u3092\u66F8\u304D\u3001\u5148\u306E\u5B50\u306F\u984C\u540D\u3068\u51FA\u529B\u3060\u3051\u3067\u3088\u3044\u3002\n \u5BFE\u8C61\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u5206\u304B\u3089\u306A\u3044\u3068\u304D\u306F\u3001\u67B6\u7A7A\u306E\u30D1\u30B9\u3092\u66F8\u304B\u305A\u300C\u5BFE\u8C61\u3092\u7279\u5B9A\u3059\u308B\u8ABF\u67FB\u300D\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u51FA\u529B `note` \u3067\u4F5C\u3063\u3066\u59CB\u3081\u308B\u3002\n \u5206\u89E3\u306E\u5F8C\u306F `npx boxglow lint <block>` \u3092\u8AAD\u307F\u3001\u300C\u5FC5\u305A\u76F4\u3059\u300D\u3092\u76F4\u3057\u3066\u304B\u3089\u9032\u3080 (\u300C\u898B\u76F4\u3057\u5019\u88DC\u300D\u306F\u5185\u5BB9\u3092\u898B\u3066\u5224\u65AD)\u3002\u76F4\u4E0B\u306E\u5B50\u306E\u5206\u3051\u65B9\u306F `"splitBy": "\u5DE5\u7A0B"` (\u307E\u305F\u306F `set --split-by`) \u3067\u4E00\u8A9E\u6B8B\u3059\u3002\n \u5185\u5BB9\u306E\u30EC\u30D3\u30E5\u30FC: `review-split <\u89AA>` \u306E\u6750\u6599\u3068\u30C1\u30A7\u30C3\u30AF\u9805\u76EE\u3092\u8AAD\u3093\u3067 `split-ok <\u89AA> --note "<\u6839\u62E0>"`\u3001\u7740\u624B\u306E\u524D\u306F `review-box <block>` \u2192 `box-ok <block> --note "<\u6839\u62E0>"` (\u6750\u6599\u304C\u5909\u308F\u308B\u3068 context \u306E reviews \u304C stale \u306B\u306A\u308B)\u3002\n \u7B54\u3048\u3067\u5F8C\u306E\u4F5C\u696D\u304C\u5206\u304B\u308C\u308B\u554F\u3044\u306F `ask ... --options "A|B" --branch` \u3067\u5206\u5C90\u306B\u3059\u308B (split \u306E JSON \u3067\u3082 `"branch": { question, options }` / `"join": true`)\n4. \u6E96\u5099\u304C\u3067\u304D\u305F\u3089 `npx boxglow context <block>` \u3092\u8AAD\u307F\u76F4\u3057\u3001`npx boxglow start <block> --note "<\u4F55\u3092\u3059\u308B\u304B>"`\u3002\n \u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306E\u8981\u6C42 (guard) \u304C\u6709\u52B9\u306A\u8A08\u753B\u3067\u306F\u3001\u51FA\u529B\u306E `contextToken` (\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3) \u3092 `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u3067\u4ED8\u3051\u308B\u3002\n \u8981\u5177\u4F53\u5316\u306E\u30DC\u30C3\u30AF\u30B9\u3078\u306E start \u306F\u65E2\u5B9A\u3067\u306F\u8B66\u544A\u3001`policy --unprepared reject` \u306E\u8A08\u753B\u3067\u306F\u958B\u59CB\u3067\u304D\u306A\u3044 (`--reason` \u3067\u306F\u901A\u308C\u306A\u3044)\u3002\u51FA\u529B\u3092\u5B50\u306B\u4EFB\u305B\u304D\u308A\u306E\u89AA\u306F\u5B9F\u884C\u3059\u308B\u3082\u306E\u304C\u7121\u3044\u306E\u3067\u3001\u5B50\u3092 start \u3059\u308B\n5. \u6210\u679C\u7269\u304C\u3067\u304D\u305F\u3089 `npx boxglow done <block> --artifact "<\u540D\u524D>=<URL \u307E\u305F\u306F\u30D1\u30B9>" --checked "<\u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C>"` (\u691C\u67FB\u7D50\u679C\u306F `--checked` \u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C / `--not-checked` \u8A66\u3057\u3066\u3044\u306A\u3044\u3053\u3068 / `--limits` \u6B8B\u308B\u5236\u9650 \u306E 3 \u3064\u3067\u6B8B\u3059\u3002\u30B3\u30FC\u30C9\u4EE5\u5916\u306E\u6210\u679C\u7269\u306F\u300C\u78BA\u8A8D\u3057\u305F\u3053\u3068\u300D\u3092\u66F8\u304F\u3002guard \u304C\u6709\u52B9\u306A\u3089 `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u3092\u4ED8\u3051\u308B\u3002\u76F4\u524D\u306E\u81EA\u5206\u306E\u64CD\u4F5C\u306E\u51FA\u529B\u306B\u300C\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\u300D\u304C\u51FA\u3066\u3044\u308C\u3070\u3001\u305D\u308C\u3092\u4F7F\u3046)\n6. \u4EBA\u9593\u306E\u5224\u65AD\u304C\u8981\u308B\u3068\u304D\u306F `npx boxglow ask <block> "<\u8CEA\u554F>" --options "A|B"` \u3057\u3066\u4ED6\u306E\u30DC\u30C3\u30AF\u30B9\u3078\u79FB\u308B\n7. \u8A70\u307E\u3063\u305F\u3089: \u5165\u529B (\u524D\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u6210\u679C\u7269\u30FB\u8CC7\u6599) \u304C\u8DB3\u308A\u306A\u3044\u3053\u3068\u304C\u539F\u56E0\u306A\u3089\u3001\u8A70\u307E\u308A\u306B\u3057\u306A\u3044\u3002`npx boxglow show <block>` \u3067\u5165\u529B\u306E\u914D\u7DDA\u3092\u78BA\u304B\u3081\u3001\u8DB3\u308A\u306A\u3044\u3082\u306E\u3092\u4F5C\u308B\u30DC\u30C3\u30AF\u30B9\u304C\u7121\u3051\u308C\u3070 `npx boxglow add` \u3067\u5916 (\u4E0A\u6D41) \u306B\u4F5C\u308A\u3001`npx boxglow connect` \u3067\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u5165\u529B\u306B\u3064\u306A\u3050 (\u914D\u7DDA\u304C\u300C\u5F85\u3061\u300D\u306E\u8272\u3067\u6B8B\u308A\u3001\u4F55\u3092\u5F85\u3063\u3066\u3044\u308B\u304B\u304C\u56F3\u3067\u898B\u3048\u308B)\u3002\u9078\u629E\u80A2\u304B\u3089\u9078\u3093\u3067\u3082\u3089\u3048\u3070\u9032\u3081\u308B\u306A\u3089 `ask`\u3002\u305D\u308C\u4EE5\u5916\u306E\u3001\u8A08\u753B\u306E\u5916\u306B\u3042\u308B\u969C\u5BB3 (\u74B0\u5883\u304C\u52D5\u304B\u306A\u3044\u3001\u6A29\u9650\u3084\u30AD\u30FC\u304C\u7121\u3044\u3001\u5916\u90E8\u306E\u8FD4\u4E8B\u5F85\u3061\u3001\u539F\u56E0\u306E\u5206\u304B\u3089\u306A\u3044\u5931\u6557) \u3060\u3051\u3092 `npx boxglow blocked <block> --note "<\u56F0\u3063\u3066\u3044\u308B\u3053\u3068>"` \u3067\u8A18\u9332\u3059\u308B\n8. \u4E2D\u65AD\u30FB\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306E\u5727\u7E2E\u30FB\u5F15\u304D\u7D99\u304E\u306E\u524D\u306B `npx boxglow checkpoint <block> --note "\u5206\u304B\u3063\u305F\u3053\u3068; \u6B21\u306B\u3059\u308B\u3053\u3068; \u672A\u89E3\u6C7A\u306E\u3053\u3068"` \u3067\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u6B8B\u3059\n9. \u6700\u5F8C\u306B `npx boxglow status --brief` \u3092\u8981\u7D04\u3057\u3066\u5831\u544A\u3059\u308B\n\n## \u7D04\u675F\n\n- **\u307E\u3060\u6C7A\u307E\u3063\u3066\u3044\u306A\u3044\u5206\u304B\u308C\u9053\u306F\u5206\u5C90\u3067\u8868\u3059**: \u8A08\u753B\u3092\u4F5C\u308B\u6642\u70B9\u3067\u3001\u5224\u65AD\u6B21\u7B2C\u3067\u5F8C\u306E\u4F5C\u696D (\u9053) \u304C\u5909\u308F\u308B\u3068\u304D\u306F `npx boxglow branch "<\u984C\u540D>" --options "A|B" --question "<\u554F\u3044>" --context "<\u5224\u65AD\u6750\u6599>"` \u3067\u5206\u5C90\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u4F5C\u308B\u3002\u9078\u629E\u80A2\u3054\u3068\u306B\u9053 (\u51FA\u529B) \u304C\u3067\u304D\u308B\u306E\u3067\u3001\u305D\u308C\u305E\u308C\u306E\u9053\u306E\u6700\u521D\u306E\u30DC\u30C3\u30AF\u30B9\u3078 `connect` \u3059\u308B\u3002\u9053\u304C\u5F8C\u3067 1 \u3064\u306B\u307E\u3068\u307E\u308B\u3068\u3053\u308D\u306B\u306F `npx boxglow join --title "<\u984C\u540D>"` \u3067\u5408\u6D41\u306E\u90E8\u54C1\u3092\u7F6E\u304D\u3001\u305D\u308C\u305E\u308C\u306E\u9053\u306E\u6700\u5F8C\u306E\u51FA\u529B\u3092\u3053\u306E\u90E8\u54C1\u3078 `connect` \u3057\u3001\u90E8\u54C1\u306E\u51FA\u529B\u3092\u5148\u306E\u7BB1\u3078\u3064\u306A\u3050 (\u3069\u308C\u304B 1 \u3064\u306E\u9053\u304C\u5C4A\u3051\u3070\u5148\u3078\u9032\u3080)\u3002\u4EBA\u304C\u7B54\u3048\u308B\u3068\u3001\u9078\u3070\u306A\u304B\u3063\u305F\u9053\u306E\u5148\u306F\u300C\u898B\u9001\u308A\u300D\u306B\u306A\u308A\u3001\u9032\u6357\u3068\u6B21\u306E\u5019\u88DC\u304B\u3089\u5916\u308C\u308B\u3002\u3059\u3067\u306B\u4F5C\u3063\u305F\u30DC\u30C3\u30AF\u30B9\u304C\u5B9F\u306F\u6C7A\u307E\u3063\u3066\u3044\u306A\u3044\u5206\u304B\u308C\u9053\u3060\u3068\u5206\u304B\u3063\u305F\u3089\u3001`npx boxglow branch --box <block> --options "A|B" --question "<\u554F\u3044>"` \u3067\u5206\u5C90\u306B\u5909\u3048\u308B (\u4ECA\u306E\u51FA\u529B\u304C 1 \u3064\u76EE\u306E\u9078\u629E\u80A2\u306E\u9053\u306B\u306A\u308A\u3001\u7DDA\u306F\u6B8B\u308B)\u3002\u7B54\u3048\u304C\u51FA\u308B\u524D\u306E\u9053\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u300C\u5206\u5C90\u5F85\u3061\u300D\u3067\u3001\u7740\u624B\u3059\u308B\u3068\u8B66\u544A\u3055\u308C\u308B (\u5148\u306B\u4E0B\u8ABF\u3079\u3059\u308B\u306A\u3069\u7406\u7531\u304C\u3042\u308C\u3070 `--reason` \u3067\u8A18\u9332\u3059\u308B)\n- `ask` \u306E\u8CEA\u554F\u306F\u3001\u305D\u308C\u3060\u3051\u3067\u5224\u65AD\u3067\u304D\u308B\u3088\u3046\u306B\u66F8\u304F\u3002\u300C\u3053\u308C\u3067\u3088\u3044\u3067\u3059\u304B\u300D\u300C\u4E0A\u8A18\u306E\u6848\u300D\u306E\u3088\u3046\u306B\u5916\u3092\u6307\u3055\u305A\u3001\u524D\u63D0\u30FB\u6BD4\u8F03\u30FB\u5F71\u97FF\u3092 `--context` \u306B\u66F8\u304F (\u4EBA\u306F\u4E00\u89A7\u306E\u4E2D\u306E\u8CEA\u554F\u3060\u3051\u3092\u8AAD\u3093\u3067\u7B54\u3048\u308B)\n- \u5019\u88DC\u304B\u3089 1 \u3064\u3092\u9078\u3076\u5834\u9762 (\u65B9\u5F0F\u30FB\u30E9\u30A4\u30D6\u30E9\u30EA\u30FB\u8A2D\u8A08\u306E\u9078\u629E) \u3067\u306F\u3001AI \u304C\u81EA\u5206\u3067\u6C7A\u3081\u308B\u3068\u304D\u3082 `ask <block> "<\u554F\u3044>" --options "A|B|C"` \u2192 `answer --by claude-code "<\u9078\u3093\u3060\u3082\u306E>\u3002\u7406\u7531: ..."` \u306E\u5F62\u3067\u8A18\u9332\u3057\u3001\u9078\u3070\u306A\u304B\u3063\u305F\u5019\u88DC\u3092\u30DC\u30C3\u30AF\u30B9\u306B\u6B8B\u3059 (\u65B9\u91DD\u8EE2\u63DB\u306E\u3068\u304D\u306B\u623B\u308C\u308B)\n- \u65B9\u91DD\u8EE2\u63DB\u306F `reopen <block> --note "<\u7406\u7531>"` \u3067\u524D\u306E\u7B54\u3048\u3092\u5C65\u6B74\u306B\u6B8B\u3057\u3066\u9078\u3073\u76F4\u3059 (\u5019\u88DC\u306F\u6D88\u3055\u306A\u3044)\n\n- \u540C\u6642\u306B\u4F5C\u696D\u4E2D\u306B\u3059\u308B\u30DC\u30C3\u30AF\u30B9\u306F 1\u301C2 \u500B\u307E\u3067\n- \u6210\u679C\u7269 (artifact) \u306F\u5F8C\u304B\u3089\u4EBA\u304C\u958B\u3051\u308B\u3082\u306E (\u30B3\u30DF\u30C3\u30C8\u3001PR\u3001\u30D5\u30A1\u30A4\u30EB\u306E\u30D1\u30B9) \u306B\u3059\u308B\n- \u51FA\u529B\u306F\u5177\u4F53\u7684\u306A\u6210\u679C\u7269\u306E\u540D\u524D\u306B\u3059\u308B (\u30D5\u30A1\u30A4\u30EB\u30FBPR\u30FBURL\u30FB\u30C6\u30B9\u30C8\u7D50\u679C)\u3002\u62BD\u8C61\u7684\u306A\u540D\u524D (\u6A5F\u80FD\u4E00\u5F0F\u3001\u6240\u898B) \u306F\u907F\u3051\u308B\u30021 \u3064\u306E\u4F5C\u696D\u3067\u8907\u6570\u306E\u7269\u304C\u3067\u304D\u308B\u306A\u3089\u51FA\u529B\u3092\u5206\u3051\u308B (`port <block> --out "<\u540D\u524D>"` \u3067\u8DB3\u3059)\n- \u7D50\u7DDA\u306E\u53D7\u3051\u5074\u306F\u984C\u540D\u3060\u3051\u3067\u3088\u3044 (`connect "A.\u8A2D\u8A08\u66F8" "B"` \u3067 B \u306B\u5165\u529B\u300C\u8A2D\u8A08\u66F8\u300D\u304C\u4F5C\u3089\u308C\u308B)\u3002\u7DDA\u3067\u3064\u306A\u304C\u308B\u5165\u51FA\u529B\u306F 1 \u3064\u306E\u540D\u524D (\u3069\u3061\u3089\u5074\u3067\u5909\u3048\u3066\u3082\u3001\u3064\u306A\u304C\u308B\u5148\u3082\u540C\u3058\u540D\u524D\u306B\u306A\u308B)\n- \u30DC\u30C3\u30AF\u30B9\u306F\u5FC5\u305A\u300C\u5165\u529B \u2192 \u51FA\u529B\u300D\u3067\u3064\u306A\u3050\u3002\u8DB3\u308A\u306A\u3044\u5165\u51FA\u529B\u306F `port`\u3001\u5916\u3059\u306E\u306F `disconnect`\u3001\u30DC\u30C3\u30AF\u30B9\u305D\u306E\u3082\u306E\u3092\u6D88\u3059\u306E\u306F `remove`\u3002\u6587\u66F8\u5316\u306F `export --out docs/ROADMAP.md`\n- \u30DC\u30C3\u30AF\u30B9\u3092 add \u3059\u308B\u3068\u304D\u306F\u4ED5\u4E8B\u306E\u7A2E\u985E\u3092 `--category` \u3067\u4ED8\u3051\u308B (design \u8A2D\u8A08 / build \u5B9F\u88C5 / verify \u691C\u8A3C / evaluate \u8A55\u4FA1 / study \u691C\u8A0E / research \u8ABF\u67FB / ui \u30C7\u30B6\u30A4\u30F3 / improve \u6539\u5584 / fix \u8AB2\u984C\u89E3\u6C7A / docs \u6587\u66F8 / ops \u904B\u7528 / other \u305D\u306E\u4ED6)\u3002\u753B\u9762\u3067\u306F\u8272\u306E\u5E2F\u3068\u672D\u306B\u306A\u308B\n- boxglow.json \u304C\u307E\u3060\u7121\u3051\u308C\u3070 `npx boxglow init --name "<\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D>"` \u3067\u4F5C\u308A\u3001\u6700\u7D42\u6210\u679C\u7269\u3068\u6700\u4E0A\u4F4D\u306E\u30DC\u30C3\u30AF\u30B9\u3092 `add` \u3067\u7F6E\u304F\n\n## \u81EA\u52D5\u3067\u52D5\u304F\u4ED5\u7D44\u307F (hooks)\n\n`setup-agent` \u304C Claude Code / Codex \u306E hooks \u306B `boxglow hook` \u3092\u767B\u9332\u3057\u3066\u3044\u308B\u3002\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u958B\u59CB\u30FB\u518D\u958B\u30FB\u5727\u7E2E\u306E\u5F8C\u306B\u8A08\u753B\u306E\u518D\u958B\u306E\u6982\u8981 (resume) \u304C\u6587\u8108\u306B\u5165\u308B\u3002\u5FDC\u7B54\u3092\u7D42\u3048\u308B\u3068\u304D\u3001\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3067 start \u3057\u305F\u7BB1\u306B\u5F15\u304D\u7D99\u304E (done \u304B checkpoint) \u304C\u7121\u3051\u308C\u3070\u300C\u8A18\u9332\u3057\u3066\u304B\u3089\u7D42\u3048\u308B\u300D\u3088\u3046\u7D9A\u884C\u304C\u6307\u793A\u3055\u308C\u308B (log \u306F\u9032\u6357\u306E\u30E1\u30E2\u3067\u3001\u5F15\u304D\u7D99\u304E\u306E\u4EE3\u308F\u308A\u306B\u306A\u3089\u306A\u3044)\u3002boxglow.json \u3092\u76F4\u63A5\u66F8\u304D\u63DB\u3048\u308B\u64CD\u4F5C (Edit / Write / apply_patch) \u306F\u6B62\u3081\u3089\u308C\u308B\u3002\u3053\u308C\u306F\u5FD8\u308C\u305F\u3068\u304D\u306E\u4FDD\u967A\u3067\u3001\u4E0A\u306E\u624B\u9806\u3069\u304A\u308A\u306B\u81EA\u5206\u3067\u8A18\u9332\u3059\u308B\u3002\n\u5206\u89E3\u3084\u7740\u624B\u6E96\u5099\u306E\u30EC\u30D3\u30E5\u30FC\u306F\u3001\u30B5\u30D6\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8 `boxglow-review` \u306B\u4EFB\u305B\u3089\u308C\u308B (review-split / review-box \u306E\u6750\u6599\u3092\u8AAD\u3093\u3067\u8A55\u4FA1\u3068\u6839\u62E0\u3092\u8FD4\u3059\u3002split-ok / box-ok \u306E\u8A18\u9332\u306F\u3001\u8FD4\u3063\u3066\u304D\u305F\u6839\u62E0\u3067\u89AA\u3067\u3042\u308B\u81EA\u5206\u304C\u884C\u3046)\u3002\n\n## \u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3068\u5F15\u304D\u7D99\u304E\n\n\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306E\u8981\u6C42 (guard) \u306F\u3001AI \u304C\u53E4\u3044\u6307\u793A\u306E\u307E\u307E\u4F5C\u696D\u3092\u9032\u3081\u308B\u306E\u3092\u9632\u3050\u4ED5\u7D44\u307F\u3002`setup-agent` \u304C\u6709\u52B9\u306B\u3059\u308B (\u305D\u308C\u4EE5\u5916\u306E\u8A08\u753B\u3067\u306F `npx boxglow guard on`)\u3002\n\u6709\u52B9\u306A\u8A08\u753B\u3067\u306F\u3001AI \u306E `start` / `done` / `set` / `split` / `artifact` / `ack` / `blocked` / `review` / `leave` / `checkpoint` \u306B `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u304C\u8981\u308B\u3002\u4EBA\u306E\u64CD\u4F5C (`--actor human`) \u306B\u306F\u8981\u6C42\u3055\u308C\u306A\u3044\u3002\n\n```\nnpx boxglow context B12 # \u5224\u65AD (\u5F15\u304D\u53D6\u308A\u6E08\u307F\u306E\u56DE\u7B54\u3092\u542B\u3080)\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6\u30FB\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u8AAD\u3080\u3002\u51FA\u529B\u306E contextToken \u304C\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\nnpx boxglow start B12 --note "<\u4F55\u3092\u3059\u308B\u304B>" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\nnpx boxglow ask B12 "<\u8CEA\u554F>" --options "A|B" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\n# \u2192 \u51FA\u529B\u306E\u6700\u5F8C\u306E\u884C: \u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\nnpx boxglow done B12 --artifact "<\u540D\u524D>=<\u30D1\u30B9>" --context-token <\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\n```\n\n- **\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u5909\u308F\u308B\u5834\u5408 (\u8AAD\u307F\u76F4\u3057\u304C\u8981\u308B)**: \u4EBA\u304C\u56DE\u7B54\u3057\u305F\u30FB\u56DE\u7B54\u3092\u76F4\u3057\u305F\u3001\u4EBA\u304C\u6307\u793A (\u984C\u540D\u30FB\u8AAC\u660E\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6) \u3092\u5909\u3048\u305F\u3001\u4ED6\u306E AI \u3084\u4EBA\u304C\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u66F4\u65B0\u3057\u305F\u3002\u89AA\u3084\u5165\u529B\u5143\u306E\u30DC\u30C3\u30AF\u30B9\u3067\u8D77\u304D\u305F\u5834\u5408\u3082\u540C\u3058\u3002\u53E4\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306F\u62D2\u5426\u3055\u308C\u308B\u306E\u3067\u3001`context` \u3092\u8AAD\u307F\u76F4\u3057\u3001\u5909\u308F\u3063\u305F\u5185\u5BB9\u3092\u4F5C\u696D\u306B\u53CD\u6620\u3057\u3066\u304B\u3089\u3084\u308A\u76F4\u3059\n- **\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u5909\u308F\u3089\u306A\u3044\u5834\u5408**: `start` / `blocked` / `review` / `leave` / `ack`\u3001\u9032\u6357\u30FB\u72B6\u614B\u30FB\u671F\u65E5\u30FB\u30AB\u30C6\u30B4\u30EA\u306E\u5909\u66F4\u3001`check` \u306B\u3088\u308B\u6210\u679C\u7269\u306E\u78BA\u8A8D\u3001\u753B\u9762\u3067\u306E\u914D\u7F6E\u306E\u5909\u66F4\u3002\u540C\u3058\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u3044\u7D9A\u3051\u3089\u308C\u308B\n- **\u81EA\u5206\u3067\u66F4\u65B0\u3067\u304D\u308B\u5834\u5408**: \u81EA\u5206\u306E `ask` / `artifact` / `done` / `set` / `split` / `checkpoint` \u306A\u3069\u3067\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u304C\u5909\u308F\u3063\u305F\u3068\u304D\u306F\u3001\u305D\u306E\u51FA\u529B\u306E\u6700\u5F8C\u306E\u884C\u306B\u300C\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\u300D\u304C\u51FA\u308B\u3002\u8AAD\u307F\u76F4\u3055\u305A\u306B\u6B21\u306E\u64CD\u4F5C\u3078\u4F7F\u3046\u3002`ask` / `decision` / `answer` / `reopen` \u306F\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u7121\u3057\u3067\u3082\u5B9F\u884C\u3067\u304D\u308B\u304C\u3001\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u51FA\u308B\u306E\u306F\u6700\u65B0\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u4ED8\u3051\u305F\u3068\u304D\u3060\u3051\n- \u53E4\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u901A\u3059\u305F\u3081\u306B guard \u3092\u7121\u52B9\u306B\u3057\u306A\u3044 (AI \u304C `guard off` \u3059\u308B\u306B\u306F\u6700\u65B0\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u8981\u308B)\n- \u518D\u958B\u3059\u308B\u3068\u304D\u306F `npx boxglow resume` \u3092\u8AAD\u307F\u3001\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u306E\u3042\u308B\u30DC\u30C3\u30AF\u30B9\u306F `context` \u3067\u4E2D\u8EAB\u3092\u78BA\u304B\u3081\u3066\u304B\u3089\u7D9A\u3051\u308B\u3002\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u306F\u4F1A\u8A71\u306E\u5C65\u6B74\u3084\u6D3B\u52D5\u30ED\u30B0\u306E\u4E0A\u9650\u3068\u306F\u5225\u306B\u3001\u8A08\u753B\u306E\u4E2D\u306B\u6B8B\u308B\n- MCP \u3067\u306F `boxglow_context` \u3068\u3001\u5404\u30C4\u30FC\u30EB\u306E `contextToken` \u5F15\u6570\u3092\u4F7F\u3046\n- \u300C\u4ED6\u306E Boxglow \u304C\u66F8\u304D\u8FBC\u307F\u4E2D (\u30ED\u30C3\u30AF\u4E2D)\u300D\u3068\u51FA\u3066\u3001\u5C11\u3057\u5F85\u3063\u3066\u3084\u308A\u76F4\u3057\u3066\u3082\u89E3\u3051\u306A\u3044\u3068\u304D\u306F\u3001`npx boxglow unlock` \u306E\u8868\u793A (\u6301\u3061\u4E3B\u3068\u5224\u5B9A) \u3092\u4EBA\u306B\u898B\u305B\u3066\u89E3\u9664\u3092\u983C\u3080\u3002\u81EA\u5206\u3067 `--actor human` \u3092\u4ED8\u3051\u305F\u308A\u3001\u30ED\u30C3\u30AF\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u76F4\u63A5\u6D88\u3057\u305F\u308A\u3057\u306A\u3044\n\n\n### \u7740\u624B\u30FB\u5B8C\u4E86\u3001\u4ECA\u56DE\u306E\u7BC4\u56F2\u3001\u8A18\u9332\u306E\u9BAE\u5EA6\n\n- \u6700\u521D\u306B resume \u306E\u73FE\u6CC1 (\u6D3B\u52D5\u30FB\u5224\u65AD\u5F85\u3061\u30FB\u672A\u78BA\u8A8D\u56DE\u7B54) \u3092\u8AAD\u3080\u3002\u5019\u88DC\u306F\u300C\u4ECA\u56DE\u306E\u7BC4\u56F2 / \u305D\u306E\u4ED6\u300D\u306E\u5404\u7D44\u3067\u300C\u7740\u624B\u3067\u304D\u308B / \u8981\u5177\u4F53\u5316 / \u5165\u529B\u5F85\u3061\u300D\u306B\u5206\u304B\u308C\u3001\u8981\u5177\u4F53\u5316\u306E\u7406\u7531\u3068\u4E0D\u8DB3\u3059\u308B\u5165\u529B\u540D\u304C\u51FA\u308B\u3002\u8981\u5177\u4F53\u5316\u3084\u5165\u529B\u5F85\u3061\u3092\u3001\u6E96\u5099\u6E08\u307F\u3068\u53D6\u308A\u9055\u3048\u306A\u3044\u3002\u300C\u7740\u624B\u3067\u304D\u308B\u300D\u306F\u6A5F\u68B0\u691C\u67FB (\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B\u30FBexpect\u30FBacceptance\u30FB\u5FC5\u9808\u306E\u5165\u529B) \u306E\u7D50\u679C\u3067\u3001\u5185\u5BB9\u306E\u5177\u4F53\u3055\u307E\u3067\u306F\u4FDD\u8A3C\u3057\u306A\u3044\u3002\n- \u30DC\u30C3\u30AF\u30B9\u306E\u4EFB\u610F5\u9805\u76EE\u3092 scope \u3067\u8A2D\u5B9A\u3059\u308B\u3002goal = \u4ECA\u56DE\u9054\u6210\u3059\u308B\u3053\u3068\u3001non-goals = \u4ECA\u56DE\u306F\u6271\u308F\u306A\u3044\u3053\u3068\u3001constraints = \u51FA\u529B\u3092\u4F5C\u308B\u3046\u3048\u3067\u5B88\u308B\u6761\u4EF6 (\u6027\u80FD\u30FB\u54C1\u8CEA\u30FB\u30B5\u30A4\u30BA\u30FB\u5BF8\u6CD5\u30FB\u6D88\u8CBB\u96FB\u529B\u306A\u3069)\u3001acceptance = \u5B8C\u4E86\u3068\u5224\u65AD\u3059\u308B\u6761\u4EF6\u3001consult = \u7BC4\u56F2\u3092\u5E83\u3052\u308B\u524D\u306B\u76F8\u8AC7\u3059\u308B\u6761\u4EF6\u3002context \u306E\u5148\u982D\u3067\u5BFE\u8C61\u3068\u89AA\u306E\u7BC4\u56F2\u3092\u8AAD\u307F\u3001\u7740\u624B\u524D\u3068\u5B8C\u4E86\u524D\u306B\u7167\u5408\u3059\u308B\u3002\u5B8C\u4E86\u6761\u4EF6\u306E\u672C\u6587\u3092AI\u304C\u6E80\u305F\u3057\u305F\u304B\u306F\u81EA\u52D5\u5224\u5B9A\u3057\u306A\u3044\u3002\n- scope B12 --goal "\u9054\u6210\u3059\u308B\u3053\u3068" --non-goals "\u4ECA\u56DE\u6271\u308F\u306A\u3044\u3053\u3068" --constraints "\u5B88\u308B\u6761\u4EF6" --acceptance "\u78BA\u8A8D\u3059\u308B\u6761\u4EF6" --consult "\u76F8\u8AC7\u3059\u308B\u6761\u4EF6" \u3067\u8A2D\u5B9A\u3059\u308B\u3002scope B12 \u306F\u8868\u793A\u3060\u3051\u3002\u5404\u9805\u76EE\u306B none \u307E\u305F\u306F\u7A7A\u6587\u5B57\u3092\u6E21\u3059\u3068\u6D88\u3059\u3002\u753B\u9762\u3067\u306F\u8A73\u7D30\u30D1\u30CD\u30EB\u306E\u300C\u305D\u306E\u4ED6\u300D\u30BF\u30D6 \u2192\u300C\u4F5C\u696D\u7BC4\u56F2\u3092\u7DE8\u96C6\u300D\u3002\u8A18\u5165\u6E08\u307F\u306E\u9805\u76EE\u3060\u3051\u304C\u300C\u4ECA\u56DE\u306E\u7BC4\u56F2\u300D\u306B\u51FA\u308B\u3002\n- focus B12 \u3067\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u3068\u914D\u4E0B\u3092\u6B21\u5019\u88DC\u306E\u5148\u982D\u306B\u3059\u308B\u3002focus \u306F\u73FE\u5728\u306E\u5BFE\u8C61\u306E\u8868\u793A\u3001focus none \u306F\u89E3\u9664\u3002\u5BFE\u8C61\u5916\u3082\u5225\u306E\u7D44\u306B\u6B8B\u308B\u3002\u5019\u88DC\u306B\u51FA\u308B\u3053\u3068\u81EA\u4F53\u306F\u4F5C\u696D\u7BC4\u56F2\u306E\u62E1\u5927\u3084\u516C\u958B\u3092\u8A31\u53EF\u3057\u306A\u3044\u3002\n- \u8A08\u753B\u306E\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306B\u8CC7\u6599\u304C\u7121\u3044\u3068\u3001\u4F7F\u3046\u7BB1\u306F\u3059\u3079\u3066\u5165\u529B\u5F85\u3061\u306B\u306A\u308B\u3002\u8CC7\u6599\u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u3042\u308C\u3070 `npx boxglow artifact inputs <\u30D1\u30B9\u304B URL> --input <\u5165\u529B\u540D>` \u3067\u81EA\u5206\u3067\u4ED8\u3051\u308B (\u4EBA\u306B\u983C\u307E\u306A\u3044)\u3002\u5916\u3059\u306E\u306F `artifact <block|inputs> --remove <\u984C\u540D\u304B\u30D1\u30B9>`\u3002\u7121\u304F\u3066\u3082\u7740\u624B\u3067\u304D\u308B\u5165\u529B\u306F `port <block> --optional <\u5165\u529B\u540D>`\u3002\n- \u6E08\u3093\u3060\u7BB1\u306E\u300C\u65B9\u91DD: \u78BA\u304B\u3081\u76F4\u3057\u300D\u306F\u3001\u4F5C\u696D\u304C\u65B9\u91DD\u306B\u5408\u3063\u3066\u3044\u308C\u3070 `npx boxglow ack <block> --policy` \u3067\u6D88\u3059 (\u5408\u3063\u3066\u3044\u306A\u3051\u308C\u3070 reopen)\u3002\n- start \u306E\u5FC5\u9808\u5165\u529B\u4E0D\u8DB3\u306F\u65E2\u5B9A\u3067\u8B66\u544A\u3059\u308B\u304C\u3001\u5F93\u6765\u3069\u304A\u308A\u958B\u59CB\u3067\u304D\u308B\u3002\u5148\u884C\u4F5C\u696D\u304C\u5FC5\u8981\u306A\u3089 --reason "\u5148\u306B\u884C\u3046\u7406\u7531" \u3092\u4ED8\u3051\u308B\u3002\u8B66\u544A\u306F\u51FA\u305A\u3001\u7406\u7531\u306F\u6D3B\u52D5\u3068\u30ED\u30B0\u306B\u6B8B\u308B\u3002done \u306E\u51FA\u529B\u6210\u679C\u7269\u306A\u3057\u3082\u65E2\u5B9A\u3067\u8B66\u544A\u306E\u307F\u3002\u65E2\u5B58\u306E\u51FA\u529B\u6210\u679C\u7269\u307E\u305F\u306F --artifact \u3092\u6570\u3048\u3001\u30DC\u30C3\u30AF\u30B9\u306E\u53C2\u8003\u8CC7\u6599\u306F\u6570\u3048\u306A\u3044\u3002\n- \u8A08\u753B\u3067\u9078\u3076\u5834\u5408\u3060\u3051 policy --start reject --done reject --unprepared reject \u306B\u3059\u308B\u3002\u305D\u308C\u305E\u308C warn \u306B\u623B\u305B\u308B\u3002\u5165\u529B\u5F85\u3061\u306E\u62D2\u5426\u3067\u3082\u7406\u7531\u4ED8\u304D\u306E\u958B\u59CB\u306F\u53EF\u80FD\u3060\u304C\u3001\u8981\u5177\u4F53\u5316\u306E\u62D2\u5426\u306F\u7406\u7531\u3067\u306F\u901A\u308C\u306A\u3044\u3002\u6210\u679C\u7269\u306A\u3057\u306E\u62D2\u5426\u306F set --status white \u306B\u3082\u52B9\u304F\u3002\u4EBA\u306E\u64CD\u4F5C (\u753B\u9762 / --actor human) \u306F\u62D2\u5426\u3057\u306A\u3044\u3002AI\u304C\u62D2\u5426\u3092\u907F\u3051\u308B\u305F\u3081\u306B\u4EBA\u3092\u540D\u4E57\u3063\u305F\u308A\u3001\u8A2D\u5B9A\u3092\u5F31\u3081\u305F\u308A\u3057\u306A\u3044\u3002\n- guard \u6709\u52B9\u6642\u3001scope \u306E\u5909\u66F4\u3001focus \u306E\u8A2D\u5B9A\u30FB\u89E3\u9664\u3001policy \u306E\u5909\u66F4\u306B\u3082 --context-token \u304C\u5FC5\u8981\u3002scope/focus/policy \u3092\u5909\u3048\u308B\u3068\u65B0\u3057\u3044\u30C8\u30FC\u30AF\u30F3\u304C\u51FA\u308B\u306E\u3067\u3001\u6B21\u306E\u64CD\u4F5C\u306F\u305D\u308C\u3092\u4F7F\u3046\u3002\u8868\u793A\u3060\u3051\u306B\u306F\u4E0D\u8981\u3002\n- resume \u306F\u5B8C\u4E86\u6E08\u307F\u306E\u5F15\u304D\u7D99\u304E\u672C\u6587\u3092\u96A0\u3057\u3001\u4EF6\u6570\u3060\u3051\u793A\u3059\u3002\u5C65\u6B74\u304C\u5FC5\u8981\u306A\u5834\u5408\u3060\u3051 resume --include-completed \u3067\u5C55\u958B\u3059\u308B (context / show \u3067\u306F\u500B\u5225\u306B\u8AAD\u3081\u308B)\u3002\n- \u8AAC\u660E\u306F descriptionUpdatedAt\u3001\u72B6\u614B\u306F statusChangedAt\u3001\u5F15\u304D\u7D99\u304E\u306F\u65E2\u5B58\u306E at \u3067\u65E5\u6642\u3092\u78BA\u8A8D\u3067\u304D\u308B\u3002\u72B6\u614B\u5909\u66F4\u3088\u308A\u53E4\u3044\u30E1\u30E2\u306F\u305D\u306E\u65E8\u3092\u793A\u3059\u3002\u65E7\u8A18\u9332\u306E\u4E0D\u660E\u306A\u65E5\u6642\u306F\u88DC\u308F\u306A\u3044\u3002\u300C\u65B0\u3057\u3044\u8A18\u9332\u300D\u306F\u771F\u507D\u306E\u4FDD\u8A3C\u3067\u306F\u306A\u3044\u3002\n- Done \u3067\u53E4\u3044\u72B6\u6CC1\u8AAC\u660E\u304C\u6B8B\u308B\u53EF\u80FD\u6027\u304C\u3042\u308B\u5834\u5408\u3001CLI\u30FB\u8A73\u7D30\u30D1\u30CD\u30EB\u30FBresume \u306B\u898B\u76F4\u3057\u6848\u5185\u304C\u51FA\u308B\u3002\u672C\u6587\u306F\u81EA\u52D5\u3067\u6D88\u3055\u306A\u3044\u3002\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3001\u5FC5\u8981\u306A\u3089 set B12 --note "\u73FE\u5728\u306E\u8AAC\u660E" (none \u3067\u6D88\u53BB) \u307E\u305F\u306F\u753B\u9762\u306E Notes \u3067\u76F4\u3059\u3002\n- MCP \u306F boxglow_scope / boxglow_focus / boxglow_policy\u3001boxglow_start \u306E reason\u3001boxglow_resume \u306E includeCompleted \u3092\u4F7F\u3046\u3002\u5909\u66F4\u306B\u306F contextToken \u3092\u4ED8\u3051\u308B\u3002\n- \u30C7\u30FC\u30BF\u5F62\u5F0F\u306F v5 \u306E\u307E\u307E\u3067\u5168\u9805\u76EE\u306F\u4EFB\u610F\u3002\u65E7\u7248 (0.4.2\u4EE5\u524D) \u306F\u65B0\u3057\u3044\u898F\u5247\u3092\u5B9F\u884C\u305B\u305A\u3001\u4FDD\u5B58\u6642\u306B\u8A08\u753B\u306E workflowPolicy / focusBlockId \u3092\u843D\u3068\u3059\u3002\u3053\u308C\u3089\u3092\u4F7F\u3046\u8A08\u753B\u306E\u66F8\u304D\u624B (CLI\u30FBserve\u30FB\u753B\u9762\u30FB\u62E1\u5F35\u5185\u306E\u30A2\u30D7\u30EA) \u306F\u5BFE\u5FDC\u3057\u305F\u30D3\u30EB\u30C9\u306B\u63C3\u3048\u308B\u3002\u7248\u756A\u53F7\u3060\u3051\u3067\u306A\u304F\u30D3\u30EB\u30C9\u65E5\u6642\u3082\u78BA\u8A8D\u3059\u308B\u3002\n';
|
|
13560
|
+
var SKILL_default = '---\nname: boxglow\ndescription: Boxglow (boxglow.json) \u3067\u8A08\u753B\u3068\u9032\u6357\u3092\u4EBA\u9593\u3068\u5171\u6709\u3059\u308B\u3002\u4F5C\u696D\u306E\u958B\u59CB\u30FB\u5206\u89E3\u30FB\u5B8C\u4E86\u30FB\u5224\u65AD\u5F85\u3061\u3092 npx boxglow \u3067\u8A18\u9332\u3059\u308B\u3002\u300C\u9032\u6357\u3092 Boxglow \u306B\u8A18\u9332\u3057\u3066\u300D\u300Cboxglow \u3067\u72B6\u6CC1\u3092\u898B\u3066\u300D\u300C/boxglow\u300D\u3067\u4F7F\u7528\u3002\n---\n\n# Boxglow \u3067\u8A08\u753B\u3068\u9032\u6357\u3092\u5171\u6709\u3059\u308B\n\n\u30EA\u30DD\u30B8\u30C8\u30EA\u76F4\u4E0B\u306E `boxglow.json` \u304C\u8A08\u753B\u306E\u6B63\u672C\u3002\u4EBA\u9593\u306F Boxglow \u306E\u753B\u9762 (https://boxglow.app/ \u3067\u300Cboxglow.json \u3092\u958B\u304F\u300D) \u3067\u898B\u3066\u3044\u308B\u3002\n\u76F4\u63A5\u7DE8\u96C6\u305B\u305A `npx boxglow` \u3067\u66F4\u65B0\u3059\u308B\u3002\n\n## \u6700\u521D\u306E\u8A08\u753B\u3065\u304F\u308A (\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u3068\u304D)\n\n1. \u65B9\u91DD (README\u3001\u4F9D\u983C\u6587\u3001\u8981\u4EF6\u30E1\u30E2) \u3092\u8AAD\u307F\u3001`npx boxglow init --name "<\u540D\u524D>"` \u306E\u3042\u3068\u3001\u6700\u4E0A\u4F4D\u306B\u5927\u9805\u76EE (3\u301C7 \u500B) \u3092 `add` \u3067\u7F6E\u304F\u3002\n \u5404\u5927\u9805\u76EE\u306B\u306F\u300C\u5165\u529B (\u4F55\u3092\u4F7F\u3046\u304B)\u300D\u3068\u300C\u51FA\u529B (\u5177\u4F53\u7684\u306A\u6210\u679C\u7269: \u30D5\u30A1\u30A4\u30EB\u30FBURL\u30FBPR)\u300D\u3092\u5FC5\u305A\u66F8\u304D\u3001\u6700\u7D42\u6210\u679C\u7269\u307E\u3067\u7DDA\u3067\u3064\u306A\u3050 (`connect`)\n2. \u4F5C\u3063\u305F\u3089 `npx boxglow ask <\u6700\u521D\u306E\u5927\u9805\u76EE> "\u3053\u306E\u5927\u9805\u76EE\u306E\u5206\u3051\u65B9\u3067\u3088\u3044\u3067\u3059\u304B?" --options "\u3088\u3044|\u76F4\u3057\u305F\u3044"` \u3067\u4EBA\u306E\u78BA\u8A8D\u3092\u53D6\u308B\u3002\n \u4EBA\u306F\u753B\u9762\u3067\u3082\u3001`npx boxglow answer <block> "<\u56DE\u7B54>"` \u3067\u3082\u3001\u30C1\u30E3\u30C3\u30C8\u3067\u3082\u7B54\u3048\u3089\u308C\u308B\u3002\u30C1\u30E3\u30C3\u30C8\u3067\u7B54\u3048\u304C\u8FD4\u3063\u305F\u3089 AI \u304C `answer --by human` \u3067\u8A18\u9332\u3059\u308B\u3002\n \u4EBA\u304C\u753B\u9762\u3092\u4F7F\u308F\u306A\u3044\u904B\u7528 (AI \u3060\u3051\u3067\u9032\u3081\u308B\u6307\u793A\u304C\u3042\u308B\u3068\u304D) \u306F\u3001AI \u81EA\u8EAB\u304C `answer --by claude-code "<\u5224\u65AD\u3068\u7406\u7531>"` \u3067\u8A18\u9332\u3057\u3066\u5148\u3078\u9032\u3080\u3002\u5224\u65AD\u306E\u8A18\u9332\u3092\u6B8B\u3059\u3053\u3068\u304C\u76EE\u7684\u3067\u3001\u753B\u9762\u306F\u5FC5\u9808\u3067\u306F\u306A\u3044\n3. \u7740\u624B\u3059\u308B\u5927\u9805\u76EE\u3060\u3051\u3092 `split` \u3067\u5206\u89E3\u3059\u308B (\u5148\u306E\u6BB5\u968E\u306F\u7C97\u3044\u307E\u307E\u3002\u9032\u3081\u306A\u304C\u3089\u7D30\u304B\u304F\u3059\u308B)\n\n## \u624B\u9806\n\n1. `npx boxglow resume` (\u307E\u305F\u306F `npx boxglow status --brief`) \u3092\u8AAD\u3080\u3002\u4F5C\u696D\u4E2D\u306E\u30DC\u30C3\u30AF\u30B9\u3001\u5224\u65AD\u5F85\u3061\u3001AI \u672A\u78BA\u8A8D\u306E\u56DE\u7B54\u3001\u6B21\u306E\u5019\u88DC\u3001\u672A\u5B8C\u4E86\u306E\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u628A\u63E1\u3059\u308B\u3002\u5168\u968E\u5C64\u304C\u8981\u308B\u3068\u304D\u306F `npx boxglow status`\n2. \u62C5\u5F53\u3059\u308B\u30DC\u30C3\u30AF\u30B9\u3092\u6C7A\u3081\u305F\u3089 `npx boxglow context <block>` \u3092\u8AAD\u3080\u3002\u51FA\u529B\u306E `readiness.state` \u304C `ready` \u306A\u3089\u7740\u624B\u3067\u304D\u308B\u3002`unprepared` (\u8981\u5177\u4F53\u5316) \u306A\u3089 `unprepared` \u306E\u7406\u7531\u3068 `next` \u306E\u6B21\u306E\u4E00\u624B\u306B\u5F93\u3063\u3066\u5148\u306B\u5177\u4F53\u5316\u3059\u308B\u3002`waiting` \u306F\u5FC5\u9808\u306E\u5165\u529B\u304B\u5206\u5C90\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u308B\n3. \u5177\u4F53\u5316\u3084\u5206\u89E3\u306E\u524D\u306B `npx boxglow claim <block>` \u3067\u53D7\u3051\u6301\u3061\u3060\u3051\u3092\u53D6\u308B (\u5B9F\u884C\u4E2D\u306B\u306F\u306A\u3089\u306A\u3044\u3002\u53D7\u3051\u6301\u3061\u5236\u5FA1\u304C\u7121\u52B9\u306A\u8A08\u753B\u3067\u306F\u300C\u53D6\u5F97\u4E0D\u8981\u300D\u3067\u6B63\u5E38\u7D42\u4E86\u3059\u308B)\u3002\u4E0D\u8DB3\u3092\u57CB\u3081\u308B:\n \u51FA\u529B\u306E\u4E88\u5B9A\u6210\u679C\u7269 `npx boxglow port <block> --expect "<\u51FA\u529B\u540D>=file:src/x.ts"` (kind \u306F file / dir / url / doc / note / decision / result\u3002\u307E\u3060\u7121\u3044\u30D5\u30A1\u30A4\u30EB\u3067\u3088\u3044)\u3001\u5B8C\u4E86\u6761\u4EF6 `npx boxglow scope <block> --acceptance "<\u5B8C\u4E86\u3068\u5224\u65AD\u3059\u308B\u6761\u4EF6>"`\u3002\n \u5927\u304D\u3044\u30DC\u30C3\u30AF\u30B9\u306F `npx boxglow split <block> --spec \'<JSON>\'` \u3067\u5206\u89E3\u3059\u308B (\u5F62\u5F0F\u306F `npx boxglow help`)\u3002\u4ECA\u56DE\u7740\u624B\u3059\u308B\u5B50\u3060\u3051 expect / acceptance \u3092\u66F8\u304D\u3001\u5148\u306E\u5B50\u306F\u984C\u540D\u3068\u51FA\u529B\u3060\u3051\u3067\u3088\u3044\u3002\n \u5BFE\u8C61\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u5206\u304B\u3089\u306A\u3044\u3068\u304D\u306F\u3001\u67B6\u7A7A\u306E\u30D1\u30B9\u3092\u66F8\u304B\u305A\u300C\u5BFE\u8C61\u3092\u7279\u5B9A\u3059\u308B\u8ABF\u67FB\u300D\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u51FA\u529B `note` \u3067\u4F5C\u3063\u3066\u59CB\u3081\u308B\u3002\n \u5206\u89E3\u306E\u5F8C\u306F `npx boxglow lint <block>` \u3092\u8AAD\u307F\u3001\u300C\u5FC5\u305A\u76F4\u3059\u300D\u3092\u76F4\u3057\u3066\u304B\u3089\u9032\u3080 (\u300C\u898B\u76F4\u3057\u5019\u88DC\u300D\u306F\u5185\u5BB9\u3092\u898B\u3066\u5224\u65AD)\u3002\u76F4\u4E0B\u306E\u5B50\u306E\u5206\u3051\u65B9\u306F `"splitBy": "\u5DE5\u7A0B"` (\u307E\u305F\u306F `set --split-by`) \u3067\u4E00\u8A9E\u6B8B\u3059\u3002\n \u5185\u5BB9\u306E\u30EC\u30D3\u30E5\u30FC: `review-split <\u89AA>` \u306E\u6750\u6599\u3068\u30C1\u30A7\u30C3\u30AF\u9805\u76EE\u3092\u8AAD\u3093\u3067 `split-ok <\u89AA> --note "<\u6839\u62E0>"`\u3001\u7740\u624B\u306E\u524D\u306F `review-box <block>` \u2192 `box-ok <block> --note "<\u6839\u62E0>"` (\u6750\u6599\u304C\u5909\u308F\u308B\u3068 context \u306E reviews \u304C stale \u306B\u306A\u308B)\u3002\n \u7B54\u3048\u3067\u5F8C\u306E\u4F5C\u696D\u304C\u5206\u304B\u308C\u308B\u554F\u3044\u306F `ask ... --options "A|B" --branch` \u3067\u5206\u5C90\u306B\u3059\u308B (split \u306E JSON \u3067\u3082 `"branch": { question, options }` / `"join": true`)\n4. \u6E96\u5099\u304C\u3067\u304D\u305F\u3089 `npx boxglow context <block>` \u3092\u8AAD\u307F\u76F4\u3057\u3001`npx boxglow start <block> --note "<\u4F55\u3092\u3059\u308B\u304B>"`\u3002\n \u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306E\u8981\u6C42 (guard) \u304C\u6709\u52B9\u306A\u8A08\u753B\u3067\u306F\u3001\u51FA\u529B\u306E `contextToken` (\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3) \u3092 `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u3067\u4ED8\u3051\u308B\u3002\n \u8981\u5177\u4F53\u5316\u306E\u30DC\u30C3\u30AF\u30B9\u3078\u306E start \u306F\u65E2\u5B9A\u3067\u306F\u8B66\u544A\u3001`policy --unprepared reject` \u306E\u8A08\u753B\u3067\u306F\u958B\u59CB\u3067\u304D\u306A\u3044 (`--reason` \u3067\u306F\u901A\u308C\u306A\u3044)\u3002\u51FA\u529B\u3092\u5B50\u306B\u4EFB\u305B\u304D\u308A\u306E\u89AA\u306F\u5B9F\u884C\u3059\u308B\u3082\u306E\u304C\u7121\u3044\u306E\u3067\u3001\u5B50\u3092 start \u3059\u308B\n5. \u6210\u679C\u7269\u304C\u3067\u304D\u305F\u3089 `npx boxglow done <block> --artifact "<\u540D\u524D>=<URL \u307E\u305F\u306F\u30D1\u30B9>" --checked "<\u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C>"` (\u691C\u67FB\u7D50\u679C\u306F `--checked` \u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C / `--not-checked` \u8A66\u3057\u3066\u3044\u306A\u3044\u3053\u3068 / `--limits` \u6B8B\u308B\u5236\u9650 \u306E 3 \u3064\u3067\u6B8B\u3059\u3002\u30B3\u30FC\u30C9\u4EE5\u5916\u306E\u6210\u679C\u7269\u306F\u300C\u78BA\u8A8D\u3057\u305F\u3053\u3068\u300D\u3092\u66F8\u304F\u3002guard \u304C\u6709\u52B9\u306A\u3089 `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u3092\u4ED8\u3051\u308B\u3002\u76F4\u524D\u306E\u81EA\u5206\u306E\u64CD\u4F5C\u306E\u51FA\u529B\u306B\u300C\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\u300D\u304C\u51FA\u3066\u3044\u308C\u3070\u3001\u305D\u308C\u3092\u4F7F\u3046)\n6. \u4EBA\u9593\u306E\u5224\u65AD\u304C\u8981\u308B\u3068\u304D\u306F `npx boxglow ask <block> "<\u8CEA\u554F>" --options "A|B"` \u3057\u3066\u4ED6\u306E\u30DC\u30C3\u30AF\u30B9\u3078\u79FB\u308B\n7. \u8A70\u307E\u3063\u305F\u3089: \u5165\u529B (\u524D\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u6210\u679C\u7269\u30FB\u8CC7\u6599) \u304C\u8DB3\u308A\u306A\u3044\u3053\u3068\u304C\u539F\u56E0\u306A\u3089\u3001\u8A70\u307E\u308A\u306B\u3057\u306A\u3044\u3002`npx boxglow show <block>` \u3067\u5165\u529B\u306E\u914D\u7DDA\u3092\u78BA\u304B\u3081\u3001\u8DB3\u308A\u306A\u3044\u3082\u306E\u3092\u4F5C\u308B\u30DC\u30C3\u30AF\u30B9\u304C\u7121\u3051\u308C\u3070 `npx boxglow add` \u3067\u5916 (\u4E0A\u6D41) \u306B\u4F5C\u308A\u3001`npx boxglow connect` \u3067\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u5165\u529B\u306B\u3064\u306A\u3050 (\u914D\u7DDA\u304C\u300C\u5F85\u3061\u300D\u306E\u8272\u3067\u6B8B\u308A\u3001\u4F55\u3092\u5F85\u3063\u3066\u3044\u308B\u304B\u304C\u56F3\u3067\u898B\u3048\u308B)\u3002\u9078\u629E\u80A2\u304B\u3089\u9078\u3093\u3067\u3082\u3089\u3048\u3070\u9032\u3081\u308B\u306A\u3089 `ask`\u3002\u305D\u308C\u4EE5\u5916\u306E\u3001\u8A08\u753B\u306E\u5916\u306B\u3042\u308B\u969C\u5BB3 (\u74B0\u5883\u304C\u52D5\u304B\u306A\u3044\u3001\u6A29\u9650\u3084\u30AD\u30FC\u304C\u7121\u3044\u3001\u5916\u90E8\u306E\u8FD4\u4E8B\u5F85\u3061\u3001\u539F\u56E0\u306E\u5206\u304B\u3089\u306A\u3044\u5931\u6557) \u3060\u3051\u3092 `npx boxglow blocked <block> --note "<\u56F0\u3063\u3066\u3044\u308B\u3053\u3068>"` \u3067\u8A18\u9332\u3059\u308B\n8. \u4E2D\u65AD\u30FB\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306E\u5727\u7E2E\u30FB\u5F15\u304D\u7D99\u304E\u306E\u524D\u306B `npx boxglow checkpoint <block> --note "\u5206\u304B\u3063\u305F\u3053\u3068; \u6B21\u306B\u3059\u308B\u3053\u3068; \u672A\u89E3\u6C7A\u306E\u3053\u3068"` \u3067\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u6B8B\u3059\n9. \u6700\u5F8C\u306B `npx boxglow status --brief` \u3092\u8981\u7D04\u3057\u3066\u5831\u544A\u3059\u308B\n\n## \u7D04\u675F\n\n- **\u307E\u3060\u6C7A\u307E\u3063\u3066\u3044\u306A\u3044\u5206\u304B\u308C\u9053\u306F\u5206\u5C90\u3067\u8868\u3059**: \u8A08\u753B\u3092\u4F5C\u308B\u6642\u70B9\u3067\u3001\u5224\u65AD\u6B21\u7B2C\u3067\u5F8C\u306E\u4F5C\u696D (\u9053) \u304C\u5909\u308F\u308B\u3068\u304D\u306F `npx boxglow branch "<\u984C\u540D>" --options "A|B" --question "<\u554F\u3044>" --context "<\u5224\u65AD\u6750\u6599>"` \u3067\u5206\u5C90\u306E\u30DC\u30C3\u30AF\u30B9\u3092\u4F5C\u308B\u3002\u9078\u629E\u80A2\u3054\u3068\u306B\u9053 (\u51FA\u529B) \u304C\u3067\u304D\u308B\u306E\u3067\u3001\u305D\u308C\u305E\u308C\u306E\u9053\u306E\u6700\u521D\u306E\u30DC\u30C3\u30AF\u30B9\u3078 `connect` \u3059\u308B\u3002\u9053\u304C\u5F8C\u3067 1 \u3064\u306B\u307E\u3068\u307E\u308B\u3068\u3053\u308D\u306B\u306F `npx boxglow join --title "<\u984C\u540D>"` \u3067\u5408\u6D41\u306E\u90E8\u54C1\u3092\u7F6E\u304D\u3001\u305D\u308C\u305E\u308C\u306E\u9053\u306E\u6700\u5F8C\u306E\u51FA\u529B\u3092\u3053\u306E\u90E8\u54C1\u3078 `connect` \u3057\u3001\u90E8\u54C1\u306E\u51FA\u529B\u3092\u5148\u306E\u7BB1\u3078\u3064\u306A\u3050 (\u3069\u308C\u304B 1 \u3064\u306E\u9053\u304C\u5C4A\u3051\u3070\u5148\u3078\u9032\u3080)\u3002\u4EBA\u304C\u7B54\u3048\u308B\u3068\u3001\u9078\u3070\u306A\u304B\u3063\u305F\u9053\u306E\u5148\u306F\u300C\u898B\u9001\u308A\u300D\u306B\u306A\u308A\u3001\u9032\u6357\u3068\u6B21\u306E\u5019\u88DC\u304B\u3089\u5916\u308C\u308B\u3002\u3059\u3067\u306B\u4F5C\u3063\u305F\u30DC\u30C3\u30AF\u30B9\u304C\u5B9F\u306F\u6C7A\u307E\u3063\u3066\u3044\u306A\u3044\u5206\u304B\u308C\u9053\u3060\u3068\u5206\u304B\u3063\u305F\u3089\u3001`npx boxglow branch --box <block> --options "A|B" --question "<\u554F\u3044>"` \u3067\u5206\u5C90\u306B\u5909\u3048\u308B (\u4ECA\u306E\u51FA\u529B\u304C 1 \u3064\u76EE\u306E\u9078\u629E\u80A2\u306E\u9053\u306B\u306A\u308A\u3001\u7DDA\u306F\u6B8B\u308B)\u3002\u7B54\u3048\u304C\u51FA\u308B\u524D\u306E\u9053\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u300C\u5206\u5C90\u5F85\u3061\u300D\u3067\u3001\u7740\u624B\u3059\u308B\u3068\u8B66\u544A\u3055\u308C\u308B (\u5148\u306B\u4E0B\u8ABF\u3079\u3059\u308B\u306A\u3069\u7406\u7531\u304C\u3042\u308C\u3070 `--reason` \u3067\u8A18\u9332\u3059\u308B)\n- `ask` \u306E\u8CEA\u554F\u306F\u3001\u305D\u308C\u3060\u3051\u3067\u5224\u65AD\u3067\u304D\u308B\u3088\u3046\u306B\u66F8\u304F\u3002\u300C\u3053\u308C\u3067\u3088\u3044\u3067\u3059\u304B\u300D\u300C\u4E0A\u8A18\u306E\u6848\u300D\u306E\u3088\u3046\u306B\u5916\u3092\u6307\u3055\u305A\u3001\u524D\u63D0\u30FB\u6BD4\u8F03\u30FB\u5F71\u97FF\u3092 `--context` \u306B\u66F8\u304F (\u4EBA\u306F\u4E00\u89A7\u306E\u4E2D\u306E\u8CEA\u554F\u3060\u3051\u3092\u8AAD\u3093\u3067\u7B54\u3048\u308B)\n- \u5019\u88DC\u304B\u3089 1 \u3064\u3092\u9078\u3076\u5834\u9762 (\u65B9\u5F0F\u30FB\u30E9\u30A4\u30D6\u30E9\u30EA\u30FB\u8A2D\u8A08\u306E\u9078\u629E) \u3067\u306F\u3001AI \u304C\u81EA\u5206\u3067\u6C7A\u3081\u308B\u3068\u304D\u3082 `ask <block> "<\u554F\u3044>" --options "A|B|C"` \u2192 `answer --by claude-code "<\u9078\u3093\u3060\u3082\u306E>\u3002\u7406\u7531: ..."` \u306E\u5F62\u3067\u8A18\u9332\u3057\u3001\u9078\u3070\u306A\u304B\u3063\u305F\u5019\u88DC\u3092\u30DC\u30C3\u30AF\u30B9\u306B\u6B8B\u3059 (\u65B9\u91DD\u8EE2\u63DB\u306E\u3068\u304D\u306B\u623B\u308C\u308B)\n- \u65B9\u91DD\u8EE2\u63DB\u306F `reopen <block> --note "<\u7406\u7531>"` \u3067\u524D\u306E\u7B54\u3048\u3092\u5C65\u6B74\u306B\u6B8B\u3057\u3066\u9078\u3073\u76F4\u3059 (\u5019\u88DC\u306F\u6D88\u3055\u306A\u3044)\n\n- \u540C\u6642\u306B\u4F5C\u696D\u4E2D\u306B\u3059\u308B\u30DC\u30C3\u30AF\u30B9\u306F 1\u301C2 \u500B\u307E\u3067\n- \u6210\u679C\u7269 (artifact) \u306F\u5F8C\u304B\u3089\u4EBA\u304C\u958B\u3051\u308B\u3082\u306E (\u30B3\u30DF\u30C3\u30C8\u3001PR\u3001\u30D5\u30A1\u30A4\u30EB\u306E\u30D1\u30B9) \u306B\u3059\u308B\n- \u51FA\u529B\u306F\u5177\u4F53\u7684\u306A\u6210\u679C\u7269\u306E\u540D\u524D\u306B\u3059\u308B (\u30D5\u30A1\u30A4\u30EB\u30FBPR\u30FBURL\u30FB\u30C6\u30B9\u30C8\u7D50\u679C)\u3002\u62BD\u8C61\u7684\u306A\u540D\u524D (\u6A5F\u80FD\u4E00\u5F0F\u3001\u6240\u898B) \u306F\u907F\u3051\u308B\u30021 \u3064\u306E\u4F5C\u696D\u3067\u8907\u6570\u306E\u7269\u304C\u3067\u304D\u308B\u306A\u3089\u51FA\u529B\u3092\u5206\u3051\u308B (`port <block> --out "<\u540D\u524D>"` \u3067\u8DB3\u3059)\n- \u7D50\u7DDA\u306E\u53D7\u3051\u5074\u306F\u984C\u540D\u3060\u3051\u3067\u3088\u3044 (`connect "A.\u8A2D\u8A08\u66F8" "B"` \u3067 B \u306B\u5165\u529B\u300C\u8A2D\u8A08\u66F8\u300D\u304C\u4F5C\u3089\u308C\u308B)\u3002\u7DDA\u3067\u3064\u306A\u304C\u308B\u5165\u51FA\u529B\u306F 1 \u3064\u306E\u540D\u524D (\u3069\u3061\u3089\u5074\u3067\u5909\u3048\u3066\u3082\u3001\u3064\u306A\u304C\u308B\u5148\u3082\u540C\u3058\u540D\u524D\u306B\u306A\u308B)\n- \u30DC\u30C3\u30AF\u30B9\u306F\u5FC5\u305A\u300C\u5165\u529B \u2192 \u51FA\u529B\u300D\u3067\u3064\u306A\u3050\u3002\u8DB3\u308A\u306A\u3044\u5165\u51FA\u529B\u306F `port`\u3001\u5916\u3059\u306E\u306F `disconnect`\u3001\u30DC\u30C3\u30AF\u30B9\u305D\u306E\u3082\u306E\u3092\u6D88\u3059\u306E\u306F `remove`\u3002\u6587\u66F8\u5316\u306F `export --out docs/ROADMAP.md`\n- \u30DC\u30C3\u30AF\u30B9\u3092 add \u3059\u308B\u3068\u304D\u306F\u4ED5\u4E8B\u306E\u7A2E\u985E\u3092 `--category` \u3067\u4ED8\u3051\u308B (design \u8A2D\u8A08 / build \u5B9F\u88C5 / verify \u691C\u8A3C / evaluate \u8A55\u4FA1 / study \u691C\u8A0E / research \u8ABF\u67FB / ui \u30C7\u30B6\u30A4\u30F3 / improve \u6539\u5584 / fix \u8AB2\u984C\u89E3\u6C7A / docs \u6587\u66F8 / ops \u904B\u7528 / other \u305D\u306E\u4ED6)\u3002\u753B\u9762\u3067\u306F\u8272\u306E\u5E2F\u3068\u672D\u306B\u306A\u308B\n- boxglow.json \u304C\u307E\u3060\u7121\u3051\u308C\u3070 `npx boxglow init --name "<\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D>"` \u3067\u4F5C\u308A\u3001\u6700\u7D42\u6210\u679C\u7269\u3068\u6700\u4E0A\u4F4D\u306E\u30DC\u30C3\u30AF\u30B9\u3092 `add` \u3067\u7F6E\u304F\n\n## \u81EA\u52D5\u3067\u52D5\u304F\u4ED5\u7D44\u307F (hooks)\n\n`setup-agent` \u304C Claude Code / Codex \u306E hooks \u306B `boxglow hook` \u3092\u767B\u9332\u3057\u3066\u3044\u308B\u3002\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u958B\u59CB\u30FB\u518D\u958B\u30FB\u5727\u7E2E\u306E\u5F8C\u306B\u8A08\u753B\u306E\u518D\u958B\u306E\u6982\u8981 (resume) \u304C\u6587\u8108\u306B\u5165\u308B\u3002\u5FDC\u7B54\u3092\u7D42\u3048\u308B\u3068\u304D\u3001\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3067 start \u3057\u305F\u7BB1\u306B\u5F15\u304D\u7D99\u304E (done \u304B checkpoint) \u304C\u7121\u3051\u308C\u3070\u300C\u8A18\u9332\u3057\u3066\u304B\u3089\u7D42\u3048\u308B\u300D\u3088\u3046\u7D9A\u884C\u304C\u6307\u793A\u3055\u308C\u308B (log \u306F\u9032\u6357\u306E\u30E1\u30E2\u3067\u3001\u5F15\u304D\u7D99\u304E\u306E\u4EE3\u308F\u308A\u306B\u306A\u3089\u306A\u3044)\u3002boxglow.json \u3092\u76F4\u63A5\u66F8\u304D\u63DB\u3048\u308B\u64CD\u4F5C (Edit / Write / apply_patch) \u306F\u6B62\u3081\u3089\u308C\u308B\u3002\u3053\u308C\u306F\u5FD8\u308C\u305F\u3068\u304D\u306E\u4FDD\u967A\u3067\u3001\u4E0A\u306E\u624B\u9806\u3069\u304A\u308A\u306B\u81EA\u5206\u3067\u8A18\u9332\u3059\u308B\u3002\n\u5206\u89E3\u3084\u7740\u624B\u6E96\u5099\u306E\u30EC\u30D3\u30E5\u30FC\u306F\u3001\u30B5\u30D6\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8 `boxglow-review` \u306B\u4EFB\u305B\u3089\u308C\u308B (review-split / review-box \u306E\u6750\u6599\u3092\u8AAD\u3093\u3067\u8A55\u4FA1\u3068\u6839\u62E0\u3092\u8FD4\u3059\u3002split-ok / box-ok \u306E\u8A18\u9332\u306F\u3001\u8FD4\u3063\u3066\u304D\u305F\u6839\u62E0\u3067\u89AA\u3067\u3042\u308B\u81EA\u5206\u304C\u884C\u3046)\u3002\n\n## \u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3068\u5F15\u304D\u7D99\u304E\n\n\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306E\u8981\u6C42 (guard) \u306F\u3001AI \u304C\u53E4\u3044\u6307\u793A\u306E\u307E\u307E\u4F5C\u696D\u3092\u9032\u3081\u308B\u306E\u3092\u9632\u3050\u4ED5\u7D44\u307F\u3002`setup-agent` \u304C\u6709\u52B9\u306B\u3059\u308B (\u305D\u308C\u4EE5\u5916\u306E\u8A08\u753B\u3067\u306F `npx boxglow guard on`)\u3002\n\u6709\u52B9\u306A\u8A08\u753B\u3067\u306F\u3001AI \u306E `start` / `done` / `set` / `split` / `artifact` / `ack` / `blocked` / `review` / `leave` / `checkpoint` \u306B `--context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>` \u304C\u8981\u308B\u3002\u4EBA\u306E\u64CD\u4F5C (`--actor human`) \u306B\u306F\u8981\u6C42\u3055\u308C\u306A\u3044\u3002\n\n```\nnpx boxglow context B12 # \u5224\u65AD (\u5F15\u304D\u53D6\u308A\u6E08\u307F\u306E\u56DE\u7B54\u3092\u542B\u3080)\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6\u30FB\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u8AAD\u3080\u3002\u51FA\u529B\u306E contextToken \u304C\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\nnpx boxglow start B12 --note "<\u4F55\u3092\u3059\u308B\u304B>" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\nnpx boxglow ask B12 "<\u8CEA\u554F>" --options "A|B" --context-token <\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\n# \u2192 \u51FA\u529B\u306E\u6700\u5F8C\u306E\u884C: \u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\nnpx boxglow done B12 --artifact "<\u540D\u524D>=<\u30D1\u30B9>" --context-token <\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3>\n```\n\n- **\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u5909\u308F\u308B\u5834\u5408 (\u8AAD\u307F\u76F4\u3057\u304C\u8981\u308B)**: \u4EBA\u304C\u56DE\u7B54\u3057\u305F\u30FB\u56DE\u7B54\u3092\u76F4\u3057\u305F\u3001\u4EBA\u304C\u6307\u793A (\u984C\u540D\u30FB\u8AAC\u660E\u30FB\u5165\u51FA\u529B\u306E\u6761\u4EF6) \u3092\u5909\u3048\u305F\u3001\u4ED6\u306E AI \u3084\u4EBA\u304C\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u3092\u66F4\u65B0\u3057\u305F\u3002\u89AA\u3084\u5165\u529B\u5143\u306E\u30DC\u30C3\u30AF\u30B9\u3067\u8D77\u304D\u305F\u5834\u5408\u3082\u540C\u3058\u3002\u53E4\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u306F\u62D2\u5426\u3055\u308C\u308B\u306E\u3067\u3001`context` \u3092\u8AAD\u307F\u76F4\u3057\u3001\u5909\u308F\u3063\u305F\u5185\u5BB9\u3092\u4F5C\u696D\u306B\u53CD\u6620\u3057\u3066\u304B\u3089\u3084\u308A\u76F4\u3059\n- **\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u5909\u308F\u3089\u306A\u3044\u5834\u5408**: `start` / `blocked` / `review` / `leave` / `ack`\u3001\u9032\u6357\u30FB\u72B6\u614B\u30FB\u671F\u65E5\u30FB\u30AB\u30C6\u30B4\u30EA\u306E\u5909\u66F4\u3001`check` \u306B\u3088\u308B\u6210\u679C\u7269\u306E\u78BA\u8A8D\u3001\u753B\u9762\u3067\u306E\u914D\u7F6E\u306E\u5909\u66F4\u3002\u540C\u3058\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u3044\u7D9A\u3051\u3089\u308C\u308B\n- **\u81EA\u5206\u3067\u66F4\u65B0\u3067\u304D\u308B\u5834\u5408**: \u81EA\u5206\u306E `ask` / `artifact` / `done` / `set` / `split` / `checkpoint` \u306A\u3069\u3067\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u304C\u5909\u308F\u3063\u305F\u3068\u304D\u306F\u3001\u305D\u306E\u51FA\u529B\u306E\u6700\u5F8C\u306E\u884C\u306B\u300C\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3: <token>\u300D\u304C\u51FA\u308B\u3002\u8AAD\u307F\u76F4\u3055\u305A\u306B\u6B21\u306E\u64CD\u4F5C\u3078\u4F7F\u3046\u3002`ask` / `decision` / `answer` / `reopen` \u306F\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u7121\u3057\u3067\u3082\u5B9F\u884C\u3067\u304D\u308B\u304C\u3001\u65B0\u3057\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u51FA\u308B\u306E\u306F\u6700\u65B0\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u4ED8\u3051\u305F\u3068\u304D\u3060\u3051\n- \u53E4\u3044\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u3092\u901A\u3059\u305F\u3081\u306B guard \u3092\u7121\u52B9\u306B\u3057\u306A\u3044 (AI \u304C `guard off` \u3059\u308B\u306B\u306F\u6700\u65B0\u306E\u78BA\u8A8D\u30C8\u30FC\u30AF\u30F3\u304C\u8981\u308B)\n- \u518D\u958B\u3059\u308B\u3068\u304D\u306F `npx boxglow resume` \u3092\u8AAD\u307F\u3001\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u306E\u3042\u308B\u30DC\u30C3\u30AF\u30B9\u306F `context` \u3067\u4E2D\u8EAB\u3092\u78BA\u304B\u3081\u3066\u304B\u3089\u7D9A\u3051\u308B\u3002\u5F15\u304D\u7D99\u304E\u30E1\u30E2\u306F\u4F1A\u8A71\u306E\u5C65\u6B74\u3084\u6D3B\u52D5\u30ED\u30B0\u306E\u4E0A\u9650\u3068\u306F\u5225\u306B\u3001\u8A08\u753B\u306E\u4E2D\u306B\u6B8B\u308B\n- MCP \u3067\u306F `boxglow_context` \u3068\u3001\u5404\u30C4\u30FC\u30EB\u306E `contextToken` \u5F15\u6570\u3092\u4F7F\u3046\n- \u300C\u4ED6\u306E Boxglow \u304C\u66F8\u304D\u8FBC\u307F\u4E2D (\u30ED\u30C3\u30AF\u4E2D)\u300D\u3068\u51FA\u3066\u3001\u5C11\u3057\u5F85\u3063\u3066\u3084\u308A\u76F4\u3057\u3066\u3082\u89E3\u3051\u306A\u3044\u3068\u304D\u306F\u3001`npx boxglow unlock` \u306E\u8868\u793A (\u6301\u3061\u4E3B\u3068\u5224\u5B9A) \u3092\u4EBA\u306B\u898B\u305B\u3066\u89E3\u9664\u3092\u983C\u3080\u3002\u81EA\u5206\u3067 `--actor human` \u3092\u4ED8\u3051\u305F\u308A\u3001\u30ED\u30C3\u30AF\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u76F4\u63A5\u6D88\u3057\u305F\u308A\u3057\u306A\u3044\n\n\n### \u7740\u624B\u30FB\u5B8C\u4E86\u3001\u4ECA\u56DE\u306E\u7BC4\u56F2\u3001\u8A18\u9332\u306E\u9BAE\u5EA6\n\n- \u6700\u521D\u306B resume \u306E\u73FE\u6CC1 (\u6D3B\u52D5\u30FB\u5224\u65AD\u5F85\u3061\u30FB\u672A\u78BA\u8A8D\u56DE\u7B54) \u3092\u8AAD\u3080\u3002\u5019\u88DC\u306F\u300C\u4ECA\u56DE\u306E\u7BC4\u56F2 / \u305D\u306E\u4ED6\u300D\u306E\u5404\u7D44\u3067\u300C\u7740\u624B\u3067\u304D\u308B / \u8981\u5177\u4F53\u5316 / \u5165\u529B\u5F85\u3061\u300D\u306B\u5206\u304B\u308C\u3001\u8981\u5177\u4F53\u5316\u306E\u7406\u7531\u3068\u4E0D\u8DB3\u3059\u308B\u5165\u529B\u540D\u304C\u51FA\u308B\u3002\u8981\u5177\u4F53\u5316\u3084\u5165\u529B\u5F85\u3061\u3092\u3001\u6E96\u5099\u6E08\u307F\u3068\u53D6\u308A\u9055\u3048\u306A\u3044\u3002\u300C\u7740\u624B\u3067\u304D\u308B\u300D\u306F\u6A5F\u68B0\u691C\u67FB (\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B\u30FBexpect\u30FBacceptance\u30FB\u5FC5\u9808\u306E\u5165\u529B) \u306E\u7D50\u679C\u3067\u3001\u5185\u5BB9\u306E\u5177\u4F53\u3055\u307E\u3067\u306F\u4FDD\u8A3C\u3057\u306A\u3044\u3002\n- \u30DC\u30C3\u30AF\u30B9\u306E\u4EFB\u610F5\u9805\u76EE\u3092 scope \u3067\u8A2D\u5B9A\u3059\u308B\u3002goal = \u4ECA\u56DE\u9054\u6210\u3059\u308B\u3053\u3068\u3001non-goals = \u4ECA\u56DE\u306F\u6271\u308F\u306A\u3044\u3053\u3068\u3001constraints = \u51FA\u529B\u3092\u4F5C\u308B\u3046\u3048\u3067\u5B88\u308B\u6761\u4EF6 (\u6027\u80FD\u30FB\u54C1\u8CEA\u30FB\u30B5\u30A4\u30BA\u30FB\u5BF8\u6CD5\u30FB\u6D88\u8CBB\u96FB\u529B\u306A\u3069)\u3001acceptance = \u5B8C\u4E86\u3068\u5224\u65AD\u3059\u308B\u6761\u4EF6\u3001consult = \u7BC4\u56F2\u3092\u5E83\u3052\u308B\u524D\u306B\u76F8\u8AC7\u3059\u308B\u6761\u4EF6\u3002context \u306E\u5148\u982D\u3067\u5BFE\u8C61\u3068\u89AA\u306E\u7BC4\u56F2\u3092\u8AAD\u307F\u3001\u7740\u624B\u524D\u3068\u5B8C\u4E86\u524D\u306B\u7167\u5408\u3059\u308B\u3002\u5B8C\u4E86\u6761\u4EF6\u306E\u672C\u6587\u3092AI\u304C\u6E80\u305F\u3057\u305F\u304B\u306F\u81EA\u52D5\u5224\u5B9A\u3057\u306A\u3044\u3002\n- scope B12 --goal "\u9054\u6210\u3059\u308B\u3053\u3068" --non-goals "\u4ECA\u56DE\u6271\u308F\u306A\u3044\u3053\u3068" --constraints "\u5B88\u308B\u6761\u4EF6" --acceptance "\u78BA\u8A8D\u3059\u308B\u6761\u4EF6" --consult "\u76F8\u8AC7\u3059\u308B\u6761\u4EF6" \u3067\u8A2D\u5B9A\u3059\u308B\u3002scope B12 \u306F\u8868\u793A\u3060\u3051\u3002\u5404\u9805\u76EE\u306B none \u307E\u305F\u306F\u7A7A\u6587\u5B57\u3092\u6E21\u3059\u3068\u6D88\u3059\u3002\u753B\u9762\u3067\u306F\u8A73\u7D30\u30D1\u30CD\u30EB\u306E\u300C\u305D\u306E\u4ED6\u300D\u30BF\u30D6 \u2192\u300C\u4F5C\u696D\u7BC4\u56F2\u3092\u7DE8\u96C6\u300D\u3002\u8A18\u5165\u6E08\u307F\u306E\u9805\u76EE\u3060\u3051\u304C\u300C\u4ECA\u56DE\u306E\u7BC4\u56F2\u300D\u306B\u51FA\u308B\u3002\n- focus B12 \u3067\u3053\u306E\u30DC\u30C3\u30AF\u30B9\u3068\u914D\u4E0B\u3092\u6B21\u5019\u88DC\u306E\u5148\u982D\u306B\u3059\u308B\u3002focus \u306F\u73FE\u5728\u306E\u5BFE\u8C61\u306E\u8868\u793A\u3001focus none \u306F\u89E3\u9664\u3002\u5BFE\u8C61\u5916\u3082\u5225\u306E\u7D44\u306B\u6B8B\u308B\u3002\u5019\u88DC\u306B\u51FA\u308B\u3053\u3068\u81EA\u4F53\u306F\u4F5C\u696D\u7BC4\u56F2\u306E\u62E1\u5927\u3084\u516C\u958B\u3092\u8A31\u53EF\u3057\u306A\u3044\u3002\n- \u8A08\u753B\u306E\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306B\u8CC7\u6599\u304C\u7121\u3044\u3068\u3001\u4F7F\u3046\u7BB1\u306F\u3059\u3079\u3066\u5165\u529B\u5F85\u3061\u306B\u306A\u308B\u3002\u8CC7\u6599\u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u3042\u308C\u3070 `npx boxglow artifact inputs <\u30D1\u30B9\u304B URL> --input <\u5165\u529B\u540D>` \u3067\u81EA\u5206\u3067\u4ED8\u3051\u308B (\u4EBA\u306B\u983C\u307E\u306A\u3044)\u3002\u5916\u3059\u306E\u306F `artifact <block|inputs> --remove <\u984C\u540D\u304B\u30D1\u30B9>`\u3002\u4F5C\u308A\u304B\u3051\u306E\u8CC7\u6599\u306F `artifact <block> <\u30D1\u30B9> --draft` (\u4F5C\u6210\u4E2D\u3002\u4F7F\u3046\u5074\u306F\u5F85\u3061\u3002done \u3067\u78BA\u5B9A)\u3001\u4F5C\u308A\u304B\u3051\u3067\u59CB\u3081\u3066\u3088\u3044\u4F7F\u3046\u5074\u306E\u5165\u529B\u306F `port <block> --accept-draft <\u5165\u529B\u540D>`\u3001\u4F7F\u3046\u5074\u306B\u6E21\u3055\u306A\u3044\u53C2\u8003\u8CC7\u6599\u306F `--link`\u3002\u7121\u304F\u3066\u3082\u7740\u624B\u3067\u304D\u308B\u5165\u529B\u306F `port <block> --optional <\u5165\u529B\u540D>`\u3002\n- \u6E08\u3093\u3060\u7BB1\u306E\u300C\u65B9\u91DD: \u78BA\u304B\u3081\u76F4\u3057\u300D\u306F\u3001\u4F5C\u696D\u304C\u65B9\u91DD\u306B\u5408\u3063\u3066\u3044\u308C\u3070 `npx boxglow ack <block> --policy` \u3067\u6D88\u3059 (\u5408\u3063\u3066\u3044\u306A\u3051\u308C\u3070 reopen)\u3002\n- start \u306E\u5FC5\u9808\u5165\u529B\u4E0D\u8DB3\u306F\u65E2\u5B9A\u3067\u8B66\u544A\u3059\u308B\u304C\u3001\u5F93\u6765\u3069\u304A\u308A\u958B\u59CB\u3067\u304D\u308B\u3002\u5148\u884C\u4F5C\u696D\u304C\u5FC5\u8981\u306A\u3089 --reason "\u5148\u306B\u884C\u3046\u7406\u7531" \u3092\u4ED8\u3051\u308B\u3002\u8B66\u544A\u306F\u51FA\u305A\u3001\u7406\u7531\u306F\u6D3B\u52D5\u3068\u30ED\u30B0\u306B\u6B8B\u308B\u3002done \u306E\u51FA\u529B\u6210\u679C\u7269\u306A\u3057\u3082\u65E2\u5B9A\u3067\u8B66\u544A\u306E\u307F\u3002\u65E2\u5B58\u306E\u51FA\u529B\u6210\u679C\u7269\u307E\u305F\u306F --artifact \u3092\u6570\u3048\u3001\u30DC\u30C3\u30AF\u30B9\u306E\u53C2\u8003\u8CC7\u6599\u306F\u6570\u3048\u306A\u3044\u3002\n- \u8A08\u753B\u3067\u9078\u3076\u5834\u5408\u3060\u3051 policy --start reject --done reject --unprepared reject \u306B\u3059\u308B\u3002\u305D\u308C\u305E\u308C warn \u306B\u623B\u305B\u308B\u3002\u5165\u529B\u5F85\u3061\u306E\u62D2\u5426\u3067\u3082\u7406\u7531\u4ED8\u304D\u306E\u958B\u59CB\u306F\u53EF\u80FD\u3060\u304C\u3001\u8981\u5177\u4F53\u5316\u306E\u62D2\u5426\u306F\u7406\u7531\u3067\u306F\u901A\u308C\u306A\u3044\u3002\u6210\u679C\u7269\u306A\u3057\u306E\u62D2\u5426\u306F set --status white \u306B\u3082\u52B9\u304F\u3002\u4EBA\u306E\u64CD\u4F5C (\u753B\u9762 / --actor human) \u306F\u62D2\u5426\u3057\u306A\u3044\u3002AI\u304C\u62D2\u5426\u3092\u907F\u3051\u308B\u305F\u3081\u306B\u4EBA\u3092\u540D\u4E57\u3063\u305F\u308A\u3001\u8A2D\u5B9A\u3092\u5F31\u3081\u305F\u308A\u3057\u306A\u3044\u3002\n- guard \u6709\u52B9\u6642\u3001scope \u306E\u5909\u66F4\u3001focus \u306E\u8A2D\u5B9A\u30FB\u89E3\u9664\u3001policy \u306E\u5909\u66F4\u306B\u3082 --context-token \u304C\u5FC5\u8981\u3002scope/focus/policy \u3092\u5909\u3048\u308B\u3068\u65B0\u3057\u3044\u30C8\u30FC\u30AF\u30F3\u304C\u51FA\u308B\u306E\u3067\u3001\u6B21\u306E\u64CD\u4F5C\u306F\u305D\u308C\u3092\u4F7F\u3046\u3002\u8868\u793A\u3060\u3051\u306B\u306F\u4E0D\u8981\u3002\n- resume \u306F\u5B8C\u4E86\u6E08\u307F\u306E\u5F15\u304D\u7D99\u304E\u672C\u6587\u3092\u96A0\u3057\u3001\u4EF6\u6570\u3060\u3051\u793A\u3059\u3002\u5C65\u6B74\u304C\u5FC5\u8981\u306A\u5834\u5408\u3060\u3051 resume --include-completed \u3067\u5C55\u958B\u3059\u308B (context / show \u3067\u306F\u500B\u5225\u306B\u8AAD\u3081\u308B)\u3002\n- \u8AAC\u660E\u306F descriptionUpdatedAt\u3001\u72B6\u614B\u306F statusChangedAt\u3001\u5F15\u304D\u7D99\u304E\u306F\u65E2\u5B58\u306E at \u3067\u65E5\u6642\u3092\u78BA\u8A8D\u3067\u304D\u308B\u3002\u72B6\u614B\u5909\u66F4\u3088\u308A\u53E4\u3044\u30E1\u30E2\u306F\u305D\u306E\u65E8\u3092\u793A\u3059\u3002\u65E7\u8A18\u9332\u306E\u4E0D\u660E\u306A\u65E5\u6642\u306F\u88DC\u308F\u306A\u3044\u3002\u300C\u65B0\u3057\u3044\u8A18\u9332\u300D\u306F\u771F\u507D\u306E\u4FDD\u8A3C\u3067\u306F\u306A\u3044\u3002\n- Done \u3067\u53E4\u3044\u72B6\u6CC1\u8AAC\u660E\u304C\u6B8B\u308B\u53EF\u80FD\u6027\u304C\u3042\u308B\u5834\u5408\u3001CLI\u30FB\u8A73\u7D30\u30D1\u30CD\u30EB\u30FBresume \u306B\u898B\u76F4\u3057\u6848\u5185\u304C\u51FA\u308B\u3002\u672C\u6587\u306F\u81EA\u52D5\u3067\u6D88\u3055\u306A\u3044\u3002\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3001\u5FC5\u8981\u306A\u3089 set B12 --note "\u73FE\u5728\u306E\u8AAC\u660E" (none \u3067\u6D88\u53BB) \u307E\u305F\u306F\u753B\u9762\u306E Notes \u3067\u76F4\u3059\u3002\n- MCP \u306F boxglow_scope / boxglow_focus / boxglow_policy\u3001boxglow_start \u306E reason\u3001boxglow_resume \u306E includeCompleted \u3092\u4F7F\u3046\u3002\u5909\u66F4\u306B\u306F contextToken \u3092\u4ED8\u3051\u308B\u3002\n- \u30C7\u30FC\u30BF\u5F62\u5F0F\u306F v5 \u306E\u307E\u307E\u3067\u5168\u9805\u76EE\u306F\u4EFB\u610F\u3002\u65E7\u7248 (0.4.2\u4EE5\u524D) \u306F\u65B0\u3057\u3044\u898F\u5247\u3092\u5B9F\u884C\u305B\u305A\u3001\u4FDD\u5B58\u6642\u306B\u8A08\u753B\u306E workflowPolicy / focusBlockId \u3092\u843D\u3068\u3059\u3002\u3053\u308C\u3089\u3092\u4F7F\u3046\u8A08\u753B\u306E\u66F8\u304D\u624B (CLI\u30FBserve\u30FB\u753B\u9762\u30FB\u62E1\u5F35\u5185\u306E\u30A2\u30D7\u30EA) \u306F\u5BFE\u5FDC\u3057\u305F\u30D3\u30EB\u30C9\u306B\u63C3\u3048\u308B\u3002\u7248\u756A\u53F7\u3060\u3051\u3067\u306A\u304F\u30D3\u30EB\u30C9\u65E5\u6642\u3082\u78BA\u8A8D\u3059\u308B\u3002\n';
|
|
13427
13561
|
|
|
13428
13562
|
// .claude/skills/boxglow/SKILL.en.md
|
|
13429
|
-
var SKILL_en_default = '---\nname: boxglow\ndescription: Share the plan and progress with humans through Boxglow (boxglow.json). Record starting, splitting, finishing and pending decisions with npx boxglow. Use for "record progress in Boxglow", "check the status with boxglow", or "/boxglow".\n---\n\n# Share the plan and progress with Boxglow\n\n`boxglow.json` at the repository root is the source of truth for the plan. Humans watch it on the Boxglow screen (https://boxglow.app/, "Open boxglow.json").\nDo not edit it directly; update it with `npx boxglow`.\n\n## Making the first plan (for a new project)\n\n1. Read the direction (README, the request, requirement notes), run `npx boxglow init --name "<name>"`, then place the top-level items (3-7 of them) with `add`.\n For each item, always write its "inputs (what it uses)" and "output (a concrete deliverable: file, URL, PR)", and connect them all the way to the final deliverable (`connect`)\n2. Once created, get a human\'s confirmation with `npx boxglow ask <first top-level item> "Is this breakdown into top-level items OK?" --options "OK|Needs changes"`.\n The human can answer on the screen, with `npx boxglow answer <block> "<answer>"`, or in chat. If the answer comes back in chat, the AI records it with `answer --by human`.\n If the human does not use the screen (when you are told to proceed with the AI alone), the AI records its own decision with `answer --by claude-code "<decision and reason>"` and moves on. The point is to keep a record of decisions; the screen is not required\n3. `split` only the item you are about to start (leave later stages coarse, and refine them as you go)\n\n## Steps\n\n1. Read `npx boxglow resume` (or `npx boxglow status --brief`). Take in the handoff notes, the answers not yet read by the AI, the pending decisions, the boxes in progress and the next candidates. Use `npx boxglow status` when you need the whole tree\n2. Once you have chosen a box, read `npx boxglow context <block>`. If `readiness.state` is `ready` you can start. `unprepared` (needs detail) means you add detail first, following the reasons in `unprepared` and the commands in `next`. `waiting` means a required input or a branch answer is missing\n3. Before adding detail or splitting, hold the box with `npx boxglow claim <block>` (it does not start the box; on a plan without claims it prints "not needed" and succeeds). Fill in what is missing:\n the output\'s planned deliverable `npx boxglow port <block> --expect "<output>=file:src/x.ts"` (kind: file / dir / url / doc / note / decision / result; the file need not exist yet) and the acceptance criteria `npx boxglow scope <block> --acceptance "<when it counts as done>"`.\n Split a large box with `npx boxglow split <block> --spec \'<JSON>\'` (see `npx boxglow help` for the format). Write expect / acceptance only for the children you will start now; later children need only a title and an output.\n When you do not know which files are involved, do not invent paths: add a box "find the target" with a `note` output and start that.\n After a split, read `npx boxglow lint <block>` and fix the "must fix" items before going on ("review" items are yours to judge). Record how the children are divided with `"splitBy": "stage"` (or `set --split-by`).\n Content review: read `review-split <parent>` (material and checklist) and record `split-ok <parent> --note "<basis>"`; before a start, `review-box <block>` \u2192 `box-ok <block> --note "<basis>"` (when the material changes, `reviews` in context goes stale).\n When an answer changes the work that follows, `ask ... --options "A|B" --branch` turns the box into a branch (in the split JSON: `"branch": { question, options }` / `"join": true`)\n4. Once ready, read `npx boxglow context <block>` again and run `npx boxglow start <block> --note "<what you will do>"`.\n On a plan with the context guard on, pass the `contextToken` (context token) from the context output as `--context-token <context token>`.\n Starting a box that still needs detail warns by default; on a plan with `policy --unprepared reject` it is refused (`--reason` does not bypass it). A parent whose outputs are all made by its children has nothing to run itself: start the child instead\n5. When the deliverable exists, run `npx boxglow done <block> --artifact "<name>=<URL or path>" --checked "<checks run and results>"` (record the verification in three fixed fields: `--checked` checks run and results / `--not-checked` what was not tried / `--limits` remaining limits; for non-code deliverables write what you confirmed) (with the guard on, add `--context-token <context token>`; if your previous command printed "New context token: <token>", use that one)\n6. When a human decision is needed, run `npx boxglow ask <block> "<question>" --options "A|B"` and move on to another box\n7. When you are stuck: If the cause is a missing input (a deliverable of an earlier box, or material), do not mark the box as blocked. Check its input wires with `npx boxglow show <block>`; if no box produces what is missing, create one outside (upstream) with `npx boxglow add` and wire it to this box\'s input with `npx boxglow connect` (the wire stays in the waiting color, so the diagram shows what the box is waiting for). If a choice between options would let you continue, use `ask`. Record only obstacles outside the plan (an environment that does not work, missing permissions or keys, waiting for an outside reply, a failure with no known cause) with `npx boxglow blocked <block> --note "<what is in the way>"`\n8. Before an interruption, context compaction or a handoff, save a handoff note with `npx boxglow checkpoint <block> --note "Findings; next steps; unresolved questions"`\n9. At the end, summarize `npx boxglow status --brief` and report it\n\n## Rules\n\n- **Show an undecided fork as a branch**: when, at planning time, later work (a path) depends on a decision that has not been made, create a branch box with `npx boxglow branch "<title>" --options "A|B" --question "<question>" --context "<background>"`. Each option becomes a path (output); `connect` each one to the first box of that path. Where the paths come together again, add a merge part with `npx boxglow join --title "<title>"`, `connect` the last output of each path to it, and connect its output to the next box (any one path arriving is enough). Once a person answers, the boxes on the paths not chosen are skipped and drop out of progress and next candidates. If a box you already made turns out to be an undecided fork, turn it into a branch with `npx boxglow branch --box <block> --options "A|B" --question "<question>"` (its output becomes the first option\'s path; wires stay). Before the answer, boxes on the paths wait for the branch and starting them warns (record a reason with `--reason`, e.g. for early research)\n- Write each `ask` question so that it can be decided on its own. Do not point outside the question, as in "Is this OK?" or "the plan above"; put the premises, comparison and impact in `--context` (the human reads only the question in a list and answers it)\n- When choosing one of several candidates (an approach, a library, a design choice), even if the AI decides by itself, record it as `ask <block> "<question>" --options "A|B|C"` \u2192 `answer --by claude-code "<the choice>. Reason: ..."` so that the candidates not chosen stay on the box (you can come back to them when the direction changes)\n- To change direction, use `reopen <block> --note "<reason>"`: the previous answer stays in the history and you choose again (candidates are not deleted)\n\n- Keep at most 1-2 boxes in progress at a time\n- Make deliverables (artifacts) something a human can open later (a commit, a PR, a file path)\n- Name outputs after concrete deliverables (file, PR, URL, test results). Avoid abstract names (feature set, findings). When one piece of work produces several things, give it one output per thing (`port <block> --out "<name>"` adds one)\n- The receiving side of a connection can be just a title (`connect "A.Design doc" "B"` creates an input "Design doc" on B). Connected inputs and outputs share one name (renaming either end renames the other)\n- Always connect boxes as "input \u2192 output". Add missing inputs / outputs with `port`, remove a wire with `disconnect`, and remove a box itself with `remove`. Export a document with `export --out docs/ROADMAP.md`\n- When you add a box, give it a kind of work with `--category` (design / build / verify / evaluate / study / research / ui / improve / fix / docs / ops / other). On the screen it becomes a colored band and a tag\n- If boxglow.json does not exist yet, create it with `npx boxglow init --name "<project name>"` and place the final deliverable and the top-level boxes with `add`\n\n## What runs automatically (hooks)\n\n`setup-agent` registers `boxglow hook` in the Claude Code / Codex hooks. After a session starts, resumes or is compacted, the plan\'s resume summary is injected into the context. When you are about to finish a reply while a box started in this session has no handoff (done or checkpoint), you are told to record first and continue (a log entry is a progress note, not a handoff). Editing boxglow.json directly (Edit / Write / apply_patch) is blocked. This is a safety net; keep recording as the steps above say.\nReviews of a split or of readiness can be delegated to the subagent `boxglow-review` (it reads review-split / review-box and returns its evaluation and reasoning; you, the parent, record split-ok / box-ok with that reasoning).\n\n## Context token and handoff\n\nThe context guard keeps an AI from continuing work on outdated instructions. `setup-agent` turns it on (on other plans, run `npx boxglow guard on`).\nWhile it is on, an AI\'s `start` / `done` / `set` / `split` / `artifact` / `ack` / `blocked` / `review` / `leave` / `checkpoint` need `--context-token <context token>`. Commands run by a person (`--actor human`) do not.\n\n```\nnpx boxglow context B12 # read the decisions (including acknowledged answers), input/output contracts and handoff notes. contextToken in the output is the context token\nnpx boxglow start B12 --note "<what you will do>" --context-token <context token>\nnpx boxglow ask B12 "<question>" --options "A|B" --context-token <context token>\n# -> last line of the output: New context token: <token>\nnpx boxglow done B12 --artifact "<name>=<path>" --context-token <new context token>\n```\n\n- **The context token changes (you must reread)** when a person answers a decision or revises an answer, a person changes the instructions (title, description, input/output contracts), or another AI or a person updates the handoff note. The same applies when this happens on a parent box or an input provider. The old context token is rejected: reread `context`, take the change into account in your work, then retry\n- **The context token does not change** on `start` / `blocked` / `review` / `leave` / `ack`, on changes to progress, status, dates or category, when `check` verifies deliverables, or when boxes are moved on the screen. Keep using the same context token\n- **You can update it yourself**: when your own `ask` / `artifact` / `done` / `set` / `split` / `checkpoint` etc. changes the context, the last line of its output is "New context token: <token>". Use it for the next command without rereading. `ask` / `decision` / `answer` / `reopen` run without a context token, but they print the new context token only when you pass the latest one\n- Do not turn the guard off to get past an old context token (an AI needs the latest context token to run `guard off`)\n- When resuming, read `npx boxglow resume`, and check a box that has a handoff note with `context` before continuing. Handoff notes stay in the plan, independent of the chat history and the activity-log limit\n- With MCP, use `boxglow_context` and the `contextToken` argument of each tool\n- If "Another Boxglow writer holds the file lock" persists after waiting and retrying, show the output of `npx boxglow unlock` (owner and verdict) to a person and ask them to remove it. Never add `--actor human` yourself or delete the lock folder directly\n\n\n### Readiness, current scope, and fresh resume information\n\n- Read current activity, pending decisions, and unread answers first. Candidates are grouped by current scope / other candidates, then ready / needs detail / waiting for inputs, with the reasons and missing input names. A candidate that needs detail or is waiting is not ready. "Ready" is a mechanical check (an output of its own, expect, acceptance, required inputs) and does not judge how specific the text is.\n- Four optional scope fields are available: goal, non-goals, acceptance, and consult (when to consult before expanding scope). Read the target and parent scopes at the start of context before starting and finishing. Textual acceptance criteria are not automatically evaluated.\n- Use scope B12 --goal "Goal" --non-goals "Excluded" --acceptance "Checks" --consult "When to ask". scope B12 only reads; none or an empty string clears a field. In the inspector, use the More tab \u2192 Edit work scope. Only populated fields appear in the collapsed scope section.\n- focus B12 prioritizes that box and its descendants; focus reads the selection, and focus none clears it. Other candidates remain in a separate group. Being listed does not authorize expanding scope or publishing.\n- When a top-level plan input has no material, every box that uses it waits. If the material is in the repository, attach it yourself with `npx boxglow artifact inputs <path or URL> --input <input name>` (do not ask a person). Remove one with `artifact <block|inputs> --remove <title or path>`. Make an input optional with `port <block> --optional <input name>`.\n- When a finished box shows "Policy: check again" and the work matches the policy, clear it with `npx boxglow ack <block> --policy` (otherwise reopen it).\n- Missing required inputs warn on start by default but still allow the start. Supply --reason "Why starting early is appropriate" to proceed without a warning and save the reason in both activity and the log. Artifact-free done also remains warning-only by default. Existing output artifacts or --artifact count; reference material on the box does not.\n- Only enable strict checks when selected for the plan: policy --start reject --done reject --unprepared reject. Each can return to warn. A recorded start reason overrides the missing-input rejection, but not the needs-detail one. The artifact requirement also applies to set --status white. Human operations (UI / --actor human) are never rejected. Do not impersonate a human or weaken policy to bypass rejection.\n- With guard enabled, scope writes, focus selection/clearing, and policy writes require --context-token. These changes print a new token: use it next. Read-only forms need no token.\n- resume hides completed handoff bodies and shows their count. Request resume --include-completed only when history is needed; context / show can still read individual notes.\n- descriptionUpdatedAt dates description changes; statusChangedAt dates status changes; handoffs use their existing at field. Notes predating a status change are marked. Unknown legacy dates stay unknown, and recency does not establish truth.\n- After Done, CLI, inspector, and resume flag descriptions that may still describe an earlier state. Text is never rewritten automatically. Review it, then update with set B12 --note "Current description" (none clears it) or Notes in the UI.\n- MCP: boxglow_scope / boxglow_focus / boxglow_policy, reason on boxglow_start, and includeCompleted on boxglow_resume. Pass contextToken for writes.\n- All data fields are optional; schema v5 is unchanged. Old versions (0.4.2 and earlier) do not enforce these checks and drop workflowPolicy / focusBlockId when saving. Align all writers (CLI, serve, web app, bundled extension app) to a supporting build before using these settings. Check build time as well as version.\n';
|
|
13563
|
+
var SKILL_en_default = '---\nname: boxglow\ndescription: Share the plan and progress with humans through Boxglow (boxglow.json). Record starting, splitting, finishing and pending decisions with npx boxglow. Use for "record progress in Boxglow", "check the status with boxglow", or "/boxglow".\n---\n\n# Share the plan and progress with Boxglow\n\n`boxglow.json` at the repository root is the source of truth for the plan. Humans watch it on the Boxglow screen (https://boxglow.app/, "Open boxglow.json").\nDo not edit it directly; update it with `npx boxglow`.\n\n## Making the first plan (for a new project)\n\n1. Read the direction (README, the request, requirement notes), run `npx boxglow init --name "<name>"`, then place the top-level items (3-7 of them) with `add`.\n For each item, always write its "inputs (what it uses)" and "output (a concrete deliverable: file, URL, PR)", and connect them all the way to the final deliverable (`connect`)\n2. Once created, get a human\'s confirmation with `npx boxglow ask <first top-level item> "Is this breakdown into top-level items OK?" --options "OK|Needs changes"`.\n The human can answer on the screen, with `npx boxglow answer <block> "<answer>"`, or in chat. If the answer comes back in chat, the AI records it with `answer --by human`.\n If the human does not use the screen (when you are told to proceed with the AI alone), the AI records its own decision with `answer --by claude-code "<decision and reason>"` and moves on. The point is to keep a record of decisions; the screen is not required\n3. `split` only the item you are about to start (leave later stages coarse, and refine them as you go)\n\n## Steps\n\n1. Read `npx boxglow resume` (or `npx boxglow status --brief`). Take in the handoff notes, the answers not yet read by the AI, the pending decisions, the boxes in progress and the next candidates. Use `npx boxglow status` when you need the whole tree\n2. Once you have chosen a box, read `npx boxglow context <block>`. If `readiness.state` is `ready` you can start. `unprepared` (needs detail) means you add detail first, following the reasons in `unprepared` and the commands in `next`. `waiting` means a required input or a branch answer is missing\n3. Before adding detail or splitting, hold the box with `npx boxglow claim <block>` (it does not start the box; on a plan without claims it prints "not needed" and succeeds). Fill in what is missing:\n the output\'s planned deliverable `npx boxglow port <block> --expect "<output>=file:src/x.ts"` (kind: file / dir / url / doc / note / decision / result; the file need not exist yet) and the acceptance criteria `npx boxglow scope <block> --acceptance "<when it counts as done>"`.\n Split a large box with `npx boxglow split <block> --spec \'<JSON>\'` (see `npx boxglow help` for the format). Write expect / acceptance only for the children you will start now; later children need only a title and an output.\n When you do not know which files are involved, do not invent paths: add a box "find the target" with a `note` output and start that.\n After a split, read `npx boxglow lint <block>` and fix the "must fix" items before going on ("review" items are yours to judge). Record how the children are divided with `"splitBy": "stage"` (or `set --split-by`).\n Content review: read `review-split <parent>` (material and checklist) and record `split-ok <parent> --note "<basis>"`; before a start, `review-box <block>` \u2192 `box-ok <block> --note "<basis>"` (when the material changes, `reviews` in context goes stale).\n When an answer changes the work that follows, `ask ... --options "A|B" --branch` turns the box into a branch (in the split JSON: `"branch": { question, options }` / `"join": true`)\n4. Once ready, read `npx boxglow context <block>` again and run `npx boxglow start <block> --note "<what you will do>"`.\n On a plan with the context guard on, pass the `contextToken` (context token) from the context output as `--context-token <context token>`.\n Starting a box that still needs detail warns by default; on a plan with `policy --unprepared reject` it is refused (`--reason` does not bypass it). A parent whose outputs are all made by its children has nothing to run itself: start the child instead\n5. When the deliverable exists, run `npx boxglow done <block> --artifact "<name>=<URL or path>" --checked "<checks run and results>"` (record the verification in three fixed fields: `--checked` checks run and results / `--not-checked` what was not tried / `--limits` remaining limits; for non-code deliverables write what you confirmed) (with the guard on, add `--context-token <context token>`; if your previous command printed "New context token: <token>", use that one)\n6. When a human decision is needed, run `npx boxglow ask <block> "<question>" --options "A|B"` and move on to another box\n7. When you are stuck: If the cause is a missing input (a deliverable of an earlier box, or material), do not mark the box as blocked. Check its input wires with `npx boxglow show <block>`; if no box produces what is missing, create one outside (upstream) with `npx boxglow add` and wire it to this box\'s input with `npx boxglow connect` (the wire stays in the waiting color, so the diagram shows what the box is waiting for). If a choice between options would let you continue, use `ask`. Record only obstacles outside the plan (an environment that does not work, missing permissions or keys, waiting for an outside reply, a failure with no known cause) with `npx boxglow blocked <block> --note "<what is in the way>"`\n8. Before an interruption, context compaction or a handoff, save a handoff note with `npx boxglow checkpoint <block> --note "Findings; next steps; unresolved questions"`\n9. At the end, summarize `npx boxglow status --brief` and report it\n\n## Rules\n\n- **Show an undecided fork as a branch**: when, at planning time, later work (a path) depends on a decision that has not been made, create a branch box with `npx boxglow branch "<title>" --options "A|B" --question "<question>" --context "<background>"`. Each option becomes a path (output); `connect` each one to the first box of that path. Where the paths come together again, add a merge part with `npx boxglow join --title "<title>"`, `connect` the last output of each path to it, and connect its output to the next box (any one path arriving is enough). Once a person answers, the boxes on the paths not chosen are skipped and drop out of progress and next candidates. If a box you already made turns out to be an undecided fork, turn it into a branch with `npx boxglow branch --box <block> --options "A|B" --question "<question>"` (its output becomes the first option\'s path; wires stay). Before the answer, boxes on the paths wait for the branch and starting them warns (record a reason with `--reason`, e.g. for early research)\n- Write each `ask` question so that it can be decided on its own. Do not point outside the question, as in "Is this OK?" or "the plan above"; put the premises, comparison and impact in `--context` (the human reads only the question in a list and answers it)\n- When choosing one of several candidates (an approach, a library, a design choice), even if the AI decides by itself, record it as `ask <block> "<question>" --options "A|B|C"` \u2192 `answer --by claude-code "<the choice>. Reason: ..."` so that the candidates not chosen stay on the box (you can come back to them when the direction changes)\n- To change direction, use `reopen <block> --note "<reason>"`: the previous answer stays in the history and you choose again (candidates are not deleted)\n\n- Keep at most 1-2 boxes in progress at a time\n- Make deliverables (artifacts) something a human can open later (a commit, a PR, a file path)\n- Name outputs after concrete deliverables (file, PR, URL, test results). Avoid abstract names (feature set, findings). When one piece of work produces several things, give it one output per thing (`port <block> --out "<name>"` adds one)\n- The receiving side of a connection can be just a title (`connect "A.Design doc" "B"` creates an input "Design doc" on B). Connected inputs and outputs share one name (renaming either end renames the other)\n- Always connect boxes as "input \u2192 output". Add missing inputs / outputs with `port`, remove a wire with `disconnect`, and remove a box itself with `remove`. Export a document with `export --out docs/ROADMAP.md`\n- When you add a box, give it a kind of work with `--category` (design / build / verify / evaluate / study / research / ui / improve / fix / docs / ops / other). On the screen it becomes a colored band and a tag\n- If boxglow.json does not exist yet, create it with `npx boxglow init --name "<project name>"` and place the final deliverable and the top-level boxes with `add`\n\n## What runs automatically (hooks)\n\n`setup-agent` registers `boxglow hook` in the Claude Code / Codex hooks. After a session starts, resumes or is compacted, the plan\'s resume summary is injected into the context. When you are about to finish a reply while a box started in this session has no handoff (done or checkpoint), you are told to record first and continue (a log entry is a progress note, not a handoff). Editing boxglow.json directly (Edit / Write / apply_patch) is blocked. This is a safety net; keep recording as the steps above say.\nReviews of a split or of readiness can be delegated to the subagent `boxglow-review` (it reads review-split / review-box and returns its evaluation and reasoning; you, the parent, record split-ok / box-ok with that reasoning).\n\n## Context token and handoff\n\nThe context guard keeps an AI from continuing work on outdated instructions. `setup-agent` turns it on (on other plans, run `npx boxglow guard on`).\nWhile it is on, an AI\'s `start` / `done` / `set` / `split` / `artifact` / `ack` / `blocked` / `review` / `leave` / `checkpoint` need `--context-token <context token>`. Commands run by a person (`--actor human`) do not.\n\n```\nnpx boxglow context B12 # read the decisions (including acknowledged answers), input/output contracts and handoff notes. contextToken in the output is the context token\nnpx boxglow start B12 --note "<what you will do>" --context-token <context token>\nnpx boxglow ask B12 "<question>" --options "A|B" --context-token <context token>\n# -> last line of the output: New context token: <token>\nnpx boxglow done B12 --artifact "<name>=<path>" --context-token <new context token>\n```\n\n- **The context token changes (you must reread)** when a person answers a decision or revises an answer, a person changes the instructions (title, description, input/output contracts), or another AI or a person updates the handoff note. The same applies when this happens on a parent box or an input provider. The old context token is rejected: reread `context`, take the change into account in your work, then retry\n- **The context token does not change** on `start` / `blocked` / `review` / `leave` / `ack`, on changes to progress, status, dates or category, when `check` verifies deliverables, or when boxes are moved on the screen. Keep using the same context token\n- **You can update it yourself**: when your own `ask` / `artifact` / `done` / `set` / `split` / `checkpoint` etc. changes the context, the last line of its output is "New context token: <token>". Use it for the next command without rereading. `ask` / `decision` / `answer` / `reopen` run without a context token, but they print the new context token only when you pass the latest one\n- Do not turn the guard off to get past an old context token (an AI needs the latest context token to run `guard off`)\n- When resuming, read `npx boxglow resume`, and check a box that has a handoff note with `context` before continuing. Handoff notes stay in the plan, independent of the chat history and the activity-log limit\n- With MCP, use `boxglow_context` and the `contextToken` argument of each tool\n- If "Another Boxglow writer holds the file lock" persists after waiting and retrying, show the output of `npx boxglow unlock` (owner and verdict) to a person and ask them to remove it. Never add `--actor human` yourself or delete the lock folder directly\n\n\n### Readiness, current scope, and fresh resume information\n\n- Read current activity, pending decisions, and unread answers first. Candidates are grouped by current scope / other candidates, then ready / needs detail / waiting for inputs, with the reasons and missing input names. A candidate that needs detail or is waiting is not ready. "Ready" is a mechanical check (an output of its own, expect, acceptance, required inputs) and does not judge how specific the text is.\n- Four optional scope fields are available: goal, non-goals, acceptance, and consult (when to consult before expanding scope). Read the target and parent scopes at the start of context before starting and finishing. Textual acceptance criteria are not automatically evaluated.\n- Use scope B12 --goal "Goal" --non-goals "Excluded" --acceptance "Checks" --consult "When to ask". scope B12 only reads; none or an empty string clears a field. In the inspector, use the More tab \u2192 Edit work scope. Only populated fields appear in the collapsed scope section.\n- focus B12 prioritizes that box and its descendants; focus reads the selection, and focus none clears it. Other candidates remain in a separate group. Being listed does not authorize expanding scope or publishing.\n- When a top-level plan input has no material, every box that uses it waits. If the material is in the repository, attach it yourself with `npx boxglow artifact inputs <path or URL> --input <input name>` (do not ask a person). Remove one with `artifact <block|inputs> --remove <title or path>`. Attach work-in-progress material with `artifact <block> <path> --draft` (boxes using it wait; done confirms it), let a consumer start from drafts with `port <block> --accept-draft <input name>`, and keep reference material on the box with `--link`. Make an input optional with `port <block> --optional <input name>`.\n- When a finished box shows "Policy: check again" and the work matches the policy, clear it with `npx boxglow ack <block> --policy` (otherwise reopen it).\n- Missing required inputs warn on start by default but still allow the start. Supply --reason "Why starting early is appropriate" to proceed without a warning and save the reason in both activity and the log. Artifact-free done also remains warning-only by default. Existing output artifacts or --artifact count; reference material on the box does not.\n- Only enable strict checks when selected for the plan: policy --start reject --done reject --unprepared reject. Each can return to warn. A recorded start reason overrides the missing-input rejection, but not the needs-detail one. The artifact requirement also applies to set --status white. Human operations (UI / --actor human) are never rejected. Do not impersonate a human or weaken policy to bypass rejection.\n- With guard enabled, scope writes, focus selection/clearing, and policy writes require --context-token. These changes print a new token: use it next. Read-only forms need no token.\n- resume hides completed handoff bodies and shows their count. Request resume --include-completed only when history is needed; context / show can still read individual notes.\n- descriptionUpdatedAt dates description changes; statusChangedAt dates status changes; handoffs use their existing at field. Notes predating a status change are marked. Unknown legacy dates stay unknown, and recency does not establish truth.\n- After Done, CLI, inspector, and resume flag descriptions that may still describe an earlier state. Text is never rewritten automatically. Review it, then update with set B12 --note "Current description" (none clears it) or Notes in the UI.\n- MCP: boxglow_scope / boxglow_focus / boxglow_policy, reason on boxglow_start, and includeCompleted on boxglow_resume. Pass contextToken for writes.\n- All data fields are optional; schema v5 is unchanged. Old versions (0.4.2 and earlier) do not enforce these checks and drop workflowPolicy / focusBlockId when saving. Align all writers (CLI, serve, web app, bundled extension app) to a supporting build before using these settings. Check build time as well as version.\n';
|
|
13430
13564
|
|
|
13431
13565
|
// src/model/export.ts
|
|
13432
13566
|
var STATUS_LABEL = {
|
|
@@ -13440,7 +13574,7 @@ function portLine(p, port2) {
|
|
|
13440
13574
|
if (desc) parts2.push(`: ${desc}`);
|
|
13441
13575
|
if (port2.direction === "in" && !port2.required) parts2.push(" " + t("(\u4EFB\u610F)"));
|
|
13442
13576
|
if (port2.artifacts.length > 0) {
|
|
13443
|
-
parts2.push(" / " + port2.artifacts.map((a) => a.url ? `[${a.title}](${a.url})` : a.title).join(", "));
|
|
13577
|
+
parts2.push(" / " + port2.artifacts.map((a) => (a.url ? `[${a.title}](${a.url})` : a.title) + (a.draft ? " " + t("(\u4F5C\u6210\u4E2D)") : "")).join(", "));
|
|
13444
13578
|
}
|
|
13445
13579
|
const links = port2.direction === "in" ? incomingEdges(p, { portId: port2.id, side: "outer" }).map((e) => describeEndpointSource(p, e.from.portId)) : outgoingEdges(p, { portId: port2.id, side: "outer" }).map((e) => describeEndpointTarget(p, e.to.portId));
|
|
13446
13580
|
if (links.length > 0) parts2.push(` (${port2.direction === "in" ? t("\u4F9B\u7D66\u5143: {list}", { list: links.join(", ") }) : t("\u884C\u304D\u5148: {list}", { list: links.join(", ") })})`);
|
|
@@ -13719,7 +13853,7 @@ function terminalHeight(p, which) {
|
|
|
13719
13853
|
}
|
|
13720
13854
|
|
|
13721
13855
|
// cli/main.ts
|
|
13722
|
-
import { dirname as
|
|
13856
|
+
import { dirname as dirname11, join as join13, resolve as resolve7 } from "node:path";
|
|
13723
13857
|
|
|
13724
13858
|
// src/model/report.ts
|
|
13725
13859
|
var quoted = (title) => t("\u300C{title}\u300D", { title });
|
|
@@ -13850,7 +13984,7 @@ function blockReport(p, blockId) {
|
|
|
13850
13984
|
lines.push("", "## " + t("\u51FA\u529B"));
|
|
13851
13985
|
for (const q of portsOf(p, blockId, "out")) {
|
|
13852
13986
|
const dst = outgoingEdges(p, { portId: q.id, side: "outer" }).map((e) => `${name(p.ports[e.to.portId].blockId)}.${p.ports[e.to.portId].name}`);
|
|
13853
|
-
const arts = q.artifacts.map((a) => a.url ? `${a.title} <${a.url}>` : a.title);
|
|
13987
|
+
const arts = q.artifacts.map((a) => (a.url ? `${a.title} <${a.url}>` : a.title) + (a.draft ? " " + t("(\u4F5C\u6210\u4E2D)") : ""));
|
|
13854
13988
|
lines.push(`- ${q.name}${q.description ? ": " + q.description : ""}${dst.length ? " -> " + dst.join(", ") : ""}${arts.length ? " " + t("\u6210\u679C\u7269: {list}", { list: arts.join(", ") }) : ""}`);
|
|
13855
13989
|
}
|
|
13856
13990
|
const kids = childrenOf(p, blockId);
|
|
@@ -13903,7 +14037,7 @@ function assignmentRows(p, target, opts = {}) {
|
|
|
13903
14037
|
...b.dueDate ? { dueDate: b.dueDate } : {},
|
|
13904
14038
|
overdue: !!b.dueDate && b.status !== "white" && b.dueDate < today,
|
|
13905
14039
|
...typeof b.estimateHours === "number" ? { estimateHours: b.estimateHours } : {},
|
|
13906
|
-
missingInputs: b.status === "white" ? [] : waitingFor(p, b.id),
|
|
14040
|
+
missingInputs: b.status === "white" ? [] : markDraftInputs(p, b.id, waitingFor(p, b.id)),
|
|
13907
14041
|
pendingDecisions: b.decisions.filter((d) => d.answer === void 0).length,
|
|
13908
14042
|
unprepared: b.status === "white" ? [] : unpreparedReasons(p, b.id).map((r) => reasonText(p, r)),
|
|
13909
14043
|
assignees: p.members.filter((m) => b.assigneeIds.includes(m.id)).map((m) => m.name)
|
|
@@ -13937,8 +14071,8 @@ var STATUS_LABEL2 = {
|
|
|
13937
14071
|
|
|
13938
14072
|
// cli/git.ts
|
|
13939
14073
|
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
13940
|
-
import { existsSync as
|
|
13941
|
-
import { dirname as
|
|
14074
|
+
import { existsSync as existsSync13, statSync as statSync7 } from "node:fs";
|
|
14075
|
+
import { dirname as dirname10, relative as relative2, resolve as resolve6 } from "node:path";
|
|
13942
14076
|
function git(args, cwd) {
|
|
13943
14077
|
try {
|
|
13944
14078
|
return execFileSync2("git", args, { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim();
|
|
@@ -13956,9 +14090,9 @@ function remoteToWeb(remote) {
|
|
|
13956
14090
|
return null;
|
|
13957
14091
|
}
|
|
13958
14092
|
function gitRefFor(filePath) {
|
|
13959
|
-
const abs =
|
|
13960
|
-
if (!
|
|
13961
|
-
const root = git(["rev-parse", "--show-toplevel"],
|
|
14093
|
+
const abs = resolve6(filePath);
|
|
14094
|
+
if (!existsSync13(abs) || !statSync7(abs).isFile()) return null;
|
|
14095
|
+
const root = git(["rev-parse", "--show-toplevel"], dirname10(abs));
|
|
13962
14096
|
if (!root) return null;
|
|
13963
14097
|
const rel = relative2(root, abs).replace(/\\/g, "/");
|
|
13964
14098
|
const commit = git(["rev-parse", "HEAD"], root) ?? "";
|
|
@@ -13972,14 +14106,14 @@ function gitRefFor(filePath) {
|
|
|
13972
14106
|
}
|
|
13973
14107
|
function findGitRef(recorded, bases) {
|
|
13974
14108
|
for (const base of bases) {
|
|
13975
|
-
const ref = gitRefFor(
|
|
14109
|
+
const ref = gitRefFor(resolve6(base, recorded));
|
|
13976
14110
|
if (ref) return ref;
|
|
13977
14111
|
}
|
|
13978
14112
|
return null;
|
|
13979
14113
|
}
|
|
13980
14114
|
function currentRef(root, rel) {
|
|
13981
14115
|
const commit = git(["rev-parse", "HEAD"], root) ?? "";
|
|
13982
|
-
const blob = git(["hash-object", "--path", rel, "--",
|
|
14116
|
+
const blob = git(["hash-object", "--path", rel, "--", resolve6(root, rel)], root) ?? "";
|
|
13983
14117
|
const repo = git(["config", "--get", "remote.origin.url"], root) ?? "";
|
|
13984
14118
|
const web = repo ? remoteToWeb(repo) : null;
|
|
13985
14119
|
return { path: rel, commit, blob, url: web && commit ? `${web}/blob/${commit}/${rel}` : "" };
|
|
@@ -13987,7 +14121,7 @@ function currentRef(root, rel) {
|
|
|
13987
14121
|
function checkGitRef(ref, cwd) {
|
|
13988
14122
|
const root = git(["rev-parse", "--show-toplevel"], cwd);
|
|
13989
14123
|
if (!root || !ref.path) return { state: "missing" };
|
|
13990
|
-
if (
|
|
14124
|
+
if (existsSync13(resolve6(root, ref.path))) return { state: "ok", path: ref.path };
|
|
13991
14125
|
if (ref.blob) {
|
|
13992
14126
|
const tree = git(["ls-tree", "-r", "HEAD"], root) ?? "";
|
|
13993
14127
|
for (const line of tree.split("\n")) {
|
|
@@ -14005,7 +14139,7 @@ function checkGitRef(ref, cwd) {
|
|
|
14005
14139
|
if (m && m[1] === cur) cur = m[2];
|
|
14006
14140
|
}
|
|
14007
14141
|
}
|
|
14008
|
-
if (cur !== ref.path &&
|
|
14142
|
+
if (cur !== ref.path && existsSync13(resolve6(root, cur))) return { state: "moved", ...currentRef(root, cur) };
|
|
14009
14143
|
}
|
|
14010
14144
|
return { state: "missing" };
|
|
14011
14145
|
}
|
|
@@ -14244,11 +14378,11 @@ var claimRequest;
|
|
|
14244
14378
|
var CONFLICT_RETRIES = 8;
|
|
14245
14379
|
function load(path) {
|
|
14246
14380
|
const text2 = planIO().read(path);
|
|
14247
|
-
readRevisions.set(
|
|
14381
|
+
readRevisions.set(resolve7(path), revisionOf(text2));
|
|
14248
14382
|
return fromJSON(text2);
|
|
14249
14383
|
}
|
|
14250
14384
|
function save(path, p) {
|
|
14251
|
-
const expected = readRevisions.has(
|
|
14385
|
+
const expected = readRevisions.has(resolve7(path)) ? readRevisions.get(resolve7(path)) : null;
|
|
14252
14386
|
const normalized = normalizePortNames(p).project;
|
|
14253
14387
|
let text2 = toJSON(normalized) + "\n";
|
|
14254
14388
|
const warnings = [];
|
|
@@ -14258,12 +14392,12 @@ function save(path, p) {
|
|
|
14258
14392
|
return text2;
|
|
14259
14393
|
} });
|
|
14260
14394
|
for (const warning of warnings) out(warning);
|
|
14261
|
-
readRevisions.set(
|
|
14395
|
+
readRevisions.set(resolve7(path), revision);
|
|
14262
14396
|
lastSavedText = text2;
|
|
14263
14397
|
}
|
|
14264
14398
|
function writeExport(target, text2) {
|
|
14265
14399
|
let guarded = false;
|
|
14266
|
-
if (
|
|
14400
|
+
if (existsSync14(target)) {
|
|
14267
14401
|
try {
|
|
14268
14402
|
guarded = claimsEnabled(fromJSON(readFileSync14(target, "utf8")));
|
|
14269
14403
|
} catch {
|
|
@@ -14471,7 +14605,7 @@ boxglow CLI: AI \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8 (Claude Code / Codex \u306A
|
|
|
14471
14605
|
branch --box <block> --add-option <\u9053> / --remove-option <\u9053> \u5206\u5C90\u306E\u9053 (\u9078\u629E\u80A2) \u3092\u8DB3\u3059 / \u6D88\u3059 (\u7B54\u3048\u305F\u5F8C\u3082\u3067\u304D\u308B)
|
|
14472
14606
|
join [--title <\u984C\u540D>] [--parent <block>] \u5408\u6D41\u306E\u90E8\u54C1\u3092\u8DB3\u3059 (\u5206\u304B\u308C\u305F\u9053\u3092 1 \u3064\u306B\u307E\u3068\u3081\u308B\u3002\u9053\u306E\u51FA\u529B\u3092 connect \u3067\u3064\u306A\u3050\u3068\u3001\u3069\u308C\u304B 1 \u3064\u304C\u5C4A\u3051\u3070\u5148\u3078\u9032\u3080)
|
|
14473
14607
|
move <block> --parent <block|project> \u30DC\u30C3\u30AF\u30B9\u3092\u5225\u306E\u89AA\u306E\u4E2D\u3078\u79FB\u3059 (\u7DDA\u306F\u9593\u306E\u30DC\u30C3\u30AF\u30B9\u306E\u30DD\u30FC\u30C8\u3092\u7D4C\u7531\u3057\u3066\u3064\u306A\u304C\u3063\u305F\u307E\u307E)
|
|
14474
|
-
port <block|project|inputs> [--in <\u540D\u524D>]... [--out <\u540D\u524D>]... [--remove <\u540D\u524D>]... [--policy <\u51FA\u529B\u540D> [--policy-scope all|<block>] [--advisory]]... [--no-policy <\u51FA\u529B\u540D>]... [--skip-policy <\u7BB1>.<\u51FA\u529B\u540D>]... [--expect "<\u51FA\u529B\u540D>=<kind>:<hint>"]... [--self <\u51FA\u529B\u540D>]... [--no-self <\u51FA\u529B\u540D>]... [--rename <\u65E7\u540D>=<\u65B0\u540D>] [--optional <\u5165\u529B\u540D>]... [--required <\u5165\u529B\u540D>]... [--describe "<\u540D\u524D>=<\u8AAC\u660E>"]... [--any-of <\u5165\u529B\u540D>]... [--all-of <\u5165\u529B\u540D>]... \u65E2\u5B58\u306E\u30DC\u30C3\u30AF\u30B9\u306B\u5165\u529B / \u51FA\u529B\u3092\u8DB3\u3059\u3001\u6D88\u3059 (\u5165\u529B\u3092\u6D88\u3059\u3068\u4F7F\u3046\u7BB1\u306E\u5165\u529B\u3082\u6D88\u3048\u308B)\u3001\u540D\u524D\u3092\u5909\u3048\u308B\u3002--any-of \u3067\u5408\u6D41\u306E\u5165\u529B (\u3069\u308C\u304B 1 \u3064\u304C\u5C4A\u3051\u3070\u3088\u3044) \u306B\u3059\u308B (project = \u6700\u521D\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u3001inputs = \u6700\u4E0A\u4F4D\u306E\u5165\u529B)
|
|
14608
|
+
port <block|project|inputs> [--in <\u540D\u524D>]... [--out <\u540D\u524D>]... [--remove <\u540D\u524D>]... [--policy <\u51FA\u529B\u540D> [--policy-scope all|<block>] [--advisory]]... [--no-policy <\u51FA\u529B\u540D>]... [--skip-policy <\u7BB1>.<\u51FA\u529B\u540D>]... [--expect "<\u51FA\u529B\u540D>=<kind>:<hint>"]... [--self <\u51FA\u529B\u540D>]... [--no-self <\u51FA\u529B\u540D>]... [--rename <\u65E7\u540D>=<\u65B0\u540D>] [--optional <\u5165\u529B\u540D>]... [--required <\u5165\u529B\u540D>]... [--accept-draft <\u5165\u529B\u540D>]... [--no-accept-draft <\u5165\u529B\u540D>]... [--describe "<\u540D\u524D>=<\u8AAC\u660E>"]... [--any-of <\u5165\u529B\u540D>]... [--all-of <\u5165\u529B\u540D>]... \u65E2\u5B58\u306E\u30DC\u30C3\u30AF\u30B9\u306B\u5165\u529B / \u51FA\u529B\u3092\u8DB3\u3059\u3001\u6D88\u3059 (\u5165\u529B\u3092\u6D88\u3059\u3068\u4F7F\u3046\u7BB1\u306E\u5165\u529B\u3082\u6D88\u3048\u308B)\u3001\u540D\u524D\u3092\u5909\u3048\u308B\u3002--any-of \u3067\u5408\u6D41\u306E\u5165\u529B (\u3069\u308C\u304B 1 \u3064\u304C\u5C4A\u3051\u3070\u3088\u3044) \u306B\u3059\u308B (project = \u6700\u521D\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u3001inputs = \u6700\u4E0A\u4F4D\u306E\u5165\u529B)
|
|
14475
14609
|
disconnect <\u984C\u540D.\u51FA\u529B\u540D> <\u984C\u540D.\u5165\u529B\u540D> \u7DDA\u3092\u5916\u3059
|
|
14476
14610
|
tidy \u30D5\u30A1\u30A4\u30EB\u3092\u898F\u5247\u306B\u305D\u308D\u3048\u3066\u4FDD\u5B58\u3057\u76F4\u3059 (\u7DDA\u3067\u3064\u306A\u304C\u308B\u5165\u51FA\u529B\u306E\u540D\u524D\u3092\u305D\u308D\u3048\u308B\u3001\u91CD\u306A\u308A\u3092\u89E3\u304F)
|
|
14477
14611
|
remove <block> [--force] \u30DC\u30C3\u30AF\u30B9\u3092\u6D88\u3059 (\u4E2D\u306B\u30DC\u30C3\u30AF\u30B9\u304C\u3042\u308B\u3068\u304D\u30FB\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u306F --force\u3002\u6700\u5F8C\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30DC\u30C3\u30AF\u30B9\u306F\u6D88\u305B\u306A\u3044\u3002\u4E2D\u306B\u30DC\u30C3\u30AF\u30B9\u304C\u3042\u308B\u3068\u304D\u306F --force\u3002\u7DDA\u3082\u5916\u308C\u308B\u3002\u5143\u306B\u623B\u305B\u306A\u3044\u306E\u3067 Git \u3067\u7BA1\u7406\u3057\u3066\u3044\u308B\u3053\u3068)
|
|
@@ -14484,7 +14618,8 @@ boxglow CLI: AI \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8 (Claude Code / Codex \u306A
|
|
|
14484
14618
|
\u8981\u5177\u4F53\u5316 (\u81EA\u8EAB\u304C\u4F5C\u308B\u51FA\u529B\u304C\u7121\u3044\u3001\u51FA\u529B\u306E\u4E88\u5B9A\u6210\u679C\u7269 expect\u30FB\u5B8C\u4E86\u6761\u4EF6 acceptance \u304C\u672A\u5B9A) \u3082\u65E2\u5B9A\u306F\u8B66\u544A (policy --unprepared reject \u3067 AI \u306F\u958B\u59CB\u4E0D\u53EF\u3002\u7406\u7531\u3067\u306F\u901A\u308C\u306A\u3044)
|
|
14485
14619
|
done <block> [--artifact <\u984C\u540D>=<URL \u307E\u305F\u306F\u30D1\u30B9>]... [--output <\u51FA\u529B\u540D>] [--note] [--checked <\u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C>] [--not-checked <\u672A\u5B9F\u65BD>] [--limits <\u6B8B\u308B\u5236\u9650>] \u5B8C\u4E86 (\u6210\u679C\u7269\u3092\u4ED8\u3051\u3066 white)
|
|
14486
14620
|
\u30D1\u30B9\u304C Git \u7BA1\u7406\u4E0B\u306A\u3089\u300C\u30B3\u30DF\u30C3\u30C8 + \u30D1\u30B9 + blob\u300D\u3067\u8A18\u9332\u3059\u308B (\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u306A\u3044)\u3002--checked \u4EE5\u4E0B\u306F\u691C\u67FB\u7D50\u679C\u3068\u3057\u3066\u7BB1\u306B\u6B8B\u308B (context\u30FBshow \u306B\u51FA\u308B)
|
|
14487
|
-
artifact <block> <URL \u307E\u305F\u306F\u30D1\u30B9> [--title <\u984C\u540D>] [--output <\u51FA\u529B\u540D>] \u6210\u679C\u7269\u3060\u3051\u4ED8\u3051\u308B (\u5B8C\u4E86\u306B\u306F\u3057\u306A\u3044)
|
|
14621
|
+
artifact <block> <URL \u307E\u305F\u306F\u30D1\u30B9> [--title <\u984C\u540D>] [--output <\u51FA\u529B\u540D>] [--draft | --link] \u6210\u679C\u7269\u3060\u3051\u4ED8\u3051\u308B (\u5B8C\u4E86\u306B\u306F\u3057\u306A\u3044)\u3002--draft = \u4F5C\u6210\u4E2D (\u4F7F\u3046\u5074\u306F\u5F85\u3063\u305F\u307E\u307E\u3002\u5B8C\u4E86\u3067\u78BA\u5B9A)\u3001--link = \u51FA\u529B\u3067\u306F\u306A\u304F\u7BB1\u306E\u53C2\u8003\u8CC7\u6599\u306B\u4ED8\u3051\u308B
|
|
14622
|
+
artifact <block|inputs> --final <\u984C\u540D\u304B\u30D1\u30B9|all> \u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u3092\u78BA\u5B9A\u306B\u3059\u308B
|
|
14488
14623
|
artifact inputs <URL \u307E\u305F\u306F\u30D1\u30B9> [--input <\u5165\u529B\u540D>] [--title <\u984C\u540D>] \u8A08\u753B\u306E\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306B\u8CC7\u6599\u3092\u4ED8\u3051\u308B (\u5165\u529B\u304C 1 \u3064\u306A\u3089 --input \u306F\u7701\u7565\u53EF)
|
|
14489
14624
|
artifact <block|inputs> --remove <\u984C\u540D\u304B\u30D1\u30B9\u304B URL> [--output <\u51FA\u529B\u540D> | --input <\u5165\u529B\u540D>] \u4ED8\u3051\u305F\u6210\u679C\u7269\u30FB\u8CC7\u6599\u3092\u5916\u3059
|
|
14490
14625
|
check Git \u306E\u6210\u679C\u7269\u304C\u4ECA\u3082\u898B\u3064\u304B\u308B\u304B\u78BA\u8A8D\u3057\u3001\u79FB\u52D5\u3057\u3066\u3044\u308C\u3070\u30D1\u30B9\u3092\u4ED8\u3051\u66FF\u3048\u308B\u3002\u672A\u30B3\u30DF\u30C3\u30C8\u306E\u3068\u304D\u306B\u8A18\u9332\u3057\u305F\u6210\u679C\u7269\u306F\u3001\u30B3\u30DF\u30C3\u30C8\u6E08\u307F\u306B\u306A\u3063\u3066\u3044\u308C\u3070 Git \u306E\u53C2\u7167\u306B\u88DC\u5B8C\u3059\u308B
|
|
@@ -14597,7 +14732,7 @@ Usage (npx boxglow <command> ...):
|
|
|
14597
14732
|
branch --box <block> --add-option <path> / --remove-option <path> Add / remove a path (option) of a branch (also after it was answered)
|
|
14598
14733
|
join [--title <title>] [--parent <block>] Add a merge part (where paths come together; connect the paths' outputs to it, and any one of them arriving lets the work go on)
|
|
14599
14734
|
move <block> --parent <block|project> Move a box into another parent (wires stay connected through the ports of the boxes in between)
|
|
14600
|
-
port <block|project|inputs> [--in <name>]... [--out <name>]... [--remove <name>]... [--policy <output> [--policy-scope all|<block>] [--advisory]]... [--no-policy <output>]... [--skip-policy <box>.<output>]... [--expect "<output>=<kind>:<hint>"]... [--self <output>]... [--no-self <output>]... [--rename <old>=<new>] [--optional <input>]... [--required <input>]... [--describe "<name>=<description>"]... [--any-of <input>]... [--all-of <input>]... Add inputs / outputs to an existing box, remove them (removing an input also removes the inputs it feeds), rename them, set an output's planned deliverable (expect: kind file / dir / url / doc / note / decision / result + a path or title) or mark it as made by this box itself (--self). --any-of makes inputs a merge (any one of them is enough) (project = the first project box)
|
|
14735
|
+
port <block|project|inputs> [--in <name>]... [--out <name>]... [--remove <name>]... [--policy <output> [--policy-scope all|<block>] [--advisory]]... [--no-policy <output>]... [--skip-policy <box>.<output>]... [--expect "<output>=<kind>:<hint>"]... [--self <output>]... [--no-self <output>]... [--rename <old>=<new>] [--optional <input>]... [--required <input>]... [--accept-draft <input>]... [--no-accept-draft <input>]... [--describe "<name>=<description>"]... [--any-of <input>]... [--all-of <input>]... Add inputs / outputs to an existing box, remove them (removing an input also removes the inputs it feeds), rename them, set an output's planned deliverable (expect: kind file / dir / url / doc / note / decision / result + a path or title) or mark it as made by this box itself (--self). --any-of makes inputs a merge (any one of them is enough) (project = the first project box)
|
|
14601
14736
|
disconnect <title.output> <title.input> Remove a wire
|
|
14602
14737
|
tidy Normalize the file and save it again (give connected inputs and outputs one name, resolve overlaps)
|
|
14603
14738
|
remove <block> [--force] Delete a box (--force if it contains boxes or is a project box; the last project box cannot be deleted. Its wires are removed too. This cannot be undone, so keep the file in Git)
|
|
@@ -14610,7 +14745,8 @@ Usage (npx boxglow <command> ...):
|
|
|
14610
14745
|
A box that still needs detail (no output of its own, or an output without expect / acceptance) warns by default too (policy --unprepared reject blocks AI starts; a reason does not bypass it)
|
|
14611
14746
|
done <block> [--artifact <title>=<URL or path>]... [--output <output name>] [--note] [--checked <checks run and results>] [--not-checked <not tried>] [--limits <remaining limits>] Finish (attach artifacts and turn it white)
|
|
14612
14747
|
If the path is tracked by Git, it is recorded as "commit + path + blob" (nothing is uploaded). --checked etc. stay on the box as its verification (shown by context / show)
|
|
14613
|
-
artifact <block> <URL or path> [--title <title>] [--output <output name>] Attach an artifact only (does not finish the box)
|
|
14748
|
+
artifact <block> <URL or path> [--title <title>] [--output <output name>] [--draft | --link] Attach an artifact only (does not finish the box). --draft = work in progress (boxes using it keep waiting; finishing the box confirms it), --link = attach to the box's reference links instead of an output
|
|
14749
|
+
artifact <block|inputs> --final <title, path or all> Confirm a work-in-progress artifact
|
|
14614
14750
|
artifact inputs <URL or path> [--input <input name>] [--title <title>] Attach material to a top-level plan input (--input may be omitted when there is only one)
|
|
14615
14751
|
artifact <block|inputs> --remove <title, path or URL> [--output <output name> | --input <input name>] Remove an attached deliverable or material
|
|
14616
14752
|
check Check that Git artifacts can still be found, and update the path if they moved. Artifacts recorded while uncommitted become Git references once they are committed
|
|
@@ -14731,7 +14867,7 @@ function main(argv) {
|
|
|
14731
14867
|
if (cmd === "init") {
|
|
14732
14868
|
const path2 = locateFile(str2(options.file), true);
|
|
14733
14869
|
if (planIO().exists(path2) && !options.force) throw new Error(t("{path} \u306F\u65E2\u306B\u3042\u308A\u307E\u3059 (--force \u3067\u4E0A\u66F8\u304D)", { path: path2 }));
|
|
14734
|
-
readRevisions.set(
|
|
14870
|
+
readRevisions.set(resolve7(path2), existsSync14(path2) ? revisionOf(readFileSync14(path2, "utf8")) : null);
|
|
14735
14871
|
const lang = explicitLang(options) ?? envLang();
|
|
14736
14872
|
setLang(lang);
|
|
14737
14873
|
const from = str2(options.from);
|
|
@@ -14746,7 +14882,7 @@ function main(argv) {
|
|
|
14746
14882
|
if (!basePath || !oursPath || !theirsPath) throw new Error(t("merge <base> <ours> <theirs> \u306E 3 \u3064\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"));
|
|
14747
14883
|
const read2 = (f) => {
|
|
14748
14884
|
const text2 = readFileSync14(f, "utf8");
|
|
14749
|
-
readRevisions.set(
|
|
14885
|
+
readRevisions.set(resolve7(f), revisionOf(text2));
|
|
14750
14886
|
return text2.trim() ? fromJSON(text2) : null;
|
|
14751
14887
|
};
|
|
14752
14888
|
const base = read2(basePath);
|
|
@@ -14763,7 +14899,7 @@ function main(argv) {
|
|
|
14763
14899
|
const message = kept.includes(c) ? t("\u30DE\u30FC\u30B8\u3067\u7247\u65B9\u304C\u524A\u9664\u30FB\u7247\u65B9\u304C\u5909\u66F4: {path} (\u5909\u66F4\u3055\u308C\u305F\u5074\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u305F\u5074: {side})", { path: c.path, side: c.ours === void 0 ? t("\u81EA\u5206") : t("\u76F8\u624B") }) : t("\u30DE\u30FC\u30B8\u3067\u4E21\u5074\u304C\u5909\u66F4: {path} (\u63A1\u7528: {ours} / \u76F8\u624B: {theirs})", { path: c.path, ours: JSON.stringify(c.ours), theirs: JSON.stringify(c.theirs) });
|
|
14764
14900
|
q = { ...q, log: [...q.log, { id: `m${Math.random().toString(36).slice(2, 10)}`, at: (/* @__PURE__ */ new Date()).toISOString(), actor: "merge", kind: "note", message }] };
|
|
14765
14901
|
}
|
|
14766
|
-
commitFile(oursPath, toJSON(q) + "\n", readRevisions.get(
|
|
14902
|
+
commitFile(oursPath, toJSON(q) + "\n", readRevisions.get(resolve7(oursPath)));
|
|
14767
14903
|
const both = r.conflicts.length - kept.length;
|
|
14768
14904
|
out(
|
|
14769
14905
|
t("\u30DE\u30FC\u30B8: \u76F8\u624B\u306E\u5909\u66F4 {count} \u4EF6\u3092\u53D6\u308A\u8FBC\u307F", { count: r.merged }) + (both ? t("\u3001\u4E21\u5074\u3067\u5909\u66F4\u304C {count} \u4EF6 (\u81EA\u5206\u306E\u5024\u3092\u63A1\u7528\u3057\u3001\u76F8\u624B\u306E\u5024\u306F\u30ED\u30B0\u306B\u8A18\u9332)", { count: both }) : "") + (kept.length ? t("\u3001\u524A\u9664\u3068\u5909\u66F4\u306E\u7AF6\u5408\u304C {count} \u4EF6 (\u5909\u66F4\u3055\u308C\u305F\u5074\u3092\u6B8B\u3057\u3001\u30ED\u30B0\u306B\u8A18\u9332)", { count: kept.length }) : "")
|
|
@@ -15021,7 +15157,7 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15021
15157
|
return;
|
|
15022
15158
|
}
|
|
15023
15159
|
case "setup-agent": {
|
|
15024
|
-
const root = str2(options.dir) ?
|
|
15160
|
+
const root = str2(options.dir) ? resolve7(str2(options.dir)) : dirname11(path);
|
|
15025
15161
|
const agent = str2(options.agent) ?? "all";
|
|
15026
15162
|
if (options.check) {
|
|
15027
15163
|
out(checkAgentSetup(root, agent).join("\n"));
|
|
@@ -15154,10 +15290,10 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15154
15290
|
return;
|
|
15155
15291
|
}
|
|
15156
15292
|
case "git-setup": {
|
|
15157
|
-
const root =
|
|
15158
|
-
const attrs =
|
|
15293
|
+
const root = dirname11(path);
|
|
15294
|
+
const attrs = join13(root, ".gitattributes");
|
|
15159
15295
|
const line = "boxglow.json merge=boxglow";
|
|
15160
|
-
const cur =
|
|
15296
|
+
const cur = existsSync14(attrs) ? readFileSync14(attrs, "utf8") : "";
|
|
15161
15297
|
if (!cur.split(/\r?\n/).includes(line)) writeFileSync8(attrs, (cur && !cur.endsWith("\n") ? cur + "\n" : cur) + line + "\n", "utf8");
|
|
15162
15298
|
execFileSync3("git", ["config", "merge.boxglow.name", "Boxglow plan merge (box level)"], { cwd: root });
|
|
15163
15299
|
execFileSync3("git", ["config", "merge.boxglow.driver", "npx boxglow merge %O %A %B"], { cwd: root });
|
|
@@ -15371,6 +15507,14 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15371
15507
|
added.push(required ? t("\u5FC5\u9808 {name}", { name }) : t("\u4EFB\u610F {name}", { name }));
|
|
15372
15508
|
}
|
|
15373
15509
|
}
|
|
15510
|
+
for (const [flag, on] of [["accept-draft", true], ["no-accept-draft", false]]) {
|
|
15511
|
+
for (const name of list(options[flag])) {
|
|
15512
|
+
const port2 = portsOf(p, blockId, "in").find((x) => x.name === name);
|
|
15513
|
+
if (!port2) throw new Error(t("\u5165\u529B\u300C{name}\u300D\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093", { name }));
|
|
15514
|
+
p = updatePort(p, port2.id, { acceptDraft: on ? true : void 0 });
|
|
15515
|
+
added.push(on ? t("\u4F5C\u6210\u4E2D\u3067\u7740\u624B\u53EF {name}", { name }) : t("\u78BA\u5B9A\u3092\u5F85\u3064 {name}", { name }));
|
|
15516
|
+
}
|
|
15517
|
+
}
|
|
15374
15518
|
for (const spec of list(options.describe)) {
|
|
15375
15519
|
const eq = spec.indexOf("=");
|
|
15376
15520
|
if (eq < 0) throw new Error(t("--describe \u306F <\u540D\u524D>=<\u8AAC\u660E> \u306E\u5F62\u3067\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: {spec}", { spec }));
|
|
@@ -15383,7 +15527,7 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15383
15527
|
p = updatePort(p, hits[0].id, { description: spec.slice(eq + 1) });
|
|
15384
15528
|
added.push(t("\u8AAC\u660E {name}", { name }));
|
|
15385
15529
|
}
|
|
15386
|
-
if (added.length === 0) throw new Error(t("--in <\u540D\u524D> / --out <\u540D\u524D> / --remove <\u540D\u524D> / --policy <\u51FA\u529B\u540D> / --expect <\u51FA\u529B\u540D>=<kind>:<hint> / --self <\u51FA\u529B\u540D> / --rename <\u65E7\u540D>=<\u65B0\u540D> / --any-of <\u5165\u529B\u540D> / --all-of <\u5165\u529B\u540D> / --optional <\u5165\u529B\u540D> / --required <\u5165\u529B\u540D> / --describe <\u540D\u524D>=<\u8AAC\u660E> \u306E\u3044\u305A\u308C\u304B\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"));
|
|
15530
|
+
if (added.length === 0) throw new Error(t("--in <\u540D\u524D> / --out <\u540D\u524D> / --remove <\u540D\u524D> / --policy <\u51FA\u529B\u540D> / --expect <\u51FA\u529B\u540D>=<kind>:<hint> / --self <\u51FA\u529B\u540D> / --rename <\u65E7\u540D>=<\u65B0\u540D> / --any-of <\u5165\u529B\u540D> / --all-of <\u5165\u529B\u540D> / --optional <\u5165\u529B\u540D> / --required <\u5165\u529B\u540D> / --describe <\u540D\u524D>=<\u8AAC\u660E> / --accept-draft <\u5165\u529B\u540D> \u306E\u3044\u305A\u308C\u304B\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"));
|
|
15387
15531
|
save(path, p);
|
|
15388
15532
|
out(t("\u30DD\u30FC\u30C8: {title}: {list}", { title: p.blocks[blockId]?.title ?? "project", list: added.join(", ") }));
|
|
15389
15533
|
return;
|
|
@@ -15513,10 +15657,12 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15513
15657
|
if (check.error) throw new Error(check.error);
|
|
15514
15658
|
const checked = str2(options.checked), notChecked = str2(options["not-checked"]), limits = str2(options.limits);
|
|
15515
15659
|
const verification = checked || notChecked || limits ? { checked: checked ?? "", ...notChecked ? { notChecked } : {}, ...limits ? { limits } : {}, at: (/* @__PURE__ */ new Date()).toISOString(), by: actor } : void 0;
|
|
15660
|
+
const drafts = portsOf(p, b.id, "out").reduce((n, o) => n + o.artifacts.filter((a) => a.draft).length, 0);
|
|
15516
15661
|
const r = finishBlock(p, b.id, actor, { artifacts, outputName: str2(options.output), note: str2(options.note), verification });
|
|
15517
15662
|
if (r.error) throw new Error(r.error);
|
|
15518
15663
|
save(path, setNow(r.project, b.id, actor, false));
|
|
15519
15664
|
out(t("\u5B8C\u4E86: \u300C{title}\u300D", { title: b.title }) + `${artifacts.length ? t(" \u6210\u679C\u7269: ") + artifacts.map((a) => a.title + (a.kind === "git" ? ` (git ${a.path} @ ${(a.commit ?? "").slice(0, 7)})` : "")).join(", ") : ""}`);
|
|
15665
|
+
if (drafts > 0) out(t("\u4F5C\u6210\u4E2D\u3060\u3063\u305F\u8CC7\u6599 {count} \u4EF6\u3092\u78BA\u5B9A\u306B\u3057\u307E\u3057\u305F", { count: drafts }));
|
|
15520
15666
|
if (check.warning) out(check.warning);
|
|
15521
15667
|
if (!verification && !isHumanActor(actor)) out(t('\u691C\u67FB\u7D50\u679C\u304C\u4ED8\u3044\u3066\u3044\u307E\u305B\u3093\u3002--checked "<\u5B9F\u884C\u3057\u305F\u691C\u67FB\u3068\u7D50\u679C>" (\u5FC5\u8981\u306A\u3089 --not-checked / --limits) \u3067\u6B8B\u3059\u3068\u3001\u4EBA\u304C\u5F8C\u304B\u3089\u78BA\u304B\u3081\u3089\u308C\u307E\u3059'));
|
|
15522
15668
|
const reminder = descriptionReminder(r.project.blocks[b.id]);
|
|
@@ -15524,6 +15670,22 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15524
15670
|
return;
|
|
15525
15671
|
}
|
|
15526
15672
|
case "artifact": {
|
|
15673
|
+
if (options.final !== void 0) {
|
|
15674
|
+
const key = str2(options.final) ?? "all";
|
|
15675
|
+
const inputs = isInputsRef(rest[0]);
|
|
15676
|
+
const ports = inputs ? portsOf(p, ROOT_ID, "in") : portsOf(p, mustFind(p, rest[0]).id, "out");
|
|
15677
|
+
const match = (a2) => !!a2.draft && (key === "all" || a2.title === key || a2.url === key || a2.path === key);
|
|
15678
|
+
const hit = ports.filter((x) => x.artifacts.some(match));
|
|
15679
|
+
if (hit.length === 0) throw new Error(t("\u4F5C\u6210\u4E2D\u306E\u8CC7\u6599\u300C{key}\u300D\u306F\u3042\u308A\u307E\u305B\u3093 ({list})", { key, list: ports.flatMap((x) => x.artifacts.filter((a2) => a2.draft).map((a2) => `${x.name}: ${a2.title}`)).join(", ") || "-" }));
|
|
15680
|
+
const names = [];
|
|
15681
|
+
for (const port2 of hit) {
|
|
15682
|
+
names.push(...port2.artifacts.filter(match).map((a2) => a2.title));
|
|
15683
|
+
p = updatePort(p, port2.id, { artifacts: port2.artifacts.map((a2) => match(a2) ? { ...a2, draft: void 0 } : a2) });
|
|
15684
|
+
}
|
|
15685
|
+
save(path, p);
|
|
15686
|
+
out(t("\u78BA\u5B9A\u306B\u3057\u307E\u3057\u305F: {list}", { list: names.join(", ") }));
|
|
15687
|
+
return;
|
|
15688
|
+
}
|
|
15527
15689
|
if (options.remove !== void 0) {
|
|
15528
15690
|
const key = str2(options.remove);
|
|
15529
15691
|
if (!key) throw new Error(t("--remove <\u984C\u540D\u304B\u30D1\u30B9\u304B URL> \u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"));
|
|
@@ -15544,19 +15706,26 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15544
15706
|
const target2 = name ? ins.find((x) => x.name === name) : ins.length === 1 ? ins[0] : void 0;
|
|
15545
15707
|
if (!target2) throw new Error(name ? t("\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u300C{name}\u300D\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093 ({list})", { name, list: ins.map((x) => x.name).join(", ") }) : t("\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u304C\u8907\u6570\u3042\u308A\u307E\u3059\u3002--input <\u5165\u529B\u540D> \u3067\u9078\u3093\u3067\u304F\u3060\u3055\u3044 ({list})", { list: ins.map((x) => x.name).join(", ") }));
|
|
15546
15708
|
const a2 = artifactFrom(rest[1], str2(options.title));
|
|
15709
|
+
if (options.draft) a2.draft = true;
|
|
15547
15710
|
save(path, updatePort(p, target2.id, { artifacts: [...target2.artifacts, a2] }));
|
|
15548
|
-
out(t("\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306B\u8CC7\u6599\u3092\u4ED8\u3051\u307E\u3057\u305F: \u300C{port}\u300D <- {artifact}", { port: target2.name, artifact: a2.title }) + `${a2.kind === "git" ? ` (git ${a2.path} @ ${(a2.commit ?? "").slice(0, 7)})` : ""}`);
|
|
15711
|
+
out(t("\u6700\u4E0A\u4F4D\u306E\u5165\u529B\u306B\u8CC7\u6599\u3092\u4ED8\u3051\u307E\u3057\u305F: \u300C{port}\u300D <- {artifact}", { port: target2.name, artifact: a2.title }) + `${a2.kind === "git" ? ` (git ${a2.path} @ ${(a2.commit ?? "").slice(0, 7)})` : ""}` + (a2.draft ? t(" (\u4F5C\u6210\u4E2D)") : ""));
|
|
15549
15712
|
return;
|
|
15550
15713
|
}
|
|
15551
15714
|
const b = mustFind(p, rest[0]);
|
|
15552
15715
|
p = ackDecisions(p, b.id, actor);
|
|
15553
15716
|
if (!rest[1]) throw new Error(t("<URL \u307E\u305F\u306F\u30D1\u30B9> \u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"));
|
|
15554
15717
|
const a = artifactFrom(rest[1], str2(options.title));
|
|
15718
|
+
if (options.link) {
|
|
15719
|
+
save(path, updateBlock(p, b.id, { artifacts: [...b.artifacts, a] }));
|
|
15720
|
+
out(t("\u53C2\u8003\u8CC7\u6599\u3092\u4ED8\u3051\u307E\u3057\u305F: \u300C{title}\u300D <- {artifact}", { title: b.title, artifact: a.title }));
|
|
15721
|
+
return;
|
|
15722
|
+
}
|
|
15723
|
+
if (options.draft) a.draft = true;
|
|
15555
15724
|
const outs = portsOf(p, b.id, "out");
|
|
15556
15725
|
const target = str2(options.output) ? outs.find((o) => o.name === str2(options.output)) : outs[0];
|
|
15557
15726
|
if (!target) throw new Error(t("\u51FA\u529B\u30DD\u30FC\u30C8\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093"));
|
|
15558
15727
|
save(path, updatePort(p, target.id, { artifacts: [...target.artifacts, a] }));
|
|
15559
|
-
out(t("\u6210\u679C\u7269\u3092\u4ED8\u3051\u307E\u3057\u305F: \u300C{title}\u300D.{port} <- {artifact}", { title: b.title, port: target.name, artifact: a.title }) + `${a.kind === "git" ? ` (git ${a.path} @ ${(a.commit ?? "").slice(0, 7)})` : ""}`);
|
|
15728
|
+
out(t("\u6210\u679C\u7269\u3092\u4ED8\u3051\u307E\u3057\u305F: \u300C{title}\u300D.{port} <- {artifact}", { title: b.title, port: target.name, artifact: a.title }) + `${a.kind === "git" ? ` (git ${a.path} @ ${(a.commit ?? "").slice(0, 7)})` : ""}` + (a.draft ? t(" (\u4F5C\u6210\u4E2D\u3002\u4F7F\u3046\u5074\u306F\u5F85\u3063\u305F\u307E\u307E\u3002\u5B8C\u4E86\u304B --final \u3067\u78BA\u5B9A)") : ""));
|
|
15560
15729
|
return;
|
|
15561
15730
|
}
|
|
15562
15731
|
case "check": {
|
|
@@ -15566,7 +15735,7 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15566
15735
|
for (const a of port2.artifacts) {
|
|
15567
15736
|
const owner = p.blocks[port2.blockId]?.title ?? "?";
|
|
15568
15737
|
if (a.kind === "file" && a.path) {
|
|
15569
|
-
const ref = findGitRef(a.path, [
|
|
15738
|
+
const ref = findGitRef(a.path, [dirname11(path), process.cwd()]);
|
|
15570
15739
|
if (ref) {
|
|
15571
15740
|
a.kind = "git";
|
|
15572
15741
|
a.repo = ref.repo;
|
|
@@ -15583,7 +15752,7 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15583
15752
|
}
|
|
15584
15753
|
if (a.kind !== "git") continue;
|
|
15585
15754
|
if (!a.commit && a.path) {
|
|
15586
|
-
const ref = gitRefFor(
|
|
15755
|
+
const ref = gitRefFor(resolve7(dirname11(path), a.path));
|
|
15587
15756
|
if (ref?.commit) {
|
|
15588
15757
|
a.commit = ref.commit;
|
|
15589
15758
|
a.blob = ref.blob;
|
|
@@ -15595,7 +15764,7 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15595
15764
|
continue;
|
|
15596
15765
|
}
|
|
15597
15766
|
}
|
|
15598
|
-
const r = checkGitRef(a,
|
|
15767
|
+
const r = checkGitRef(a, dirname11(path));
|
|
15599
15768
|
if (r.state === "moved" && r.path) {
|
|
15600
15769
|
lines.push(t("- [\u79FB\u52D5] {owner}.{port} \u300C{title}\u300D {from} -> {to}", { owner, port: port2.name, title: a.title, from: String(a.path), to: r.path }));
|
|
15601
15770
|
a.path = r.path;
|
|
@@ -15759,7 +15928,7 @@ function runCommand(cmd, rest, options, actor, path, p, AGENTS_SNIPPET, SKILL_MD
|
|
|
15759
15928
|
function cliMain(argv) {
|
|
15760
15929
|
if (argv[0] === "mcp") {
|
|
15761
15930
|
const { options } = parseArgs(argv.slice(1));
|
|
15762
|
-
if (str2(options.file)) process.env.BOXGLOW_FILE =
|
|
15931
|
+
if (str2(options.file)) process.env.BOXGLOW_FILE = resolve7(str2(options.file));
|
|
15763
15932
|
if (str2(options.actor)) process.env.BOXGLOW_ACTOR = str2(options.actor);
|
|
15764
15933
|
if (str2(options.lang)) process.env.BOXGLOW_LANG = str2(options.lang);
|
|
15765
15934
|
const mcpFile = locateFile(str2(options.file));
|
|
@@ -15814,10 +15983,10 @@ function cliMain(argv) {
|
|
|
15814
15983
|
claimRequest = claimCommand("combine", void 0, options, actorOf(str2(options.actor), process.env));
|
|
15815
15984
|
const outPath = str2(options.out);
|
|
15816
15985
|
if (positional.length < 2 || !outPath) throw new Error("boxglow combine <\u8A08\u753B\u30D5\u30A1\u30A4\u30EB> <\u8A08\u753B\u30D5\u30A1\u30A4\u30EB>... --out <path>");
|
|
15817
|
-
if (
|
|
15986
|
+
if (existsSync14(outPath) && !options.force) throw new Error(t("{path} \u306F\u65E2\u306B\u3042\u308A\u307E\u3059 (--force \u3067\u4E0A\u66F8\u304D)", { path: outPath }));
|
|
15818
15987
|
let merged = load(positional[0]);
|
|
15819
15988
|
for (const file of positional.slice(1)) merged = combineProjects(merged, load(file), basename4(file));
|
|
15820
|
-
readRevisions.set(
|
|
15989
|
+
readRevisions.set(resolve7(outPath), existsSync14(outPath) ? revisionOf(readFileSync14(outPath, "utf8")) : null);
|
|
15821
15990
|
save(outPath, merged);
|
|
15822
15991
|
console.log(t("\u7D50\u5408: {n} \u500B\u306E\u8A08\u753B\u3092 {path} \u306B\u307E\u3068\u3081\u307E\u3057\u305F (\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u7BB1 {m} \u500B)", { n: String(positional.length), path: outPath, m: String(projectBlocks(merged).length) }));
|
|
15823
15992
|
} catch (e) {
|
|
@@ -15831,14 +16000,14 @@ function cliMain(argv) {
|
|
|
15831
16000
|
claimRequest = claimCommand("split-file", void 0, options, actorOf(str2(options.actor), process.env));
|
|
15832
16001
|
const outPath = str2(options.out);
|
|
15833
16002
|
if (!positional[0] || !outPath) throw new Error("boxglow split-file <\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u7BB1> --out <path> [--file <\u8A08\u753B>]");
|
|
15834
|
-
if (
|
|
16003
|
+
if (existsSync14(outPath) && !options.force) throw new Error(t("{path} \u306F\u65E2\u306B\u3042\u308A\u307E\u3059 (--force \u3067\u4E0A\u66F8\u304D)", { path: outPath }));
|
|
15835
16004
|
const path = locateFile(str2(options.file));
|
|
15836
16005
|
const p = load(path);
|
|
15837
16006
|
const found = findBlock(p, positional[0]);
|
|
15838
16007
|
if (!found.block) throw new Error(t("\u30D6\u30ED\u30C3\u30AF\u300C{ref}\u300D\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002", { ref: positional[0] }));
|
|
15839
16008
|
const box = found.block;
|
|
15840
16009
|
const { remaining, extracted } = splitProject(p, box.id, str2(options.name));
|
|
15841
|
-
readRevisions.set(
|
|
16010
|
+
readRevisions.set(resolve7(outPath), existsSync14(outPath) ? revisionOf(readFileSync14(outPath, "utf8")) : null);
|
|
15842
16011
|
save(outPath, extracted);
|
|
15843
16012
|
save(path, remaining);
|
|
15844
16013
|
console.log(t("\u5206\u5272: \u300C{title}\u300D\u3092 {out} \u306B\u5207\u308A\u51FA\u3057\u307E\u3057\u305F ({path} \u306B\u306F\u6B8B\u308A {m} \u500B\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u7BB1)", { title: box.title, out: outPath, path, m: String(projectBlocks(remaining).length) }));
|
|
@@ -15904,7 +16073,7 @@ function cliMain(argv) {
|
|
|
15904
16073
|
}
|
|
15905
16074
|
const command = positional[0] ?? "list";
|
|
15906
16075
|
const write = command === "connect" ? !(options["read-only"] === true || options["read-only"] === "true") : options.write === true || options.write === "true";
|
|
15907
|
-
process.exitCode = await runAgentToken({ server, out: (line) => console.log(line), command, name: str2(options.name), write, id: positional[1], target: command === "connect" ? positional[1] : void 0, projectId, dir: file ?
|
|
16076
|
+
process.exitCode = await runAgentToken({ server, out: (line) => console.log(line), command, name: str2(options.name), write, id: positional[1], target: command === "connect" ? positional[1] : void 0, projectId, dir: file ? dirname11(file) : process.cwd() });
|
|
15908
16077
|
})().catch((e) => {
|
|
15909
16078
|
console.error(`[boxglow agent-token] ${e instanceof Error ? e.message : String(e)}`);
|
|
15910
16079
|
process.exitCode = 1;
|