@theokit/sdk-tools 0.22.2 → 0.23.0
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/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -217,6 +217,14 @@ interface CreateGitStatusToolOptions {
|
|
|
217
217
|
name?: string;
|
|
218
218
|
/** M76 — descrição exposta ao modelo. Omitida ⇒ o literal abaixo (aditivo). */
|
|
219
219
|
description?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Incluir a linha de branch (`-b`) no início da saída. Default `true`.
|
|
222
|
+
*
|
|
223
|
+
* Sem ela o agente vê o que mudou mas não ONDE — e "estou na branch certa?" é a pergunta que
|
|
224
|
+
* precede qualquer commit. O consumidor (agent-builder) já dependia disso; omiti-la faria a
|
|
225
|
+
* migração perder comportamento em silêncio, que é o que a deleção de código local não pode custar.
|
|
226
|
+
*/
|
|
227
|
+
includeBranch?: boolean;
|
|
220
228
|
}
|
|
221
229
|
declare function createGitStatusTool(opts: CreateGitStatusToolOptions): CustomTool;
|
|
222
230
|
|
package/dist/index.d.ts
CHANGED
|
@@ -217,6 +217,14 @@ interface CreateGitStatusToolOptions {
|
|
|
217
217
|
name?: string;
|
|
218
218
|
/** M76 — descrição exposta ao modelo. Omitida ⇒ o literal abaixo (aditivo). */
|
|
219
219
|
description?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Incluir a linha de branch (`-b`) no início da saída. Default `true`.
|
|
222
|
+
*
|
|
223
|
+
* Sem ela o agente vê o que mudou mas não ONDE — e "estou na branch certa?" é a pergunta que
|
|
224
|
+
* precede qualquer commit. O consumidor (agent-builder) já dependia disso; omiti-la faria a
|
|
225
|
+
* migração perder comportamento em silêncio, que é o que a deleção de código local não pode custar.
|
|
226
|
+
*/
|
|
227
|
+
includeBranch?: boolean;
|
|
220
228
|
}
|
|
221
229
|
declare function createGitStatusTool(opts: CreateGitStatusToolOptions): CustomTool;
|
|
222
230
|
|
package/dist/index.js
CHANGED
|
@@ -863,7 +863,8 @@ function createGitStatusTool(opts) {
|
|
|
863
863
|
}
|
|
864
864
|
const scopeCheck = checkPathScope(path, projectRoot);
|
|
865
865
|
if (scopeCheck !== null) return scopeCheck;
|
|
866
|
-
const args = ["status", "--porcelain"];
|
|
866
|
+
const args = ["status", "--porcelain=v1"];
|
|
867
|
+
if (opts.includeBranch !== false) args.push("-b");
|
|
867
868
|
if (path !== void 0 && path !== "") args.push("--", path);
|
|
868
869
|
const result = await runGitProcess(projectRoot, args, timeoutMs, maxStdoutBytes);
|
|
869
870
|
return formatGitResult(result, timeoutMs);
|