@h-rig/browser-plugin 0.0.6-alpha.157 → 0.0.6-alpha.159

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/src/index.js CHANGED
@@ -128,19 +128,19 @@ init_browser_contract();
128
128
 
129
129
  // packages/browser-plugin/src/plugin.ts
130
130
  import { definePlugin } from "@rig/core/config";
131
- import { BROWSER_CONTRACT_SERVICE_CAPABILITY_ID } from "@rig/contracts";
131
+ import { defineCapability } from "@rig/core/capability";
132
+ import { BROWSER_CONTRACT_SERVICE_CAPABILITY } from "@rig/contracts";
132
133
  var BROWSER_PLUGIN_NAME = "@rig/browser-plugin";
134
+ var BrowserContractCap = defineCapability(BROWSER_CONTRACT_SERVICE_CAPABILITY);
133
135
  var browserPlugin = definePlugin({
134
136
  name: BROWSER_PLUGIN_NAME,
135
137
  version: "0.0.0-alpha.1",
136
138
  contributes: {
137
139
  capabilities: [
138
- {
139
- id: BROWSER_CONTRACT_SERVICE_CAPABILITY_ID,
140
+ BrowserContractCap.provide(async () => (await Promise.resolve().then(() => (init_service(), exports_service))).svc, {
140
141
  title: "Browser-required task contract",
141
- description: "Resolve a task's browser config into the runtime-effective browser context and render task-info browser guidance.",
142
- run: async () => (await Promise.resolve().then(() => (init_service(), exports_service))).svc
143
- }
142
+ description: "Resolve a task's browser config into the runtime-effective browser context and render task-info browser guidance."
143
+ })
144
144
  ]
145
145
  }
146
146
  });
@@ -1,4 +1,4 @@
1
1
  export declare const BROWSER_PLUGIN_NAME = "@rig/browser-plugin";
2
- export declare const browserPlugin: import("@rig/core").RigPlugin;
3
- export declare function createBrowserPlugin(): import("@rig/core").RigPlugin;
2
+ export declare const browserPlugin: import("@rig/core/config").RigPlugin;
3
+ export declare function createBrowserPlugin(): import("@rig/core/config").RigPlugin;
4
4
  export default browserPlugin;
@@ -125,19 +125,19 @@ var init_service = __esm(() => {
125
125
 
126
126
  // packages/browser-plugin/src/plugin.ts
127
127
  import { definePlugin } from "@rig/core/config";
128
- import { BROWSER_CONTRACT_SERVICE_CAPABILITY_ID } from "@rig/contracts";
128
+ import { defineCapability } from "@rig/core/capability";
129
+ import { BROWSER_CONTRACT_SERVICE_CAPABILITY } from "@rig/contracts";
129
130
  var BROWSER_PLUGIN_NAME = "@rig/browser-plugin";
131
+ var BrowserContractCap = defineCapability(BROWSER_CONTRACT_SERVICE_CAPABILITY);
130
132
  var browserPlugin = definePlugin({
131
133
  name: BROWSER_PLUGIN_NAME,
132
134
  version: "0.0.0-alpha.1",
133
135
  contributes: {
134
136
  capabilities: [
135
- {
136
- id: BROWSER_CONTRACT_SERVICE_CAPABILITY_ID,
137
+ BrowserContractCap.provide(async () => (await Promise.resolve().then(() => (init_service(), exports_service))).svc, {
137
138
  title: "Browser-required task contract",
138
- description: "Resolve a task's browser config into the runtime-effective browser context and render task-info browser guidance.",
139
- run: async () => (await Promise.resolve().then(() => (init_service(), exports_service))).svc
140
- }
139
+ description: "Resolve a task's browser config into the runtime-effective browser context and render task-info browser guidance."
140
+ })
141
141
  ]
142
142
  }
143
143
  });
@@ -7,7 +7,7 @@
7
7
  * (`(await import("./service")).svc`), so merely evaluating rig.config.ts never
8
8
  * drags the browser-contract impl into scope.
9
9
  */
10
- import type { BrowserContractService } from "@rig/runtime/control-plane/browser-contract-port";
10
+ import type { BrowserContractService } from "@rig/contracts";
11
11
  /** The concrete browser-contract service the runtime port resolves and consumes. */
12
12
  export declare const svc: BrowserContractService;
13
13
  /** Back-compat alias. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/browser-plugin",
3
- "version": "0.0.6-alpha.157",
3
+ "version": "0.0.6-alpha.159",
4
4
  "type": "module",
5
5
  "description": "First-party browser-required task contract capability plugin for Rig.",
6
6
  "license": "UNLICENSED",
@@ -29,8 +29,7 @@
29
29
  "module": "./dist/src/index.js",
30
30
  "types": "./dist/src/index.d.ts",
31
31
  "dependencies": {
32
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.157",
33
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.157",
34
- "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.157"
32
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.159",
33
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.159"
35
34
  }
36
35
  }