@contractspec/lib.runtime-sandbox 0.12.0 → 0.14.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.
Files changed (59) hide show
  1. package/dist/adapters/pglite/adapter.d.ts +27 -0
  2. package/dist/adapters/pglite/adapter.d.ts.map +1 -0
  3. package/dist/adapters/pglite/index.d.ts +2 -0
  4. package/dist/adapters/pglite/index.d.ts.map +1 -0
  5. package/dist/browser/index.js +2443 -0
  6. package/dist/index.d.ts +10 -8
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +2436 -22
  9. package/dist/node/index.js +2438 -0
  10. package/dist/ports/database.port.d.ts +49 -53
  11. package/dist/ports/database.port.d.ts.map +1 -1
  12. package/dist/ports/index.d.ts +2 -0
  13. package/dist/ports/index.d.ts.map +1 -0
  14. package/dist/types/database.types.d.ts +21 -24
  15. package/dist/types/database.types.d.ts.map +1 -1
  16. package/dist/types/index.d.ts +2 -0
  17. package/dist/types/index.d.ts.map +1 -0
  18. package/dist/web/database/migrations.d.ts +8 -6
  19. package/dist/web/database/migrations.d.ts.map +1 -1
  20. package/dist/web/database/schema.d.ts +7297 -7302
  21. package/dist/web/database/schema.d.ts.map +1 -1
  22. package/dist/web/events/local-pubsub.d.ts +5 -7
  23. package/dist/web/events/local-pubsub.d.ts.map +1 -1
  24. package/dist/web/graphql/local-client.d.ts +13 -17
  25. package/dist/web/graphql/local-client.d.ts.map +1 -1
  26. package/dist/web/index.d.ts +7 -14
  27. package/dist/web/index.d.ts.map +1 -1
  28. package/dist/web/runtime/seeders/index.d.ts +19 -0
  29. package/dist/web/runtime/seeders/index.d.ts.map +1 -0
  30. package/dist/web/runtime/services.d.ts +51 -50
  31. package/dist/web/runtime/services.d.ts.map +1 -1
  32. package/dist/web/storage/indexeddb.d.ts +16 -19
  33. package/dist/web/storage/indexeddb.d.ts.map +1 -1
  34. package/dist/web/utils/id.d.ts +1 -4
  35. package/dist/web/utils/id.d.ts.map +1 -1
  36. package/package.json +18 -16
  37. package/dist/_virtual/_rolldown/runtime.js +0 -18
  38. package/dist/adapters/pglite/adapter.js +0 -97
  39. package/dist/adapters/pglite/adapter.js.map +0 -1
  40. package/dist/adapters/pglite/index.js +0 -3
  41. package/dist/index.js.map +0 -1
  42. package/dist/web/database/migrations.js +0 -746
  43. package/dist/web/database/migrations.js.map +0 -1
  44. package/dist/web/database/schema.js +0 -528
  45. package/dist/web/database/schema.js.map +0 -1
  46. package/dist/web/events/local-pubsub.js +0 -24
  47. package/dist/web/events/local-pubsub.js.map +0 -1
  48. package/dist/web/graphql/local-client.js +0 -536
  49. package/dist/web/graphql/local-client.js.map +0 -1
  50. package/dist/web/index.js +0 -68
  51. package/dist/web/index.js.map +0 -1
  52. package/dist/web/runtime/seeders/index.js +0 -358
  53. package/dist/web/runtime/seeders/index.js.map +0 -1
  54. package/dist/web/runtime/services.js +0 -80
  55. package/dist/web/runtime/services.js.map +0 -1
  56. package/dist/web/storage/indexeddb.js +0 -85
  57. package/dist/web/storage/indexeddb.js.map +0 -1
  58. package/dist/web/utils/id.js +0 -9
  59. package/dist/web/utils/id.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","names":[],"sources":["../../../src/web/database/schema.ts"],"mappings":";;;cAoBa,oBAAA,uBAAoB,kBAAA;;;;QAO/B,oBAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,YAAA,uBAAY,kBAAA;;;;QAYvB,oBAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC"}
@@ -1,10 +1,8 @@
1
- //#region src/web/events/local-pubsub.d.ts
2
1
  type Listener<TPayload> = (payload: TPayload) => void;
