create-open-autonomy 2.2.0 → 2.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-open-autonomy",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "The default Open Autonomy starter kit: a complete repository that runs its own Hermes agent against the platform, with the SDK wired in. `bun create open-autonomy <dir>` scaffolds one.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/kit.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
10
10
  import { dirname, join, relative, resolve } from 'node:path';
11
11
 
12
- export const KIT = { name: 'hermes', version: '2.2.0' } as const;
12
+ export const KIT = { name: 'hermes', version: '2.2.1' } as const;
13
13
  export const KIT_FILE = '.open-autonomy/kit.json';
14
14
  const TEMPLATE = resolve(import.meta.dir, '..', 'template');
15
15
 
@@ -73,7 +73,8 @@ if (!existsSync(resolve(project, '.git'))) {
73
73
 
74
74
  // 3. The home, from the checkout: everything under hermes/ except its .env, which is the home's own.
75
75
  const committed = resolve(project, 'hermes');
76
- if (existsSync(committed)) cpSync(committed, home, { recursive: true, filter: (src) => basename(src) !== '.env' });
76
+ // force: with a filter, Bun's cpSync leaves an existing file alone unless told to overwrite.
77
+ if (existsSync(committed)) cpSync(committed, home, { recursive: true, force: true, filter: (src) => basename(src) !== '.env' });
77
78
  const envFile = resolve(home, '.env');
78
79
  if (!existsSync(envFile)) {
79
80
  const lines = ['OPEN_AUTONOMY_BASE_URL=http://127.0.0.1:8787/v1', 'OPEN_AUTONOMY_KEY=valve'];