uncarved 0.1.1 → 0.1.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/plugin.d.ts +1 -1
- package/dist/plugin.js +1 -1
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
- package/src/plugin.ts +1 -1
- package/src/types.ts +3 -1
package/dist/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HookSpec, Layer } from "./hooks.ts";
|
|
2
2
|
import type { PluginManifestEntry, ResumePolicy, Tool } from "./types.ts";
|
|
3
3
|
/** 与 package.json 的 version 保持一致,插件用 semver 的 ^ 范围声明兼容的内核版本 */
|
|
4
|
-
export declare const KERNEL_VERSION = "0.1.
|
|
4
|
+
export declare const KERNEL_VERSION = "0.1.2";
|
|
5
5
|
/** 内核提供的能力:每个扩展点一项(`<种类>:<扩展点>`),外加插件写入日志的能力 */
|
|
6
6
|
export declare const CAPABILITIES: ReadonlySet<string>;
|
|
7
7
|
export interface Plugin {
|
package/dist/plugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// 插件声明与兼容性检查。对应宪法 4.6、8.2。
|
|
2
2
|
import { checkRemoteHook, isRemote } from "./remote.js";
|
|
3
3
|
/** 与 package.json 的 version 保持一致,插件用 semver 的 ^ 范围声明兼容的内核版本 */
|
|
4
|
-
export const KERNEL_VERSION = "0.1.
|
|
4
|
+
export const KERNEL_VERSION = "0.1.2";
|
|
5
5
|
/** 内核提供的能力:每个扩展点一项(`<种类>:<扩展点>`),外加插件写入日志的能力 */
|
|
6
6
|
export const CAPABILITIES = new Set([
|
|
7
7
|
"observe:session.start",
|
package/dist/types.d.ts
CHANGED
|
@@ -262,10 +262,12 @@ export interface ModelResponse {
|
|
|
262
262
|
}
|
|
263
263
|
/**
|
|
264
264
|
* 流式增量,只推送给订阅者,不记入日志(3.2)。
|
|
265
|
+
* tool_input:工具调用参数的片段(JSON 文本,可能为空串,例如只带着工具名的第一块)。一般不显示,
|
|
266
|
+
* 用来知道模型正在输出、计算输出速度;完整的参数以最终回复里的 tool_use 为准。
|
|
265
267
|
* reset:此前推送的本次模型调用的增量全部作废,例如包装 Provider 重试或切换之前(4.7)
|
|
266
268
|
*/
|
|
267
269
|
export type Delta = {
|
|
268
|
-
kind: "text" | "thinking";
|
|
270
|
+
kind: "text" | "thinking" | "tool_input";
|
|
269
271
|
text: string;
|
|
270
272
|
} | {
|
|
271
273
|
kind: "reset";
|
package/package.json
CHANGED
package/src/plugin.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { checkRemoteHook, isRemote } from "./remote.ts";
|
|
|
5
5
|
import type { PluginManifestEntry, ResumePolicy, Tool } from "./types.ts";
|
|
6
6
|
|
|
7
7
|
/** 与 package.json 的 version 保持一致,插件用 semver 的 ^ 范围声明兼容的内核版本 */
|
|
8
|
-
export const KERNEL_VERSION = "0.1.
|
|
8
|
+
export const KERNEL_VERSION = "0.1.2";
|
|
9
9
|
|
|
10
10
|
/** 内核提供的能力:每个扩展点一项(`<种类>:<扩展点>`),外加插件写入日志的能力 */
|
|
11
11
|
export const CAPABILITIES: ReadonlySet<string> = new Set([
|
package/src/types.ts
CHANGED
|
@@ -237,9 +237,11 @@ export interface ModelResponse {
|
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* 流式增量,只推送给订阅者,不记入日志(3.2)。
|
|
240
|
+
* tool_input:工具调用参数的片段(JSON 文本,可能为空串,例如只带着工具名的第一块)。一般不显示,
|
|
241
|
+
* 用来知道模型正在输出、计算输出速度;完整的参数以最终回复里的 tool_use 为准。
|
|
240
242
|
* reset:此前推送的本次模型调用的增量全部作废,例如包装 Provider 重试或切换之前(4.7)
|
|
241
243
|
*/
|
|
242
|
-
export type Delta = { kind: "text" | "thinking"; text: string } | { kind: "reset" };
|
|
244
|
+
export type Delta = { kind: "text" | "thinking" | "tool_input"; text: string } | { kind: "reset" };
|
|
243
245
|
|
|
244
246
|
/**
|
|
245
247
|
* 把模型请求翻译成某个模型接口的调用,实现不属于内核(4.7)。
|