coakka-v2-connector-electron 2.1.0 → 2.3.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.
- package/README.md +13 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +6 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -139,4 +139,16 @@ supported platform tuple. Contact: `gabrielgun1983@gmail.com`.
|
|
|
139
139
|
|
|
140
140
|
The Node dependency exposes `FileLane` to trusted Electron main-process code.
|
|
141
141
|
Do not forward raw file paths, authorization tokens, or lane methods through
|
|
142
|
-
preload/renderer IPC. See the shared [file-lane contract](https://github.com/phuong-tran/
|
|
142
|
+
preload/renderer IPC. See the shared [file-lane contract](https://github.com/phuong-tran/coakka-publish/blob/main/docs/runtime-file-transfer.md).
|
|
143
|
+
|
|
144
|
+
## AI-Assisted Integration
|
|
145
|
+
|
|
146
|
+
Before generating Electron integration code, read the public
|
|
147
|
+
[AI-assisted integration guide](https://github.com/phuong-tran/coakka-samples/blob/main/docs/ai-assisted-integration.md)
|
|
148
|
+
and the runnable Electron sample. Connection policy and native lane ownership
|
|
149
|
+
belong to Electron main; renderer code sends validated intent only.
|
|
150
|
+
|
|
151
|
+
Version `2.3.0` contains the Stream Lane connector surface for Electron main
|
|
152
|
+
over exact native generation `2.3.0+a83ab412`. Keep runtime ownership in the
|
|
153
|
+
main process and follow the public
|
|
154
|
+
[streaming contract](https://github.com/phuong-tran/coakka-publish/blob/main/docs/runtime-streaming.md).
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
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.
|
|
6
|
+
*/
|
|
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.3.0";
|
|
4
9
|
export declare const COAKKA_ELECTRON_INTENT_CHANNEL = "coakka:intent";
|
|
5
10
|
export interface ElectronIntentPayloadIdentity {
|
|
6
11
|
messageType: string;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
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.
|
|
6
|
+
*/
|
|
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.3.0";
|
|
4
9
|
export const COAKKA_ELECTRON_INTENT_CHANNEL = "coakka:intent";
|
|
5
10
|
const DEFAULT_ROUTE_PORT = 19481;
|
|
6
11
|
export class ElectronRuntimeIntentBridge {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coakka-v2-connector-electron",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Electron connector for the polyglot, multi-language, multi-platform CoAkka Runtime ecosystem",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"repository": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"smoke:packaged": "bash scripts/smoke-packaged-package.sh"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"coakka-v2-connector-node": "2.
|
|
52
|
+
"coakka-v2-connector-node": "2.3.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^24.0.0",
|