3
- declare class LocalEventBus {
4
- private listeners;
5
- emit<TPayload = unknown>(event: string, payload: TPayload): void;
6
- subscribe<TPayload = unknown>(event: string, listener: Listener<TPayload>): () => void;
2
+ export declare class LocalEventBus {
3
+ private listeners;
4
+ emit<TPayload = unknown>(event: string, payload: TPayload): void;
5
+ subscribe<TPayload = unknown>(event: string, listener: Listener<TPayload>): () => void;
7
6
  }
8
- //#endregion
9
- export { LocalEventBus };
7
+ export {};
10
8
  //# sourceMappingURL=local-pubsub.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-pubsub.d.ts","names":[],"sources":["../../../src/web/events/local-pubsub.ts"],"mappings":";KAAK,QAAA,cAAsB,OAAA,EAAS,QAAA;AAAA,cAEvB,aAAA;EAAA,QACH,SAAA;EAER,IAAA,oBAAA,CAAyB,KAAA,UAAe,OAAA,EAAS,QAAA;EAQjD,SAAA,oBAAA,CACE,KAAA,UACA,QAAA,EAAU,QAAA,CAAS,QAAA;AAAA"}
1
+ {"version":3,"file":"local-pubsub.d.ts","sourceRoot":"","sources":["../../../src/web/events/local-pubsub.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,CAAC,QAAQ,IAAI,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC;AAEtD,qBAAa,aAAa;IACxB,OAAO,CAAC,SAAS,CAA6C;IAE9D,IAAI,CAAC,QAAQ,GAAG,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,IAAI;IAQhE,SAAS,CAAC,QAAQ,GAAG,OAAO,EAC1B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAC3B,MAAM,IAAI;CAWd"}
@@ -1,20 +1,16 @@
1
- import { LocalStorageService } from "../storage/indexeddb.js";
2
- import { LocalEventBus } from "../events/local-pubsub.js";
3
- import { ApolloClient } from "@apollo/client";
4
- import { DatabasePort } from "@contractspec/lib.runtime-sandbox";
5
-
6
- //#region src/web/graphql/local-client.d.ts
7
- interface LocalGraphQLClientOptions {
8
- db: DatabasePort;
9
- storage: LocalStorageService;
10
- pubsub?: LocalEventBus;
1
+ import { ApolloClient } from '@apollo/client';
2
+ import type { DatabasePort } from '@contractspec/lib.runtime-sandbox';
3
+ import { LocalEventBus } from '../events/local-pubsub';
4
+ import { LocalStorageService } from '../storage/indexeddb';
5
+ export interface LocalGraphQLClientOptions {
6
+ db: DatabasePort;
7
+ storage: LocalStorageService;
8
+ pubsub?: LocalEventBus;
11
9
  }
12
- declare class LocalGraphQLClient {
13
- private readonly options;
14
- readonly apollo: InstanceType<typeof ApolloClient>;
15
- constructor(options: LocalGraphQLClientOptions);
16
- private createResolvers;
10
+ export declare class LocalGraphQLClient {
11
+ private readonly options;
12
+ readonly apollo: InstanceType<typeof ApolloClient>;
13
+ constructor(options: LocalGraphQLClientOptions);
14
+ private createResolvers;
17
15
  }
18
- //#endregion
19
- export { LocalGraphQLClient, LocalGraphQLClientOptions };
20
16
  //# sourceMappingURL=local-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-client.d.ts","names":[],"sources":["../../../src/web/graphql/local-client.ts"],"mappings":";;;;;;UA8NiB,yBAAA;EACf,EAAA,EAAI,YAAA;EACJ,OAAA,EAAS,mBAAA;EACT,MAAA,GAAS,aAAA;AAAA;AAAA,cAGE,kBAAA;EAAA,iBAGkB,OAAA;EAAA,SAFpB,MAAA,EAAQ,YAAA,QAAoB,YAAA;cAER,OAAA,EAAS,yBAAA;EAAA,QAsB9B,eAAA;AAAA"}
1
+ {"version":3,"file":"local-client.d.ts","sourceRoot":"","sources":["../../../src/web/graphql/local-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiB,MAAM,gBAAgB,CAAC;AAK7D,OAAO,KAAK,EAAE,YAAY,EAAS,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAuN3D,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,YAAY,CAAC;IACjB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,qBAAa,kBAAkB;IAGjB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;gBAEtB,OAAO,EAAE,yBAAyB;IAsB/D,OAAO,CAAC,eAAe;CAkXxB"}
@@ -1,15 +1,8 @@
1
- import { SANDBOX_MIGRATIONS } from "./database/migrations.js";
2
- import { agentDefinition, agentRun, agentRunLog, agentRunStep, agentTool, agentToolAssignment, analyticsDashboard, analyticsQuery, analyticsWidget, crmCompany, crmContact, crmDeal, crmPipeline, crmStage, integration, integrationConnection, integrationFieldMapping, integrationSyncConfig, marketplaceOrder, marketplaceOrderItem, marketplacePayout, marketplaceProduct, marketplaceReview, marketplaceStore, psaChangeCandidate, psaReviewTask, psaRule, psaRuleVersion, psaSnapshot, psaUserContext, saasProject, saasSubscription, saasUsage, templateConversation, templateConversationParticipant, templateMessage, templateRecipe, templateRecipeCategory, templateRecipeIngredient, templateRecipeInstruction, templateTask, templateTaskCategory, workflowApproval, workflowDefinition, workflowInstance, workflowStep } from "./database/schema.js";
3
- import { LocalStorageOptions, LocalStorageService } from "./storage/indexeddb.js";
4
- import { generateId } from "./utils/id.js";
5
- import { LocalEventBus } from "./events/local-pubsub.js";
6
- import { LocalGraphQLClient, LocalGraphQLClientOptions } from "./graphql/local-client.js";
7
- import { LocalRuntimeInitOptions, LocalRuntimeServices, TemplateId, TemplateSeedOptions } from "./runtime/services.js";
8
-
9
- //#region src/web/index.d.ts
10
- declare namespace index_d_exports {
11
- export { LocalEventBus, LocalGraphQLClient, LocalGraphQLClientOptions, LocalRuntimeInitOptions, LocalRuntimeServices, LocalStorageOptions, LocalStorageService, SANDBOX_MIGRATIONS, TemplateId, TemplateSeedOptions, agentDefinition, agentRun, agentRunLog, agentRunStep, agentTool, agentToolAssignment, analyticsDashboard, analyticsQuery, analyticsWidget, crmCompany, crmContact, crmDeal, crmPipeline, crmStage, generateId, integration, integrationConnection, integrationFieldMapping, integrationSyncConfig, marketplaceOrder, marketplaceOrderItem, marketplacePayout, marketplaceProduct, marketplaceReview, marketplaceStore, psaChangeCandidate, psaReviewTask, psaRule, psaRuleVersion, psaSnapshot, psaUserContext, saasProject, saasSubscription, saasUsage, templateConversation, templateConversationParticipant, templateMessage, templateRecipe, templateRecipeCategory, templateRecipeIngredient, templateRecipeInstruction, templateTask, templateTaskCategory, workflowApproval, workflowDefinition, workflowInstance, workflowStep };
12
- }
13
- //#endregion
14
- export { index_d_exports };
1
+ export * from './database/migrations';
2
+ export * from './database/schema';
3
+ export * from './storage/indexeddb';
4
+ export * from './utils/id';
5
+ export * from './graphql/local-client';
6
+ export * from './events/local-pubsub';
7
+ export * from './runtime/services';
15
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/web/index.ts"],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/web/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,YAAY,CAAC;AAG3B,cAAc,wBAAwB,CAAC;AAGvC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Seed template data into the sandbox database.
3
+ *
4
+ * Lazy-loads individual seeders to avoid bundle bloat.
5
+ */
6
+ import type { DatabasePort } from '@contractspec/lib.runtime-sandbox';
7
+ import type { TemplateId } from '../services';
8
+ export interface SeedTemplateParams {
9
+ templateId: TemplateId;
10
+ projectId: string;
11
+ db: DatabasePort;
12
+ }
13
+ /**
14
+ * Seed the database with template-specific data.
15
+ *
16
+ * Unknown templates are a no-op (safe default).
17
+ */
18
+ export declare function seedTemplate(params: SeedTemplateParams): Promise<void>;
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/web/runtime/seeders/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,YAAY,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8B5E"}
@@ -1,59 +1,60 @@
1
- import { LocalStorageService } from "../storage/indexeddb.js";
2
- import { LocalEventBus } from "../events/local-pubsub.js";
3
- import { LocalGraphQLClient } from "../graphql/local-client.js";
4
- import { DatabasePort } from "@contractspec/lib.runtime-sandbox";
5
-
6
- //#region src/web/runtime/services.d.ts
7
- type TemplateId = string;
8
- interface LocalRuntimeInitOptions {
9
- /**
10
- * Data directory for IndexedDB persistence (optional).
11
- * If omitted, uses in-memory database.
12
- */
13
- dataDir?: string;
1
+ /**
2
+ * Runtime services for local (browser) sandbox environment.
3
+ *
4
+ * Uses lazy-loading for PGLite to avoid bundle bloat.
5
+ */
6
+ import type { DatabasePort } from '@contractspec/lib.runtime-sandbox';
7
+ import { LocalEventBus } from '../events/local-pubsub';
8
+ import { LocalGraphQLClient } from '../graphql/local-client';
9
+ import { LocalStorageService } from '../storage/indexeddb';
10
+ export type TemplateId = string;
11
+ export interface LocalRuntimeInitOptions {
12
+ /**
13
+ * Data directory for IndexedDB persistence (optional).
14
+ * If omitted, uses in-memory database.
15
+ */
16
+ dataDir?: string;
14
17
  }
15
- interface TemplateSeedOptions {
16
- templateId: TemplateId;
17
- projectId?: string;
18
+ export interface TemplateSeedOptions {
19
+ templateId: TemplateId;
20
+ projectId?: string;
18
21
  }
19
22
  /**
20
23
  * Local runtime services for sandbox environment.
21
24
  *
22
25
  * Provides lazy-loaded database access via DatabasePort interface.
23
26
  */
24
- declare class LocalRuntimeServices {
25
- #private;
26
- readonly storage: LocalStorageService;
27
- readonly pubsub: LocalEventBus;
28
- private _db?;
29
- /**
30
- * Get the database port (must be initialized first).
31
- */
32
- get db(): DatabasePort;
33
- private _graphql?;
34
- /**
35
- * Get the GraphQL client (must be initialized first).
36
- */
37
- get graphql(): LocalGraphQLClient;
38
- /**
39
- * Initialize the runtime services.
40
- *
41
- * Lazy-loads PGLite adapter to avoid bundle bloat.
42
- */
43
- init(options?: LocalRuntimeInitOptions): Promise<void>;
44
- /**
45
- * Check if runtime is initialized.
46
- */
47
- isInitialized(): boolean;
48
- /**
49
- * Seed the database with deterministic defaults for a template.
50
- *
51
- * - No randomness
52
- * - No wall-clock timestamps
53
- * - Unknown templates are a no-op (safe default)
54
- */
55
- seedTemplate(options: TemplateSeedOptions): Promise<void>;
27
+ export declare class LocalRuntimeServices {
28
+ #private;
29
+ readonly storage: LocalStorageService;
30
+ readonly pubsub: LocalEventBus;
31
+ private _db?;
32
+ /**
33
+ * Get the database port (must be initialized first).
34
+ */
35
+ get db(): DatabasePort;
36
+ private _graphql?;
37
+ /**
38
+ * Get the GraphQL client (must be initialized first).
39
+ */
40
+ get graphql(): LocalGraphQLClient;
41
+ /**
42
+ * Initialize the runtime services.
43
+ *
44
+ * Lazy-loads PGLite adapter to avoid bundle bloat.
45
+ */
46
+ init(options?: LocalRuntimeInitOptions): Promise<void>;
47
+ /**
48
+ * Check if runtime is initialized.
49
+ */
50
+ isInitialized(): boolean;
51
+ /**
52
+ * Seed the database with deterministic defaults for a template.
53
+ *
54
+ * - No randomness
55
+ * - No wall-clock timestamps
56
+ * - Unknown templates are a no-op (safe default)
57
+ */
58
+ seedTemplate(options: TemplateSeedOptions): Promise<void>;
56
59
  }
57
- //#endregion
58
- export { LocalRuntimeInitOptions, LocalRuntimeServices, TemplateId, TemplateSeedOptions };
59
60
  //# sourceMappingURL=services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"services.d.ts","names":[],"sources":["../../../src/web/runtime/services.ts"],"mappings":";;;;;;KAaY,UAAA;AAAA,UAEK,uBAAA;EAAA;;;;EAKf,OAAA;AAAA;AAAA,UAGe,mBAAA;EACf,UAAA,EAAY,UAAA;EACZ,SAAA;AAAA;;;;;AAUF;cAAa,oBAAA;EAAA;WACF,OAAA,EAAO,mBAAA;EAAA,SACP,MAAA,EAAM,aAAA;EAAA,QAGP,GAAA;EAmBO;;;EAAA,IAdX,EAAA,CAAA,GAAM,YAAA;EAAA,QASF,QAAA;EA0DiD;;;EAAA,IArDrD,OAAA,CAAA,GAAW,kBAAA;EAvBC;;;;;EAqCV,IAAA,CAAK,OAAA,GAAS,uBAAA,GAA+B,OAAA;EAnB3C;;;EA+CR,aAAA,CAAA;EA5BoB;;;;;;;EAuCd,YAAA,CAAa,OAAA,EAAS,mBAAA,GAAsB,OAAA;AAAA"}
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/web/runtime/services.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;;GAIG;AACH,qBAAa,oBAAoB;;IAC/B,QAAQ,CAAC,OAAO,sBAA6B;IAC7C,QAAQ,CAAC,MAAM,gBAAuB;IAGtC,OAAO,CAAC,GAAG,CAAC,CAAe;IAE3B;;OAEG;IACH,IAAI,EAAE,IAAI,YAAY,CAOrB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAqB;IAEtC;;OAEG;IACH,IAAI,OAAO,IAAI,kBAAkB,CAOhC;IAED;;;;OAIG;IACG,IAAI,CAAC,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,IAAI,CAAC;IAyBhE;;OAEG;IACH,aAAa,IAAI,OAAO;IAIxB;;;;;;OAMG;IACG,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;CAmBhE"}
@@ -1,22 +1,19 @@
1
- //#region src/web/storage/indexeddb.d.ts
2
- interface LocalStorageOptions {
3
- dbName?: string;
4
- storeName?: string;
5
- version?: number;
1
+ export interface LocalStorageOptions {
2
+ dbName?: string;
3
+ storeName?: string;
4
+ version?: number;
6
5
  }
7
- declare class LocalStorageService {
8
- private readonly options;
9
- private dbPromise?;
10
- constructor(options?: LocalStorageOptions);
11
- init(): Promise<void>;
12
- get<TValue = unknown>(key: string, fallback?: TValue): Promise<TValue | undefined>;
13
- set<TValue = unknown>(key: string, value: TValue): Promise<void>;
14
- delete(key: string): Promise<void>;
15
- clear(): Promise<void>;
16
- private get storeName();
17
- private getDb;
18
- private openDb;
6
+ export declare class LocalStorageService {
7
+ private readonly options;
8
+ private dbPromise?;
9
+ constructor(options?: LocalStorageOptions);
10
+ init(): Promise<void>;
11
+ get<TValue = unknown>(key: string, fallback?: TValue): Promise<TValue | undefined>;
12
+ set<TValue = unknown>(key: string, value: TValue): Promise<void>;
13
+ delete(key: string): Promise<void>;
14
+ clear(): Promise<void>;
15
+ private get storeName();
16
+ private getDb;
17
+ private openDb;
19
18
  }
20
- //#endregion
21
- export { LocalStorageOptions, LocalStorageService };
22
19
  //# sourceMappingURL=indexeddb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"indexeddb.d.ts","names":[],"sources":["../../../src/web/storage/indexeddb.ts"],"mappings":";UAAiB,mBAAA;EACf,MAAA;EACA,SAAA;EACA,OAAA;AAAA;AAAA,cAOW,mBAAA;EAAA,iBAGkB,OAAA;EAAA,QAFrB,SAAA;cAEqB,OAAA,GAAS,mBAAA;EAEhC,IAAA,CAAA,GAAQ,OAAA;EAIR,GAAA,kBAAA,CACJ,GAAA,UACA,QAAA,GAAW,MAAA,GACV,OAAA,CAAQ,MAAA;EAgBL,GAAA,kBAAA,CAAsB,GAAA,UAAa,KAAA,EAAO,MAAA,GAAS,OAAA;EAenD,MAAA,CAAO,GAAA,WAAc,OAAA;EAerB,KAAA,CAAA,GAAS,OAAA;EAAA,YAeH,SAAA,CAAA;EAAA,QAIE,KAAA;EAAA,QAUN,MAAA;AAAA"}
1
+ {"version":3,"file":"indexeddb.d.ts","sourceRoot":"","sources":["../../../src/web/storage/indexeddb.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAMD,qBAAa,mBAAmB;IAGlB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,SAAS,CAAC,CAA8B;gBAEnB,OAAO,GAAE,mBAAwB;IAExD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,GAAG,CAAC,MAAM,GAAG,OAAO,EACxB,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAgBxB,GAAG,CAAC,MAAM,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAehE,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAelC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAe5B,OAAO,KAAK,SAAS,GAEpB;YAEa,KAAK;IAUnB,OAAO,CAAC,MAAM;CAkBf"}
@@ -1,5 +1,2 @@
1
- //#region src/web/utils/id.d.ts
2
- declare function generateId(prefix?: string): string;
3
- //#endregion
4
- export { generateId };
1
+ export declare function generateId(prefix?: string): string;
5
2
  //# sourceMappingURL=id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"id.d.ts","names":[],"sources":["../../../src/web/utils/id.ts"],"mappings":";iBAAgB,UAAA,CAAW,MAAA"}
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../src/web/utils/id.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAMlD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.runtime-sandbox",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
@@ -9,10 +9,12 @@
9
9
  "lint": "bun run lint:fix",
10
10
  "lint:fix": "eslint src --fix",
11
11
  "lint:check": "eslint src",
12
- "build": "bun run build:bundle",
13
- "build:bundle": "tsdown",
14
- "build:types": "tsc --noEmit",
15
- "dev": "bun run build:bundle --watch"
12
+ "build": "bun run prebuild && bun run build:bundle && bun run build:types",
13
+ "build:bundle": "contractspec-bun-build transpile",
14
+ "build:types": "contractspec-bun-build types",
15
+ "dev": "contractspec-bun-build dev",
16
+ "prebuild": "contractspec-bun-build prebuild",
17
+ "typecheck": "tsc --noEmit"
16
18
  },
17
19
  "peerDependencies": {
18
20
  "@electric-sql/pglite": "^0.3.14",
@@ -27,18 +29,16 @@
27
29
  }
28
30
  },
29
31
  "devDependencies": {
30
- "@contractspec/tool.typescript": "1.57.0",
31
- "@contractspec/tool.tsdown": "1.57.0",
32
+ "@contractspec/tool.typescript": "1.59.0",
32
33
  "typescript": "^5.9.3",
33
34
  "@electric-sql/pglite": "^0.3.14",
34
35
  "drizzle-orm": "^0.45.1",
35
- "tsdown": "^0.20.3",
36
- "@types/bun": "~1.3.5"
36
+ "@types/bun": "~1.3.5",
37
+ "@contractspec/tool.bun": "1.58.0"
37
38
  },
38
39
  "types": "./dist/index.d.ts",
39
40
  "exports": {
40
- ".": "./dist/index.js",
41
- "./*": "./*"
41
+ ".": "./src/index.ts"
42
42
  },
43
43
  "typesVersions": {
44
44
  "*": {
@@ -55,11 +55,13 @@
55
55
  "access": "public",
56
56
  "registry": "https://registry.npmjs.org/",
57
57
  "exports": {
58
- ".": "./dist/index.mjs",
59
- "./ports": "./dist/ports/index.mjs",
60
- "./types": "./dist/types/index.mjs",
61
- "./adapters/pglite": "./dist/adapters/pglite/index.mjs",
62
- "./*": "./*"
58
+ ".": {
59
+ "types": "./dist/index.d.ts",
60
+ "bun": "./dist/index.js",
61
+ "node": "./dist/node/index.mjs",
62
+ "browser": "./dist/browser/index.js",
63
+ "default": "./dist/index.js"
64
+ }
63
65
  }
64
66
  },
65
67
  "dependencies": {
@@ -1,18 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __exportAll = (all, no_symbols) => {
4
- let target = {};
5
- for (var name in all) {
6
- __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- }
11
- if (!no_symbols) {
12
- __defProp(target, Symbol.toStringTag, { value: "Module" });
13
- }
14
- return target;
15
- };
16
-
17
- //#endregion
18
- export { __exportAll };
@@ -1,97 +0,0 @@
1
- import { PGlite } from "@electric-sql/pglite";
2
-
3
- //#region src/adapters/pglite/adapter.ts
4
- /**
5
- * PGLite database adapter for browser sandbox runtime.
6
- *
7
- * Uses PGLite (PostgreSQL WASM) for in-browser database operations.
8
- * Supports in-memory or IndexedDB persistence.
9
- */
10
- var PGLiteDatabaseAdapter = class {
11
- client = null;
12
- initialized = false;
13
- async init(options) {
14
- if (this.initialized) return;
15
- const dataDir = options?.dataDir;
16
- this.client = dataDir ? new PGlite(`idb://${dataDir}`) : new PGlite();
17
- await this.client.waitReady;
18
- this.initialized = true;
19
- }
20
- async close() {
21
- if (this.client) {
22
- await this.client.close();
23
- this.client = null;
24
- this.initialized = false;
25
- }
26
- }
27
- isInitialized() {
28
- return this.initialized;
29
- }
30
- async query(sql, params) {
31
- const client = this.getClient();
32
- const normalizedParams = this.normalizeParams(params);
33
- const result = await client.query(sql, normalizedParams);
34
- return {
35
- rows: result.rows,
36
- rowCount: result.rows.length
37
- };
38
- }
39
- async execute(sql, params) {
40
- const client = this.getClient();
41
- const normalizedParams = this.normalizeParams(params);
42
- await client.query(sql, normalizedParams);
43
- }
44
- async transaction(callback) {
45
- const client = this.getClient();
46
- await client.query("BEGIN");
47
- try {
48
- const result = await callback({ execute: async (sql, params) => {
49
- const normalizedParams = this.normalizeParams(params);
50
- await client.query(sql, normalizedParams);
51
- } });
52
- await client.query("COMMIT");
53
- return result;
54
- } catch (error) {
55
- await client.query("ROLLBACK");
56
- throw error;
57
- }
58
- }
59
- async migrate(migrations) {
60
- const client = this.getClient();
61
- await client.query(`
62
- CREATE TABLE IF NOT EXISTS _sandbox_migrations (
63
- id TEXT PRIMARY KEY,
64
- applied_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
65
- )
66
- `);
67
- for (const migration of migrations) if ((await client.query("SELECT id FROM _sandbox_migrations WHERE id = $1", [migration.id])).rows.length === 0) {
68
- await client.query(migration.sql);
69
- await client.query("INSERT INTO _sandbox_migrations (id) VALUES ($1)", [migration.id]);
70
- }
71
- }
72
- async export() {
73
- this.getClient();
74
- return new Uint8Array();
75
- }
76
- /**
77
- * Get the initialized PGLite client.
78
- * Throws if not initialized.
79
- */
80
- getClient() {
81
- if (!this.client || !this.initialized) throw new Error("PGLiteDatabaseAdapter not initialized. Call init() first.");
82
- return this.client;
83
- }
84
- normalizeParams(params) {
85
- if (!params) return [];
86
- return params.map((value) => {
87
- if (typeof value === "boolean") return value;
88
- if (value instanceof Date) return value.toISOString();
89
- if (value === void 0) return null;
90
- return value;
91
- });
92
- }
93
- };
94
-
95
- //#endregion
96
- export { PGLiteDatabaseAdapter };
97
- //# sourceMappingURL=adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adapter.js","names":[],"sources":["../../../src/adapters/pglite/adapter.ts"],"sourcesContent":["import { PGlite } from '@electric-sql/pglite';\n\nimport type { DatabasePort } from '../../ports/database.port';\nimport type {\n DatabaseInitOptions,\n DbRow,\n DbValue,\n Migration,\n QueryResult,\n TransactionContext,\n} from '../../types/database.types';\n\n/**\n * PGLite database adapter for browser sandbox runtime.\n *\n * Uses PGLite (PostgreSQL WASM) for in-browser database operations.\n * Supports in-memory or IndexedDB persistence.\n */\nexport class PGLiteDatabaseAdapter implements DatabasePort {\n private client: PGlite | null = null;\n private initialized = false;\n\n async init(options?: DatabaseInitOptions): Promise<void> {\n if (this.initialized) return;\n\n // Create PGLite instance\n // - undefined/empty = in-memory\n // - 'idb://dbname' = IndexedDB persistence\n const dataDir = options?.dataDir;\n this.client = dataDir ? new PGlite(`idb://${dataDir}`) : new PGlite();\n\n // Wait for PGLite to be ready\n await this.client.waitReady;\n this.initialized = true;\n }\n\n async close(): Promise<void> {\n if (this.client) {\n await this.client.close();\n this.client = null;\n this.initialized = false;\n }\n }\n\n isInitialized(): boolean {\n return this.initialized;\n }\n\n async query<T = DbRow>(\n sql: string,\n params?: DbValue[]\n ): Promise<QueryResult<T>> {\n const client = this.getClient();\n const normalizedParams = this.normalizeParams(params);\n const result = await client.query<T>(sql, normalizedParams);\n return {\n rows: result.rows,\n rowCount: result.rows.length,\n };\n }\n\n async execute(sql: string, params?: DbValue[]): Promise<void> {\n const client = this.getClient();\n const normalizedParams = this.normalizeParams(params);\n await client.query(sql, normalizedParams);\n }\n\n async transaction<T>(\n callback: (ctx: TransactionContext) => Promise<T>\n ): Promise<T> {\n const client = this.getClient();\n\n await client.query('BEGIN');\n try {\n const ctx: TransactionContext = {\n execute: async (sql: string, params?: DbValue[]) => {\n const normalizedParams = this.normalizeParams(params);\n await client.query(sql, normalizedParams);\n },\n };\n const result = await callback(ctx);\n await client.query('COMMIT');\n return result;\n } catch (error) {\n await client.query('ROLLBACK');\n throw error;\n }\n }\n\n async migrate(migrations: Migration[]): Promise<void> {\n const client = this.getClient();\n\n // Create migrations tracking table if not exists\n await client.query(`\n CREATE TABLE IF NOT EXISTS _sandbox_migrations (\n id TEXT PRIMARY KEY,\n applied_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n )\n `);\n\n // Apply each migration if not already applied\n for (const migration of migrations) {\n const existing = await client.query<{ id: string }>(\n 'SELECT id FROM _sandbox_migrations WHERE id = $1',\n [migration.id]\n );\n\n if (existing.rows.length === 0) {\n await client.query(migration.sql);\n await client.query('INSERT INTO _sandbox_migrations (id) VALUES ($1)', [\n migration.id,\n ]);\n }\n }\n }\n\n async export(): Promise<Uint8Array> {\n this.getClient(); // Ensure initialized\n // PGLite doesn't support export the same way sql.js does\n // For now, return empty array - can be implemented with pg_dump style later\n return new Uint8Array();\n }\n\n /**\n * Get the initialized PGLite client.\n * Throws if not initialized.\n */\n private getClient(): PGlite {\n if (!this.client || !this.initialized) {\n throw new Error(\n 'PGLiteDatabaseAdapter not initialized. Call init() first.'\n );\n }\n return this.client;\n }\n\n private normalizeParams(params?: DbValue[]): unknown[] {\n if (!params) return [];\n return params.map((value) => {\n if (typeof value === 'boolean') {\n return value;\n }\n if (value instanceof Date) {\n return value.toISOString();\n }\n if (value === undefined) {\n return null;\n }\n return value;\n });\n }\n}\n"],"mappings":";;;;;;;;;AAkBA,IAAa,wBAAb,MAA2D;CACzD,AAAQ,SAAwB;CAChC,AAAQ,cAAc;CAEtB,MAAM,KAAK,SAA8C;AACvD,MAAI,KAAK,YAAa;EAKtB,MAAM,UAAU,SAAS;AACzB,OAAK,SAAS,UAAU,IAAI,OAAO,SAAS,UAAU,GAAG,IAAI,QAAQ;AAGrE,QAAM,KAAK,OAAO;AAClB,OAAK,cAAc;;CAGrB,MAAM,QAAuB;AAC3B,MAAI,KAAK,QAAQ;AACf,SAAM,KAAK,OAAO,OAAO;AACzB,QAAK,SAAS;AACd,QAAK,cAAc;;;CAIvB,gBAAyB;AACvB,SAAO,KAAK;;CAGd,MAAM,MACJ,KACA,QACyB;EACzB,MAAM,SAAS,KAAK,WAAW;EAC/B,MAAM,mBAAmB,KAAK,gBAAgB,OAAO;EACrD,MAAM,SAAS,MAAM,OAAO,MAAS,KAAK,iBAAiB;AAC3D,SAAO;GACL,MAAM,OAAO;GACb,UAAU,OAAO,KAAK;GACvB;;CAGH,MAAM,QAAQ,KAAa,QAAmC;EAC5D,MAAM,SAAS,KAAK,WAAW;EAC/B,MAAM,mBAAmB,KAAK,gBAAgB,OAAO;AACrD,QAAM,OAAO,MAAM,KAAK,iBAAiB;;CAG3C,MAAM,YACJ,UACY;EACZ,MAAM,SAAS,KAAK,WAAW;AAE/B,QAAM,OAAO,MAAM,QAAQ;AAC3B,MAAI;GAOF,MAAM,SAAS,MAAM,SANW,EAC9B,SAAS,OAAO,KAAa,WAAuB;IAClD,MAAM,mBAAmB,KAAK,gBAAgB,OAAO;AACrD,UAAM,OAAO,MAAM,KAAK,iBAAiB;MAE5C,CACiC;AAClC,SAAM,OAAO,MAAM,SAAS;AAC5B,UAAO;WACA,OAAO;AACd,SAAM,OAAO,MAAM,WAAW;AAC9B,SAAM;;;CAIV,MAAM,QAAQ,YAAwC;EACpD,MAAM,SAAS,KAAK,WAAW;AAG/B,QAAM,OAAO,MAAM;;;;;MAKjB;AAGF,OAAK,MAAM,aAAa,WAMtB,MALiB,MAAM,OAAO,MAC5B,oDACA,CAAC,UAAU,GAAG,CACf,EAEY,KAAK,WAAW,GAAG;AAC9B,SAAM,OAAO,MAAM,UAAU,IAAI;AACjC,SAAM,OAAO,MAAM,oDAAoD,CACrE,UAAU,GACX,CAAC;;;CAKR,MAAM,SAA8B;AAClC,OAAK,WAAW;AAGhB,SAAO,IAAI,YAAY;;;;;;CAOzB,AAAQ,YAAoB;AAC1B,MAAI,CAAC,KAAK,UAAU,CAAC,KAAK,YACxB,OAAM,IAAI,MACR,4DACD;AAEH,SAAO,KAAK;;CAGd,AAAQ,gBAAgB,QAA+B;AACrD,MAAI,CAAC,OAAQ,QAAO,EAAE;AACtB,SAAO,OAAO,KAAK,UAAU;AAC3B,OAAI,OAAO,UAAU,UACnB,QAAO;AAET,OAAI,iBAAiB,KACnB,QAAO,MAAM,aAAa;AAE5B,OAAI,UAAU,OACZ,QAAO;AAET,UAAO;IACP"}
@@ -1,3 +0,0 @@
1
- import { PGLiteDatabaseAdapter } from "./adapter.js";
2
-
3
- export { PGLiteDatabaseAdapter };
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * @contractspec/lib.runtime-sandbox\n *\n * Sandbox runtime library providing database abstraction for browser environments.\n * Supports lazy-loading of PGLite for bundle optimization.\n */\n\n// Core ports (interfaces)\nexport { type DatabaseAdapterFactory, type DatabasePort } from './ports';\n\n// Types\nexport {\n type DatabaseInitOptions,\n type DbRow,\n type DbValue,\n type Migration,\n type QueryResult,\n type TransactionContext,\n} from './types';\n\n/**\n * Lazy-load the PGLite database adapter.\n *\n * This function dynamically imports PGLite and Drizzle only when called,\n * avoiding bundle bloat for consumers not using the sandbox runtime.\n *\n * @example\n * ```ts\n * const adapter = await createPGLiteAdapter();\n * await adapter.init();\n * const result = await adapter.query('SELECT * FROM users');\n * ```\n */\nexport async function createPGLiteAdapter(): Promise<\n import('./ports').DatabasePort\n> {\n const { PGLiteDatabaseAdapter } = await import('./adapters/pglite');\n return new PGLiteDatabaseAdapter();\n}\n\nexport * as web from './web';\n"],"mappings":";;;;;;;;;;;;;;;;AAiCA,eAAsB,sBAEpB;CACA,MAAM,EAAE,0BAA0B,MAAM,OAAO;AAC/C,QAAO,IAAI,uBAAuB"}