fix(qa-lab): use scoped crabline package · openclaw/openclaw@c313642
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@
|
16 | 16 | "@openclaw/plugin-sdk": "workspace:*", |
17 | 17 | "@openclaw/slack": "workspace:*", |
18 | 18 | "@openclaw/whatsapp": "workspace:*", |
19 | | -"crabline": "github:openclaw/crabline#b3513f66053788c6a7bd2bc76fbfc7201f647d29", |
| 19 | +"@openclaw/crabline": "0.1.0", |
20 | 20 | "openclaw": "2026.5.28" |
21 | 21 | }, |
22 | 22 | "peerDependencies": { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import path from "node:path";
|
4 | 4 | import { |
5 | 5 | OPENCLAW_CRABLINE_DEFAULT_CHANNEL, |
6 | 6 | resolveOpenClawCrablineChannelDriverSelection, |
7 | | -} from "crabline"; |
| 7 | +} from "@openclaw/crabline"; |
8 | 8 | import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime"; |
9 | 9 | import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime"; |
10 | 10 | import { uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Qa Lab tests cover Crabline fake-provider transport integration behavior. |
2 | 2 | import fs from "node:fs/promises"; |
3 | 3 | import path from "node:path"; |
4 | | -import { OPENCLAW_CRABLINE_MANIFEST_PATH } from "crabline"; |
| 4 | +import { OPENCLAW_CRABLINE_MANIFEST_PATH } from "@openclaw/crabline"; |
5 | 5 | import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime"; |
6 | 6 | import { withTempDir } from "openclaw/plugin-sdk/test-env"; |
7 | 7 | import { describe, expect, it } from "vitest"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import {
|
7 | 7 | startOpenClawCrablineAdapter, |
8 | 8 | type OpenClawCrablineChannelDriverSelection, |
9 | 9 | type StartedOpenClawCrablineAdapter, |
10 | | -} from "crabline"; |
| 10 | +} from "@openclaw/crabline"; |
11 | 11 | import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts"; |
12 | 12 | import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime"; |
13 | 13 | import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime"; |
@@ -101,7 +101,10 @@ async function postCrablineInbound(params: {
|
101 | 101 | url: params.adapter.manifest.endpoints.adminInboundUrl, |
102 | 102 | init: { |
103 | 103 | body: JSON.stringify(params.providerBody), |
104 | | -headers: { "content-type": "application/json" }, |
| 104 | +headers: { |
| 105 | +authorization: `Bearer ${params.adapter.manifest.adminToken}`, |
| 106 | +"content-type": "application/json", |
| 107 | +}, |
105 | 108 | method: "POST", |
106 | 109 | }, |
107 | 110 | policy: { allowPrivateNetwork: true }, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import { randomUUID } from "node:crypto";
|
4 | 4 | import fs from "node:fs"; |
5 | 5 | import { access, mkdir, writeFile } from "node:fs/promises"; |
6 | 6 | import path from "node:path"; |
7 | | -import type { OpenClawCrablineChannelDriverSelection } from "crabline"; |
| 7 | +import type { OpenClawCrablineChannelDriverSelection } from "@openclaw/crabline"; |
8 | 8 | import { sleep } from "openclaw/plugin-sdk/runtime-env"; |
9 | 9 | import { appendRegularFile } from "openclaw/plugin-sdk/security-runtime"; |
10 | 10 | import { uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ import {
|
6 | 6 | createOpenClawCrablineChannelReportNotes, |
7 | 7 | runOpenClawCrablineChannelDriverSmoke, |
8 | 8 | type OpenClawCrablineChannelDriverSelection, |
9 | | -} from "crabline"; |
| 9 | +} from "@openclaw/crabline"; |
10 | 10 | import { disposeRegisteredAgentHarnesses } from "openclaw/plugin-sdk/agent-harness"; |
11 | 11 | import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts"; |
12 | 12 | import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。