kiosapi 0.1.5 → 0.1.6

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/agent/run.js CHANGED
@@ -124,7 +124,7 @@ export async function runTurn(s, userText) {
124
124
  const calls = reply.tool_calls ?? [];
125
125
  if (calls.length === 0) {
126
126
  if (step === 0) {
127
- console.log(dim('(Model tidak memakai tool — pastikan model mendukung function calling, mis. /model anthropic/claude-sonnet-4-6.)'));
127
+ console.log(dim('(Model tidak memakai tool — pilih model ber-🔧 untuk agen, mis. /model deepseek/deepseek-v4-flash.)'));
128
128
  }
129
129
  return lastText; // final text answer
130
130
  }
package/dist/api.js CHANGED
@@ -156,7 +156,11 @@ export async function chatComplete(model, messages, tools, onText) {
156
156
  }
157
157
  const tool_calls = [...calls.values()]
158
158
  .filter((c) => c.name)
159
- .map((c) => ({ id: c.id, function: { name: c.name, arguments: c.args } }));
159
+ .map((c) => ({
160
+ id: c.id,
161
+ type: 'function',
162
+ function: { name: c.name, arguments: c.args },
163
+ }));
160
164
  return { content: content || null, tool_calls: tool_calls.length > 0 ? tool_calls : undefined };
161
165
  }
162
166
  /** Parse an OpenAI SSE stream, yielding content deltas. */
package/dist/commands.js CHANGED
@@ -136,7 +136,7 @@ export async function cmdModel(args) {
136
136
  /** Warn (best-effort) if the chosen model likely can't drive the agent's tools. */
137
137
  export async function warnIfNoTools(model) {
138
138
  if (!(await modelSupportsTools(model))) {
139
- console.error(yellow(`⚠ Model "${model}" mungkin tak mendukung tool calling — agen bisa tak bekerja. Pilih model 🔧 (lihat: kiosapi model --tools), mis. anthropic/claude-sonnet-4-6.`));
139
+ console.error(yellow(`⚠ Model "${model}" tak mendukung tool calling via Kiosapi — agen tak bekerja. Pilih model 🔧 (lihat: kiosapi model --tools), mis. deepseek/deepseek-v4-flash.`));
140
140
  }
141
141
  }
142
142
  /** tanya — one-shot streaming question (also reads piped stdin as context). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiosapi",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "CLI Kiosapi.id berbahasa Indonesia — bangun aplikasimu pakai API key Kiosapi (agen + multimodal).",
6
6
  "keywords": [