@theokit/sdk-tools 0.22.1 → 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 +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -865,7 +865,8 @@ function createGitStatusTool(opts) {
|
|
|
865
865
|
}
|
|
866
866
|
const scopeCheck = checkPathScope(path$1, projectRoot);
|
|
867
867
|
if (scopeCheck !== null) return scopeCheck;
|
|
868
|
-
const args = ["status", "--porcelain"];
|
|
868
|
+
const args = ["status", "--porcelain=v1"];
|
|
869
|
+
if (opts.includeBranch !== false) args.push("-b");
|
|
869
870
|
if (path$1 !== void 0 && path$1 !== "") args.push("--", path$1);
|
|
870
871
|
const result = await runGitProcess(projectRoot, args, timeoutMs, maxStdoutBytes);
|
|
871
872
|
return formatGitResult(result, timeoutMs);
|
|
@@ -1739,8 +1740,8 @@ function askerDoContexto(context) {
|
|
|
1739
1740
|
function createQuestionTool(opts) {
|
|
1740
1741
|
const timeoutMs = opts.timeoutMs ?? 3e5;
|
|
1741
1742
|
return {
|
|
1742
|
-
name: "question",
|
|
1743
|
-
description: "Ask the user a question and wait for their response. Use when you need clarification or confirmation before proceeding. Returns { ok, answer } or { ok: false, error: 'timeout' }.",
|
|
1743
|
+
name: opts.name ?? "question",
|
|
1744
|
+
description: opts.description ?? "Ask the user a question and wait for their response. Use when you need clarification or confirmation before proceeding. Returns { ok, answer } or { ok: false, error: 'timeout' }.",
|
|
1744
1745
|
inputSchema: {
|
|
1745
1746
|
type: "object",
|
|
1746
1747
|
properties: {
|