@ycodium-ai/plugin-api 0.2.2743 → 0.2.2800

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.
package/dist/ui.js CHANGED
@@ -126,6 +126,7 @@ export const PLUGIN_UI_HOST_CAPABILITIES = [
126
126
  "notify",
127
127
  "commandPalette",
128
128
  "workspaceFileUrl",
129
+ "network",
129
130
  ];
130
131
  export const PLUGIN_UI_HOST_UPGRADE_MESSAGE = "This Ycodium app cannot do that from a plugin page. Update the app.";
131
132
  export const PLUGIN_UI_HOST_COMMAND_PALETTE_UNAVAILABLE_MESSAGE = "The command palette is not available in this app. Add a project from the Projects tab.";
@@ -148,6 +149,8 @@ export function pluginUiHostHasCapability(bridge, capability) {
148
149
  return typeof bridge.openCommandPalette === "function";
149
150
  case "workspaceFileUrl":
150
151
  return typeof bridge.useWorkspaceFileUrl === "function";
152
+ case "network":
153
+ return bridge.network !== undefined && bridge.network !== null;
151
154
  }
152
155
  }
153
156
  //# sourceMappingURL=ui.js.map
package/dist/ui.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+GG;AAEH,iDAAiD;AACjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAE1D,mCAAmC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,cAAc;IACd,kBAAkB;IAClB,eAAe;IACf,eAAe;IACf,QAAQ;IACR,gBAAgB;IAChB,kBAAkB;CACV,CAAC;AAGX,MAAM,CAAC,MAAM,8BAA8B,GACzC,qEAAqE,CAAC;AACx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.2800",
4
4
  "description": "Types and definePlugin for authoring Ycodium plugins. Zero runtime dependencies.",
5
5
  "keywords": [
6
6
  "ycodium"
@@ -32,6 +32,10 @@
32
32
  "types": "./dist/tool-display.d.ts",
33
33
  "import": "./dist/tool-display.js"
34
34
  },
35
+ "./file-preview": {
36
+ "types": "./dist/file-preview.d.ts",
37
+ "import": "./dist/file-preview.js"
38
+ },
35
39
  "./account-usage": {
36
40
  "types": "./dist/account-usage.d.ts",
37
41
  "import": "./dist/account-usage.js"