@gajae-code/natives 0.11.2 → 0.11.4

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/native/index.d.ts CHANGED
@@ -52,6 +52,18 @@ export declare class MacOSPowerAssertion {
52
52
  stop(): void
53
53
  }
54
54
 
55
+ /** Retained no-follow authority for the SDK publication namespace. */
56
+ export declare class NativeRetainedBrokerPublication {
57
+ observe(): NativeBrokerPublicationObservation
58
+ heartbeat(heartbeatAt: string): NativeBrokerPublicationOperation
59
+ sync(): NativeBrokerPublicationOperation
60
+ /**
61
+ * Close discovery, owner record, lock directory, and SDK root in that
62
+ * order.
63
+ */
64
+ close(): NativeBrokerPublicationOperation
65
+ }
66
+
55
67
  /**
56
68
  * In-process, session-independent lifecycle **control** server exposed to TS.
57
69
  *
@@ -373,7 +385,7 @@ export declare class Shell {
373
385
  * `packages/natives/native/index.js` (which derives the name from
374
386
  * `package.json#version`).
375
387
  */
376
- export declare function __piNativesV0_11_2(): void
388
+ export declare function __piNativesV0_11_4(): void
377
389
 
378
390
  /**
379
391
  * Apply conservative pre-execution rewrites to a bash command.
@@ -1500,6 +1512,16 @@ export interface MinimizerResult {
1500
1512
  outputBytes: number
1501
1513
  }
1502
1514
 
1515
+ /** Classification of a read-only retained-publication observation. */
1516
+ export interface NativeBrokerPublicationObservation {
1517
+ kind: string
1518
+ }
1519
+
1520
+ /** Result of a retained positional heartbeat write or sync. */
1521
+ export interface NativeBrokerPublicationOperation {
1522
+ kind: string
1523
+ }
1524
+
1503
1525
  export declare function nativeBuildInfo(): BuildInfo
1504
1526
 
1505
1527
  /** Result of resolving an existing directory to its stable platform identity. */
@@ -1744,6 +1766,12 @@ export interface ReplyEvent {
1744
1766
  replyReceiptId: string
1745
1767
  }
1746
1768
 
1769
+ /**
1770
+ * Retain the existing no-follow SDK publication objects after one-time
1771
+ * publication.
1772
+ */
1773
+ export declare function retainBrokerPublication(agentDir: string): NativeRetainedBrokerPublication
1774
+
1747
1775
  /** Public status of exact direct retirement. Claims and receipts remain native. */
1748
1776
  export interface RetireIfUnclaimedResult {
1749
1777
  status: 'retired' | 'already_terminal' | 'claimed' | 'stale'
package/native/index.js CHANGED
@@ -20,6 +20,7 @@ nativeBindings.initNativeCrashDiagnostics?.();
20
20
  export const ComputerController = nativeBindings.ComputerController;
21
21
  export const MacAppearanceObserver = nativeBindings.MacAppearanceObserver;
22
22
  export const MacOSPowerAssertion = nativeBindings.MacOSPowerAssertion;
23
+ export const NativeRetainedBrokerPublication = nativeBindings.NativeRetainedBrokerPublication;
23
24
  export const NotificationControlServer = nativeBindings.NotificationControlServer;
24
25
  export const NotificationServer = nativeBindings.NotificationServer;
25
26
  export const Process = nativeBindings.Process;
@@ -27,7 +28,7 @@ export const PtySession = nativeBindings.PtySession;
27
28
  export const Shell = nativeBindings.Shell;
28
29
 
29
30
  // functions
30
- export const __piNativesV0_11_2 = nativeBindings.__piNativesV0_11_2;
31
+ export const __piNativesV0_11_4 = nativeBindings.__piNativesV0_11_4;
31
32
  export const applyBashFixups = nativeBindings.applyBashFixups;
32
33
  export const applyOwnerOnlyPathSecurity = nativeBindings.applyOwnerOnlyPathSecurity;
33
34
  export const astEdit = nativeBindings.astEdit;
@@ -73,6 +74,7 @@ export const parseKittySequence = nativeBindings.parseKittySequence;
73
74
  export const ptyTimeoutCount = nativeBindings.ptyTimeoutCount;
74
75
  export const readImageFromClipboard = nativeBindings.readImageFromClipboard;
75
76
  export const renameNoReplacePath = nativeBindings.renameNoReplacePath;
77
+ export const retainBrokerPublication = nativeBindings.retainBrokerPublication;
76
78
  export const search = nativeBindings.search;
77
79
  export const sliceWithWidth = nativeBindings.sliceWithWidth;
78
80
  export const snapshotDirectoryTree = nativeBindings.snapshotDirectoryTree;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gajae-code/natives",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Native Rust bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API",
5
5
  "type": "module",
6
6
  "homepage": "https://gajae-code.com",
@@ -61,11 +61,11 @@
61
61
  "README.md"
62
62
  ],
63
63
  "optionalDependencies": {
64
- "@gajae-code/natives-darwin-arm64": "0.11.2",
65
- "@gajae-code/natives-darwin-x64": "0.11.2",
66
- "@gajae-code/natives-linux-arm64": "0.11.2",
67
- "@gajae-code/natives-linux-x64": "0.11.2",
68
- "@gajae-code/natives-win32-x64": "0.11.2"
64
+ "@gajae-code/natives-darwin-arm64": "0.11.4",
65
+ "@gajae-code/natives-darwin-x64": "0.11.4",
66
+ "@gajae-code/natives-linux-arm64": "0.11.4",
67
+ "@gajae-code/natives-linux-x64": "0.11.4",
68
+ "@gajae-code/natives-win32-x64": "0.11.4"
69
69
  },
70
70
  "exports": {
71
71
  ".": {