@synra/protocol 0.0.8 → 0.0.11

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/index.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  * 对象。名字偶尔相同而含义不同的地方要留意:线上的 `DeviceSnapshot` 是内核给的事件数据,而
16
16
  * `synra.device.list()` 返回的是 `DeviceTarget`,后者是给作者的友好视图。
17
17
  */
18
- export type { DeviceId, PluginId, IntentId, TransferId, RequestId, EventName, TraceId, ErrorCode, NetworkErrorCode, SuggestedAction, SynraError, Envelope, PlatformKind, Platform, PairRefusal, IntentDisplay, IntentInvocation, IntentOutcome, TransferKind, DigestAlgorithm, TransferProgress, TransferAbortReason, FrameKind, } from './generated/wire';
18
+ export type { EventVerdict, KernelEvent, KernelEventEnvelope, SequencedKernelEvent, SequenceReport, } from './generated/events';
19
19
  export type { DeviceCard, DevicesSnapshot, IdentitySnapshot, IntentCandidate, IntentPrompt, IntentSnapshot, PairingPrompt, PluginHealthDto, PluginSnapshot, ScanState, TransferSnapshot, TransferSummary, UpdateInfo, } from './generated/ui';
20
- export type { EventVerdict, KernelEvent, KernelEventEnvelope, SequenceReport, SequencedKernelEvent, } from './generated/events';
20
+ export type { DeviceId, DigestAlgorithm, Envelope, ErrorCode, EventName, FrameKind, IntentDisplay, IntentId, IntentInvocation, IntentOutcome, NetworkErrorCode, PairRefusal, Platform, PlatformKind, PluginId, RequestId, SuggestedAction, SynraError, TraceId, TransferAbortReason, TransferId, TransferKind, TransferProgress, } from './generated/wire';
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,EAEV,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,OAAO,EAEP,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,UAAU,EAEV,QAAQ,EAER,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,aAAa,EAEb,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EAEnB,SAAS,GACV,MAAM,kBAAkB,CAAA;AAIzB,YAAY,EACV,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,UAAU,GACX,MAAM,gBAAgB,CAAA;AAEvB,YAAY,EACV,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,oBAAoB,GACrB,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,EACV,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,GACf,MAAM,oBAAoB,CAAA;AAI3B,YAAY,EACV,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,UAAU,GACX,MAAM,gBAAgB,CAAA;AAEvB,YAAY,EAEV,QAAQ,EACR,eAAe,EAEf,QAAQ,EAER,SAAS,EACT,SAAS,EAET,SAAS,EACT,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,QAAQ,EAER,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,UAAU,EAEV,YAAY,EACZ,gBAAgB,GACjB,MAAM,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "@synra/protocol",
3
- "version": "0.0.8",
3
+ "type": "module",
4
+ "version": "0.0.11",
4
5
  "description": "Synra wire protocol types. Generated from the Rust kernel; do not edit by hand.",
6
+ "author": "imba97",
5
7
  "license": "MIT",
6
8
  "homepage": "https://github.com/synra-rs/synra-js#readme",
7
9
  "repository": {
@@ -12,25 +14,30 @@
12
14
  "bugs": {
13
15
  "url": "https://github.com/synra-rs/synra-js/issues"
14
16
  },
15
- "type": "module",
16
17
  "sideEffects": false,
17
- "files": ["dist", "!dist/.tsbuildinfo"],
18
18
  "exports": {
19
19
  ".": {
20
20
  "types": "./dist/index.d.ts"
21
21
  }
22
22
  },
23
23
  "types": "./dist/index.d.ts",
24
+ "files": [
25
+ "!dist/.tsbuildinfo",
26
+ "dist"
27
+ ],
28
+ "engines": {
29
+ "node": ">=20.19"
30
+ },
24
31
  "publishConfig": {
25
32
  "access": "public"
26
33
  },
34
+ "devDependencies": {
35
+ "typescript": "^5.7.0",
36
+ "vitest": "^3.0.0"
37
+ },
27
38
  "scripts": {
28
39
  "build": "tsc -b",
29
40
  "test": "vitest run --passWithNoTests",
30
41
  "sync": "esno ../../scripts/gen-protocol-types.ts"
31
- },
32
- "devDependencies": {
33
- "typescript": "^5.7.0",
34
- "vitest": "^3.0.0"
35
42
  }
36
43
  }