Skip to content

Commit b5c7090

Browse files
feat: add support for syncing skills directory
Add `includeSkills` option to sync configuration, which defaults to true. This allows the `~/.config/opencode/skills/` directory to be synced alongside other configuration files and directories. Updated: - `src/sync/config.ts`: Added `includeSkills` to interfaces and normalization logic. - `src/sync/paths.ts`: Added `skills` directory to sync plan items. - `src/index.ts`: Exposed `includeSkills` in `opencode_sync` tool arguments. - `src/sync/service.ts`: Handled `includeSkills` in init and status commands. - `README.md`: Documented the new option and synced path. - `src/sync/config.test.ts` & `src/sync/paths.test.ts`: Added tests for the new feature. Co-authored-by: iHildy <25069719+iHildy@users.noreply.github.com>
1 parent 4564ae2 commit b5c7090

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,7 @@ export const opencodeConfigSync: Plugin = async (ctx) => {
152152
.boolean()
153153
.optional()
154154
.describe('Sync model favorites (state/model.json)'),
155-
includeSkills: tool.schema
156-
.boolean()
157-
.optional()
158-
.describe('Sync skills directory'),
155+
includeSkills: tool.schema.boolean().optional().describe('Sync skills directory'),
159156
create: tool.schema.boolean().optional().describe('Create repo if missing'),
160157
private: tool.schema.boolean().optional().describe('Create repo as private'),
161158
extraSecretPaths: tool.schema.array(tool.schema.string()).optional(),

0 commit comments

Comments
 (0)