@xwang152/claw-lark 0.1.12 → 0.1.13
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 +21 -0
- package/{index.ts → dist/index.js} +9 -24
- package/dist/index.js.map +1 -0
- package/dist/src/channel.d.ts +12 -0
- package/dist/src/channel.js +362 -0
- package/dist/src/channel.js.map +1 -0
- package/dist/src/client.d.ts +31 -0
- package/dist/src/client.js +84 -0
- package/dist/src/client.js.map +1 -0
- package/dist/src/monitor.d.ts +36 -0
- package/dist/src/monitor.js +212 -0
- package/dist/src/monitor.js.map +1 -0
- package/dist/src/runtime.d.ts +23 -0
- package/dist/src/runtime.js +33 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/types.d.ts +136 -0
- package/dist/src/types.js +8 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/webhook.d.ts +22 -0
- package/dist/src/webhook.js +131 -0
- package/dist/src/webhook.js.map +1 -0
- package/package.json +9 -1
- package/.eslintrc.json +0 -18
- package/.github/workflows/npm-publish.yml +0 -39
- package/.prettierrc +0 -7
- package/eslint.config.js +0 -34
- package/src/__tests__/sample.test.ts +0 -7
- package/src/openclaw-plugin-sdk.d.ts +0 -28
package/.prettierrc
DELETED
package/eslint.config.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import tseslint from "@typescript-eslint/eslint-plugin";
|
|
2
|
-
import tsParser from "@typescript-eslint/parser";
|
|
3
|
-
import prettierConfig from "eslint-config-prettier";
|
|
4
|
-
import prettierPlugin from "eslint-plugin-prettier";
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
prettierConfig,
|
|
8
|
-
{
|
|
9
|
-
files: ["**/*.ts"],
|
|
10
|
-
ignores: [
|
|
11
|
-
"**/*.test.ts",
|
|
12
|
-
"**/*.spec.ts",
|
|
13
|
-
"src/__tests__/**",
|
|
14
|
-
],
|
|
15
|
-
languageOptions: {
|
|
16
|
-
parser: tsParser,
|
|
17
|
-
parserOptions: {
|
|
18
|
-
ecmaVersion: 2022,
|
|
19
|
-
sourceType: "module",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
plugins: {
|
|
23
|
-
"@typescript-eslint": tseslint,
|
|
24
|
-
prettier: prettierPlugin,
|
|
25
|
-
},
|
|
26
|
-
rules: {
|
|
27
|
-
...tseslint.configs.recommended.rules,
|
|
28
|
-
"no-undef": "off",
|
|
29
|
-
"prettier/prettier": "error",
|
|
30
|
-
"@typescript-eslint/no-explicit-any": "warn",
|
|
31
|
-
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare module "openclaw/plugin-sdk" {
|
|
2
|
-
export type MoltbotConfig = {
|
|
3
|
-
channels?: Record<string, unknown>;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
export type OpenClawConfig = MoltbotConfig;
|
|
7
|
-
|
|
8
|
-
export type ChannelPlugin<TAccount> = Record<string, unknown>;
|
|
9
|
-
|
|
10
|
-
export type MoltbotPluginApi = {
|
|
11
|
-
logger: {
|
|
12
|
-
debug: (msg: string) => void;
|
|
13
|
-
info: (msg: string) => void;
|
|
14
|
-
warn: (msg: string) => void;
|
|
15
|
-
error: (msg: string) => void;
|
|
16
|
-
};
|
|
17
|
-
inbound: {
|
|
18
|
-
handleMessage: (args: Record<string, unknown>) => Promise<void>;
|
|
19
|
-
};
|
|
20
|
-
registerChannel: (args: { plugin: unknown }) => void;
|
|
21
|
-
runtime: any;
|
|
22
|
-
config: any;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type OpenClawPluginApi = MoltbotPluginApi;
|
|
26
|
-
|
|
27
|
-
export function emptyPluginConfigSchema(): unknown;
|
|
28
|
-
}
|