@capybara-hq/plugin-device-local 0.1.0-rc.11 → 0.1.0-rc.12

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "device-local",
4
- "version": "0.1.0-rc.11",
4
+ "version": "0.1.0-rc.12",
5
5
  "publisher": "Capybara",
6
6
  "description": {
7
7
  "en": "Devices on people's own computers: a machine connected with capybara-device serves the device over the dial-in channel, and its owner limits it there",
@@ -23,7 +23,7 @@
23
23
  "entry": "./dist/index.mjs",
24
24
  "manifest": {
25
25
  "name": "device-local",
26
- "version": "0.1.0-rc.11",
26
+ "version": "0.1.0-rc.12",
27
27
  "sdk": "^0.1.0-rc.56",
28
28
  "provides": [
29
29
  "device-provider@1"
package/dist/index.mjs CHANGED
@@ -4836,14 +4836,17 @@ function statusOf(v) {
4836
4836
  throw new ToolError2(
4837
4837
  "The connected machine sent an invalid service status; update capybara-device on that machine and retry"
4838
4838
  );
4839
+ const digest = s.filesDigest;
4839
4840
  return {
4840
4841
  name: s.name,
4841
4842
  state: s.state,
4842
4843
  startedAt: s.startedAt,
4843
4844
  stateDir: s.stateDir,
4844
- ...s.codeDir !== void 0 && { codeDir: s.codeDir }
4845
+ ...s.codeDir !== void 0 && { codeDir: s.codeDir },
4846
+ ...s.state === "running" && typeof digest === "string" && FILES_DIGEST_RE.test(digest) ? { filesDigest: digest } : {}
4845
4847
  };
4846
4848
  }
4849
+ var FILES_DIGEST_RE = /^[A-Za-z0-9:_-]{1,128}$/;
4847
4850
  function requireLocal(h) {
4848
4851
  const l = localHandle(h);
4849
4852
  if (!l) throw new SandboxGoneError2("The instance handle is not a connected machine's instance");
@@ -5224,7 +5227,7 @@ function createDeviceLocalProvider(ctx, store, opts = {}) {
5224
5227
  // src/index.ts
5225
5228
  var plugin = defineExtension({
5226
5229
  name: "device-local",
5227
- version: "0.1.0-rc.11",
5230
+ version: "0.1.0-rc.12",
5228
5231
  // ctx.dialIn.capacity and the handlers' connection argument are the rc.56 SDK's
5229
5232
  sdk: "^0.1.0-rc.56",
5230
5233
  provides: [DEVICE_PROVIDER_EXTENSION_POINT],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/plugin-device-local",
3
- "version": "0.1.0-rc.11",
3
+ "version": "0.1.0-rc.12",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Devices on people's own computers: a machine connected with capybara-device serves the device over the dial-in channel, and its owner limits it there",