create-open-autonomy 2.4.7 → 2.4.9
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.4.
|
|
3
|
+
"version": "2.4.9",
|
|
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.4.
|
|
12
|
+
export const KIT = { name: 'hermes', version: '2.4.9' } as const;
|
|
13
13
|
export const KIT_FILE = '.open-autonomy/kit.json';
|
|
14
14
|
const TEMPLATE = resolve(import.meta.dir, '..', 'template');
|
|
15
15
|
|
|
@@ -58,7 +58,9 @@ const own = (path: string) => { if (user) Bun.spawnSync({ cmd: ['chown', '-R', `
|
|
|
58
58
|
// through: a start from inside another agent's worker (a project's world, brought up by a task) would otherwise inherit
|
|
59
59
|
// that worker's HERMES_KANBAN_DB, HERMES_KANBAN_HOME, its task and run, and file its work on the outer board.
|
|
60
60
|
const inherited = (): Record<string, string> => { const env: Record<string, string> = {}; for (const [k, v] of Object.entries(process.env)) if (v !== undefined && !k.startsWith('HERMES_')) env[k] = v; return env; };
|
|
61
|
-
|
|
61
|
+
// TERMINAL_CWD: a conversation's shell (a channel message answered live) starts in the checkout, as a task's does —
|
|
62
|
+
// Hermes would otherwise start it in the home, where the agent finds its own files and none of the project's.
|
|
63
|
+
const agentEnv = (): Record<string, string> => ({ ...inherited(), HERMES_HOME: home, TERMINAL_CWD: project, ...(user ? { HOME: home, USER: user.name, LOGNAME: user.name } : {}), ...(existsSync(sock) ? { SSH_AUTH_SOCK: sock } : {}), GIT_SSH_COMMAND: process.env.GIT_SSH_COMMAND ?? 'ssh -o StrictHostKeyChecking=accept-new' });
|
|
62
64
|
|
|
63
65
|
const children: Array<{ name: string; proc: ReturnType<typeof Bun.spawn> }> = [];
|
|
64
66
|
let ending = false;
|
|
@@ -16,9 +16,14 @@ they wish for, and talk things over in three places: the repository's issues, it
|
|
|
16
16
|
Every quarter hour you read what is new on GitHub, and every word you say in public is a published session on the
|
|
17
17
|
project page. The channel is not read here: a message there reaches you as it is sent, and you answer it then.
|
|
18
18
|
|
|
19
|
-
A look is exactly four commands — `poll`, what it calls for, `mark`, the report.
|
|
20
|
-
|
|
21
|
-
is a
|
|
19
|
+
A look is exactly four commands — `poll`, what it calls for, `mark`, the report. The tool is
|
|
20
|
+
`bun .open-autonomy/community.ts <command>` from the repository root and nothing else: there is no other copy, and
|
|
21
|
+
a guessed path is a turn wasted. Never search the home, its databases, its logs or the gateway's state for messages:
|
|
22
|
+
nothing there is the community's, and a look that wanders is a quarter hour spent for nothing.
|
|
23
|
+
|
|
24
|
+
The report is one of two things: the word `[SILENT]` alone when nothing was new, or one plain paragraph of what
|
|
25
|
+
was answered, filed and declined. Never a bracketed marker of any other kind — a marker the harness uses in its own
|
|
26
|
+
context is not a report.
|
|
22
27
|
|
|
23
28
|
1. Read: `bun .open-autonomy/community.ts poll` lists every issue, comment and discussion since the last look, then
|
|
24
29
|
`COMMUNITY_POLL_DONE`. Nothing new: report that and stop.
|