Merge pull request #1064 from connorshea/main
fix: Fix oxlint config file name and use a valid config.
This commit is contained in:
12
.oxlintrc.json
Normal file
12
.oxlintrc.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||||
|
"plugins": [
|
||||||
|
"unicorn",
|
||||||
|
"typescript",
|
||||||
|
"oxc"
|
||||||
|
],
|
||||||
|
"categories": {
|
||||||
|
"correctness": "error"
|
||||||
|
},
|
||||||
|
"ignorePatterns": ["src/canvas-host/a2ui/a2ui.bundle.js"]
|
||||||
|
}
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://json.schemastore.org/oxlintrc",
|
|
||||||
"extends": ["recommended"]
|
|
||||||
}
|
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Sub-agents: route announce delivery through the correct channel account IDs. (#1061, #1058) — thanks @adam91holt.
|
- Sub-agents: route announce delivery through the correct channel account IDs. (#1061, #1058) — thanks @adam91holt.
|
||||||
|
- Repo: fix oxlint config filename and move ignore pattern into config. (#1064) — thanks @connorshea.
|
||||||
- Messages: `/stop` now hard-aborts queued followups and sub-agent runs; suppress zero-count stop notes.
|
- Messages: `/stop` now hard-aborts queued followups and sub-agent runs; suppress zero-count stop notes.
|
||||||
- Sessions: reset `compactionCount` on `/new` and `/reset`, and preserve `sessions.json` file mode (0600).
|
- Sessions: reset `compactionCount` on `/new` and `/reset`, and preserve `sessions.json` file mode (0600).
|
||||||
- Sessions: repair orphaned user turns before embedded prompts.
|
- Sessions: repair orphaned user turns before embedded prompts.
|
||||||
|
|||||||
@@ -90,10 +90,10 @@
|
|||||||
"mac:restart": "bash scripts/restart-mac.sh",
|
"mac:restart": "bash scripts/restart-mac.sh",
|
||||||
"mac:package": "bash scripts/package-mac-app.sh",
|
"mac:package": "bash scripts/package-mac-app.sh",
|
||||||
"mac:open": "open dist/Clawdbot.app",
|
"mac:open": "open dist/Clawdbot.app",
|
||||||
"lint": "oxlint --type-aware src test --ignore-pattern src/canvas-host/a2ui/a2ui.bundle.js",
|
"lint": "oxlint --type-aware src test",
|
||||||
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
||||||
"lint:all": "pnpm lint && pnpm lint:swift",
|
"lint:all": "pnpm lint && pnpm lint:swift",
|
||||||
"lint:fix": "pnpm format:fix && oxlint --type-aware --fix src test --ignore-pattern src/canvas-host/a2ui/a2ui.bundle.js",
|
"lint:fix": "pnpm format:fix && oxlint --type-aware --fix src test",
|
||||||
"format": "oxfmt --check src test",
|
"format": "oxfmt --check src test",
|
||||||
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/ClawdbotKit/Sources",
|
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/ClawdbotKit/Sources",
|
||||||
"format:all": "pnpm format && pnpm format:swift",
|
"format:all": "pnpm format && pnpm format:swift",
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ export function createMessageTool(options?: MessageToolOptions): AnyAgentTool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.toolResult) return result.toolResult;
|
if ("toolResult" in result && result.toolResult) return result.toolResult;
|
||||||
return jsonResult(result.payload);
|
return jsonResult(result.payload);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ export async function getReplyFromConfig(
|
|||||||
let {
|
let {
|
||||||
sessionCtx,
|
sessionCtx,
|
||||||
sessionEntry,
|
sessionEntry,
|
||||||
|
previousSessionEntry,
|
||||||
sessionStore,
|
sessionStore,
|
||||||
sessionKey,
|
sessionKey,
|
||||||
sessionId,
|
sessionId,
|
||||||
|
|||||||
@@ -445,9 +445,9 @@ export async function runMessageAction(
|
|||||||
: null;
|
: null;
|
||||||
const useTextMarker = !(channel === "discord" && marker?.discordEmbeds?.length);
|
const useTextMarker = !(channel === "discord" && marker?.discordEmbeds?.length);
|
||||||
if (useTextMarker && (marker?.prefix || marker?.suffix)) {
|
if (useTextMarker && (marker?.prefix || marker?.suffix)) {
|
||||||
const base = params.message ?? "";
|
const merged = `${marker?.prefix ?? ""}${message}${marker?.suffix ?? ""}`;
|
||||||
params.message = `${marker?.prefix ?? ""}${base}${marker?.suffix ?? ""}`;
|
params.message = merged;
|
||||||
message = params.message;
|
message = merged;
|
||||||
}
|
}
|
||||||
|
|
||||||
const mediaUrl = readStringParam(params, "media", { trim: false });
|
const mediaUrl = readStringParam(params, "media", { trim: false });
|
||||||
|
|||||||
Reference in New Issue
Block a user