@jmanuelcorral/openteam 0.1.25 → 0.1.26

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/README.md +20 -0
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -543,6 +543,26 @@ bun run format:check
543
543
  bun run build
544
544
  ```
545
545
 
546
+ ### Desarrollo local en modo dev (sin registry)
547
+
548
+ Para que la CLI global `openteam` y opencode usen la build local de este repo en
549
+ lugar de la versión publicada (sin pasar por ningún registry), se enlaza el
550
+ paquete con un symlink global:
551
+
552
+ ```powershell
553
+ Set-Location -Path "C:\gitrepos\openteam"
554
+ bun run link:local # = bun run build && npm link
555
+ ```
556
+
557
+ `npm link` crea un enlace global (junction/symlink) hacia este repo, así que tras
558
+ cada `bun run build` la CLI global refleja el código local.
559
+
560
+ Un hook `pre-push` versionado (`.githooks/pre-push`) ejecuta `bun run link:local`
561
+ automáticamente antes de cada `git push`, manteniendo la instalación local al día.
562
+ El hook se activa vía `core.hooksPath=.githooks`, que el script `prepare` configura
563
+ automáticamente al ejecutar `bun install` en el repo. Es best-effort: si el build o
564
+ el link fallan, avisa pero **no bloquea** el push.
565
+
546
566
  ## Privacidad
547
567
 
548
568
  Con `privacyMode: "forceLocalOnSensitive"`, si `TaskSignals.privacySensitive` es `true`, `chooseModel` usa local y no permite fallback frontier. Si no hay local utilizable, la decisión conserva la ruta local y registra la razón en `rationale`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jmanuelcorral/openteam",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "Plugin opencode de routing coste-consciente local-first con orquestación Squad.",
5
5
  "license": "MIT",
6
6
  "author": "Jose Manuel Corral",
@@ -66,7 +66,9 @@
66
66
  "typecheck": "tsc --noEmit",
67
67
  "lint": "biome check .",
68
68
  "format:check": "biome format .",
69
- "prepublishOnly": "bun run build"
69
+ "prepublishOnly": "bun run build",
70
+ "link:local": "bun run build && npm link",
71
+ "prepare": "node -e \"try{require('node:child_process').execSync('git config core.hooksPath .githooks',{stdio:'ignore'})}catch{}\""
70
72
  },
71
73
  "dependencies": {
72
74
  "@clack/prompts": "1.7.0",