@theokit/sdk-tools 0.22.1 → 0.22.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/dist/index.d.cts CHANGED
@@ -681,6 +681,16 @@ interface QuestionToolOptions {
681
681
  askUser?: (question: string) => Promise<string>;
682
682
  /** Maximum time to wait for user response in ms. Default: 300_000 (5 min). */
683
683
  timeoutMs?: number;
684
+ /**
685
+ * M76 — nome exposto ao modelo. Omitido ⇒ `"question"` (aditivo).
686
+ *
687
+ * O consumidor precisava disto: o Codex chama a tool de `request_user_input`, e sem a opção ele
688
+ * era obrigado a reconstruir o objeto inteiro à mão — o adaptador com dois casts que a T3.3
689
+ * eliminou.
690
+ */
691
+ name?: string;
692
+ /** M76 — descrição exposta ao modelo. Omitida ⇒ o literal de hoje (aditivo). */
693
+ description?: string;
684
694
  }
685
695
  /**
686
696
  * M76 — alinhado ao `CustomTool` do SDK. Era uma interface própria com `inputSchema: unknown`, o que
package/dist/index.d.ts CHANGED
@@ -681,6 +681,16 @@ interface QuestionToolOptions {
681
681
  askUser?: (question: string) => Promise<string>;
682
682
  /** Maximum time to wait for user response in ms. Default: 300_000 (5 min). */
683
683
  timeoutMs?: number;
684
+ /**
685
+ * M76 — nome exposto ao modelo. Omitido ⇒ `"question"` (aditivo).
686
+ *
687
+ * O consumidor precisava disto: o Codex chama a tool de `request_user_input`, e sem a opção ele
688
+ * era obrigado a reconstruir o objeto inteiro à mão — o adaptador com dois casts que a T3.3
689
+ * eliminou.
690
+ */
691
+ name?: string;
692
+ /** M76 — descrição exposta ao modelo. Omitida ⇒ o literal de hoje (aditivo). */
693
+ description?: string;
684
694
  }
685
695
  /**
686
696
  * M76 — alinhado ao `CustomTool` do SDK. Era uma interface própria com `inputSchema: unknown`, o que
package/dist/index.js CHANGED
@@ -1737,8 +1737,8 @@ function askerDoContexto(context) {
1737
1737
  function createQuestionTool(opts) {
1738
1738
  const timeoutMs = opts.timeoutMs ?? 3e5;
1739
1739
  return {
1740
- name: "question",
1741
- 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' }.",
1740
+ name: opts.name ?? "question",
1741
+ 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' }.",
1742
1742
  inputSchema: {
1743
1743
  type: "object",
1744
1744
  properties: {