fix(voicewake): drop stale sdk collateral · openclaw/openclaw@ef7ad82
longbiaochen
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,9 +7,9 @@ import {
|
7 | 7 | import { Type } from "typebox"; |
8 | 8 | import { runFirecrawlScrape } from "./firecrawl-client.js"; |
9 | 9 | |
10 | | -function optionalStringEnum<T extends readonly string[]>( |
| 10 | +function optionalStringEnum<const T extends readonly string[]>( |
11 | 11 | values: T, |
12 | | -options: { description?: string; title?: string; default?: T[number] } = {}, |
| 12 | +options: { description?: string } = {}, |
13 | 13 | ) { |
14 | 14 | return Type.Optional( |
15 | 15 | Type.Unsafe<T[number]>({ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -69,7 +69,7 @@ export type {
|
69 | 69 | } from "./src/types.js"; |
70 | 70 | export * from "./src/webhook-node.js"; |
71 | 71 | export * from "./src/webhook.js"; |
72 | | -export { parseLineWebhookBody } from "./src/webhook-utils.js"; |
| 72 | +export * from "./src/webhook-utils.js"; |
73 | 73 | export { datetimePickerAction, messageAction, postbackAction, uriAction } from "./src/actions.js"; |
74 | 74 | export type { Action } from "./src/actions.js"; |
75 | 75 | export { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -878,14 +878,14 @@
|
878 | 878 | "types": "./dist/plugin-sdk/line.d.ts", |
879 | 879 | "default": "./dist/plugin-sdk/line.js" |
880 | 880 | }, |
881 | | -"./plugin-sdk/line-runtime": { |
882 | | -"types": "./dist/plugin-sdk/line-runtime.d.ts", |
883 | | -"default": "./dist/plugin-sdk/line-runtime.js" |
884 | | - }, |
885 | 881 | "./plugin-sdk/line-core": { |
886 | 882 | "types": "./dist/plugin-sdk/line-core.d.ts", |
887 | 883 | "default": "./dist/plugin-sdk/line-core.js" |
888 | 884 | }, |
| 885 | +"./plugin-sdk/line-runtime": { |
| 886 | +"types": "./dist/plugin-sdk/line-runtime.d.ts", |
| 887 | +"default": "./dist/plugin-sdk/line-runtime.js" |
| 888 | + }, |
889 | 889 | "./plugin-sdk/line-surface": { |
890 | 890 | "types": "./dist/plugin-sdk/line-surface.d.ts", |
891 | 891 | "default": "./dist/plugin-sdk/line-surface.js" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -205,8 +205,8 @@
|
205 | 205 | "persistent-dedupe", |
206 | 206 | "keyed-async-queue", |
207 | 207 | "line", |
208 | | -"line-runtime", |
209 | 208 | "line-core", |
| 209 | +"line-runtime", |
210 | 210 | "line-surface", |
211 | 211 | "llm-task", |
212 | 212 | "matrix", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -160,7 +160,7 @@ describe("sanitizeSessionHistory", () => {
|
160 | 160 | }; |
161 | 161 | |
162 | 162 | const getAssistantContentTypes = (messages: AgentMessage[]) => |
163 | | -getAssistantMessage(messages).content.map((block) => block.type); |
| 163 | +getAssistantMessage(messages).content.map((block: { type: string }) => block.type); |
164 | 164 | |
165 | 165 | const makeThinkingAndTextAssistantMessages = ( |
166 | 166 | thinkingSignature: string = "some_sig", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。