coakka-v2-connector-electron 2.5.1 → 2.5.2

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/README.md CHANGED
@@ -147,10 +147,14 @@ preload/renderer IPC. See the shared [file-lane contract](https://github.com/phu
147
147
 
148
148
  ## Stream Lane
149
149
 
150
- Version `2.5.1` contains the Stream Lane connector surface for Electron main
150
+ Version `2.5.2` contains owner-aware File and Stream Lane connector surfaces for Electron main
151
151
  over exact native generation `2.5.0+4b65d0b2256037bf7fc180bfa6df8c41efc1dd6a`. Keep runtime ownership in the
152
152
  main process and follow the public
153
153
  [streaming contract](https://github.com/phuong-tran/coakka-samples/blob/main/docs/runtime-streaming.md).
154
+ Electron re-exports Node's `FileReceiveGrant`, `StreamPublishGrant`, and
155
+ `openOwned`/`prepare*Grant` methods only to main-process code. Follow the
156
+ [owner-grant ONE/ALL sample](https://github.com/phuong-tran/coakka-samples/blob/main/docs/runtime-lane-owner-grants.md)
157
+ and keep serialized grants out of preload and renderer IPC.
154
158
 
155
159
  ## AI-Assisted Integration
156
160
 
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import { type RuntimeCapabilitiesSnapshot, type RuntimeTcpConnectionApplyResult, type RuntimeTcpConnectionConfigSnapshot, type RuntimeTcpConnectionStrategySpec, type RuntimeTcpSecurityApplyResult, type RuntimeTcpSecurityInfoSnapshot, type RuntimeTcpSecuritySpec } from "coakka-v2-connector-node";
2
2
  export { RuntimeCapability, RuntimeTcpConnectionMode, RuntimeTcpSecurityMode, RuntimeTlsReloadMode, supportsRuntimeCapabilities, } from "coakka-v2-connector-node";
3
3
  /**
4
- * Stream Lane is available only to trusted Electron main-process code. It is
5
- * intentionally absent from the preload and renderer intent surfaces.
4
+ * File and Stream Lanes are available only to trusted Electron main-process
5
+ * code. They are intentionally absent from preload and renderer intents so
6
+ * file paths and bearer grants never cross that boundary implicitly.
6
7
  */
7
- export { STREAM_LANE_DETAIL_MAX_BYTES, STREAM_LANE_MAX_FRAME_BYTES, STREAM_LANE_MAX_WINDOW_BYTES, StreamConsumerDecision, StreamDirection, StreamFrameFlag, StreamLane, StreamLaneError, StreamLaneFlag, StreamLaneSecurityMode, StreamPressureReason, StreamPressureState, StreamResult, StreamSourceSignal, StreamState, type StreamConsumer, type StreamFrameMetadata, type StreamLaneConfig, type StreamLaneSecurityConfig, type StreamLaneStats, type StreamPressureSnapshot, type StreamPublishSpec, type StreamSessionSnapshot, type StreamSource, type StreamSourceFrame, type StreamSubscribeSpec, } from "coakka-v2-connector-node";
8
- export declare const COAKKA_ELECTRON_CONNECTOR_VERSION = "2.5.1";
8
+ export { FILE_LANE_DETAIL_MAX_BYTES, FILE_LANE_SHA256_BYTES, LANE_OWNER_GRANTS_FEATURE, FileLane, FileLaneError, FileLaneFlag, FileLaneSecurityMode, FileReceiveGrant, FileTransferDirection, FileTransferResult, FileTransferState, LaneOwnerGrantUnavailableError, STREAM_LANE_DETAIL_MAX_BYTES, STREAM_LANE_MAX_FRAME_BYTES, STREAM_LANE_MAX_WINDOW_BYTES, StreamConsumerDecision, StreamDirection, StreamFrameFlag, StreamLane, StreamLaneError, StreamLaneFlag, StreamLaneSecurityMode, StreamPublishGrant, StreamPressureReason, StreamPressureState, StreamResult, StreamSourceSignal, StreamState, type FileDigest, type FileLaneConfig, type FileLaneSecurityConfig, type FileLaneStats, type FileReceiveSpec, type FileSendSpec, type FileTransferSnapshot, type LaneOwnerConfig, type LaneOwnerEndpoint, type StreamConsumer, type StreamFrameMetadata, type StreamLaneConfig, type StreamLaneSecurityConfig, type StreamLaneStats, type StreamPressureSnapshot, type StreamPublishSpec, type StreamSessionSnapshot, type StreamSource, type StreamSourceFrame, type StreamSubscribeSpec, } from "coakka-v2-connector-node";
9
+ export declare const COAKKA_ELECTRON_CONNECTOR_VERSION = "2.5.2";
9
10
  export declare const COAKKA_ELECTRON_INTENT_CHANNEL = "coakka:intent";
10
11
  export interface ElectronIntentPayloadIdentity {
11
12
  messageType: string;
package/dist/index.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { DeliveryHint, EndpointFlag, NodeRuntimeClient, PayloadFormat, PayloadIdentity, RuntimeHost, } from "coakka-v2-connector-node";
2
2
  export { RuntimeCapability, RuntimeTcpConnectionMode, RuntimeTcpSecurityMode, RuntimeTlsReloadMode, supportsRuntimeCapabilities, } from "coakka-v2-connector-node";
3
3
  /**
4
- * Stream Lane is available only to trusted Electron main-process code. It is
5
- * intentionally absent from the preload and renderer intent surfaces.
4
+ * File and Stream Lanes are available only to trusted Electron main-process
5
+ * code. They are intentionally absent from preload and renderer intents so
6
+ * file paths and bearer grants never cross that boundary implicitly.
6
7
  */
7
- export { STREAM_LANE_DETAIL_MAX_BYTES, STREAM_LANE_MAX_FRAME_BYTES, STREAM_LANE_MAX_WINDOW_BYTES, StreamConsumerDecision, StreamDirection, StreamFrameFlag, StreamLane, StreamLaneError, StreamLaneFlag, StreamLaneSecurityMode, StreamPressureReason, StreamPressureState, StreamResult, StreamSourceSignal, StreamState, } from "coakka-v2-connector-node";
8
- export const COAKKA_ELECTRON_CONNECTOR_VERSION = "2.5.1";
8
+ export { FILE_LANE_DETAIL_MAX_BYTES, FILE_LANE_SHA256_BYTES, LANE_OWNER_GRANTS_FEATURE, FileLane, FileLaneError, FileLaneFlag, FileLaneSecurityMode, FileReceiveGrant, FileTransferDirection, FileTransferResult, FileTransferState, LaneOwnerGrantUnavailableError, STREAM_LANE_DETAIL_MAX_BYTES, STREAM_LANE_MAX_FRAME_BYTES, STREAM_LANE_MAX_WINDOW_BYTES, StreamConsumerDecision, StreamDirection, StreamFrameFlag, StreamLane, StreamLaneError, StreamLaneFlag, StreamLaneSecurityMode, StreamPublishGrant, StreamPressureReason, StreamPressureState, StreamResult, StreamSourceSignal, StreamState, } from "coakka-v2-connector-node";
9
+ export const COAKKA_ELECTRON_CONNECTOR_VERSION = "2.5.2";
9
10
  export const COAKKA_ELECTRON_INTENT_CHANNEL = "coakka:intent";
10
11
  const DEFAULT_ROUTE_PORT = 19481;
11
12
  export class ElectronRuntimeIntentBridge {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coakka-v2-connector-electron",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Electron connector for the polyglot, multi-language, multi-platform CoAkka Runtime ecosystem",
5
5
  "license": "SEE LICENSE IN PACKAGE-LICENSE.md",
6
6
  "repository": {
@@ -55,7 +55,7 @@
55
55
  "smoke:packaged": "bash scripts/smoke-packaged-package.sh"
56
56
  },
57
57
  "dependencies": {
58
- "coakka-v2-connector-node": "2.5.1"
58
+ "coakka-v2-connector-node": "2.5.2"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "electron": ">=42"