|
|
|
|
@ -136,8 +136,8 @@ Auth-only channels can usually stop at the default path: core handles approvals
|
|
|
|
|
import {
|
|
|
|
|
createChatChannelPlugin,
|
|
|
|
|
createChannelPluginBase,
|
|
|
|
|
} from "openclaw/plugin-sdk/core";
|
|
|
|
|
import type { OpenClawConfig } from "openclaw/plugin-sdk/core";
|
|
|
|
|
} from "openclaw/plugin-sdk/channel-core";
|
|
|
|
|
import type { OpenClawConfig } from "openclaw/plugin-sdk/channel-core";
|
|
|
|
|
import { acmeChatApi } from "./client.js"; // your platform API client
|
|
|
|
|
|
|
|
|
|
type ResolvedAccount = {
|
|
|
|
|
@ -244,7 +244,7 @@ Auth-only channels can usually stop at the default path: core handles approvals
|
|
|
|
|
Create `index.ts`:
|
|
|
|
|
|
|
|
|
|
```typescript index.ts
|
|
|
|
|
import { defineChannelPluginEntry } from "openclaw/plugin-sdk/core";
|
|
|
|
|
import { defineChannelPluginEntry } from "openclaw/plugin-sdk/channel-core";
|
|
|
|
|
import { acmeChatPlugin } from "./src/channel.js";
|
|
|
|
|
|
|
|
|
|
export default defineChannelPluginEntry({
|
|
|
|
|
@ -290,7 +290,7 @@ Auth-only channels can usually stop at the default path: core handles approvals
|
|
|
|
|
Create `setup-entry.ts` for lightweight loading during onboarding:
|
|
|
|
|
|
|
|
|
|
```typescript setup-entry.ts
|
|
|
|
|
import { defineSetupPluginEntry } from "openclaw/plugin-sdk/core";
|
|
|
|
|
import { defineSetupPluginEntry } from "openclaw/plugin-sdk/channel-core";
|
|
|
|
|
import { acmeChatPlugin } from "./src/channel.js";
|
|
|
|
|
|
|
|
|
|
export default defineSetupPluginEntry(acmeChatPlugin);
|
|
|
|
|
|