fix: resolve CI lint and android build
This commit is contained in:
@@ -31,6 +31,7 @@ android {
|
||||
|
||||
buildFeatures {
|
||||
compose = true
|
||||
buildConfig = true
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
|
||||
@@ -148,7 +148,15 @@ describe("canvas-cli coverage", () => {
|
||||
|
||||
await expect(
|
||||
program.parseAsync(
|
||||
["canvas", "a2ui", "push", "--node", "mac-1", "--jsonl", "/tmp/a2ui.jsonl"],
|
||||
[
|
||||
"canvas",
|
||||
"a2ui",
|
||||
"push",
|
||||
"--node",
|
||||
"mac-1",
|
||||
"--jsonl",
|
||||
"/tmp/a2ui.jsonl",
|
||||
],
|
||||
{ from: "user" },
|
||||
),
|
||||
).rejects.toThrow("__exit__:1");
|
||||
|
||||
@@ -868,10 +868,8 @@ function applyIdentityDefaults(cfg: ClawdisConfig): ClawdisConfig {
|
||||
const identity = cfg.identity;
|
||||
if (!identity) return cfg;
|
||||
|
||||
const emoji = identity.emoji?.trim();
|
||||
const name = identity.name?.trim();
|
||||
|
||||
const messages = cfg.messages ?? {};
|
||||
const routing = cfg.routing ?? {};
|
||||
const groupChat = routing.groupChat ?? {};
|
||||
|
||||
|
||||
@@ -91,8 +91,8 @@ import { getMachineDisplayName } from "../infra/machine-name.js";
|
||||
import {
|
||||
approveNodePairing,
|
||||
listNodePairing,
|
||||
renamePairedNode,
|
||||
rejectNodePairing,
|
||||
renamePairedNode,
|
||||
requestNodePairing,
|
||||
verifyNodeToken,
|
||||
} from "../infra/node-pairing.js";
|
||||
|
||||
@@ -51,7 +51,10 @@ export function resolveCanvasHostUrl(params: CanvasHostUrlParams) {
|
||||
: "http");
|
||||
|
||||
const override = normalizeHost(params.hostOverride, true);
|
||||
const requestHost = normalizeHost(parseHostHeader(params.requestHost), !!override);
|
||||
const requestHost = normalizeHost(
|
||||
parseHostHeader(params.requestHost),
|
||||
!!override,
|
||||
);
|
||||
const localAddress = normalizeHost(
|
||||
params.localAddress,
|
||||
Boolean(override || requestHost),
|
||||
|
||||
Reference in New Issue
Block a user