specialist-agent 2.11.0 → 2.11.1
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/cli/index.mjs +1 -23
- package/package.json +1 -1
package/cli/index.mjs
CHANGED
|
@@ -1150,29 +1150,7 @@ async function main() {
|
|
|
1150
1150
|
|
|
1151
1151
|
// ── Auto-detect everything ──────────────────────────
|
|
1152
1152
|
|
|
1153
|
-
//
|
|
1154
|
-
if (!existsSync(join(cwd, 'package.json'))) {
|
|
1155
|
-
clack.log.warn('No package.json found.')
|
|
1156
|
-
|
|
1157
|
-
const createPkg = await clack.confirm({
|
|
1158
|
-
message: 'Create a package.json to initialize this project?',
|
|
1159
|
-
initialValue: true,
|
|
1160
|
-
})
|
|
1161
|
-
|
|
1162
|
-
if (clack.isCancel(createPkg)) handleCancel()
|
|
1163
|
-
|
|
1164
|
-
if (!createPkg) {
|
|
1165
|
-
clack.cancel('Run this command from the root of your project.')
|
|
1166
|
-
process.exit(1)
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
const dirName = cwd.split(/[\\/]/).pop() || 'my-project'
|
|
1170
|
-
writeFileSync(
|
|
1171
|
-
join(cwd, 'package.json'),
|
|
1172
|
-
JSON.stringify({ name: dirName, version: '0.1.0', private: true }, null, 2) + '\n'
|
|
1173
|
-
)
|
|
1174
|
-
clack.log.success('package.json created')
|
|
1175
|
-
}
|
|
1153
|
+
// package.json is optional — init continues without it
|
|
1176
1154
|
|
|
1177
1155
|
// Auto-detect framework
|
|
1178
1156
|
const packs = readdirSync(join(ROOT, 'packs'), { withFileTypes: true })
|