@hedgehog-finance/hedgehog-plugin 1.0.12 → 1.0.14
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.ts +10 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/src/channel.d.ts +6 -0
- package/dist/src/channel.js +670 -0
- package/dist/src/channel.js.map +1 -0
- package/dist/src/core/database.d.ts +2 -0
- package/dist/src/core/database.js +220 -0
- package/dist/src/core/database.js.map +1 -0
- package/dist/src/core/logger.d.ts +3 -0
- package/dist/src/core/logger.js +20 -0
- package/dist/src/core/logger.js.map +1 -0
- package/dist/src/features/index.d.ts +22 -0
- package/dist/src/features/index.js +8 -0
- package/dist/src/features/index.js.map +1 -0
- package/dist/src/features/watchlist/logic.d.ts +48 -0
- package/dist/src/features/watchlist/logic.js +607 -0
- package/dist/src/features/watchlist/logic.js.map +1 -0
- package/dist/src/features/watchlist/schema.d.ts +85 -0
- package/dist/src/features/watchlist/schema.js +29 -0
- package/dist/src/features/watchlist/schema.js.map +1 -0
- package/dist/src/features/watchlist/store.d.ts +1 -0
- package/dist/src/features/watchlist/store.js +2 -0
- package/dist/src/features/watchlist/store.js.map +1 -0
- package/dist/src/features/watchlist/tools.d.ts +135 -0
- package/dist/src/features/watchlist/tools.js +572 -0
- package/dist/src/features/watchlist/tools.js.map +1 -0
- package/dist/src/runtime.d.ts +5 -0
- package/dist/src/runtime.js +40 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/types.d.ts +99 -0
- package/dist/src/types.js +16 -0
- package/dist/src/types.js.map +1 -0
- package/index.ts +4 -4
- package/package.json +23 -6
- package/src/channel.ts +85 -12
- package/src/core/database.ts +90 -3
- package/src/features/index.ts +2 -1
- package/src/features/watchlist/logic.ts +503 -128
- package/src/features/watchlist/schema.ts +1 -6
- package/src/features/watchlist/tools.ts +248 -103
- package/src/runtime.ts +3 -3
- package/src/types.ts +1 -1
- package/tsconfig.json +0 -16
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
configSchema: import("openclaw/dist/plugin-sdk/index.js").ChannelConfigSchema;
|
|
6
|
+
register: (api: import("openclaw/plugin-sdk/channel-core").OpenClawPluginApi) => void;
|
|
7
|
+
channelPlugin: import("openclaw/plugin-sdk/channel-core").ChannelPlugin<import("./src/types.js").HedgehogFinanceResolvedAccount>;
|
|
8
|
+
setChannelRuntime?: (runtime: import("openclaw/plugin-sdk/channel-core").PluginRuntime) => void;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineChannelPluginEntry } from "openclaw/plugin-sdk/channel-core";
|
|
2
|
+
import { hedgehogFinancePlugin } from "./src/channel.js";
|
|
3
|
+
import { setHedgehogRuntime } from "./src/runtime.js";
|
|
4
|
+
import { allFeaturesTools } from "./src/features/index.js";
|
|
5
|
+
export default defineChannelPluginEntry({
|
|
6
|
+
id: "hedgehog_finance",
|
|
7
|
+
name: "Hedgehog Finance Comprehensive Plugin",
|
|
8
|
+
description: "WebSocket Channel & Watchlist SQLite Tools for Hedgehog App",
|
|
9
|
+
plugin: hedgehogFinancePlugin,
|
|
10
|
+
setRuntime(runtime) {
|
|
11
|
+
setHedgehogRuntime(runtime);
|
|
12
|
+
},
|
|
13
|
+
registerFull(api) {
|
|
14
|
+
// 1. 自动化循环注册 Tool
|
|
15
|
+
Object.entries(allFeaturesTools).forEach(([name, tool]) => {
|
|
16
|
+
if (tool.registerTool === false)
|
|
17
|
+
return;
|
|
18
|
+
const registerable = { ...tool, label: tool.description };
|
|
19
|
+
api.registerTool(registerable, { name });
|
|
20
|
+
});
|
|
21
|
+
api.logger.info("[hedgehog-app] Registered tools and runtime context.");
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,eAAe,wBAAwB,CAAC;IACvC,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EAAE,6DAA6D;IAC1E,MAAM,EAAE,qBAAqB;IAC7B,UAAU,CAAC,OAAO;QACjB,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACD,YAAY,CAAC,GAAG;QACf,kBAAkB;QAClB,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;YACzD,IAAI,IAAI,CAAC,YAAY,KAAK,KAAK;gBAAE,OAAO;YACxC,MAAM,YAAY,GAAG,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;YAC1D,GAAG,CAAC,YAAY,CAAC,YAAmB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QAEH,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;IACzE,CAAC;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChannelPlugin } from "openclaw/plugin-sdk/channel-plugin-common";
|
|
2
|
+
import type { HedgehogFinanceResolvedAccount } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Hedgehog Finance Channel Plugin
|
|
5
|
+
*/
|
|
6
|
+
export declare const hedgehogFinancePlugin: ChannelPlugin<HedgehogFinanceResolvedAccount>;
|