@capybara-hq/testing 0.1.0-rc.14 → 0.1.0-rc.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ export declare const FAKE_EXTENSIONS: readonly ["fake-connector", "fake-openapi"
29
29
  *
30
30
  * | name | provides / covers |
31
31
  * |---|---|
32
- * | `fake-theme` | themes `night-city` (dark only, wordmark, font `FakeSans`, logo) and `paper` (light and dark); passes `capybara-plugin check` |
32
+ * | `fake-theme` | themes `neon-grid` (dark only, wordmark, font `FakeSans`, logo) and `paper` (light and dark); passes `capybara-plugin check` |
33
33
  */
34
34
  export declare const FAKE_PLUGINS: readonly ["fake-theme"];
35
35
  /** The name of a fake plugin. */
package/dist/fixtures.js CHANGED
@@ -49,7 +49,7 @@ export const FAKE_EXTENSIONS = [
49
49
  *
50
50
  * | name | provides / covers |
51
51
  * |---|---|
52
- * | `fake-theme` | themes `night-city` (dark only, wordmark, font `FakeSans`, logo) and `paper` (light and dark); passes `capybara-plugin check` |
52
+ * | `fake-theme` | themes `neon-grid` (dark only, wordmark, font `FakeSans`, logo) and `paper` (light and dark); passes `capybara-plugin check` |
53
53
  */
54
54
  export const FAKE_PLUGINS = ["fake-theme"];
55
55
  /** `fixtures/extensions/` of this package (same path from `src/` and from `dist/`). */
@@ -6,6 +6,7 @@ import {
6
6
  type ChannelWebhook,
7
7
  type InboundEvent,
8
8
  secret,
9
+ ui,
9
10
  } from "@capybara-hq/plugin-sdk";
10
11
  import { z } from "zod";
11
12
 
@@ -26,8 +27,9 @@ export const FakeImConnection = z.object({
26
27
  /**
27
28
  * Optional secret (also tests PATCH secret semantics); the webhook signing secret: webhook
28
29
  * requests are signed `x-fake-signature: sha256=<hex HMAC-SHA256(webhookToken, raw body)>`.
30
+ * Drawn and required in webhook mode only (`inboundModes`, channel inbound mode fields spec §2).
29
31
  */
30
- webhookToken: secret(z.string().min(1).optional()),
32
+ webhookToken: ui(secret(z.string().min(1).optional()), { inboundModes: ["webhook"] }),
31
33
  /** 被中止后拖这么久才返回(模拟不及时退出的插件)。 */
32
34
  lingerMs: z.number().int().nonnegative().default(0),
33
35
  });
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": { "en": "Night City", "zh": "夜之城" },
2
+ "name": { "en": "Neon Grid", "zh": "霓虹网格" },
3
3
  "schemes": {
4
4
  "dark": {
5
5
  "color": { "bg": "#05070D", "panel": "#0A0E18", "accent": "#FCE300", "on-accent": "#141200" },
@@ -9,5 +9,5 @@
9
9
  "fonts": [
10
10
  { "family": "FakeSans", "file": "./fonts/FakeSans.woff2", "weight": 400, "role": "prose" }
11
11
  ],
12
- "logo": { "mark": "./logo.svg", "wordmark": "NIGHT CITY" }
12
+ "logo": { "mark": "./logo.svg", "wordmark": "NEON GRID" }
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/testing",
3
- "version": "0.1.0-rc.14",
3
+ "version": "0.1.0-rc.15",
4
4
  "description": "Test helpers for Capybara: test containers, dual-replica harness and fake third-party servers",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -47,18 +47,18 @@
47
47
  "tsx": "^4.23.15",
48
48
  "ws": "^8.22.0",
49
49
  "zod": "^4.6.7",
50
- "@capybara-hq/kernel": "^0.1.0-rc.15"
50
+ "@capybara-hq/kernel": "^0.1.0-rc.16"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/pg": "^8.23.1",
54
54
  "@types/ws": "^8.18.2",
55
- "@capybara-hq/plugin-client": "^0.1.0-rc.1",
56
- "@capybara-hq/plugin-sdk": "^0.1.0-rc.11"
55
+ "@capybara-hq/plugin-client": "^0.1.0-rc.2",
56
+ "@capybara-hq/plugin-sdk": "^0.1.0-rc.12"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "vitest": "^5.0.5",
60
- "@capybara-hq/plugin-sdk": "^0.1.0-rc.11",
61
- "@capybara-hq/plugin-tools": "^0.1.0-rc.12"
60
+ "@capybara-hq/plugin-sdk": "^0.1.0-rc.12",
61
+ "@capybara-hq/plugin-tools": "^0.1.0-rc.13"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "@capybara-hq/plugin-tools": {