@skydiveai/pi-extensions 0.1.0-beta.2820 → 0.1.0-beta.2824

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -21
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4375,28 +4375,8 @@ function createProactiveResultExtension({ channelContext }) {
4375
4375
  } });
4376
4376
  if (response.status === 404) return;
4377
4377
  if (!response.ok) throw new Error(`proactive result discovery failed: ${response.status}`);
4378
- const { tool, destinationsTool } = await response.json();
4378
+ const { tool } = await response.json();
4379
4379
  if (!tool) return;
4380
- if (destinationsTool) pi.registerTool({
4381
- name: destinationsTool.name,
4382
- label: "List proactive delivery destinations",
4383
- description: destinationsTool.description,
4384
- parameters: Type.Unsafe(destinationsTool.parameters),
4385
- async execute(_toolCallId, _input, signal) {
4386
- const listed = await client["proactive-result"].destinations.$get({ query: {
4387
- runId,
4388
- messageId
4389
- } }, { init: { signal } });
4390
- return {
4391
- content: [{
4392
- type: "text",
4393
- text: await listed.text()
4394
- }],
4395
- isError: !listed.ok,
4396
- details: {}
4397
- };
4398
- }
4399
- });
4400
4380
  pi.registerTool({
4401
4381
  name: tool.name,
4402
4382
  label: "Submit proactive result",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skydiveai/pi-extensions",
3
- "version": "0.1.0-beta.2820",
3
+ "version": "0.1.0-beta.2824",
4
4
  "homepage": "https://skydive.com",
5
5
  "license": "MIT",
6
6
  "author": "Create, Inc.",