zugzbot 1.0.16 → 1.0.17

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.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>client</title>
8
- <script type="module" crossorigin src="/assets/index-YZKuRh4S.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CBm0KdaD.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-GxkFc3Mh.css">
10
10
  </head>
11
11
  <body>
@@ -1067,6 +1067,24 @@ export default function App() {
1067
1067
  [newSess.id]: projectId
1068
1068
  }))
1069
1069
 
1070
+ // Si es un subproyecto (no la raíz), enviamos el anclaje de sistema de inmediato para orientar a la IA
1071
+ let anchorPrefix = ''
1072
+ if (project && project.id !== 'workspace_raiz') {
1073
+ anchorPrefix = `[SISTEMA: Directorio de trabajo del proyecto: ${project.path}. Por favor, realiza todas tus operaciones de archivos, edits, y ejecuciones de comandos de bash estrictamente dentro de esta subcarpeta usando el parámetro "workdir" o comandos relativos a la misma. No escribas archivos en la raíz del repositorio central de Zugzbot a menos que sea explícitamente necesario. Comienza saludando al usuario y confirmando que estás listo para trabajar en este subproyecto.]`
1074
+ }
1075
+
1076
+ if (anchorPrefix) {
1077
+ const bodyPayload = {
1078
+ parts: [{ type: 'text', text: anchorPrefix }],
1079
+ agent: selectedAgent || 'sdd-orchestrator'
1080
+ }
1081
+ await fetch(`/api/session/${newSess.id}/prompt_async`, {
1082
+ method: 'POST',
1083
+ headers: { 'Content-Type': 'application/json' },
1084
+ body: JSON.stringify(bodyPayload)
1085
+ })
1086
+ }
1087
+
1070
1088
  // Redirigir a la vista de chat
1071
1089
  navigateTo('/')
1072
1090
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zugzbot",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Fácil instalador del arnés SDD de Zugzbot para proyectos OpenCode",
5
5
  "type": "module",
6
6
  "bin": {