@capybara-hq/testing 0.1.0-rc.7 → 0.1.0-rc.8

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.
@@ -96,15 +96,16 @@ export declare function joinOrg(k: Pick<TestKernel, "http">, owner: KernelReques
96
96
  req: KernelRequest;
97
97
  }>;
98
98
  /**
99
- * Creates an org-visible agent; returns its id. Without `tools` the agent has none (model-fake then
100
- * answers ordinary messages instead of calling the first tool).
99
+ * Creates an org-visible agent; returns its id. An agent has every tool the org offers unless
100
+ * `disabledTools` turns it off (tools default-on spec); with several tools model-fake answers
101
+ * ordinary messages instead of calling one.
101
102
  */
102
103
  export declare function createAgent(req: KernelRequest, orgId: string, opts?: {
103
104
  model?: {
104
105
  provider: string;
105
106
  model: string;
106
107
  };
107
- tools?: unknown[];
108
+ disabledTools?: unknown[];
108
109
  }): Promise<string>;
109
110
  /** Creates a conversation with the agent; returns its id. */
110
111
  export declare function createConversation(req: KernelRequest, orgId: string, agentId: string): Promise<string>;
@@ -178,8 +178,9 @@ export async function joinOrg(k, owner, orgId, name, role = "member") {
178
178
  return { accountId: accepted.json().account.id, req };
179
179
  }
180
180
  /**
181
- * Creates an org-visible agent; returns its id. Without `tools` the agent has none (model-fake then
182
- * answers ordinary messages instead of calling the first tool).
181
+ * Creates an org-visible agent; returns its id. An agent has every tool the org offers unless
182
+ * `disabledTools` turns it off (tools default-on spec); with several tools model-fake answers
183
+ * ordinary messages instead of calling one.
183
184
  */
184
185
  export async function createAgent(req, orgId, opts = {}) {
185
186
  const res = await req({
@@ -190,7 +191,7 @@ export async function createAgent(req, orgId, opts = {}) {
190
191
  name: "Helper",
191
192
  instructions: "Be helpful.",
192
193
  model: opts.model ?? { provider: "model-fake", model: "fake-1" },
193
- tools: opts.tools ?? [],
194
+ disabledTools: opts.disabledTools ?? [],
194
195
  },
195
196
  visibility: "org",
196
197
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/testing",
3
- "version": "0.1.0-rc.7",
3
+ "version": "0.1.0-rc.8",
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,16 +47,16 @@
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.6"
50
+ "@capybara-hq/kernel": "^0.1.0-rc.7"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/pg": "^8.23.1",
54
54
  "@types/ws": "^8.18.2",
55
- "@capybara-hq/plugin-sdk": "^0.1.0-rc.4"
55
+ "@capybara-hq/plugin-sdk": "^0.1.0-rc.5"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "vitest": "^5.0.5",
59
- "@capybara-hq/plugin-sdk": "^0.1.0-rc.4",
59
+ "@capybara-hq/plugin-sdk": "^0.1.0-rc.5",
60
60
  "@capybara-hq/plugin-tools": "^0.1.0-rc.6"
61
61
  },
62
62
  "peerDependenciesMeta": {