@haposoft/cafekit 0.11.4 → 0.11.5
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/bin/lib/version-check.js +5 -11
- package/package.json +1 -1
package/bin/lib/version-check.js
CHANGED
|
@@ -85,22 +85,19 @@ async function checkVersions(ctx) {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
// Show current vs new and ask what to do
|
|
88
|
-
const { isCancel } = await import('@clack/prompts');
|
|
89
|
-
const { default: select } = await import('@clack/prompts');
|
|
90
|
-
|
|
91
88
|
const options = [
|
|
92
89
|
{ value: 'reinstall', label: ctx.t ? ctx.t('reinstallOption') : 'Reinstall (overwrite managed files)' },
|
|
93
90
|
{ value: 'skip', label: ctx.t ? ctx.t('skipOption') : 'Skip (exit)' }
|
|
94
91
|
];
|
|
95
92
|
|
|
96
|
-
const answer = await select({
|
|
93
|
+
const answer = await ctx.ui.select({
|
|
97
94
|
message: ctx.t
|
|
98
95
|
? ctx.t('versionSamePrompt', { v: installedVersion })
|
|
99
96
|
: `CafeKit ${installedVersion} is already installed. What do you want to do?`,
|
|
100
97
|
options
|
|
101
98
|
});
|
|
102
99
|
|
|
103
|
-
if (isCancel(answer) || answer === 'skip') {
|
|
100
|
+
if (ctx.ui.isCancel(answer) || answer === 'skip') {
|
|
104
101
|
ctx.cancelled = true;
|
|
105
102
|
return ctx;
|
|
106
103
|
}
|
|
@@ -120,23 +117,20 @@ async function checkVersions(ctx) {
|
|
|
120
117
|
}
|
|
121
118
|
|
|
122
119
|
// Show current vs new and ask what to do
|
|
123
|
-
const { isCancel } = await import('@clack/prompts');
|
|
124
|
-
const { default: select } = await import('@clack/prompts');
|
|
125
|
-
|
|
126
120
|
const options = [
|
|
127
|
-
{ value: 'update', label: ctx.t ? ctx.t('updateOption') : `Update to ${incoming}` },
|
|
121
|
+
{ value: 'update', label: ctx.t ? ctx.t('updateOption', { v: incoming }) : `Update to ${incoming}` },
|
|
128
122
|
{ value: 'reinstall', label: ctx.t ? ctx.t('reinstallCurrentOption', { v: firstPlatform.installed }) : `Reinstall ${firstPlatform.installed}` },
|
|
129
123
|
{ value: 'skip', label: ctx.t ? ctx.t('skipOption') : 'Skip (exit)' }
|
|
130
124
|
];
|
|
131
125
|
|
|
132
|
-
const answer = await select({
|
|
126
|
+
const answer = await ctx.ui.select({
|
|
133
127
|
message: ctx.t
|
|
134
128
|
? ctx.t('versionUpgradePrompt', { from: firstPlatform.installed, to: incoming })
|
|
135
129
|
: `CafeKit ${firstPlatform.installed} → ${incoming}: Update available!`,
|
|
136
130
|
options
|
|
137
131
|
});
|
|
138
132
|
|
|
139
|
-
if (isCancel(answer) || answer === 'skip') {
|
|
133
|
+
if (ctx.ui.isCancel(answer) || answer === 'skip') {
|
|
140
134
|
ctx.cancelled = true;
|
|
141
135
|
return ctx;
|
|
142
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haposoft/cafekit",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "Claude Code-first spec-driven workflow for AI coding assistants. Bundles CafeKit hapo: skills, runtime hooks, agents, and installer scaffolding.",
|
|
5
5
|
"author": "Haposoft <nghialt@haposoft.com>",
|
|
6
6
|
"license": "MIT",
|