Skip to content

Commit 7dcff02

Browse files
committed
fix(cli): refresh What next panel after db install
The post-install panel still recommended `stash wizard` as the headline path and showed a hand-rolled `client.encryptModel(record, table).run()` snippet — both stale post-#395 and post-#357. Replace with brief guidance that bridges install → agent handoff: two canonical "ask your agent X" phrasings (one per real path, migrate-existing vs add-new), a short note that the agent will do the schema edits and run the lifecycle commands, and a pointer at the skills + public docs. Same panel runs from any `db install` invocation — including the one init triggers in install-eql — so the new copy makes sense both during init's handoff and when `db install` is run standalone (where "your agent" can be any agent the user has open, or someone reading the lifecycle commands directly).
1 parent 9c21323 commit 7dcff02

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

packages/cli/src/commands/db/install.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -291,20 +291,22 @@ function resolveProviderOptions(
291291
}
292292

293293
function printNextSteps(): void {
294-
const pm = detectPackageManager()
295294
p.note(
296295
[
297-
'Next steps:',
296+
'Your project is set up. To encrypt your first column, pick the path',
297+
'that fits and ask your agent (the one `stash init` handed off to,',
298+
'or whichever agent you use):',
298299
'',
299-
' 1. Wire up encrypt/decrypt with the wizard (AI-guided, automated):',
300-
` ${runnerCommand(pm, 'stash')} wizard`,
300+
' Migrate an existing populated column (preserves live data):',
301+
' Ask: "Use the stash lifecycle to encrypt <table>.<column>."',
301302
'',
302-
' 2. Or use the client directly from @cipherstash/stack:',
303-
" import { Encryption } from '@cipherstash/stack'",
304-
' const client = await Encryption({ /* ... */ })',
305-
' await client.encryptModel(record, table).run()',
303+
' Add a new encrypted column from scratch (no plaintext predecessor):',
304+
' Ask: "Add an encrypted <column> to <table>."',
306305
'',
307-
' 3. Docs: https://cipherstash.com/docs',
306+
'The agent will edit your schema, generate the migration, wire the',
307+
'application code, and run the relevant `stash encrypt` commands.',
308+
'Reference: the stash-encryption / stash-cli skills (loaded in your',
309+
"agent's workspace) and https://cipherstash.com/docs.",
308310
].join('\n'),
309311
'What next',
310312
)

0 commit comments

Comments
 (0)