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