-
Notifications
You must be signed in to change notification settings - Fork 10
Bilingual command descriptions (EN/RU) #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d1bc84c
fbcb046
b154765
c8ab495
d49f324
cd2a97f
2d7c51f
cca5513
e53b751
4e9e161
8836dbc
df2be57
b1d1310
707b8d8
cd690ec
1c883a5
3d0e802
7d11c2b
2be653c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ coverage/ | |
| __pycache__/ | ||
| opencode-plugin-template/ | ||
| opencode-docs-*/ | ||
| package-lock.json | ||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,14 @@ | ||
| --- | ||
| description: Enable secrets sync (private repo required) | ||
| description: Enable secrets sync / Включить синхронизацию секретов (требуется приватный репозиторий) | ||
| --- | ||
|
|
||
| Use the opencode_sync tool with command "enable-secrets". | ||
| If the user supplies extra secret paths, pass them via extraSecretPaths. | ||
| If they want MCP secrets committed in a private repo, pass includeMcpSecrets: true. | ||
| You MUST call the `opencode_sync` tool with `command="enable-secrets"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Argument handling: | ||
| - If the user supplies extra secret paths, pass them via `extraSecretPaths`. | ||
| - If they want MCP secrets committed in a private repo, pass `includeMcpSecrets: true`. | ||
|
|
||
| Reminder: | ||
| - Enabling secrets requires the sync repo to be private — the tool will enforce this. | ||
| - Secrets are synced via a configured backend (e.g., 1Password), not stored in git directly. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| --- | ||
| description: Pull and apply synced opencode config | ||
| description: Pull and apply synced config / Загрузить и применить синхронизированную конфигурацию | ||
| --- | ||
|
|
||
| Use the opencode_sync tool with command "pull". | ||
| If updates are applied, remind the user to restart opencode. | ||
| You MUST call the `opencode_sync` tool with `command="pull"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Reminder: | ||
| - Pull applies remote config to local — after a successful pull, tell the user to restart opencode. | ||
| - If the local repo has uncommitted changes, pull will fail — suggest /sync-resolve first. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| --- | ||
| description: Push local config / Отправить локальную конфигурацию | ||
| --- | ||
| description: Push local opencode config to the sync repo | ||
| --- | ||
|
|
||
| Use the opencode_sync tool with command "push". | ||
| You MUST call the `opencode_sync` tool with `command="push"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Reminder: | ||
| - The tool will auto-commit and push local changes to the sync repo. | ||
| - If there are uncommitted changes in the local repo, the push may fail — suggest /sync-resolve. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| --- | ||
| description: Resolve uncommitted changes in sync repo | ||
| description: Resolve uncommitted changes / Разрешить незакоммиченные изменения в репозитории | ||
| --- | ||
|
|
||
| Use the opencode_sync tool with command "resolve" to automatically resolve uncommitted changes in the local sync repository using AI. | ||
| You MUST call the `opencode_sync` tool with `command="resolve"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Behavior: | ||
| - The tool analyzes uncommitted changes using AI and decides whether to commit or discard them. | ||
| - After resolution, the user can retry the failed command. | ||
| - If AI analysis is not available, the tool falls back to manual resolution instructions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| --- | ||
| description: Pull secrets from the configured backend | ||
| description: Pull secrets from backend / Загрузить секреты из настроенного бэкенда | ||
| --- | ||
|
|
||
| Use the opencode_sync tool with command "secrets-pull". | ||
| You MUST call the `opencode_sync` tool with `command="secrets-pull"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Behavior: | ||
| - Pulls secrets from the configured backend (e.g., 1Password) and applies them locally. | ||
| - Requires a secrets backend to be configured. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| --- | ||
| description: Push secrets to the configured backend | ||
| description: Push secrets to backend / Отправить секреты в настроенный бэкенд | ||
| --- | ||
|
|
||
| Use the opencode_sync tool with command "secrets-push". | ||
| You MUST call the `opencode_sync` tool with `command="secrets-push"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Behavior: | ||
| - Pushes secrets to the configured backend (e.g., 1Password). | ||
| - Requires a secrets backend to be configured. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| --- | ||
| description: Show secrets backend status | ||
| description: Show secrets backend status / Показать статус бэкенда секретов | ||
| --- | ||
|
|
||
| Use the opencode_sync tool with command "secrets-status". | ||
| You MUST call the `opencode_sync` tool with `command="secrets-status"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Behavior: | ||
| - Shows the current status of the secrets backend (e.g., last sync, backend type). | ||
| - Requires a secrets backend to be configured. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,8 +1,9 @@ | ||||||
| --- | ||||||
| description: Switch session sync backend between git and turso | ||||||
| description: Switch session sync backend (git/turso) / Переключить бэкенд синхронизации сессий | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a discrepancy between the PR description (which specifies a
Suggested change
|
||||||
| --- | ||||||
|
|
||||||
| You MUST call the `opencode_sync` tool with `command="sessions-backend"`. | ||||||
| Do not answer with plain text only. | ||||||
|
|
||||||
| Argument handling: | ||||||
| - `$ARGUMENTS` must be either `git` or `turso`. | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| --- | ||
| description: Remove deprecated git session artifacts after Turso migration | ||
| description: Remove deprecated git session artifacts / Удалить устаревшие git-артефакты сессий | ||
| --- | ||
|
|
||
| You MUST call the `opencode_sync` tool with `command="sessions-cleanup-git"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Use this only after sessions are running on Turso and the user confirms fallback artifacts are no longer needed. | ||
| Reminder: | ||
| - Use this only after sessions are running on Turso and the user confirms fallback artifacts are no longer needed. | ||
| - This removes data/sessions/*.json and data/opencode.db from the sync repo. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| --- | ||
| description: Show opencode-synced status | ||
| description: Show sync status / Показать статус синхронизации | ||
| --- | ||
|
|
||
| Use the opencode_sync tool with command "status" and report the results. | ||
| You MUST call the `opencode_sync` tool with `command="status"`. | ||
| Do not answer with plain text only. | ||
|
|
||
| Reminder: | ||
| - Report the results to the user in a readable format (repo, branch, last push/pull, working tree state). | ||
| - If sessions sync is enabled, mention the session backend (git or turso) and last sync times. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file starts with a Byte Order Mark (BOM) (
\ufeff). This will cause the frontmatter parser insrc/index.tsto fail because the regex^---(line 26) expects the dashes to be at the absolute start of the string. Please remove the BOM to ensure the command description is parsed correctly.