Skip to content

Commit f06dd8d

Browse files
committed
chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts.
1 parent ad943bd commit f06dd8d

1,778 files changed

Lines changed: 2846 additions & 4139 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/formal-conformance.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Node
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: '22'
29+
node-version: "22"
3030

3131
- name: Regenerate extracted constants from openclaw
3232
run: |

‎.oxfmtrc.jsonc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"experimentalSortImports": {
4+
"newlinesBetween": false,
5+
},
36
"experimentalSortPackageJson": {
47
"sortScripts": true,
58
},

‎extensions/bluebubbles/index.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
22
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
3-
43
import { bluebubblesPlugin } from "./src/channel.js";
54
import { handleBlueBubblesWebhookRequest } from "./src/monitor.js";
65
import { setBlueBubblesRuntime } from "./src/runtime.js";

‎extensions/bluebubbles/src/actions.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import type { OpenClawConfig } from "openclaw/plugin-sdk";
12
import { describe, expect, it, vi, beforeEach } from "vitest";
2-
33
import { bluebubblesMessageActions } from "./actions.js";
4-
import type { OpenClawConfig } from "openclaw/plugin-sdk";
54

65
vi.mock("./accounts.js", () => ({
76
resolveBlueBubblesAccount: vi.fn(({ cfg, accountId }) => {

‎extensions/bluebubbles/src/actions.ts‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@ import {
1010
type ChannelMessageActionName,
1111
type ChannelToolSend,
1212
} from "openclaw/plugin-sdk";
13-
13+
import type { BlueBubblesSendTarget } from "./types.js";
1414
import { resolveBlueBubblesAccount } from "./accounts.js";
15-
import { resolveBlueBubblesMessageId } from "./monitor.js";
16-
import { isMacOS26OrHigher } from "./probe.js";
17-
import { sendBlueBubblesReaction } from "./reactions.js";
18-
import { resolveChatGuidForTarget, sendMessageBlueBubbles } from "./send.js";
15+
import { sendBlueBubblesAttachment } from "./attachments.js";
1916
import {
2017
editBlueBubblesMessage,
2118
unsendBlueBubblesMessage,
@@ -25,9 +22,11 @@ import {
2522
removeBlueBubblesParticipant,
2623
leaveBlueBubblesChat,
2724
} from "./chat.js";
28-
import { sendBlueBubblesAttachment } from "./attachments.js";
25+
import { resolveBlueBubblesMessageId } from "./monitor.js";
26+
import { isMacOS26OrHigher } from "./probe.js";
27+
import { sendBlueBubblesReaction } from "./reactions.js";
28+
import { resolveChatGuidForTarget, sendMessageBlueBubbles } from "./send.js";
2929
import { normalizeBlueBubblesHandle, parseBlueBubblesTarget } from "./targets.js";
30-
import type { BlueBubblesSendTarget } from "./types.js";
3130

3231
const providerId = "bluebubbles";
3332

‎extensions/bluebubbles/src/attachments.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";
2-
3-
import { downloadBlueBubblesAttachment, sendBlueBubblesAttachment } from "./attachments.js";
42
import type { BlueBubblesAttachment } from "./types.js";
3+
import { downloadBlueBubblesAttachment, sendBlueBubblesAttachment } from "./attachments.js";
54

65
vi.mock("./accounts.js", () => ({
76
resolveBlueBubblesAccount: vi.fn(({ cfg, accountId }) => {

‎extensions/bluebubbles/src/attachments.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { OpenClawConfig } from "openclaw/plugin-sdk";
12
import crypto from "node:crypto";
23
import path from "node:path";
3-
import type { OpenClawConfig } from "openclaw/plugin-sdk";
44
import { resolveBlueBubblesAccount } from "./accounts.js";
55
import { resolveChatGuidForTarget } from "./send.js";
66
import { parseBlueBubblesTarget, normalizeBlueBubblesHandle } from "./targets.js";

‎extensions/bluebubbles/src/channel.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ import {
1313
resolveBlueBubblesGroupToolPolicy,
1414
setAccountEnabledInConfigSection,
1515
} from "openclaw/plugin-sdk";
16-
1716
import {
1817
listBlueBubblesAccountIds,
1918
type ResolvedBlueBubblesAccount,
2019
resolveBlueBubblesAccount,
2120
resolveDefaultBlueBubblesAccountId,
2221
} from "./accounts.js";
22+
import { bluebubblesMessageActions } from "./actions.js";
2323
import { BlueBubblesConfigSchema } from "./config-schema.js";
24+
import { sendBlueBubblesMedia } from "./media-send.js";
2425
import { resolveBlueBubblesMessageId } from "./monitor.js";
26+
import { monitorBlueBubblesProvider, resolveWebhookPathFromConfig } from "./monitor.js";
27+
import { blueBubblesOnboardingAdapter } from "./onboarding.js";
2528
import { probeBlueBubbles, type BlueBubblesProbe } from "./probe.js";
2629
import { sendMessageBlueBubbles } from "./send.js";
2730
import {
@@ -31,10 +34,6 @@ import {
3134
normalizeBlueBubblesMessagingTarget,
3235
parseBlueBubblesTarget,
3336
} from "./targets.js";
34-
import { bluebubblesMessageActions } from "./actions.js";
35-
import { monitorBlueBubblesProvider, resolveWebhookPathFromConfig } from "./monitor.js";
36-
import { blueBubblesOnboardingAdapter } from "./onboarding.js";
37-
import { sendBlueBubblesMedia } from "./media-send.js";
3837

3938
const meta = {
4039
id: "bluebubbles",

‎extensions/bluebubbles/src/chat.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";
2-
32
import { markBlueBubblesChatRead, sendBlueBubblesTyping, setGroupIconBlueBubbles } from "./chat.js";
43

54
vi.mock("./accounts.js", () => ({

‎extensions/bluebubbles/src/chat.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { OpenClawConfig } from "openclaw/plugin-sdk";
12
import crypto from "node:crypto";
23
import { resolveBlueBubblesAccount } from "./accounts.js";
3-
import type { OpenClawConfig } from "openclaw/plugin-sdk";
44
import { blueBubblesFetchWithTimeout, buildBlueBubblesApiUrl } from "./types.js";
55

66
export type BlueBubblesChatOpts = {

0 commit comments

Comments
 (0)