@prettifystudio/lyngo-cli 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. package/README.md +6 -4
  2. package/bin/lyngo +5 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -65,12 +65,14 @@ Configuration: `LYNGO_HOST` (default `https://lyngo.app`), `LYNGO_TOKEN`
65
65
 
66
66
  ## The Claude Code plugin (optional)
67
67
 
68
- This repository is also a Claude Code plugin. It adds the `/lyngo:localize`
69
- command and the `lyngo-i18n` skill, which makes the agent check existing keys
70
- before it writes new text. It needs the `lyngo` command from npm.
68
+ This repository is also a Claude Code plugin. It adds the commands
69
+ `/lyngo:init`, `/lyngo:localize`, `/lyngo:status` and `/lyngo:login`, and the
70
+ `lyngo-i18n` skill, which makes the agent check existing keys before it writes
71
+ new text. It needs the `lyngo` command from npm; `lyngo init` prints these two
72
+ lines when the plugin is not installed yet.
71
73
 
72
74
  ```bash
73
- claude plugin marketplace add <owner>/lyngo-claude-plugin
75
+ claude plugin marketplace add prettifystudio/lyngo-claude-plugin
74
76
  claude plugin install lyngo@lyngo
75
77
  ```
76
78
 
package/bin/lyngo CHANGED
@@ -367,6 +367,11 @@ function setUpClaudeCode(top, remote) {
367
367
  }
368
368
  }
369
369
  console.log(`Claude Code: the lyngo MCP server is registered for this repository, and the Stop hook ${has ? 'was already' : 'is'} in .claude/settings.local.json.`);
370
+ // The slash commands (/lyngo:localize, /lyngo:init, /lyngo:status) come
371
+ // from the plugin; say how to get it when it is not installed yet.
372
+ let installed = false;
373
+ try { installed = /\blyngo\b/.test(run(['plugin', 'list'])); } catch { /* no plugin support, or none installed */ }
374
+ if (!installed) console.log('Slash commands for Claude Code (/lyngo:localize, /lyngo:init, /lyngo:status): claude plugin marketplace add prettifystudio/lyngo-claude-plugin && claude plugin install lyngo@lyngo');
370
375
  }
371
376
 
372
377
  async function init(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prettifystudio/lyngo-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Localization for Laravel applications, from the terminal: Lyngo wraps user-facing text with your framework's i18n call, reuses your project's keys, translates and verifies the catalogs. Blade, Livewire, PHP, and Inertia with React, Vue or Svelte.",
5
5
  "bin": {
6
6
  "lyngo": "bin/lyngo"