Repository navigation
chore: adapt CLI to ink 7 - #1350
Conversation
🛫 PR Readiness Check
PR Scope: 📦🔧 Mixed (product + infrastructure)
|
| Status | Check | Details |
|---|---|---|
| ❌ | Single commit | 4 commits — consider squashing before review |
| ✅ | Not in draft | Ready for review |
| ❌ | Branch up to date | dev is 1 commit(s) ahead — rebase recommended |
| ❌ | Copilot review | No Copilot review yet — it may still be processing |
| ✅ | Changeset present | Changeset file found |
| ✅ | Scope clean | No .squad/ or docs/proposals/ files |
| ✅ | No merge conflicts | No merge conflicts |
| ❌ | Copilot threads resolved | 1 unresolved Copilot thread(s) — fix and resolve before merging |
| ✅ | CI passing | All checks passing |
Files Changed (4 files, +4317 −4276)
| File | +/− |
|---|---|
.changeset/ink7-adaptation.md |
+12 −0 |
package-lock.json |
+4287 −4266 |
packages/squad-cli/package.json |
+1 −1 |
packages/squad-cli/src/cli/shell/components/InputPrompt.tsx |
+17 −9 |
Total: +4317 −4276
This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.
🟡 Impact Analysis — PR #1350Risk tier: 🟡 MEDIUM 📊 Summary
🎯 Risk Factors
📦 Modules Affectedroot (2 files)
squad-cli (2 files)
|
🔒 Security Review🔒 Security review: 1 info.
Automated security review — informational only. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Squad CLI to work correctly with Ink 7.0.6 by bumping the Ink dependency and adjusting useInput handling to account for Ink 7 keyboard semantics and synchronous discreteUpdates behavior.
Changes:
- Bump
inkdependency inpackages/squad-clito^7.0.6. - Update
InputPromptkeyboard handling (Escape handling while disabled; paste/Enter debounce refactor to clear synchronously). - Regenerate
package-lock.jsonto reflect the new Ink dependency graph.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/squad-cli/src/cli/shell/components/InputPrompt.tsx | Adjusts key handling and Enter/paste debounce behavior for Ink 7 input semantics. |
| packages/squad-cli/package.json | Pins Ink to ^7.0.6 for CLI runtime compatibility. |
| package-lock.json | Updates lockfile for Ink 7 and transitive dependency changes. |
| @@ -132,20 +133,25 @@ export const InputPrompt: React.FC<InputPromptProps> = ({ | |||
| } | |||
|
|
|||
| if (key.return) { | |||
| "dependencies": { | ||
| "@bradygaster/squad-sdk": ">=0.9.0", | ||
| "@modelcontextprotocol/sdk": "^1.29.0", | ||
| "ink": "^6.8.0", | ||
| "ink": "^7.0.6", | ||
| "react": "^19.2.4", |
c812874 to
34d25e2
Compare
Adapts the squad CLI to ink 7.0.6, resolving CI failures on repl-ux.test.ts.
Replaces #1322 and #1335.
ink 7 breaking changes addressed
Files changed
Validation
repl-ux.test.ts: 109 passed, 1 pre-existing failure (line 271 Windows separator)
Closes #1322
Closes #1335