opencode-synced 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command/sync-enable-secrets.md +6 -0
- package/dist/command/sync-init.md +11 -0
- package/dist/command/sync-link.md +15 -0
- package/dist/command/sync-pull.md +6 -0
- package/dist/command/sync-push.md +5 -0
- package/dist/command/sync-resolve.md +5 -0
- package/dist/command/sync-status.md +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +171 -13877
- package/dist/sync/apply.d.ts +3 -0
- package/dist/sync/apply.js +195 -0
- package/dist/sync/commit.d.ts +9 -0
- package/dist/sync/commit.js +74 -0
- package/dist/sync/config.d.ts +35 -0
- package/dist/sync/config.js +176 -0
- package/dist/sync/errors.d.ts +19 -0
- package/dist/sync/errors.js +32 -0
- package/dist/sync/paths.d.ts +47 -0
- package/dist/sync/paths.js +178 -0
- package/dist/sync/repo.d.ts +31 -0
- package/dist/sync/repo.js +248 -0
- package/dist/sync/service.d.ts +31 -0
- package/dist/sync/service.js +453 -0
- package/dist/sync/utils.d.ts +17 -0
- package/dist/sync/utils.js +70 -0
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize opencode-synced configuration
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Use the opencode_sync tool with command "init".
|
|
6
|
+
The repo will be created automatically if it doesn't exist (private by default).
|
|
7
|
+
Default repo name is "my-opencode-config" with owner auto-detected from GitHub CLI.
|
|
8
|
+
If the user wants a custom repo name, pass name="custom-name".
|
|
9
|
+
If the user wants an org-owned repo, pass owner="org-name".
|
|
10
|
+
If the user wants a public repo, pass private=false.
|
|
11
|
+
Include includeSecrets if the user explicitly opts in.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Link this computer to an existing sync repo
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Use the opencode_sync tool with command "link".
|
|
6
|
+
This command is for linking a second (or additional) computer to an existing sync repo that was created on another machine.
|
|
7
|
+
|
|
8
|
+
IMPORTANT: This will OVERWRITE the local OpenCode configuration with the contents from the synced repo. The only thing preserved is the local overrides file (opencode-synced.overrides.jsonc).
|
|
9
|
+
|
|
10
|
+
If the user provides a repo name argument, pass it as name="repo-name".
|
|
11
|
+
If no repo name is provided, the tool will automatically search for common sync repo names.
|
|
12
|
+
|
|
13
|
+
After linking:
|
|
14
|
+
- Remind the user to restart OpenCode to apply the synced config
|
|
15
|
+
- If they want to enable secrets sync, they should run /sync-enable-secrets
|
package/dist/index.d.ts
ADDED