0101-agents 0.1.1 → 0.1.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 (2) hide show
  1. package/bin/cli.js +5 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -135,9 +135,11 @@ function unzipInto(zipPath, destDir, { skipPrefix } = {}) {
135
135
  // Use the system unzip binary. Available everywhere except bare Windows.
136
136
  mkdirSync(destDir, { recursive: true })
137
137
  if (skipPrefix) {
138
- // unzip with -x excludes paths matching glob patterns.
138
+ // unzip's -x excludes paths matching glob patterns. `<prefix>/*` catches
139
+ // every file under the directory; the bare directory entry (e.g. `data/`)
140
+ // is harmless to re-extract because it just re-creates the dir shell.
139
141
  execSync(
140
- `unzip -q -o "${zipPath}" -d "${destDir}" -x "${skipPrefix}/*" "${skipPrefix}"`,
142
+ `unzip -q -o "${zipPath}" -d "${destDir}" -x "${skipPrefix}/*"`,
141
143
  { stdio: 'inherit' },
142
144
  )
143
145
  } else {
@@ -247,6 +249,7 @@ async function cmdUpdate(args) {
247
249
  return
248
250
  }
249
251
 
252
+ console.log(dim('Your data/ folder is preserved (memory, projects, custom files).'))
250
253
  const ans = await prompt(`Update ${agent} ${current ?? '?'} → ${manifest.latest}? [Y/n] `)
251
254
  if (ans && !/^y(es)?$/i.test(ans)) {
252
255
  info('Cancelled.')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "0101-agents",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "0101-agents": "./bin/cli.js"