opencode-plugin-flow 4.3.3 → 4.3.4
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/CHANGELOG.md +18 -0
- package/README.md +3 -3
- package/dist/cli.js +262 -4
- package/dist/cli.js.map +3 -3
- package/dist/index.js +264 -4
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
One short entry per release, written for users deciding whether to upgrade.
|
|
4
4
|
|
|
5
|
+
## [4.3.4] - 2026-07-07
|
|
6
|
+
|
|
7
|
+
Planning and final-review lore sharpened without changing the runtime surface:
|
|
8
|
+
|
|
9
|
+
- `flow-plan` now has a pre-approval quality gate that checks outcome,
|
|
10
|
+
requirements, decisions, uncertainty, feature shape, bounded targets,
|
|
11
|
+
validation levels, dependencies, and review policy before a plan is saved or
|
|
12
|
+
approved.
|
|
13
|
+
- Planning examples now cover bugfix, UI/frontend, runtime/schema, docs-only,
|
|
14
|
+
audit-first, and stronger validation patterns, giving agents better few-shot
|
|
15
|
+
guidance for common Flow sessions.
|
|
16
|
+
- Final review now includes a convergence scan that traces the original goal,
|
|
17
|
+
approved requirements, every planned feature, changed artifacts, and
|
|
18
|
+
validation evidence before returning a passing `finalReview`.
|
|
19
|
+
- The new planning checklist is shipped through synced skills and bundled
|
|
20
|
+
`/flow-plan` and `/flow-auto` command instructions, so fresh and stale skill
|
|
21
|
+
discovery paths get the same guidance.
|
|
22
|
+
|
|
5
23
|
## [4.3.3] - 2026-07-07
|
|
6
24
|
|
|
7
25
|
Verification only — no behavior change:
|
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@ Full project documentation is available in the
|
|
|
17
17
|
## Quick start
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
opencode plugin opencode-plugin-flow@4.3.
|
|
21
|
-
npx -y opencode-plugin-flow@4.3.
|
|
20
|
+
opencode plugin opencode-plugin-flow@4.3.4 --global --force
|
|
21
|
+
npx -y opencode-plugin-flow@4.3.4 sync
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Restart OpenCode, then give Flow a goal:
|
|
@@ -135,7 +135,7 @@ To update a pinned Flow version, rerun the install command with the new
|
|
|
135
135
|
version. To inspect skill health:
|
|
136
136
|
|
|
137
137
|
```bash
|
|
138
|
-
npx -y opencode-plugin-flow@4.3.
|
|
138
|
+
npx -y opencode-plugin-flow@4.3.4 doctor
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
## Experimental: compaction context
|
package/dist/cli.js
CHANGED
|
@@ -845,6 +845,60 @@ Apply the manager synthesis barrier from
|
|
|
845
845
|
evidence-backed claims become plan fields.
|
|
846
846
|
`;
|
|
847
847
|
|
|
848
|
+
// skills/flow-plan/references/plan-quality-checklist.md
|
|
849
|
+
var plan_quality_checklist_default = `# Plan quality checklist
|
|
850
|
+
|
|
851
|
+
Use this checklist before \`flow_plan_save\` and again before approval if the plan
|
|
852
|
+
changed during discussion. The goal is not a long planning artifact; it is a
|
|
853
|
+
compact plan another agent can execute without rediscovering the work.
|
|
854
|
+
|
|
855
|
+
## Must pass
|
|
856
|
+
|
|
857
|
+
- Outcome: \`summary\` names the user-visible result, not an internal activity.
|
|
858
|
+
- Requirements: acceptance criteria, constraints, and non-goals that affect
|
|
859
|
+
implementation are captured in \`requirements\`.
|
|
860
|
+
- Decisions: assumptions, scope choices, and architecture choices already made
|
|
861
|
+
are captured in \`decisions\`.
|
|
862
|
+
- Uncertainty: specification uncertainty is resolved by a decision or a user
|
|
863
|
+
question; environment uncertainty is resolved by inspection, discovery, or a
|
|
864
|
+
first evidence-producing feature.
|
|
865
|
+
- Feature shape: each feature has one coherent outcome and can be reviewed on
|
|
866
|
+
its own.
|
|
867
|
+
- Targets: each feature names bounded files, modules, routes, commands, docs, or
|
|
868
|
+
generated surfaces. Whole-repo targets are allowed only for explicit broad
|
|
869
|
+
audits or final validation.
|
|
870
|
+
- Validation: each feature names expected check levels, such as targeted unit,
|
|
871
|
+
integration, browser/e2e, package/build, docs/static, cleanup preservation, or
|
|
872
|
+
broad project gate.
|
|
873
|
+
- Dependencies: \`dependsOn\` captures true ordering and avoids hidden dependency
|
|
874
|
+
chains.
|
|
875
|
+
- Review policy: \`finalReviewPolicy\` is \`detailed\` when the work changes
|
|
876
|
+
behavior, persistence, public contracts, security posture, release surfaces,
|
|
877
|
+
or multiple modules.
|
|
878
|
+
|
|
879
|
+
## Revise when you see this
|
|
880
|
+
|
|
881
|
+
- A feature title describes a step like "update files" instead of a result.
|
|
882
|
+
- A validation entry says only "manual testing" or "run tests".
|
|
883
|
+
- A feature has targets but no behavior or artifact that can be judged.
|
|
884
|
+
- A feature claims cleanup or simplification without an evidence-producing
|
|
885
|
+
audit or cited smell.
|
|
886
|
+
- A docs feature depends on behavior that is not yet implemented but lacks
|
|
887
|
+
\`dependsOn\`.
|
|
888
|
+
- A low-risk \`finalReviewPolicy: "broad"\` is used while the plan crosses runtime,
|
|
889
|
+
schema, persistence, security, or release boundaries.
|
|
890
|
+
|
|
891
|
+
## Approval summary
|
|
892
|
+
|
|
893
|
+
When presenting the plan for approval, include:
|
|
894
|
+
|
|
895
|
+
- The promised outcome.
|
|
896
|
+
- The feature order and any dependencies that matter.
|
|
897
|
+
- The main validation levels.
|
|
898
|
+
- Material assumptions in \`decisions\`.
|
|
899
|
+
- Any known gaps that remain intentional.
|
|
900
|
+
`;
|
|
901
|
+
|
|
848
902
|
// skills/flow-plan/references/planning-examples.md
|
|
849
903
|
var planning_examples_default = `# Planning examples
|
|
850
904
|
|
|
@@ -923,6 +977,164 @@ Better plan:
|
|
|
923
977
|
3. Add behavior-preservation tests for the changed service paths.
|
|
924
978
|
\`\`\`
|
|
925
979
|
|
|
980
|
+
## Bugfix plan
|
|
981
|
+
|
|
982
|
+
Human summary:
|
|
983
|
+
|
|
984
|
+
1. Reproduce and localize the failed password reset redirect.
|
|
985
|
+
2. Fix the redirect state handling and cover the regression.
|
|
986
|
+
3. Update release notes only if user-facing behavior changed.
|
|
987
|
+
|
|
988
|
+
Payload:
|
|
989
|
+
|
|
990
|
+
\`\`\`json
|
|
991
|
+
{
|
|
992
|
+
"goal": "Fix password reset links landing users on the wrong page",
|
|
993
|
+
"plan": {
|
|
994
|
+
"summary": "Password reset links land users on the intended reset confirmation flow.",
|
|
995
|
+
"overview": "Start with a focused reproduction, then fix the redirect state and update user-facing notes only if the behavior change needs documentation.",
|
|
996
|
+
"requirements": [
|
|
997
|
+
"Preserve existing token validation and expiry behavior.",
|
|
998
|
+
"Users with valid reset links should not be sent to the generic sign-in page before completing the reset."
|
|
999
|
+
],
|
|
1000
|
+
"decisions": [
|
|
1001
|
+
"Treat the current redirect mismatch as a regression until reproduction proves otherwise."
|
|
1002
|
+
],
|
|
1003
|
+
"finalReviewPolicy": "detailed",
|
|
1004
|
+
"features": [
|
|
1005
|
+
{
|
|
1006
|
+
"id": "reset-redirect-repro",
|
|
1007
|
+
"title": "Redirect reproduction",
|
|
1008
|
+
"summary": "Produce a failing focused check or trace that identifies where the reset redirect is lost.",
|
|
1009
|
+
"targets": ["src/auth/reset", "tests/auth"],
|
|
1010
|
+
"validation": ["targeted unit or integration reproduction for reset redirect behavior"],
|
|
1011
|
+
"dependsOn": []
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"id": "reset-redirect-fix",
|
|
1015
|
+
"title": "Redirect fix",
|
|
1016
|
+
"summary": "Preserve reset redirect state through token validation and completion.",
|
|
1017
|
+
"targets": ["src/auth/reset", "tests/auth"],
|
|
1018
|
+
"validation": ["targeted regression test passes", "auth package/build check if available"],
|
|
1019
|
+
"dependsOn": ["reset-redirect-repro"]
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"id": "reset-redirect-notes",
|
|
1023
|
+
"title": "User-facing notes",
|
|
1024
|
+
"summary": "Document the corrected reset-link behavior if release notes or help text mention the flow.",
|
|
1025
|
+
"targets": ["CHANGELOG.md", "docs/auth.md"],
|
|
1026
|
+
"validation": ["docs/static check if available", "review docs against implemented behavior"],
|
|
1027
|
+
"dependsOn": ["reset-redirect-fix"]
|
|
1028
|
+
}
|
|
1029
|
+
]
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
\`\`\`
|
|
1033
|
+
|
|
1034
|
+
## UI/frontend plan
|
|
1035
|
+
|
|
1036
|
+
Human summary:
|
|
1037
|
+
|
|
1038
|
+
1. Map the current checkout empty state and responsive constraints.
|
|
1039
|
+
2. Implement the empty state with accessible controls and mobile layout.
|
|
1040
|
+
3. Verify the visual states with screenshots or browser evidence.
|
|
1041
|
+
|
|
1042
|
+
Good feature outline:
|
|
1043
|
+
|
|
1044
|
+
\`\`\`text
|
|
1045
|
+
1. Empty-state discovery - inspect the route, component boundaries, design tokens, existing empty states, and likely responsive breakpoints.
|
|
1046
|
+
2. Empty-state implementation - add the checkout empty state, action wiring, focus order, and loading/error boundaries in the existing component style.
|
|
1047
|
+
3. Visual and interaction verification - capture desktop and mobile evidence, run available route/component checks, and fix overlap or accessibility regressions.
|
|
1048
|
+
\`\`\`
|
|
1049
|
+
|
|
1050
|
+
Why this is better than one "build UI" feature: the plan names the uncertain
|
|
1051
|
+
surface first, keeps implementation scoped to the route/components, and makes
|
|
1052
|
+
visual evidence part of completion rather than an afterthought.
|
|
1053
|
+
|
|
1054
|
+
## Runtime or schema plan
|
|
1055
|
+
|
|
1056
|
+
Human summary:
|
|
1057
|
+
|
|
1058
|
+
1. Introduce the schema change behind a backward-compatible parser.
|
|
1059
|
+
2. Migrate callers and persistence writes.
|
|
1060
|
+
3. Add compatibility validation and docs.
|
|
1061
|
+
|
|
1062
|
+
Good feature outline:
|
|
1063
|
+
|
|
1064
|
+
\`\`\`text
|
|
1065
|
+
1. Compatible schema reader - accept old and new session payloads, with targeted parser tests for both.
|
|
1066
|
+
2. New writer path - emit the new field from runtime transitions and update affected callers.
|
|
1067
|
+
3. Compatibility sweep - run persistence/workspace tests, update docs, and verify old sessions still recover.
|
|
1068
|
+
\`\`\`
|
|
1069
|
+
|
|
1070
|
+
Use \`finalReviewPolicy: "detailed"\` for this shape. Persistence and schema work
|
|
1071
|
+
usually has hidden downstream contracts, so feature validation should name both
|
|
1072
|
+
targeted parser checks and broader workspace/runtime gates.
|
|
1073
|
+
|
|
1074
|
+
## Docs-only plan
|
|
1075
|
+
|
|
1076
|
+
Docs-only work can use \`finalReviewPolicy: "broad"\` when it does not change
|
|
1077
|
+
commands, configuration, generated files, or release metadata.
|
|
1078
|
+
|
|
1079
|
+
Good feature outline:
|
|
1080
|
+
|
|
1081
|
+
\`\`\`text
|
|
1082
|
+
1. Align installation docs - update README and troubleshooting steps for the current setup flow.
|
|
1083
|
+
2. Verify commands and links - check documented commands against package scripts and make sure links/paths resolve.
|
|
1084
|
+
\`\`\`
|
|
1085
|
+
|
|
1086
|
+
Bad validation:
|
|
1087
|
+
|
|
1088
|
+
\`\`\`text
|
|
1089
|
+
validation: ["manual review"]
|
|
1090
|
+
\`\`\`
|
|
1091
|
+
|
|
1092
|
+
Better validation:
|
|
1093
|
+
|
|
1094
|
+
\`\`\`text
|
|
1095
|
+
validation: ["docs/static link and path review", "command examples checked against package scripts"]
|
|
1096
|
+
\`\`\`
|
|
1097
|
+
|
|
1098
|
+
## Audit-first and review-first plans
|
|
1099
|
+
|
|
1100
|
+
Use an evidence-producing first feature when the request asks to "review",
|
|
1101
|
+
"audit", "clean up", "modernize", or "improve" a broad area.
|
|
1102
|
+
|
|
1103
|
+
Good feature outline:
|
|
1104
|
+
|
|
1105
|
+
\`\`\`text
|
|
1106
|
+
1. Audit checkout state management - cite concrete findings with file:line evidence, refutation checks, severity, and recommended fix order.
|
|
1107
|
+
2. Fix confirmed high-impact state leak - only for findings that survived the audit.
|
|
1108
|
+
3. Regression validation - add or run checks covering the changed state paths.
|
|
1109
|
+
\`\`\`
|
|
1110
|
+
|
|
1111
|
+
Do not plan fixes for guessed findings. If the audit might find no actionable
|
|
1112
|
+
issue, say that in the first feature summary and make later features conditional
|
|
1113
|
+
on evidence.
|
|
1114
|
+
|
|
1115
|
+
## Validation examples
|
|
1116
|
+
|
|
1117
|
+
Weak:
|
|
1118
|
+
|
|
1119
|
+
\`\`\`text
|
|
1120
|
+
validation: ["run tests", "manual testing"]
|
|
1121
|
+
\`\`\`
|
|
1122
|
+
|
|
1123
|
+
Stronger:
|
|
1124
|
+
|
|
1125
|
+
\`\`\`text
|
|
1126
|
+
validation: [
|
|
1127
|
+
"targeted unit tests for empty and invalid input",
|
|
1128
|
+
"integration test for persisted session recovery",
|
|
1129
|
+
"package/build gate for changed TypeScript exports",
|
|
1130
|
+
"browser screenshot at desktop and mobile widths for layout-sensitive UI",
|
|
1131
|
+
"docs/static review for changed command examples"
|
|
1132
|
+
]
|
|
1133
|
+
\`\`\`
|
|
1134
|
+
|
|
1135
|
+
The stronger version says what level of evidence is expected and which behavior
|
|
1136
|
+
or surface it covers.
|
|
1137
|
+
|
|
926
1138
|
## Decomposition anti-patterns
|
|
927
1139
|
|
|
928
1140
|
- Feature per file when behavior crosses files.
|
|
@@ -1006,6 +1218,15 @@ Call \`flow_plan_save\` with:
|
|
|
1006
1218
|
|
|
1007
1219
|
Use only \`finalReviewPolicy: "broad"\` or \`"detailed"\`. These are the canonical final-review policy and \`reviewDepth\` enum values. Use \`"broad"\` only for low-risk, narrow work. Use \`"detailed"\` for behavioral changes, cross-module edits, migrations, releases, security-sensitive code, or large refactors.
|
|
1008
1220
|
|
|
1221
|
+
## Plan quality gate
|
|
1222
|
+
|
|
1223
|
+
Before saving or asking for approval, load
|
|
1224
|
+
\`references/plan-quality-checklist.md\` and check the draft against it. Revise the
|
|
1225
|
+
plan until it passes, or record the remaining gap in \`decisions\` when the gap is
|
|
1226
|
+
an intentional assumption. Do not approve a plan whose outcome, requirements,
|
|
1227
|
+
targets, validation, or dependency order are still too vague for another agent
|
|
1228
|
+
to execute.
|
|
1229
|
+
|
|
1009
1230
|
## Feature sizing
|
|
1010
1231
|
|
|
1011
1232
|
- Each feature should have one owner, one coherent outcome, and a validation story.
|
|
@@ -1021,7 +1242,8 @@ Use only \`finalReviewPolicy: "broad"\` or \`"detailed"\`. These are the canonic
|
|
|
1021
1242
|
|
|
1022
1243
|
After saving, summarize the plan to the user. Call \`flow_plan_approve\` only after explicit user approval, unless the user already authorized autonomous implementation. Approved plans are immutable; changing them later requires reset/closure rather than silent edits.
|
|
1023
1244
|
|
|
1024
|
-
See \`references/planning-examples.md\` for payload examples and decomposition
|
|
1245
|
+
See \`references/planning-examples.md\` for payload examples and decomposition
|
|
1246
|
+
anti-patterns.
|
|
1025
1247
|
`;
|
|
1026
1248
|
|
|
1027
1249
|
// skills/flow-review/references/review-rubric.md
|
|
@@ -1057,13 +1279,42 @@ If unsure whether a finding is real, read more or downgrade it. Do not promote g
|
|
|
1057
1279
|
|
|
1058
1280
|
## Final review checklist
|
|
1059
1281
|
|
|
1060
|
-
-
|
|
1061
|
-
-
|
|
1282
|
+
- The original goal is satisfied by the delivered behavior or artifacts.
|
|
1283
|
+
- Every approved requirement is either met or explicitly accounted for by an
|
|
1284
|
+
accepted gap.
|
|
1285
|
+
- Plan decisions and scope boundaries still match the implementation.
|
|
1286
|
+
- Every planned feature is complete, has recorded validation evidence, and
|
|
1287
|
+
contributes to the final outcome.
|
|
1288
|
+
- Feature dependencies were completed in an order that makes the evidence
|
|
1289
|
+
trustworthy.
|
|
1290
|
+
- Changed artifacts match the plan's \`targets\`; extra changed surfaces are
|
|
1291
|
+
explained and reviewed.
|
|
1292
|
+
- Broad validation ran and passed, or any skipped broad check is justified as a
|
|
1293
|
+
non-blocking gap.
|
|
1062
1294
|
- The final \`reviewDepth\` equals the approved \`finalReviewPolicy\`; the only final-review enum values are \`broad\` and \`detailed\`.
|
|
1063
1295
|
- Feature-level reviews have no unresolved blocking findings.
|
|
1064
1296
|
- Docs, commands, package metadata, and release surfaces match the delivered behavior.
|
|
1065
1297
|
- Remaining gaps are explicit and do not contradict \`kind: "completed"\`.
|
|
1066
1298
|
|
|
1299
|
+
## Final convergence scan
|
|
1300
|
+
|
|
1301
|
+
Run this scan before returning a passing \`finalReview\`:
|
|
1302
|
+
|
|
1303
|
+
1. Restate the original goal and the approved plan summary in your own words.
|
|
1304
|
+
2. Map each requirement to delivered evidence, validation output, or an explicit
|
|
1305
|
+
accepted gap.
|
|
1306
|
+
3. Walk every planned feature and confirm its completion evidence, review
|
|
1307
|
+
result, and validation level.
|
|
1308
|
+
4. Compare the changed files, docs, commands, generated surfaces, and package
|
|
1309
|
+
metadata to the planned targets and requirements.
|
|
1310
|
+
5. Check whether the validation evidence would have caught the main failure
|
|
1311
|
+
modes introduced by the work.
|
|
1312
|
+
6. Decide whether remaining gaps are advisory or blocking before setting
|
|
1313
|
+
\`status\`.
|
|
1314
|
+
|
|
1315
|
+
Fail the final review when the delivered work cannot be traced back to the
|
|
1316
|
+
approved goal and requirements, even if each individual feature review passed.
|
|
1317
|
+
|
|
1067
1318
|
## Payloads
|
|
1068
1319
|
|
|
1069
1320
|
Feature review:
|
|
@@ -1148,6 +1399,9 @@ These instructions run in two contexts, and only one of them can load helpers:
|
|
|
1148
1399
|
- Call \`flow_status\` when available.
|
|
1149
1400
|
- Identify whether this is a feature review or final review.
|
|
1150
1401
|
- Read the approved plan fields relevant to the work: \`requirements\`, \`decisions\`, feature \`targets\`, feature \`validation\`, and dependencies.
|
|
1402
|
+
- For final review, also compare the original goal, full feature list, completed
|
|
1403
|
+
feature evidence, changed artifacts, and final validation against the
|
|
1404
|
+
convergence checklist in \`references/review-rubric.md\`.
|
|
1151
1405
|
- Inspect the actual diff, changed files, tests, and validation output. Do not review only the completion summary.
|
|
1152
1406
|
- In manager context, load \`flow-test\` for validation-heavy,
|
|
1153
1407
|
regression-sensitive, browser QA, or unclear coverage reviews. If it is
|
|
@@ -1719,6 +1973,10 @@ var FLOW_SKILL_DEFINITIONS = [
|
|
|
1719
1973
|
relativePath: "references/planning-examples.md",
|
|
1720
1974
|
content: planning_examples_default
|
|
1721
1975
|
},
|
|
1976
|
+
{
|
|
1977
|
+
relativePath: "references/plan-quality-checklist.md",
|
|
1978
|
+
content: plan_quality_checklist_default
|
|
1979
|
+
},
|
|
1722
1980
|
{
|
|
1723
1981
|
relativePath: "references/parallel-discovery.md",
|
|
1724
1982
|
content: parallel_discovery_default
|
|
@@ -2335,4 +2593,4 @@ main(process.argv).catch((error) => {
|
|
|
2335
2593
|
process.exitCode = 1;
|
|
2336
2594
|
});
|
|
2337
2595
|
|
|
2338
|
-
//# debugId=
|
|
2596
|
+
//# debugId=FC1C55B9B975BD0964756E2164756E21
|
package/dist/cli.js.map
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"sources": ["../src/distribution/sync.ts", "../src/distribution/flow-skill-definitions.ts", "../src/cli.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import { createHash } from \"node:crypto\";\nimport { mkdir, readdir, readFile, rm, writeFile } from \"node:fs/promises\";\nimport { createRequire } from \"node:module\";\nimport { homedir } from \"node:os\";\nimport { dirname, join, normalize, sep } from \"node:path\";\nimport {\n\tFLOW_SKILL_DEFINITIONS,\n\ttype FlowSkillDefinition,\n} from \"./flow-skill-definitions\";\n\nconst MARKER_FILENAME = \".flow-skill-version\";\n\n// Matches the `<file>.backup.<12 hex>` names writeBackup creates, plus its\n// `.N` collision suffix, and captures the embedded content hash. writeBackup\n// names a backup after sha256(content).slice(0, 12), so the hash is a\n// self-describing checksum we can verify against the file's actual content.\nconst BACKUP_FILE_PATTERN = /\\.backup\\.([0-9a-f]{12})(?:\\.\\d+)?$/;\n\nfunction backupHashFromName(relativePath: string): string | null {\n\treturn BACKUP_FILE_PATTERN.exec(relativePath)?.[1] ?? null;\n}\n\n// A file is Flow-created backup residue only when its name matches the pattern\n// AND its content hashes to the embedded checksum. This distinguishes Flow's\n// own backups from an unrelated user file that merely happens to be named like\n// one (e.g. `db.backup.20240115abcd`), which must never be treated as\n// removable residue.\nasync function isFlowCreatedBackup(\n\tfolder: string,\n\trelativePath: string,\n): Promise<boolean> {\n\tconst namedHash = backupHashFromName(relativePath);\n\tif (!namedHash) return false;\n\tconst content = await optionalRead(resolveSkillFile(folder, relativePath));\n\tif (content === null) return false;\n\treturn sha256(content).slice(0, 12) === namedHash;\n}\n\nfunction normalizeNewlines(value: string): string {\n\treturn value.replace(/\\r\\n/g, \"\\n\");\n}\n\ntype FlowLog = (level: \"info\" | \"warn\" | \"error\", message: string) => void;\n\nexport type FlowSkillSyncAction =\n\t| \"installed\"\n\t| \"updated\"\n\t| \"updated_with_backup\"\n\t| \"marker_updated\"\n\t| \"unchanged\"\n\t| \"skipped_foreign\";\n\nexport type FlowSkillSyncResult = {\n\tname: string;\n\taction: FlowSkillSyncAction;\n\tbackupPaths?: string[];\n};\n\n// The sync actions that install or change on-disk skill content and therefore\n// require an OpenCode restart before the refreshed skills load.\nexport const CHANGED_SYNC_ACTIONS: readonly FlowSkillSyncAction[] = [\n\t\"installed\",\n\t\"updated\",\n\t\"updated_with_backup\",\n];\n\nexport function isChangedSyncAction(action: FlowSkillSyncAction): boolean {\n\treturn CHANGED_SYNC_ACTIONS.includes(action);\n}\n\nexport type FlowSkillSyncHealth = {\n\tstatus: \"ok\" | \"restart_required\" | \"action_required\" | \"error\";\n\tversion: string;\n\troot: string;\n\tcheckedAt: string;\n\texpectedSkills: string[];\n\tresults: FlowSkillSyncResult[];\n\tchangedSkills: string[];\n\tactionRequiredSkills: string[];\n\trestartRequired: boolean;\n\tsummary: string;\n\terror?: string;\n};\n\nexport type FlowSkillSetupStatus = {\n\tstatus: \"restart_required\" | \"action_required\" | \"sync_failed\";\n\tsummary: string;\n\tversion: string;\n\troot: string;\n\tchanged?: string[];\n\tactionRequired?: string[];\n\terror?: string;\n};\n\nexport type FlowSkillDoctorSkill = {\n\tname: string;\n\tpath: string;\n\tstatus: \"ok\" | \"missing\" | \"foreign\" | \"incomplete\" | \"edited\" | \"outdated\";\n\tmarkerVersion: string | null;\n\tmissingFiles: string[];\n\teditedFiles: string[];\n\toutdatedFiles: string[];\n\tbackupFiles: string[];\n};\n\nexport type FlowSkillDoctorReport = {\n\tstatus: \"ok\" | \"sync_required\" | \"action_required\";\n\tversion: string;\n\troot: string;\n\texpectedSkills: string[];\n\tskills: FlowSkillDoctorSkill[];\n\tsyncRequiredSkills: string[];\n\tactionRequiredSkills: string[];\n\tunmanagedFlowSkills: string[];\n};\n\nlet latestFlowSkillSyncHealth: FlowSkillSyncHealth | null = null;\n\nfunction homeDir(): string {\n\t// An empty or whitespace-only HOME/USERPROFILE must fall through to the OS\n\t// home dir; otherwise the skills root becomes a cwd-relative path and sync\n\t// writes into (and uninstall rm -rf's) the current directory.\n\tconst configured =\n\t\tprocess.env.HOME?.trim() || process.env.USERPROFILE?.trim();\n\treturn configured || homedir();\n}\n\nexport function resolveFlowSkillsRoot(home = homeDir()): string {\n\treturn join(home, \".config\", \"opencode\", \"skills\");\n}\n\nfunction sha256(value: string): string {\n\treturn createHash(\"sha256\").update(value).digest(\"hex\");\n}\n\nfunction markerFor(definition: FlowSkillDefinition, version: string): string {\n\treturn [\n\t\t`version=${version}`,\n\t\t...definition.files.map(\n\t\t\t(file) => `file=${file.relativePath} sha256=${sha256(file.content)}`,\n\t\t),\n\t\t\"\",\n\t].join(\"\\n\");\n}\n\nasync function optionalRead(path: string): Promise<string | null> {\n\ttry {\n\t\treturn await readFile(path, \"utf8\");\n\t} catch (error) {\n\t\tconst code = (error as NodeJS.ErrnoException).code;\n\t\t// ENOENT: nothing there. ENOTDIR: a path component is a regular file\n\t\t// (e.g. a plain `flow-notes.md` sitting in the skills root), so the\n\t\t// managed file cannot exist — both mean \"absent\", not a hard failure.\n\t\tif (code === \"ENOENT\" || code === \"ENOTDIR\") return null;\n\t\tthrow error;\n\t}\n}\n\nfunction parseMarkerFiles(content: string | null): Map<string, string> {\n\tconst files = new Map<string, string>();\n\tif (!content) return files;\n\tfor (const line of content.split(/\\r?\\n/)) {\n\t\tconst match =\n\t\t\t/^file=(.+) sha256=([a-f0-9]{64})$/.exec(line) ??\n\t\t\t/^file=(.+)=sha256:([a-f0-9]{64})$/.exec(line);\n\t\tif (match?.[1] && match[2]) files.set(match[1], match[2]);\n\t\tconst topLevelHash = /^hash=sha256:([a-f0-9]{64})$/.exec(line);\n\t\tif (topLevelHash?.[1] && !files.has(\"SKILL.md\")) {\n\t\t\tfiles.set(\"SKILL.md\", topLevelHash[1]);\n\t\t}\n\t}\n\treturn files;\n}\n\nfunction parseMarkerVersion(content: string | null): string | null {\n\tif (!content) return null;\n\tfor (const line of content.split(/\\r?\\n/)) {\n\t\tconst match = /^version=(.+)$/.exec(line);\n\t\tif (match?.[1]) return match[1];\n\t}\n\treturn null;\n}\n\nfunction resolveSkillFile(folder: string, relativePath: string): string {\n\tconst resolved = normalize(join(folder, ...relativePath.split(\"/\")));\n\tif (resolved !== folder && resolved.startsWith(`${folder}${sep}`)) {\n\t\treturn resolved;\n\t}\n\tthrow new Error(`Unsafe skill file path '${relativePath}'.`);\n}\n\nasync function writeBackup(path: string, content: string): Promise<string> {\n\tconst basePath = `${path}.backup.${sha256(content).slice(0, 12)}`;\n\tfor (let index = 0; ; index += 1) {\n\t\tconst backupPath = index === 0 ? basePath : `${basePath}.${index}`;\n\t\ttry {\n\t\t\tawait writeFile(backupPath, content, { encoding: \"utf8\", flag: \"wx\" });\n\t\t\treturn backupPath;\n\t\t} catch (error) {\n\t\t\tif ((error as NodeJS.ErrnoException).code === \"EEXIST\") continue;\n\t\t\tthrow error;\n\t\t}\n\t}\n}\n\nasync function syncSkill(\n\tdefinition: FlowSkillDefinition,\n\tversion: string,\n\troot: string,\n): Promise<FlowSkillSyncResult> {\n\tconst folder = join(root, definition.name);\n\tconst markerPath = join(folder, MARKER_FILENAME);\n\tconst markerContent = await optionalRead(markerPath);\n\tconst existingMarkerHashes = parseMarkerFiles(markerContent);\n\tif (markerContent === null) {\n\t\t// No Flow marker proving Flow created this folder: if any managed path\n\t\t// already holds user content, treat the whole folder as user-owned and\n\t\t// never overwrite it. Checking only SKILL.md would silently clobber a\n\t\t// user file at a nested managed path (e.g. references/handoff-format.md)\n\t\t// with no backup.\n\t\tfor (const file of definition.files) {\n\t\t\tconst existing = await optionalRead(\n\t\t\t\tresolveSkillFile(folder, file.relativePath),\n\t\t\t);\n\t\t\tif (existing !== null) {\n\t\t\t\treturn { name: definition.name, action: \"skipped_foreign\" as const };\n\t\t\t}\n\t\t}\n\t}\n\n\tlet changed = false;\n\tconst backupPaths: string[] = [];\n\tconst currentRelativePaths = new Set(\n\t\tdefinition.files.map((file) => file.relativePath),\n\t);\n\tfor (const file of definition.files) {\n\t\tconst path = resolveSkillFile(folder, file.relativePath);\n\t\tconst existing = await optionalRead(path);\n\t\tif (existing === file.content) continue;\n\t\tchanged = true;\n\t\tconst recordedHash = existingMarkerHashes.get(file.relativePath);\n\t\tconst userEdited =\n\t\t\texisting !== null &&\n\t\t\t(recordedHash\n\t\t\t\t? sha256(existing) !== recordedHash\n\t\t\t\t: markerContent !== null);\n\t\tif (userEdited) {\n\t\t\tbackupPaths.push(await writeBackup(path, existing));\n\t\t}\n\t}\n\tfor (const [relativePath, recordedHash] of existingMarkerHashes) {\n\t\tif (currentRelativePaths.has(relativePath)) continue;\n\t\tconst path = resolveSkillFile(folder, relativePath);\n\t\tconst existing = await optionalRead(path);\n\t\tif (existing === null) continue;\n\t\tchanged = true;\n\t\tif (sha256(existing) !== recordedHash) {\n\t\t\tbackupPaths.push(await writeBackup(path, existing));\n\t\t}\n\t\tawait rm(path, { force: true });\n\t}\n\n\tif (\n\t\t!changed &&\n\t\tmarkerContent !== null &&\n\t\tnormalizeNewlines(markerContent) === markerFor(definition, version)\n\t) {\n\t\treturn { name: definition.name, action: \"unchanged\" };\n\t}\n\n\tif (!changed) {\n\t\tawait writeFile(markerPath, markerFor(definition, version), \"utf8\");\n\t\treturn { name: definition.name, action: \"marker_updated\" };\n\t}\n\n\tconst managedSkillExists = markerContent !== null;\n\tfor (const file of definition.files) {\n\t\tconst path = resolveSkillFile(folder, file.relativePath);\n\t\tawait mkdir(dirname(path), { recursive: true });\n\t\tawait writeFile(path, file.content, \"utf8\");\n\t}\n\tawait writeFile(markerPath, markerFor(definition, version), \"utf8\");\n\treturn {\n\t\tname: definition.name,\n\t\taction:\n\t\t\tbackupPaths.length > 0\n\t\t\t\t? \"updated_with_backup\"\n\t\t\t\t: managedSkillExists\n\t\t\t\t\t? \"updated\"\n\t\t\t\t\t: \"installed\",\n\t\t...(backupPaths.length > 0 ? { backupPaths } : {}),\n\t};\n}\n\nfunction expectedSkillNames(): string[] {\n\treturn FLOW_SKILL_DEFINITIONS.map((definition) => definition.name);\n}\n\nfunction createHealth(\n\tversion: string,\n\troot: string,\n\tresults: FlowSkillSyncResult[],\n): FlowSkillSyncHealth {\n\tconst changedSkills = results\n\t\t.filter((result) => isChangedSyncAction(result.action))\n\t\t.map((result) => result.name);\n\tconst actionRequiredSkills = results\n\t\t.filter((result) => result.action === \"skipped_foreign\")\n\t\t.map((result) => result.name);\n\tconst status =\n\t\tactionRequiredSkills.length > 0\n\t\t\t? \"action_required\"\n\t\t\t: changedSkills.length > 0\n\t\t\t\t? \"restart_required\"\n\t\t\t\t: \"ok\";\n\tconst summaryParts: string[] = [];\n\tif (changedSkills.length > 0) {\n\t\tsummaryParts.push(\n\t\t\t`Flow installed or updated skills during this startup (${changedSkills.join(\", \")}). Restart OpenCode before loading Flow skills.`,\n\t\t);\n\t}\n\tif (actionRequiredSkills.length > 0) {\n\t\tsummaryParts.push(\n\t\t\t`Flow found user-owned skill folders for managed skills (${actionRequiredSkills.join(\", \")}). Run ${formatFlowDoctorCommand(version)} for repair guidance.`,\n\t\t);\n\t}\n\tconst summary =\n\t\tsummaryParts.length > 0\n\t\t\t? summaryParts.join(\" \")\n\t\t\t: \"Flow skills are synced.\";\n\treturn {\n\t\tstatus,\n\t\tversion,\n\t\troot,\n\t\tcheckedAt: new Date().toISOString(),\n\t\texpectedSkills: expectedSkillNames(),\n\t\tresults,\n\t\tchangedSkills,\n\t\tactionRequiredSkills,\n\t\trestartRequired: changedSkills.length > 0,\n\t\tsummary,\n\t};\n}\n\nfunction createErrorHealth(\n\tversion: string,\n\troot: string,\n\terror: unknown,\n): FlowSkillSyncHealth {\n\tconst message = error instanceof Error ? error.message : String(error);\n\treturn {\n\t\tstatus: \"error\",\n\t\tversion,\n\t\troot,\n\t\tcheckedAt: new Date().toISOString(),\n\t\texpectedSkills: expectedSkillNames(),\n\t\tresults: [],\n\t\tchangedSkills: [],\n\t\tactionRequiredSkills: [],\n\t\trestartRequired: false,\n\t\tsummary: `Flow skill sync failed: ${message}`,\n\t\terror: message,\n\t};\n}\n\nexport function getLatestFlowSkillSyncHealth(): FlowSkillSyncHealth | null {\n\treturn latestFlowSkillSyncHealth;\n}\n\nexport function formatFlowDoctorCommand(version: string): string {\n\tconst pin = version === \"0.0.0\" ? \"latest\" : version;\n\treturn `npx -y opencode-plugin-flow@${pin} doctor`;\n}\n\nexport function getFlowSkillSetupStatus(\n\thealth = latestFlowSkillSyncHealth,\n): FlowSkillSetupStatus | null {\n\tif (!health || health.status === \"ok\") return null;\n\tconst status = health.status === \"error\" ? \"sync_failed\" : health.status;\n\treturn {\n\t\tstatus,\n\t\tsummary: health.summary,\n\t\tversion: health.version,\n\t\troot: health.root,\n\t\t...(health.changedSkills.length > 0\n\t\t\t? { changed: health.changedSkills }\n\t\t\t: {}),\n\t\t...(health.actionRequiredSkills.length > 0\n\t\t\t? { actionRequired: health.actionRequiredSkills }\n\t\t\t: {}),\n\t\t...(health.error ? { error: health.error } : {}),\n\t};\n}\n\nexport function formatFlowSkillSetupWarning(\n\thealth = latestFlowSkillSyncHealth,\n): string | null {\n\tconst setup = getFlowSkillSetupStatus(health);\n\tif (!setup) return null;\n\treturn [\n\t\t\"Flow setup warning:\",\n\t\tsetup.summary,\n\t\t`Skills root: ${setup.root}`,\n\t\t`Use \\`${formatFlowDoctorCommand(setup.version)}\\` for details.`,\n\t].join(\"\\n\");\n}\n\nexport function resolveFlowPluginVersion(): string {\n\tif (process.env.npm_package_version) return process.env.npm_package_version;\n\ttry {\n\t\tconst require = createRequire(import.meta.url);\n\t\tfor (const path of [\"../package.json\", \"../../package.json\"]) {\n\t\t\ttry {\n\t\t\t\tconst manifest = require(path) as { version?: string };\n\t\t\t\tif (manifest.version) return manifest.version;\n\t\t\t} catch {\n\t\t\t\t// Try the next layout: source tree and bundled dist differ.\n\t\t\t}\n\t\t}\n\t} catch {\n\t\t// Fall through to sentinel.\n\t}\n\treturn \"0.0.0\";\n}\n\nexport async function syncFlowSkills(version: string, home = homeDir()) {\n\tconst root = resolveFlowSkillsRoot(home);\n\treturn Promise.all(\n\t\tFLOW_SKILL_DEFINITIONS.map((definition) =>\n\t\t\tsyncSkill(definition, version, root),\n\t\t),\n\t);\n}\n\nexport async function runFlowSkillSync(\n\tversion: string,\n\tlog: FlowLog,\n\thome = homeDir(),\n): Promise<void> {\n\tconst root = resolveFlowSkillsRoot(home);\n\ttry {\n\t\tconst results = await syncFlowSkills(version, home);\n\t\tlatestFlowSkillSyncHealth = createHealth(version, root, results);\n\t\tconst changed = results.filter((result) =>\n\t\t\tisChangedSyncAction(result.action),\n\t\t);\n\t\tif (changed.length > 0) {\n\t\t\tlog(\n\t\t\t\t\"info\",\n\t\t\t\t`Flow synced skills (${changed.map((item) => `${item.name}:${item.action}`).join(\", \")}). Restart OpenCode if skills were just installed.`,\n\t\t\t);\n\t\t}\n\t\tif (latestFlowSkillSyncHealth.status === \"action_required\") {\n\t\t\tlog(\"warn\", latestFlowSkillSyncHealth.summary);\n\t\t}\n\t} catch (error) {\n\t\tlatestFlowSkillSyncHealth = createErrorHealth(version, root, error);\n\t\tlog(\"warn\", latestFlowSkillSyncHealth.summary);\n\t}\n}\n\nexport async function inspectFlowSkillInstall(\n\tversion = resolveFlowPluginVersion(),\n\thome = homeDir(),\n): Promise<FlowSkillDoctorReport> {\n\tconst root = resolveFlowSkillsRoot(home);\n\tconst expected = new Set(expectedSkillNames());\n\tconst skills = await Promise.all(\n\t\tFLOW_SKILL_DEFINITIONS.map(async (definition) => {\n\t\t\tconst folder = join(root, definition.name);\n\t\t\tconst markerContent = await optionalRead(join(folder, MARKER_FILENAME));\n\t\t\tconst markerVersion = parseMarkerVersion(markerContent);\n\t\t\tconst markerHashes = parseMarkerFiles(markerContent);\n\t\t\tconst existingSkill = await optionalRead(join(folder, \"SKILL.md\"));\n\t\t\tconst backupFiles =\n\t\t\t\tmarkerContent === null ? [] : await listFlowBackupFiles(folder);\n\t\t\tif (existingSkill === null) {\n\t\t\t\treturn {\n\t\t\t\t\tname: definition.name,\n\t\t\t\t\tpath: folder,\n\t\t\t\t\tstatus: \"missing\" as const,\n\t\t\t\t\tmarkerVersion,\n\t\t\t\t\tmissingFiles: definition.files.map((file) => file.relativePath),\n\t\t\t\t\teditedFiles: [],\n\t\t\t\t\toutdatedFiles: [],\n\t\t\t\t\tbackupFiles,\n\t\t\t\t};\n\t\t\t}\n\t\t\tif (markerContent === null) {\n\t\t\t\treturn {\n\t\t\t\t\tname: definition.name,\n\t\t\t\t\tpath: folder,\n\t\t\t\t\tstatus: \"foreign\" as const,\n\t\t\t\t\tmarkerVersion,\n\t\t\t\t\tmissingFiles: [],\n\t\t\t\t\teditedFiles: [],\n\t\t\t\t\toutdatedFiles: [],\n\t\t\t\t\tbackupFiles,\n\t\t\t\t};\n\t\t\t}\n\t\t\tconst missingFiles: string[] = [];\n\t\t\tconst editedFiles: string[] = [];\n\t\t\tconst outdatedFiles: string[] = [];\n\t\t\tfor (const file of definition.files) {\n\t\t\t\tconst existing = await optionalRead(\n\t\t\t\t\tresolveSkillFile(folder, file.relativePath),\n\t\t\t\t);\n\t\t\t\tif (existing === null) {\n\t\t\t\t\tmissingFiles.push(file.relativePath);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (existing === file.content) continue;\n\t\t\t\tconst recordedHash = markerHashes.get(file.relativePath);\n\t\t\t\tif (recordedHash && sha256(existing) !== recordedHash) {\n\t\t\t\t\teditedFiles.push(file.relativePath);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\toutdatedFiles.push(file.relativePath);\n\t\t\t}\n\t\t\t// Compare newline-normalized: a CRLF-converted marker (Windows editor,\n\t\t\t// autocrlf) still hashes every file correctly, so it must not be\n\t\t\t// reported as drifted/outdated purely on line endings.\n\t\t\tconst markerDrift =\n\t\t\t\tnormalizeNewlines(markerContent) !== markerFor(definition, version);\n\t\t\tconst status: FlowSkillDoctorSkill[\"status\"] =\n\t\t\t\tmissingFiles.length > 0\n\t\t\t\t\t? \"incomplete\"\n\t\t\t\t\t: editedFiles.length > 0\n\t\t\t\t\t\t? \"edited\"\n\t\t\t\t\t\t: markerDrift || outdatedFiles.length > 0\n\t\t\t\t\t\t\t? \"outdated\"\n\t\t\t\t\t\t\t: \"ok\";\n\t\t\treturn {\n\t\t\t\tname: definition.name,\n\t\t\t\tpath: folder,\n\t\t\t\tstatus,\n\t\t\t\tmarkerVersion,\n\t\t\t\tmissingFiles,\n\t\t\t\teditedFiles,\n\t\t\t\toutdatedFiles,\n\t\t\t\tbackupFiles,\n\t\t\t};\n\t\t}),\n\t);\n\n\tlet entries: string[] = [];\n\ttry {\n\t\tentries = await readdir(root);\n\t} catch (error) {\n\t\tif ((error as NodeJS.ErrnoException).code !== \"ENOENT\") throw error;\n\t}\n\tconst unmanagedFlowSkills = entries\n\t\t.filter(\n\t\t\t(name) =>\n\t\t\t\t(name === \"flow\" || name.startsWith(\"flow-\")) && !expected.has(name),\n\t\t)\n\t\t.map((name) => join(root, name));\n\n\tconst syncRequiredSkills = skills\n\t\t.filter((skill) =>\n\t\t\t[\"missing\", \"incomplete\", \"outdated\"].includes(skill.status),\n\t\t)\n\t\t.map((skill) => skill.name);\n\tconst actionRequiredSkills = skills\n\t\t.filter(\n\t\t\t(skill) =>\n\t\t\t\t[\"foreign\", \"edited\"].includes(skill.status) ||\n\t\t\t\tskill.backupFiles.length > 0,\n\t\t)\n\t\t.map((skill) => skill.name);\n\tconst actionRequired = actionRequiredSkills.length > 0;\n\tconst syncRequired = syncRequiredSkills.length > 0;\n\treturn {\n\t\tstatus: actionRequired\n\t\t\t? \"action_required\"\n\t\t\t: syncRequired\n\t\t\t\t? \"sync_required\"\n\t\t\t\t: \"ok\",\n\t\tversion,\n\t\troot,\n\t\texpectedSkills: [...expected],\n\t\tskills,\n\t\tsyncRequiredSkills,\n\t\tactionRequiredSkills,\n\t\tunmanagedFlowSkills,\n\t};\n}\n\nfunction appendSkillList(\n\tlines: string[],\n\tlabel: string,\n\tskills: string[],\n): void {\n\tif (skills.length === 0) return;\n\tlines.push(`- ${label}: ${skills.join(\", \")}`);\n}\n\nexport function formatFlowSkillDoctor(report: FlowSkillDoctorReport): string {\n\tconst lines = [\n\t\t\"Flow doctor\",\n\t\t`- status: ${report.status}`,\n\t\t`- plugin version: ${report.version}`,\n\t\t`- skills root: ${report.root}`,\n\t\t`- expected skills: ${report.expectedSkills.join(\", \")}`,\n\t];\n\tappendSkillList(\n\t\tlines,\n\t\t\"startup sync can install/update\",\n\t\treport.syncRequiredSkills,\n\t);\n\tappendSkillList(lines, \"needs user decision\", report.actionRequiredSkills);\n\tlines.push(\"\", \"Skills:\");\n\tfor (const skill of report.skills) {\n\t\tlines.push(\n\t\t\t`- ${skill.name}: ${skill.status} (${skill.path})${\n\t\t\t\tskill.markerVersion ? ` marker=${skill.markerVersion}` : \"\"\n\t\t\t}`,\n\t\t);\n\t\tif (skill.missingFiles.length > 0) {\n\t\t\tlines.push(` missing: ${skill.missingFiles.join(\", \")}`);\n\t\t}\n\t\tif (skill.editedFiles.length > 0) {\n\t\t\tlines.push(` edited: ${skill.editedFiles.join(\", \")}`);\n\t\t}\n\t\tif (skill.outdatedFiles.length > 0) {\n\t\t\tlines.push(` outdated: ${skill.outdatedFiles.join(\", \")}`);\n\t\t}\n\t\tif (skill.backupFiles.length > 0) {\n\t\t\tlines.push(` backups: ${skill.backupFiles.join(\", \")}`);\n\t\t}\n\t}\n\tif (report.unmanagedFlowSkills.length > 0) {\n\t\tlines.push(\"\", \"Unmanaged Flow-like skill folders:\");\n\t\tfor (const path of report.unmanagedFlowSkills) lines.push(`- ${path}`);\n\t}\n\tlines.push(\"\", \"Recommendation:\");\n\tif (report.status === \"ok\") {\n\t\tlines.push(\"- Flow skills are present and current.\");\n\t} else if (report.status === \"sync_required\") {\n\t\tlines.push(\n\t\t\t\"- Start or restart OpenCode with opencode-plugin-flow enabled so startup sync can install or update the listed skills. If Flow then reports restart_required, restart OpenCode once more so the refreshed skill registry is used.\",\n\t\t);\n\t} else {\n\t\tlines.push(\n\t\t\t\"- Resolve user-owned or edited managed skill folders, then restart OpenCode. Move a folder aside to let Flow recreate it, or keep it intentionally as a local override.\",\n\t\t);\n\t\tif (report.skills.some((skill) => skill.backupFiles.length > 0)) {\n\t\t\tlines.push(\n\t\t\t\t\"- Flow saved earlier local edits as .backup files; review each one and delete it once the saved copy is no longer needed. Sync ignores them, and uninstall removes them (naming each) along with the folder.\",\n\t\t\t);\n\t\t}\n\t}\n\tlines.push(`- Details command: ${formatFlowDoctorCommand(report.version)}`);\n\treturn `${lines.join(\"\\n\")}\\n`;\n}\n\nasync function listSkillFolderFiles(folder: string): Promise<string[]> {\n\tconst entries = await readdir(folder, {\n\t\trecursive: true,\n\t\twithFileTypes: true,\n\t});\n\treturn entries\n\t\t.filter((entry) => entry.isFile())\n\t\t.map((entry) =>\n\t\t\tjoin(entry.parentPath, entry.name)\n\t\t\t\t.slice(folder.length + 1)\n\t\t\t\t.split(sep)\n\t\t\t\t.join(\"/\"),\n\t\t);\n}\n\nasync function listFlowBackupFiles(folder: string): Promise<string[]> {\n\tlet names: string[];\n\ttry {\n\t\tnames = await listSkillFolderFiles(folder);\n\t} catch (error) {\n\t\tif ((error as NodeJS.ErrnoException).code === \"ENOENT\") return [];\n\t\tthrow error;\n\t}\n\tconst backups: string[] = [];\n\tfor (const name of names) {\n\t\tif (await isFlowCreatedBackup(folder, name)) backups.push(name);\n\t}\n\treturn backups;\n}\n\n// A managed folder is removable when every non-marker file is either a pristine\n// managed file or Flow-created `.backup` residue. Backups hold the user's own\n// earlier edits, so they are returned separately: removable, but reported so the\n// deletion is never silent.\nasync function inspectManagedFolderForUninstall(\n\tfolder: string,\n\tmarkerContent: string,\n): Promise<{ pristine: boolean; backups: string[] }> {\n\tconst hashes = parseMarkerFiles(markerContent);\n\tif (hashes.size === 0) return { pristine: false, backups: [] };\n\tconst backups: string[] = [];\n\tfor (const relativePath of await listSkillFolderFiles(folder)) {\n\t\tif (relativePath === MARKER_FILENAME) continue;\n\t\tconst recordedHash = hashes.get(relativePath);\n\t\tif (recordedHash !== undefined) {\n\t\t\tconst content = await optionalRead(\n\t\t\t\tresolveSkillFile(folder, relativePath),\n\t\t\t);\n\t\t\tif (content === null || sha256(content) !== recordedHash) {\n\t\t\t\treturn { pristine: false, backups };\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\t// Not a managed file: removable only if it is genuinely Flow-created\n\t\t// backup residue (name + content checksum). Any other unknown file is\n\t\t// the user's own and keeps the folder.\n\t\tif (await isFlowCreatedBackup(folder, relativePath)) {\n\t\t\tbackups.push(relativePath);\n\t\t\tcontinue;\n\t\t}\n\t\treturn { pristine: false, backups };\n\t}\n\treturn { pristine: true, backups };\n}\n\nexport async function uninstallFlowSkills(\n\thome = homeDir(),\n\toptions: { dryRun?: boolean } = {},\n) {\n\tconst root = resolveFlowSkillsRoot(home);\n\tconst removed: string[] = [];\n\tconst kept: string[] = [];\n\tconst removedBackups: string[] = [];\n\tlet entries: string[];\n\ttry {\n\t\tentries = await readdir(root);\n\t} catch (error) {\n\t\tif ((error as NodeJS.ErrnoException).code === \"ENOENT\") {\n\t\t\treturn { removed, kept, removedBackups };\n\t\t}\n\t\tthrow error;\n\t}\n\tfor (const name of entries) {\n\t\tif (name !== \"flow\" && !name.startsWith(\"flow-\")) continue;\n\t\tconst folder = join(root, name);\n\t\tconst markerContent = await optionalRead(join(folder, MARKER_FILENAME));\n\t\tif (markerContent === null) {\n\t\t\tkept.push(folder);\n\t\t\tcontinue;\n\t\t}\n\t\tconst { pristine, backups } = await inspectManagedFolderForUninstall(\n\t\t\tfolder,\n\t\t\tmarkerContent,\n\t\t);\n\t\tif (!pristine) {\n\t\t\tkept.push(folder);\n\t\t\tcontinue;\n\t\t}\n\t\tfor (const backup of backups) {\n\t\t\tremovedBackups.push(resolveSkillFile(folder, backup));\n\t\t}\n\t\tif (!options.dryRun) {\n\t\t\tawait rm(folder, { recursive: true, force: true });\n\t\t}\n\t\tremoved.push(folder);\n\t}\n\treturn { removed, kept, removedBackups };\n}\n",
|
|
6
|
-
"import flowHandoffFormatDoc from \"../../skills/flow/references/handoff-format.md\" with {\n\ttype: \"text\",\n};\nimport flowParallelOrchestrationDoc from \"../../skills/flow/references/parallel-orchestration.md\" with {\n\ttype: \"text\",\n};\nimport flowParallelPassExampleDoc from \"../../skills/flow/references/parallel-pass-example.md\" with {\n\ttype: \"text\",\n};\nimport flowRecoveryPlaybookDoc from \"../../skills/flow/references/recovery-playbook.md\" with {\n\ttype: \"text\",\n};\nimport flowSkillDoc from \"../../skills/flow/SKILL.md\" with { type: \"text\" };\nimport flowCommitSkillDoc from \"../../skills/flow-commit/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowDeslopRefactorWorkflowDoc from \"../../skills/flow-deslop/references/refactor-workflow.md\" with {\n\ttype: \"text\",\n};\nimport flowDeslopSmellRubricDoc from \"../../skills/flow-deslop/references/smell-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowDeslopSkillDoc from \"../../skills/flow-deslop/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowPlanParallelDiscoveryDoc from \"../../skills/flow-plan/references/parallel-discovery.md\" with {\n\ttype: \"text\",\n};\nimport flowPlanPlanningExamplesDoc from \"../../skills/flow-plan/references/planning-examples.md\" with {\n\ttype: \"text\",\n};\nimport flowPlanSkillDoc from \"../../skills/flow-plan/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowReviewReviewRubricDoc from \"../../skills/flow-review/references/review-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowReviewSkillDoc from \"../../skills/flow-review/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowRunAuditRubricDoc from \"../../skills/flow-run/references/audit-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowRunValidationRubricDoc from \"../../skills/flow-run/references/validation-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowRunSkillDoc from \"../../skills/flow-run/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowTestSkillDoc from \"../../skills/flow-test/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowUiQualityUiRubricDoc from \"../../skills/flow-ui-quality/references/ui-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowUiQualityVisualVerificationDoc from \"../../skills/flow-ui-quality/references/visual-verification.md\" with {\n\ttype: \"text\",\n};\nimport flowUiQualitySkillDoc from \"../../skills/flow-ui-quality/SKILL.md\" with {\n\ttype: \"text\",\n};\n\nexport type FlowSkillFile = {\n\trelativePath: string;\n\tcontent: string;\n};\n\nexport type FlowSkillDefinition = {\n\tname: string;\n\tfiles: FlowSkillFile[];\n};\n\nexport const FLOW_SKILL_DEFINITIONS: readonly FlowSkillDefinition[] = [\n\t{\n\t\tname: \"flow\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/recovery-playbook.md\",\n\t\t\t\tcontent: flowRecoveryPlaybookDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/parallel-orchestration.md\",\n\t\t\t\tcontent: flowParallelOrchestrationDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/parallel-pass-example.md\",\n\t\t\t\tcontent: flowParallelPassExampleDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/handoff-format.md\",\n\t\t\t\tcontent: flowHandoffFormatDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-plan\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowPlanSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/planning-examples.md\",\n\t\t\t\tcontent: flowPlanPlanningExamplesDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/parallel-discovery.md\",\n\t\t\t\tcontent: flowPlanParallelDiscoveryDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-run\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowRunSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/validation-rubric.md\",\n\t\t\t\tcontent: flowRunValidationRubricDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/audit-rubric.md\",\n\t\t\t\tcontent: flowRunAuditRubricDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-test\",\n\t\tfiles: [{ relativePath: \"SKILL.md\", content: flowTestSkillDoc }],\n\t},\n\t{\n\t\tname: \"flow-review\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowReviewSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/review-rubric.md\",\n\t\t\t\tcontent: flowReviewReviewRubricDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-deslop\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowDeslopSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/smell-rubric.md\",\n\t\t\t\tcontent: flowDeslopSmellRubricDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/refactor-workflow.md\",\n\t\t\t\tcontent: flowDeslopRefactorWorkflowDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-ui-quality\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowUiQualitySkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/ui-rubric.md\",\n\t\t\t\tcontent: flowUiQualityUiRubricDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/visual-verification.md\",\n\t\t\t\tcontent: flowUiQualityVisualVerificationDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-commit\",\n\t\tfiles: [{ relativePath: \"SKILL.md\", content: flowCommitSkillDoc }],\n\t},\n];\n",
|
|
6
|
+
"import flowHandoffFormatDoc from \"../../skills/flow/references/handoff-format.md\" with {\n\ttype: \"text\",\n};\nimport flowParallelOrchestrationDoc from \"../../skills/flow/references/parallel-orchestration.md\" with {\n\ttype: \"text\",\n};\nimport flowParallelPassExampleDoc from \"../../skills/flow/references/parallel-pass-example.md\" with {\n\ttype: \"text\",\n};\nimport flowRecoveryPlaybookDoc from \"../../skills/flow/references/recovery-playbook.md\" with {\n\ttype: \"text\",\n};\nimport flowSkillDoc from \"../../skills/flow/SKILL.md\" with { type: \"text\" };\nimport flowCommitSkillDoc from \"../../skills/flow-commit/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowDeslopRefactorWorkflowDoc from \"../../skills/flow-deslop/references/refactor-workflow.md\" with {\n\ttype: \"text\",\n};\nimport flowDeslopSmellRubricDoc from \"../../skills/flow-deslop/references/smell-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowDeslopSkillDoc from \"../../skills/flow-deslop/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowPlanParallelDiscoveryDoc from \"../../skills/flow-plan/references/parallel-discovery.md\" with {\n\ttype: \"text\",\n};\nimport flowPlanPlanQualityChecklistDoc from \"../../skills/flow-plan/references/plan-quality-checklist.md\" with {\n\ttype: \"text\",\n};\nimport flowPlanPlanningExamplesDoc from \"../../skills/flow-plan/references/planning-examples.md\" with {\n\ttype: \"text\",\n};\nimport flowPlanSkillDoc from \"../../skills/flow-plan/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowReviewReviewRubricDoc from \"../../skills/flow-review/references/review-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowReviewSkillDoc from \"../../skills/flow-review/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowRunAuditRubricDoc from \"../../skills/flow-run/references/audit-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowRunValidationRubricDoc from \"../../skills/flow-run/references/validation-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowRunSkillDoc from \"../../skills/flow-run/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowTestSkillDoc from \"../../skills/flow-test/SKILL.md\" with {\n\ttype: \"text\",\n};\nimport flowUiQualityUiRubricDoc from \"../../skills/flow-ui-quality/references/ui-rubric.md\" with {\n\ttype: \"text\",\n};\nimport flowUiQualityVisualVerificationDoc from \"../../skills/flow-ui-quality/references/visual-verification.md\" with {\n\ttype: \"text\",\n};\nimport flowUiQualitySkillDoc from \"../../skills/flow-ui-quality/SKILL.md\" with {\n\ttype: \"text\",\n};\n\nexport type FlowSkillFile = {\n\trelativePath: string;\n\tcontent: string;\n};\n\nexport type FlowSkillDefinition = {\n\tname: string;\n\tfiles: FlowSkillFile[];\n};\n\nexport const FLOW_SKILL_DEFINITIONS: readonly FlowSkillDefinition[] = [\n\t{\n\t\tname: \"flow\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/recovery-playbook.md\",\n\t\t\t\tcontent: flowRecoveryPlaybookDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/parallel-orchestration.md\",\n\t\t\t\tcontent: flowParallelOrchestrationDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/parallel-pass-example.md\",\n\t\t\t\tcontent: flowParallelPassExampleDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/handoff-format.md\",\n\t\t\t\tcontent: flowHandoffFormatDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-plan\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowPlanSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/planning-examples.md\",\n\t\t\t\tcontent: flowPlanPlanningExamplesDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/plan-quality-checklist.md\",\n\t\t\t\tcontent: flowPlanPlanQualityChecklistDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/parallel-discovery.md\",\n\t\t\t\tcontent: flowPlanParallelDiscoveryDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-run\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowRunSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/validation-rubric.md\",\n\t\t\t\tcontent: flowRunValidationRubricDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/audit-rubric.md\",\n\t\t\t\tcontent: flowRunAuditRubricDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-test\",\n\t\tfiles: [{ relativePath: \"SKILL.md\", content: flowTestSkillDoc }],\n\t},\n\t{\n\t\tname: \"flow-review\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowReviewSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/review-rubric.md\",\n\t\t\t\tcontent: flowReviewReviewRubricDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-deslop\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowDeslopSkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/smell-rubric.md\",\n\t\t\t\tcontent: flowDeslopSmellRubricDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/refactor-workflow.md\",\n\t\t\t\tcontent: flowDeslopRefactorWorkflowDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-ui-quality\",\n\t\tfiles: [\n\t\t\t{ relativePath: \"SKILL.md\", content: flowUiQualitySkillDoc },\n\t\t\t{\n\t\t\t\trelativePath: \"references/ui-rubric.md\",\n\t\t\t\tcontent: flowUiQualityUiRubricDoc,\n\t\t\t},\n\t\t\t{\n\t\t\t\trelativePath: \"references/visual-verification.md\",\n\t\t\t\tcontent: flowUiQualityVisualVerificationDoc,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"flow-commit\",\n\t\tfiles: [{ relativePath: \"SKILL.md\", content: flowCommitSkillDoc }],\n\t},\n];\n",
|
|
7
7
|
"import {\n\ttype FlowSkillDoctorReport,\n\tformatFlowSkillDoctor,\n\tinspectFlowSkillInstall,\n\tisChangedSyncAction,\n\tresolveFlowPluginVersion,\n\tsyncFlowSkills,\n\tuninstallFlowSkills,\n} from \"./distribution/sync\";\n\nfunction usage(): string {\n\treturn [\n\t\t\"usage: opencode-plugin-flow <doctor|sync|uninstall> [options]\",\n\t\t\"\",\n\t\t\"commands:\",\n\t\t\" doctor Inspect managed Flow skills\",\n\t\t\" sync Install or refresh managed Flow skills\",\n\t\t\" uninstall Remove pristine Flow-owned managed skills\",\n\t\t\"\",\n\t\t\"doctor options:\",\n\t\t\" --json Write the doctor report as JSON\",\n\t\t\" --check, --strict Exit nonzero when doctor status is not ok\",\n\t\t\"\",\n\t\t\"uninstall options:\",\n\t\t\" --dry-run Preview removals without deleting anything\",\n\t\t\"\",\n\t\t\"global options:\",\n\t\t\" --help Show this help\",\n\t\t\" --version Print the plugin version\",\n\t].join(\"\\n\");\n}\n\nfunction hasOnlyKnownFlags(flags: string[], known: Set<string>): boolean {\n\treturn flags.every((flag) => known.has(flag));\n}\n\nfunction writeDoctorReport(\n\treport: FlowSkillDoctorReport,\n\toptions: { json: boolean },\n): void {\n\tif (options.json) {\n\t\tprocess.stdout.write(`${JSON.stringify(report, null, 2)}\\n`);\n\t\treturn;\n\t}\n\tprocess.stdout.write(formatFlowSkillDoctor(report));\n}\n\nasync function main(argv: string[]): Promise<void> {\n\tconst command = argv[2];\n\tconst flags = argv.slice(3);\n\tif (command === \"--help\" || command === \"-h\") {\n\t\tprocess.stdout.write(`${usage()}\\n`);\n\t\treturn;\n\t}\n\tif (command === \"--version\" || command === \"-v\") {\n\t\tprocess.stdout.write(`${resolveFlowPluginVersion()}\\n`);\n\t\treturn;\n\t}\n\tif (command !== \"uninstall\" && command !== \"doctor\" && command !== \"sync\") {\n\t\tprocess.stderr.write(`${usage()}\\n`);\n\t\tprocess.exitCode = 2;\n\t\treturn;\n\t}\n\tif (command === \"doctor\") {\n\t\tconst knownDoctorFlags = new Set([\"--json\", \"--check\", \"--strict\"]);\n\t\tif (!hasOnlyKnownFlags(flags, knownDoctorFlags)) {\n\t\t\tprocess.stderr.write(`${usage()}\\n`);\n\t\t\tprocess.exitCode = 2;\n\t\t\treturn;\n\t\t}\n\t\tconst report = await inspectFlowSkillInstall();\n\t\twriteDoctorReport(report, { json: flags.includes(\"--json\") });\n\t\tif (\n\t\t\t(report.status === \"sync_required\" ||\n\t\t\t\treport.status === \"action_required\") &&\n\t\t\t(flags.includes(\"--check\") || flags.includes(\"--strict\"))\n\t\t) {\n\t\t\tprocess.exitCode = 1;\n\t\t}\n\t\treturn;\n\t}\n\tconst knownUninstallFlags = new Set([\"--dry-run\"]);\n\tif (\n\t\tcommand === \"uninstall\" &&\n\t\t!hasOnlyKnownFlags(flags, knownUninstallFlags)\n\t) {\n\t\tprocess.stderr.write(`${usage()}\\n`);\n\t\tprocess.exitCode = 2;\n\t\treturn;\n\t}\n\tif (command === \"sync\" && flags.length > 0) {\n\t\tprocess.stderr.write(`${usage()}\\n`);\n\t\tprocess.exitCode = 2;\n\t\treturn;\n\t}\n\tif (command === \"sync\") {\n\t\tconst version = resolveFlowPluginVersion();\n\t\tconst results = await syncFlowSkills(version);\n\t\tconst changed = results.filter((result) =>\n\t\t\tisChangedSyncAction(result.action),\n\t\t);\n\t\tconst actionRequired = results.filter(\n\t\t\t(result) => result.action === \"skipped_foreign\",\n\t\t);\n\t\tprocess.stdout.write(`Flow skill sync (${version})\\n`);\n\t\tfor (const result of results) {\n\t\t\tprocess.stdout.write(`- ${result.name}: ${result.action}\\n`);\n\t\t\tfor (const backupPath of result.backupPaths ?? []) {\n\t\t\t\tprocess.stdout.write(` backup: ${backupPath}\\n`);\n\t\t\t}\n\t\t}\n\t\tif (changed.length > 0) {\n\t\t\tprocess.stdout.write(\n\t\t\t\t\"Restart OpenCode so the refreshed skill registry is used.\\n\",\n\t\t\t);\n\t\t}\n\t\tif (actionRequired.length > 0) {\n\t\t\tprocess.stdout.write(\n\t\t\t\t\"Some managed skill folders are user-owned or edited; run doctor for repair guidance.\\n\",\n\t\t\t);\n\t\t}\n\t\treturn;\n\t}\n\tconst dryRun = flags.includes(\"--dry-run\");\n\tconst result = await uninstallFlowSkills(undefined, { dryRun });\n\tfor (const path of result.removed) {\n\t\tprocess.stdout.write(\n\t\t\t`${dryRun ? \"Would remove\" : \"Removed\"} Flow skill: ${path}\\n`,\n\t\t);\n\t}\n\tfor (const path of result.kept) {\n\t\tprocess.stdout.write(`Kept non-Flow or user-edited skill: ${path}\\n`);\n\t}\n\tif (result.removedBackups.length > 0) {\n\t\tprocess.stdout.write(\n\t\t\t`${dryRun ? \"Would remove\" : \"Removed\"} Flow-created backup files holding your earlier edits:\\n`,\n\t\t);\n\t\tfor (const path of result.removedBackups) {\n\t\t\tprocess.stdout.write(` ${path}\\n`);\n\t\t}\n\t}\n\tprocess.stdout.write(\n\t\tdryRun\n\t\t\t? \"Dry run: no files were removed.\\n\"\n\t\t\t: \"Remove opencode-plugin-flow from your OpenCode plugin config and restart OpenCode.\\n\",\n\t);\n}\n\nmain(process.argv).catch((error) => {\n\tprocess.stderr.write(\n\t\t`${error instanceof Error ? error.message : String(error)}\\n`,\n\t);\n\tprocess.exitCode = 1;\n});\n"
|
|
8
8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