@garretapp/sdk 0.1.3 → 0.1.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.
@@ -111,7 +111,11 @@ interface GarretPlatform {
111
111
  /** Pack-shared store — present only when the pack declares `shared`; otherwise its calls reject. */
112
112
  shared: SharedApi;
113
113
  service<T extends ServiceClient = ServiceClient>(id: string): T;
114
- notify(title: string, body?: string): void;
114
+ /** Show a system notification. `opts.url` makes it clickable → opens the link (requires the
115
+ * `openExternal` capability; ignored otherwise). */
116
+ notify(title: string, body?: string, opts?: {
117
+ url?: string;
118
+ }): void;
115
119
  openExternal(url: string): Promise<boolean>;
116
120
  clipboard: {
117
121
  readText(): Promise<string>;
@@ -111,7 +111,11 @@ interface GarretPlatform {
111
111
  /** Pack-shared store — present only when the pack declares `shared`; otherwise its calls reject. */
112
112
  shared: SharedApi;
113
113
  service<T extends ServiceClient = ServiceClient>(id: string): T;
114
- notify(title: string, body?: string): void;
114
+ /** Show a system notification. `opts.url` makes it clickable → opens the link (requires the
115
+ * `openExternal` capability; ignored otherwise). */
116
+ notify(title: string, body?: string, opts?: {
117
+ url?: string;
118
+ }): void;
115
119
  openExternal(url: string): Promise<boolean>;
116
120
  clipboard: {
117
121
  readText(): Promise<string>;
package/dist/react.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { G as GarretError, E as EventMap, H as HostClient, f as StreamCall } from './types-BxSYAH_H.cjs';
2
- import { G as GarretPlatform } from './platform-qz2Ef0Rp.cjs';
3
- export { S as SurfaceApi, a as SurfaceHandle, b as SurfaceOpenOptions, W as WindowControls } from './platform-qz2Ef0Rp.cjs';
2
+ import { G as GarretPlatform } from './platform-Byqljdn8.cjs';
3
+ export { S as SurfaceApi, a as SurfaceHandle, b as SurfaceOpenOptions, W as WindowControls } from './platform-Byqljdn8.cjs';
4
4
  import { ReactNode } from 'react';
5
5
  import './protocol-Do0BJdeE.cjs';
6
6
 
package/dist/react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { G as GarretError, E as EventMap, H as HostClient, f as StreamCall } from './types-BxSYAH_H.js';
2
- import { G as GarretPlatform } from './platform-Bbj2Vh3W.js';
3
- export { S as SurfaceApi, a as SurfaceHandle, b as SurfaceOpenOptions, W as WindowControls } from './platform-Bbj2Vh3W.js';
2
+ import { G as GarretPlatform } from './platform-CRkiyy2a.js';
3
+ export { S as SurfaceApi, a as SurfaceHandle, b as SurfaceOpenOptions, W as WindowControls } from './platform-CRkiyy2a.js';
4
4
  import { ReactNode } from 'react';
5
5
  import './protocol-Do0BJdeE.js';
6
6
 
package/dist/ui.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { T as Transport } from './protocol-Do0BJdeE.cjs';
2
2
  import { E as EventMap, H as HostClient } from './types-BxSYAH_H.cjs';
3
3
  export { C as Capability, G as GarretError, M as Manifest, S as Stream, f as StreamCall, g as defineConfig, h as defineManifest } from './types-BxSYAH_H.cjs';
4
- export { G as GarretPlatform, c as GarretRuntime, d as SecretsApi, e as ServiceClient, f as StorageApi, S as SurfaceApi, a as SurfaceHandle, b as SurfaceOpenOptions, W as WindowControls, g as getGarret, h as getHostTransport, i as getInstanceId, j as getRuntime } from './platform-qz2Ef0Rp.cjs';
4
+ export { G as GarretPlatform, c as GarretRuntime, d as SecretsApi, e as ServiceClient, f as StorageApi, S as SurfaceApi, a as SurfaceHandle, b as SurfaceOpenOptions, W as WindowControls, g as getGarret, h as getHostTransport, i as getInstanceId, j as getRuntime } from './platform-Byqljdn8.cjs';
5
5
 
6
6
  /**
7
7
  * UI-side host client — a typed proxy over the wire (protocol.ts). Every call returns ONE handle
package/dist/ui.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { T as Transport } from './protocol-Do0BJdeE.js';
2
2
  import { E as EventMap, H as HostClient } from './types-BxSYAH_H.js';
3
3
  export { C as Capability, G as GarretError, M as Manifest, S as Stream, f as StreamCall, g as defineConfig, h as defineManifest } from './types-BxSYAH_H.js';
4
- export { G as GarretPlatform, c as GarretRuntime, d as SecretsApi, e as ServiceClient, f as StorageApi, S as SurfaceApi, a as SurfaceHandle, b as SurfaceOpenOptions, W as WindowControls, g as getGarret, h as getHostTransport, i as getInstanceId, j as getRuntime } from './platform-Bbj2Vh3W.js';
4
+ export { G as GarretPlatform, c as GarretRuntime, d as SecretsApi, e as ServiceClient, f as StorageApi, S as SurfaceApi, a as SurfaceHandle, b as SurfaceOpenOptions, W as WindowControls, g as getGarret, h as getHostTransport, i as getInstanceId, j as getRuntime } from './platform-CRkiyy2a.js';
5
5
 
6
6
  /**
7
7
  * UI-side host client — a typed proxy over the wire (protocol.ts). Every call returns ONE handle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@garretapp/sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Build extensions for Garret — one SDK for both web widgets and full-access native extensions. Host runtime (defineHost), UI client + React hooks. See docs/garret.html.",
5
5
  "license": "MIT",
6
6
  "author": "Sudharsan Selvaraj",