@kubohiroya/turbowarp-camera-source 0.10.0 → 0.11.0

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.
@@ -177,6 +177,16 @@
177
177
  }
178
178
  ]
179
179
  },
180
+ {
181
+ "opcode": "cameraProfileYaml",
182
+ "blockType": "REPORTER",
183
+ "arguments": [
184
+ {
185
+ "id": "CAMERA_ID",
186
+ "type": "STRING"
187
+ }
188
+ ]
189
+ },
180
190
  {
181
191
  "opcode": "forgetCameraProfile",
182
192
  "blockType": "COMMAND",
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The profile contract as functions, for code that runs outside TurboWarp.
3
+ *
4
+ * `./runtime` names what another extension talks to at run time and deliberately carries no logic.
5
+ * This entry is the other half: reading and writing a calibration file, validating a document, and
6
+ * deciding whether a profile fits a camera, as plain functions over plain values. A test that checks
7
+ * a file a calibration app wrote, or a tool that prepares one, imports these instead of copying the
8
+ * rules -- a copy is checked against nothing, and the day the contract moved it would go on agreeing
9
+ * with itself.
10
+ *
11
+ * Nothing here touches a camera, a document, or the VM.
12
+ */
13
+ export { CAMERA_INFO_EXTENSION_KEY, readCameraInfoYaml, serializeCameraInfoYaml, type CameraInfoReadResult } from './calibration/camera-info.js';
14
+ export { readProfileText, type ProfileTextResult } from './calibration/profile-text.js';
15
+ export { CAMERA_INTRINSIC_PROFILE_SCHEMA, CAMERA_INTRINSIC_PROFILE_VERSION, readCameraProfileDocument, serializeCameraIntrinsicProfile } from './calibration/profile.js';
16
+ export { evaluateProfileCompatibility } from './calibration/compatibility.js';
17
+ export { readCameraConditions } from './calibration/conditions.js';
18
+ export type { CompatibilityCode, CompatibilityFinding, CompatibilityReport, CompatibilityState } from './calibration/compatibility.js';
19
+ export type { CameraConditions } from './calibration/conditions.js';
20
+ export type { CalibrationCapture, CalibrationDeviceHint, CalibrationImage, CalibrationQuality, CameraDistortion, CameraIntrinsicProfileV1, CameraIntrinsics, DistortionModel, ProfileError, ProfileErrorCode, ProfileResult } from './calibration/types.js';
21
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,oBAAoB,EAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,eAAe,EACf,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AACjE,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAClE,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACd,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The profile contract as functions, for code that runs outside TurboWarp.
3
+ *
4
+ * `./runtime` names what another extension talks to at run time and deliberately carries no logic.
5
+ * This entry is the other half: reading and writing a calibration file, validating a document, and
6
+ * deciding whether a profile fits a camera, as plain functions over plain values. A test that checks
7
+ * a file a calibration app wrote, or a tool that prepares one, imports these instead of copying the
8
+ * rules -- a copy is checked against nothing, and the day the contract moved it would go on agreeing
9
+ * with itself.
10
+ *
11
+ * Nothing here touches a camera, a document, or the VM.
12
+ */
13
+ export { CAMERA_INFO_EXTENSION_KEY, readCameraInfoYaml, serializeCameraInfoYaml } from './calibration/camera-info.js';
14
+ export { readProfileText } from './calibration/profile-text.js';
15
+ export { CAMERA_INTRINSIC_PROFILE_SCHEMA, CAMERA_INTRINSIC_PROFILE_VERSION, readCameraProfileDocument, serializeCameraIntrinsicProfile } from './calibration/profile.js';
16
+ export { evaluateProfileCompatibility } from './calibration/compatibility.js';
17
+ export { readCameraConditions } from './calibration/conditions.js';
18
+ //# sourceMappingURL=profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EAExB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,eAAe,EAEhB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubohiroya/turbowarp-camera-source",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "author": "Hiroya Kubo <hiroya@cuc.ac.jp>",
5
5
  "description": "A TurboWarp capability extension for sharing one MediaDevices camera stream across extensions.",
6
6
  "type": "module",
@@ -19,6 +19,10 @@
19
19
  "types": "./dist/runtime.d.ts",
20
20
  "import": "./dist/runtime.js"
21
21
  },
22
+ "./profile": {
23
+ "types": "./dist/profile.d.ts",
24
+ "import": "./dist/profile.js"
25
+ },
22
26
  "./package.json": "./package.json"
23
27
  },
24
28
  "files": [