ai-first-os 2.1.1 → 2.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.
- package/README.md +4 -6
- package/core/VERSION +1 -1
- package/core/lib/bootstrap.sh +12 -9
- package/core/lib/common.sh +28 -0
- package/core/lib/pack-install.sh +10 -1
- package/core/lib/remote-backup.sh +60 -18
- package/core/skills/bootstrap.md +49 -23
- package/core/templates/strings.md +48 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,8 +98,8 @@ places, so updating them has two halves and both run:
|
|
|
98
98
|
1. **The system.** The agent goes to the local folder where the repository ended up, brings down the
|
|
99
99
|
newest version and runs `core/install.sh` from that folder.
|
|
100
100
|
2. **The pack**, if you installed it. The agent runs
|
|
101
|
-
`npx skills add pedroromeroluna/ai-first-product-skills` again, which replaces the skills in
|
|
102
|
-
published version. With no pack installed there is nothing to refresh, and this half is skipped.
|
|
101
|
+
`npx --yes skills add pedroromeroluna/ai-first-product-skills --agent claude-code --yes` again, which replaces the skills in
|
|
102
|
+
`.claude/skills/` with the published version. With no pack installed there is nothing to refresh, and this half is skipped.
|
|
103
103
|
|
|
104
104
|
Your brain —your workspaces, your decisions, your content— is not touched: the update only
|
|
105
105
|
refreshes the tools. And if the installer were run by mistake through the hook that is already
|
|
@@ -139,11 +139,10 @@ my-brain/
|
|
|
139
139
|
├── .os/
|
|
140
140
|
│ ├── core -> …/ai-first-os/core # The chassis by symlink: the eleven system skills in core/skills/, the shell in core/lib/
|
|
141
141
|
│ └── packs/<pack> -> … # Each installed pack, by symlink
|
|
142
|
-
├── .agents/skills/ # The pack's skills, left here by `npx skills add` (born with the first skill)
|
|
143
142
|
└── .claude/
|
|
144
143
|
├── CLAUDE.md # The same symlink as AGENTS.md: Claude Code reads the contract from here
|
|
145
144
|
├── agents/ # complete-spec, ambiguous-spec, scout — one symlink each
|
|
146
|
-
└── skills/ #
|
|
145
|
+
└── skills/ # The pack's skills, one folder each, left here by `npx skills add` (born with the first skill)
|
|
147
146
|
```
|
|
148
147
|
|
|
149
148
|
The interview writes `account/operator.md`, `account/voice/voice.md`, `.system/resolver.md`, `.system/tree.md` and `workspaces/personal/` —
|
|
@@ -157,8 +156,7 @@ needs instead of the whole register.
|
|
|
157
156
|
**Where the skills live.** The eleven skills of the system are not copied into your brain: they live
|
|
158
157
|
in `.os/core/skills/`, a symlink to the `core/` of the repository you brought down, and the agent
|
|
159
158
|
reaches them through the resolver. The skills of the pack are what `npx skills add` installs: one
|
|
160
|
-
folder per skill under `.
|
|
161
|
-
—the place Claude Code reads skills from, which is why they show up as `/cpo`, `/prd` and so on— plus
|
|
159
|
+
folder per skill under `.claude/skills/<name>/SKILL.md` —the place Claude Code reads skills from, which is why they show up as `/cpo`, `/prd` and so on— plus
|
|
162
160
|
`product-builder-resolver`, the pack's index. Your own skills, if you write any, go next to them as
|
|
163
161
|
plain folders in `.claude/skills/`.
|
|
164
162
|
|
package/core/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.1.
|
|
1
|
+
2.1.2
|
package/core/lib/bootstrap.sh
CHANGED
|
@@ -102,14 +102,16 @@ os_append_kv() {
|
|
|
102
102
|
# - sin identidad de git configurada, el commit se firma con una identidad genérica del producto y
|
|
103
103
|
# se avisa: el respaldo vale más que la firma.
|
|
104
104
|
respaldo_local() {
|
|
105
|
-
local brain="$1" lang="$2"
|
|
105
|
+
local brain="$1" lang="$2" state
|
|
106
106
|
os_lang_load "$lang"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
state=$(os_brain_repo_state "$brain")
|
|
108
|
+
case "$state" in
|
|
109
|
+
inside\ *)
|
|
110
|
+
printf 'sin respaldo: el brain vive adentro del repo %s — un repo anidado no se crea solo; moverlo afuera o versionarlo a mano lo elige el operador\n' "${state#inside }"
|
|
111
|
+
return 0
|
|
112
|
+
;;
|
|
113
|
+
none) git -C "$brain" init -q ;;
|
|
114
|
+
esac
|
|
113
115
|
git -C "$brain" add -A
|
|
114
116
|
if git -C "$brain" commit -q -m "$S_FIRST_COMMIT" > /dev/null 2>&1; then
|
|
115
117
|
printf 'respaldo local: git init + primer commit\n'
|
|
@@ -187,8 +189,9 @@ fi
|
|
|
187
189
|
|
|
188
190
|
templates="$here/../templates"
|
|
189
191
|
mkdir -p "$brain"
|
|
190
|
-
# Ruta física: `
|
|
191
|
-
#
|
|
192
|
+
# Ruta física: sin symlinks adentro (`/var` → `/private/var` en macOS), para que lo que se imprime
|
|
193
|
+
# y lo que git nombra sean la misma carpeta. Si el brain es la raíz de su repo lo decide
|
|
194
|
+
# `os_brain_repo_state`, no una comparación de rutas.
|
|
192
195
|
brain=$(cd "$brain" && pwd -P)
|
|
193
196
|
|
|
194
197
|
# El bootstrap crea; no rehace. Si las piezas de la raíz ya están, frena: reescribirlas borraría lo
|
package/core/lib/common.sh
CHANGED
|
@@ -252,6 +252,34 @@ os_language() {
|
|
|
252
252
|
fi
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
+
# os_brain_repo_state BRAIN -> prints one of: `root` (the brain is the root of its own git repo),
|
|
256
|
+
# `inside <toplevel>` (it lives inside another repo, named by its root) or `none` (no repo at all).
|
|
257
|
+
# The decision comes from `git rev-parse --show-prefix`, which is empty exactly at the root and does
|
|
258
|
+
# not depend on how a path is written: on Windows `--show-toplevel` answers `C:/...` while the
|
|
259
|
+
# shell's `pwd -P` answers `/c/...`, so the two never match as text (spec 081). The toplevel is
|
|
260
|
+
# only printed to name the outer repo, never compared against the brain's path.
|
|
261
|
+
# An empty prefix is also what git answers inside a repository's `.git` directory, which is not a
|
|
262
|
+
# worktree: there the brain is reported as inside that repository, named by its git directory, so
|
|
263
|
+
# neither caller treats it as its own root.
|
|
264
|
+
os_brain_repo_state() {
|
|
265
|
+
local brain="$1" prefix top
|
|
266
|
+
if ! prefix=$(git -C "$brain" rev-parse --show-prefix 2>/dev/null); then
|
|
267
|
+
printf 'none'
|
|
268
|
+
return 0
|
|
269
|
+
fi
|
|
270
|
+
if [ "$(git -C "$brain" rev-parse --is-inside-work-tree 2>/dev/null)" != "true" ]; then
|
|
271
|
+
top=$(git -C "$brain" rev-parse --absolute-git-dir 2>/dev/null) || top=""
|
|
272
|
+
printf 'inside %s' "$top"
|
|
273
|
+
return 0
|
|
274
|
+
fi
|
|
275
|
+
if [ -z "$prefix" ]; then
|
|
276
|
+
printf 'root'
|
|
277
|
+
return 0
|
|
278
|
+
fi
|
|
279
|
+
top=$(git -C "$brain" rev-parse --show-toplevel 2>/dev/null) || top=""
|
|
280
|
+
printf 'inside %s' "$top"
|
|
281
|
+
}
|
|
282
|
+
|
|
255
283
|
# os_lang_load IDIOMA
|
|
256
284
|
# Carga el catálogo `templates/strings.md` en variables `S_<CLAVE>`, y deja las claves leídas en
|
|
257
285
|
# `OS_STRING_KEYS`. Una clave sin su línea en el idioma pedido cae a `en` y lo dice por stderr: un
|
package/core/lib/pack-install.sh
CHANGED
|
@@ -54,7 +54,12 @@ brain=$(cd "$brain" && pwd -P)
|
|
|
54
54
|
# El nombre del repo del pack: el fuente lleva el placeholder y el release lo resuelve al generar el
|
|
55
55
|
# chasis. El comando exacto se arma una sola vez acá y lo leen las tres salidas.
|
|
56
56
|
pack_repo="pedroromeroluna/ai-first-product-skills"
|
|
57
|
-
|
|
57
|
+
# Spec 081: no confirmation left to ask. `npx --yes` skips npx's own "Ok to proceed?" and the CLI's
|
|
58
|
+
# `--yes` skips its prompts; `--agent claude-code` names the destination, because with `--yes` and no
|
|
59
|
+
# agent the CLI installs to every agent it knows when it detects none (skills CLI 1.7.4: only
|
|
60
|
+
# `.claude/skills/` is written, plus `skills-lock.json` at the brain root). Still no `--all` and no
|
|
61
|
+
# `--skill '*'`.
|
|
62
|
+
comando="npx --yes skills add $pack_repo --agent claude-code --yes"
|
|
58
63
|
|
|
59
64
|
# Qué del pack ya está donde el CLI lo deja. No es una lista escrita: es lo que hay en el brain.
|
|
60
65
|
instalados=""
|
|
@@ -118,6 +123,10 @@ fi
|
|
|
118
123
|
# CLI lo saltea sin que nadie tenga que nombrarlo (spec 029). Nunca se instala para después borrar.
|
|
119
124
|
if command -v node > /dev/null 2>&1; then
|
|
120
125
|
printf 'node: %s\n' "$(node --version 2>/dev/null || printf 'presente')"
|
|
126
|
+
printf '%s\n' "$S_PACK_OFFER_QUESTION"
|
|
127
|
+
printf ' 1. %s\n' "$S_PACK_OPTION_INSTALL"
|
|
128
|
+
printf ' 2. %s\n' "$S_PACK_OPTION_LATER"
|
|
129
|
+
printf '%s\n' "$S_CHOICE_REPLY_WITH_NUMBER"
|
|
121
130
|
printf ' comando: %s\n' "$comando"
|
|
122
131
|
printf ' tal cual: sin --all y sin --skill "*", que bajan también lo que el chasis ya provee\n'
|
|
123
132
|
printf ' lo corre la sesión con el sí del operador, desde la carpeta del brain; este script nunca lo corre\n'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# La conduce core/skills/bootstrap.md al cerrar el bootstrap, y la puede volver a correr cualquier
|
|
4
4
|
# sesión posterior — que es lo que la tarea pendiente del backlog le pide al operador.
|
|
5
5
|
#
|
|
6
|
-
# Uso: remote-backup.sh --brain DIR [--note]
|
|
6
|
+
# Uso: remote-backup.sh --brain DIR [--service github|bitbucket|other|none] [--note]
|
|
7
7
|
#
|
|
8
8
|
# El script NUNCA crea el repo ni pushea: eso escapa del sistema —queda algo en la cuenta de una
|
|
9
9
|
# persona— y se hace con la confirmación del operador en la sesión. Acá se decide cuál de las dos
|
|
@@ -15,8 +15,17 @@
|
|
|
15
15
|
# spec 076): con el sí del operador en ese turno, la sesión lo vuelve a correr con `--note`, que
|
|
16
16
|
# deja la tarea guiada en el backlog de la iniciativa tasks-to-sort del workspace personal.
|
|
17
17
|
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
18
|
+
# Spec 081: sin `--service` y sin `origin`, el script pregunta DÓNDE va el respaldo (GitHub, Bitbucket,
|
|
19
|
+
# otro servicio o ninguno): imprime la pregunta y las cuatro opciones del catálogo, no escribe nada y
|
|
20
|
+
# sale con 8; la sesión pregunta y vuelve a correr con `--service <lo elegido>`.
|
|
21
|
+
# - github: lo de arriba, sin cambios (gh, o BACKUP_TASK y exit 7);
|
|
22
|
+
# - bitbucket | other: no miran `gh`; imprimen BACKUP_TASK_GENERIC y la pregunta, exit 7; con
|
|
23
|
+
# `--note` la tarea queda en el backlog, igual que la de GitHub;
|
|
24
|
+
# - none: imprime BACKUP_NONE, exit 0, no escribe nada.
|
|
25
|
+
#
|
|
26
|
+
# Exit: 0 decidió (o anotó con --note, o `none`) · 1 si el brain no está versionado · 7 sin gh (o en
|
|
27
|
+
# Bitbucket/otro) y sin --note: la pregunta quedó impresa y no se escribió nada · 8 sin
|
|
28
|
+
# `--service`: la pregunta de dónde quedó impresa y no se escribió nada.
|
|
20
29
|
|
|
21
30
|
set -eu
|
|
22
31
|
|
|
@@ -25,23 +34,31 @@ here=$(cd "$(dirname "$0")" && pwd)
|
|
|
25
34
|
|
|
26
35
|
brain=""
|
|
27
36
|
note=0
|
|
37
|
+
service=""
|
|
28
38
|
|
|
29
39
|
while [ $# -gt 0 ]; do
|
|
30
40
|
case "$1" in
|
|
31
41
|
--brain) brain="$2"; shift 2 ;;
|
|
32
42
|
--note) note=1; shift ;;
|
|
43
|
+
--service) [ $# -ge 2 ] || os_die "falta el valor de --service"; service="$2"; shift 2 ;;
|
|
33
44
|
*) os_die "argumento desconocido: $1" ;;
|
|
34
45
|
esac
|
|
35
46
|
done
|
|
36
47
|
|
|
37
48
|
[ -n "$brain" ] || os_die "falta --brain"
|
|
49
|
+
# Las banderas mal usadas frenan antes de tocar nada (spec 081, C8).
|
|
50
|
+
case "$service" in
|
|
51
|
+
''|github|bitbucket|other|none) ;;
|
|
52
|
+
*) os_die "--service acepta github, bitbucket, other o none: $service" ;;
|
|
53
|
+
esac
|
|
54
|
+
if [ "$note" = "1" ] && [ -z "$service" ]; then os_die "--note necesita --service: sin saber dónde va el respaldo no hay tarea que anotar"; fi
|
|
55
|
+
if [ "$note" = "1" ] && [ "$service" = "none" ]; then os_die "--service none no anota nada: --note no aplica"; fi
|
|
38
56
|
[ -d "$brain" ] || os_die "no existe el brain: $brain"
|
|
39
57
|
# Ruta física: ver el comentario de bootstrap.sh.
|
|
40
58
|
brain=$(cd "$brain" && pwd -P)
|
|
41
59
|
|
|
42
60
|
command -v git > /dev/null 2>&1 || os_die "git no está en el PATH: sin respaldo local no hay remoto que armar"
|
|
43
|
-
|
|
44
|
-
if [ "$top" != "$brain" ]; then
|
|
61
|
+
if [ "$(os_brain_repo_state "$brain")" != "root" ]; then
|
|
45
62
|
os_die "el brain no es un repo git: el respaldo remoto va después del local"
|
|
46
63
|
fi
|
|
47
64
|
|
|
@@ -52,20 +69,48 @@ if [ -n "$remoto" ]; then
|
|
|
52
69
|
exit 0
|
|
53
70
|
fi
|
|
54
71
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
72
|
+
language=$(os_language "$brain")
|
|
73
|
+
os_lang_load "$language"
|
|
74
|
+
|
|
75
|
+
# Sin `--service`: la pregunta de dónde va el respaldo. No corre `gh`, no escribe nada, sale con 8.
|
|
76
|
+
if [ -z "$service" ]; then
|
|
77
|
+
printf '%s\n' "$S_BACKUP_WHERE_QUESTION"
|
|
78
|
+
printf ' 1. %s\n' "$S_BACKUP_OPTION_GITHUB"
|
|
79
|
+
printf ' 2. %s\n' "$S_BACKUP_OPTION_BITBUCKET"
|
|
80
|
+
printf ' 3. %s\n' "$S_BACKUP_OPTION_OTHER"
|
|
81
|
+
printf ' 4. %s\n' "$S_BACKUP_OPTION_NONE"
|
|
82
|
+
printf '%s\n' "$S_CHOICE_REPLY_WITH_NUMBER"
|
|
83
|
+
exit 8
|
|
61
84
|
fi
|
|
62
85
|
|
|
63
|
-
if [ "$
|
|
64
|
-
printf '
|
|
65
|
-
printf ' comando: gh repo create %s --private --source %s --push\n' "$(basename "$brain")" "$brain"
|
|
86
|
+
if [ "$service" = "none" ]; then
|
|
87
|
+
printf '%s\n' "$S_BACKUP_NONE"
|
|
66
88
|
exit 0
|
|
67
89
|
fi
|
|
68
90
|
|
|
91
|
+
# `gh auth status` solo lee. Ningún otro comando de `gh` corre desde acá, y solo con GitHub elegido.
|
|
92
|
+
if [ "$service" = "github" ]; then
|
|
93
|
+
autenticado=0
|
|
94
|
+
if command -v gh > /dev/null 2>&1; then
|
|
95
|
+
if gh auth status > /dev/null 2>&1; then
|
|
96
|
+
autenticado=1
|
|
97
|
+
fi
|
|
98
|
+
fi
|
|
99
|
+
|
|
100
|
+
if [ "$autenticado" = "1" ]; then
|
|
101
|
+
printf 'respaldo remoto: gh autenticado — el repo lo crea el operador con su sí, nunca este script\n'
|
|
102
|
+
printf ' comando: gh repo create %s --private --source %s --push\n' "$(basename "$brain")" "$brain"
|
|
103
|
+
exit 0
|
|
104
|
+
fi
|
|
105
|
+
tarea="$S_BACKUP_TASK"
|
|
106
|
+
causa="sin gh autenticado"
|
|
107
|
+
else
|
|
108
|
+
# Bitbucket u otro servicio: pasos genéricos, sin `gh` ni github.com.
|
|
109
|
+
if [ "$service" = "bitbucket" ]; then nombre="$S_BACKUP_OPTION_BITBUCKET"; else nombre="$S_BACKUP_SERVICE_OTHER"; fi
|
|
110
|
+
tarea=$(printf "$S_BACKUP_TASK_GENERIC" "$nombre")
|
|
111
|
+
causa="el repositorio remoto lo crea el operador"
|
|
112
|
+
fi
|
|
113
|
+
|
|
69
114
|
# Sin gh no se puede armar el remoto hoy: la tarea queda en el backlog del espacio de trabajo
|
|
70
115
|
# `personal` (spec 059: la raíz ya no tiene backlog propio), con la guía adentro, y el que la termina
|
|
71
116
|
# es cualquier sesión posterior. Un pendiente que nadie escribe es un pendiente que nadie completa.
|
|
@@ -73,9 +118,6 @@ fi
|
|
|
73
118
|
# que pueda nombrar una iniciativa — armar el remoto de respaldo no es trabajo de ninguna. Va al
|
|
74
119
|
# backlog de la iniciativa `tasks-to-sort` del workspace `personal` (spec 076, C29). La escritura vive
|
|
75
120
|
# en `os_personal_backlog_append`.
|
|
76
|
-
language=$(os_language "$brain")
|
|
77
|
-
os_lang_load "$language"
|
|
78
|
-
tarea="$S_BACKUP_TASK"
|
|
79
121
|
if [ "$note" = "0" ]; then
|
|
80
122
|
printf "$S_NOTE_FOR_LATER_STEP\n" "$tarea"
|
|
81
123
|
printf '%s\n' "$S_NOTE_FOR_LATER_QUESTION"
|
|
@@ -86,7 +128,7 @@ os_ws_check "$brain"
|
|
|
86
128
|
rc=0
|
|
87
129
|
os_personal_backlog_append "$brain" "$tarea" || rc=$?
|
|
88
130
|
case "$rc" in
|
|
89
|
-
0) printf 'respaldo remoto: pendiente —
|
|
131
|
+
0) printf 'respaldo remoto: pendiente — %s, la tarea guiada quedó en el backlog de la iniciativa tasks-to-sort del workspace personal\n' "$causa" ;;
|
|
90
132
|
1) printf 'respaldo remoto: la tarea pendiente ya estaba en el backlog de la iniciativa tasks-to-sort del workspace personal\n' ;;
|
|
91
133
|
3) printf 'respaldo remoto: pendiente y sin escribir — el slug tasks-to-sort del workspace personal lo usa una iniciativa que trata sobre un nodo\n' ;;
|
|
92
134
|
*) printf 'respaldo remoto: pendiente y sin escribir — el workspace personal no existe todavía; correr migrate-root.sh y repetir\n' ;;
|
package/core/skills/bootstrap.md
CHANGED
|
@@ -160,23 +160,43 @@ them. Adding a second workspace to a brain that already exists is `new-workspace
|
|
|
160
160
|
`git init` and the first commit. Nothing to ask; a brain with no history loses work silently. git is
|
|
161
161
|
guaranteed present by the preflight in Step 0 — there is no unversioned brain to describe here.
|
|
162
162
|
|
|
163
|
-
**Remote, right after**, and it never runs alone:
|
|
163
|
+
**Remote, right after**, and it never runs alone. First the script asks where it goes:
|
|
164
164
|
|
|
165
165
|
```
|
|
166
166
|
.os/core/lib/remote-backup.sh --brain .
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
169
|
+
With no `origin` declared it prints the question, four numbered options (GitHub, Bitbucket, another
|
|
170
|
+
service, none) and "Reply with the number", writes nothing and exits 8. With an `origin` it prints
|
|
171
|
+
where the backup already is and exits 0: nothing to ask.
|
|
172
|
+
|
|
173
|
+
**Ask it as a multiple-choice question**: with the harness's multiple-choice tool if it has one (in
|
|
174
|
+
Claude Code, `AskUserQuestion`), using the question, labels and descriptions the script printed; if
|
|
175
|
+
it has none, show the numbered list the script printed, and a number is enough as the answer. Then
|
|
176
|
+
run `.os/core/lib/remote-backup.sh --brain . --service <github|bitbucket|other|none>` and follow what
|
|
177
|
+
it prints:
|
|
178
|
+
|
|
179
|
+
- **GitHub.** With `gh` authenticated it prints the offer and the exact `gh repo create` command.
|
|
180
|
+
**Ask the operator and run it only with their yes in that turn**: it leaves a repository in their
|
|
181
|
+
account, which escapes the system. Without `gh`, it writes nothing: it prints the pending step
|
|
182
|
+
(create the account at github.com —**the operator creates it, never the agent**—, run
|
|
183
|
+
`gh auth login`, and any later session finishes the rest by running the same script) and the
|
|
184
|
+
question to ask, and exits 7. Ask the operator the question it printed, in the brain's language
|
|
185
|
+
("Should I note it down for later?", from `NOTE_FOR_LATER_QUESTION` in the strings catalog).
|
|
186
|
+
**Only with their yes in that turn** run
|
|
187
|
+
`.os/core/lib/remote-backup.sh --brain . --service github --note`: the guided task lands in the
|
|
188
|
+
`personal` workspace, in its "Tasks to sort" initiative, created the first time. No yes: nothing
|
|
189
|
+
is written, and say so plainly ("I did not note anything down").
|
|
190
|
+
- **Bitbucket or another service.** The script never looks at `gh`: it prints the generic pending
|
|
191
|
+
step (the operator creates an empty private repository there, never the agent; then
|
|
192
|
+
`git remote add origin <repository address>` and `git push -u origin HEAD`) and the same question,
|
|
193
|
+
and exits 7. If the person already has the repository address, run those two `git` commands with
|
|
194
|
+
that address **only with their yes in that turn**. If they do not have it yet, ask the question the
|
|
195
|
+
script printed and, **only with their yes in that turn**, run
|
|
196
|
+
`.os/core/lib/remote-backup.sh --brain . --service <bitbucket|other> --note`. No yes: nothing is
|
|
197
|
+
written, and say so plainly.
|
|
198
|
+
- **None.** Run `--service none`: it says `BACKUP_NONE` ("No remote backup for now...") and writes
|
|
199
|
+
nothing, not even a note in the backlog.
|
|
180
200
|
|
|
181
201
|
Synced folders (iCloud, Drive) are not offered as backup: the system runs on symlinks and those
|
|
182
202
|
folders break them.
|
|
@@ -197,17 +217,21 @@ got installed.** Whoever came in through `npx ai-first-os` has Node by construct
|
|
|
197
217
|
the git-clone prompt may or may not.
|
|
198
218
|
|
|
199
219
|
- **Node present: one question, not two.** There is nothing to defer when the download can run right
|
|
200
|
-
now
|
|
220
|
+
now. The offer prints the question, two numbered options (Install, Later) and "Reply with the
|
|
221
|
+
number". **Ask it as a multiple-choice question**: with the harness's multiple-choice tool if it has
|
|
222
|
+
one (in Claude Code, `AskUserQuestion`), with the labels and descriptions the offer printed; if it
|
|
223
|
+
has none, show the numbered list it printed, and a number is enough as the answer:
|
|
201
224
|
|
|
202
225
|
> The craft on top —discovery, the metric brief, the interview that writes a product's strategic
|
|
203
|
-
> layer— travels in a pack of skills. Install it now?
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
What lands: one folder per skill
|
|
208
|
-
(`<pack>-resolver`), which is what the session
|
|
209
|
-
|
|
210
|
-
|
|
226
|
+
> layer— travels in a pack of skills. Install it now?
|
|
227
|
+
|
|
228
|
+
Install: run the command the offer printed, from the brain folder, **only with their yes in that turn**
|
|
229
|
+
(choosing Install is the yes). The command carries its own confirmations (`npx --yes`, the CLI's `--yes`) and names
|
|
230
|
+
its destination, so nothing else asks anything in the terminal. What lands: one folder per skill
|
|
231
|
+
under `.claude/skills/`, plus the pack's own index (`<pack>-resolver`), which is what the session
|
|
232
|
+
contract reads to route a request to the pack. The harness also offers those skills natively,
|
|
233
|
+
because that is where it looks for them. Later: leave it as is —
|
|
234
|
+
**nothing gets written to the backlog**; the same offer comes back the day a session needs a
|
|
211
235
|
capability of the pack that is not installed.
|
|
212
236
|
- **Node missing: the only exit is later.** Point at the LTS installer on nodejs.org — you guide, the
|
|
213
237
|
operator installs, and a no is an answer, not an error. Whether they install it right now or not,
|
|
@@ -223,8 +247,10 @@ the git-clone prompt may or may not.
|
|
|
223
247
|
system already provides travels marked internal in the pack, and the CLI skips it on its own — there
|
|
224
248
|
is no list to keep here, and nothing is ever installed and then deleted.
|
|
225
249
|
|
|
226
|
-
**If it fails —no network, registry down, the operator says no— the flow does not stop.** Retry once
|
|
227
|
-
|
|
250
|
+
**If it fails —no network, registry down, the operator says no— the flow does not stop.** Retry once,
|
|
251
|
+
and only for a technical failure: the command no longer asks before downloading, so a no from the
|
|
252
|
+
operator is never retried — it takes the later exit right away. If the retry fails too, take the
|
|
253
|
+
later exit above —the same question, and the note only with a yes— and say it out loud. A
|
|
228
254
|
bootstrap aborted halfway because a download failed is the worse outcome of the two.
|
|
229
255
|
|
|
230
256
|
## When it finishes
|
|
@@ -442,6 +442,54 @@ key: BACKUP_TASK
|
|
|
442
442
|
en: Remote backup pending: create the account at github.com (the operator creates it, never the agent), run `gh auth login`, and then ask any session to run `.os/core/lib/remote-backup.sh --brain .`
|
|
443
443
|
es: Respaldo remoto pendiente: crear la cuenta en github.com (la crea el operador, nunca el agente), correr `gh auth login`, y después pedirle a cualquier sesión que corra `.os/core/lib/remote-backup.sh --brain .`
|
|
444
444
|
|
|
445
|
+
key: BACKUP_WHERE_QUESTION
|
|
446
|
+
en: Where should the remote backup of your brain live? It is a private copy outside this computer. If your brain will hold your company's information, use the service your company approved.
|
|
447
|
+
es: ¿Dónde querés el respaldo remoto de tu brain? Es una copia privada fuera de esta computadora. Si tu brain va a tener información de tu empresa, usá el servicio que tu empresa aprobó.
|
|
448
|
+
|
|
449
|
+
key: BACKUP_OPTION_GITHUB
|
|
450
|
+
en: GitHub
|
|
451
|
+
es: GitHub
|
|
452
|
+
|
|
453
|
+
key: BACKUP_OPTION_BITBUCKET
|
|
454
|
+
en: Bitbucket
|
|
455
|
+
es: Bitbucket
|
|
456
|
+
|
|
457
|
+
key: BACKUP_OPTION_OTHER
|
|
458
|
+
en: Another service — GitLab, Azure DevOps or your company's server
|
|
459
|
+
es: Otro servicio — GitLab, Azure DevOps o el servidor de tu empresa
|
|
460
|
+
|
|
461
|
+
key: BACKUP_OPTION_NONE
|
|
462
|
+
en: None for now — the local backup keeps working
|
|
463
|
+
es: Ninguno por ahora — el respaldo local sigue funcionando
|
|
464
|
+
|
|
465
|
+
key: BACKUP_TASK_GENERIC
|
|
466
|
+
en: Remote backup pending on %s: create an empty private repository there (the operator creates it, never the agent), then ask any session to connect it with `git remote add origin <repository address>` and `git push -u origin HEAD`.
|
|
467
|
+
es: Respaldo remoto pendiente en %s: crear ahí un repositorio privado y vacío (lo crea el operador, nunca el agente), y después pedirle a cualquier sesión que lo conecte con `git remote add origin <dirección del repositorio>` y `git push -u origin HEAD`.
|
|
468
|
+
|
|
469
|
+
key: BACKUP_SERVICE_OTHER
|
|
470
|
+
en: the service you chose
|
|
471
|
+
es: el servicio que elegiste
|
|
472
|
+
|
|
473
|
+
key: BACKUP_NONE
|
|
474
|
+
en: No remote backup for now. The local backup keeps working, and nothing was noted down.
|
|
475
|
+
es: Sin respaldo remoto por ahora. El respaldo local sigue funcionando y no se anotó nada.
|
|
476
|
+
|
|
477
|
+
key: PACK_OFFER_QUESTION
|
|
478
|
+
en: The craft on top —discovery, the metric brief, the interview that writes a product's strategic layer— travels in a pack of skills. Install it now?
|
|
479
|
+
es: El oficio de arriba —discovery, el brief de métricas, la entrevista que escribe la capa estratégica de un producto— viaja en un pack de skills. ¿Lo instalo ahora?
|
|
480
|
+
|
|
481
|
+
key: PACK_OPTION_INSTALL
|
|
482
|
+
en: Install — downloads the pack into this brain, with no other confirmation
|
|
483
|
+
es: Instalar — baja el pack a este brain, sin otra confirmación
|
|
484
|
+
|
|
485
|
+
key: PACK_OPTION_LATER
|
|
486
|
+
en: Later — everything else works without it, and nothing is noted down
|
|
487
|
+
es: Después — todo lo demás funciona sin él, y no se anota nada
|
|
488
|
+
|
|
489
|
+
key: CHOICE_REPLY_WITH_NUMBER
|
|
490
|
+
en: Reply with the number.
|
|
491
|
+
es: Contestá con el número.
|
|
492
|
+
|
|
445
493
|
key: REPO_INTRO
|
|
446
494
|
en: The body of an initiative: the specs, the decisions and the as-built of what gets built here.
|
|
447
495
|
en: The head —what it is for and what state it is in— lives in the brain that mounted this repo.
|
package/package.json
CHANGED