@agimon-ai/po-db 0.0.0-alpha.128 → 0.0.0-alpha.130

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.
@@ -1 +1 @@
1
- {"version":3,"file":"apiContracts.cjs","names":["defineApiContract"],"sources":["../src/schemas/apiContracts.ts"],"sourcesContent":["import { defineApiContract } from '@agimon-ai/po-core/apiContracts';\n\n/** This server plugin provides the po/db service only, with no separate HTTP or socket surface. */\nexport const apiContracts = defineApiContract({ version: 1, http: [], sockets: [], dynamic: [] });\nexport default apiContracts;\n"],"mappings":";;;;;;AAGA,MAAa,gBAAA,4CAAeA,CAAAA,CAAAA,kBAAAA,CAAkB;CAAE,SAAS;CAAG,MAAM,CAAC;CAAG,SAAS,CAAC;CAAG,SAAS,CAAC;AAAE,CAAC"}
1
+ {"version":3,"file":"apiContracts.cjs","names":["defineApiContract"],"sources":["../src/schemas/apiContracts.ts"],"sourcesContent":["import { defineApiContract } from '@agimon-ai/po-core/apiContracts';\n\n/** This server plugin provides the po/db service only, with no separate HTTP or socket surface. */\nexport const apiContracts = defineApiContract({ version: 1, http: [], sockets: [], dynamic: [] });\nexport default apiContracts;\n"],"mappings":";;;;;;AAGA,MAAa,gBAAA,G,yCAAeA,CAAAA,CAAAA,kBAAAA,CAAkB;CAAE,SAAS;CAAG,MAAM,CAAC;CAAG,SAAS,CAAC;CAAG,SAAS,CAAC;AAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"contracts-CU15VsfR.cjs","names":["defineServiceContract","PO_DB_SERVICE"],"sources":["../src/schemas/contracts.ts"],"sourcesContent":["import { defineServiceContract } from '@agimon-ai/po-core/extensionFile';\nimport type { Context } from '@deepseek-ai/cordis';\n\nimport { PO_DB_SERVICE } from '../constants/db';\nimport type { PoDb } from '../services/poDb/type';\n\n/** Bound once at the global level; every workspace and session resolves the same connection. */\nexport const PO_DB_CONTRACT = defineServiceContract<PoDb>(PO_DB_SERVICE, { scope: 'global' });\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/db': PoDb;\n }\n}\n\n/** The shared database, for a caller that injected `po/db`; throws when no global root bound one. */\nexport function requirePoDb(context: Context): PoDb {\n const db = context.get(PO_DB_SERVICE) as PoDb | undefined;\n if (db === undefined)\n throw new Error('The Po database is unavailable. Install @agimon-ai/po-db at the global scope.');\n return db;\n}\n"],"mappings":";;;AAOA,MAAa,kBAAA,6CAAiBA,CAAAA,CAAAA,sBAAAA,CAA4BC,aAAAA,eAAe,EAAE,OAAO,SAAS,CAAC;;AAS5F,SAAgB,YAAY,SAAwB;CAClD,MAAM,KAAK,QAAQ,IAAIA,aAAAA,aAAa;CACpC,IAAI,OAAO,KAAA,GACT,MAAM,IAAI,MAAM,+EAA+E;CACjG,OAAO;AACT"}
1
+ {"version":3,"file":"contracts-CU15VsfR.cjs","names":["defineServiceContract","PO_DB_SERVICE"],"sources":["../src/schemas/contracts.ts"],"sourcesContent":["import { defineServiceContract } from '@agimon-ai/po-core/extensionFile';\nimport type { Context } from '@deepseek-ai/cordis';\n\nimport { PO_DB_SERVICE } from '../constants/db';\nimport type { PoDb } from '../services/poDb/type';\n\n/** Bound once at the global level; every workspace and session resolves the same connection. */\nexport const PO_DB_CONTRACT = defineServiceContract<PoDb>(PO_DB_SERVICE, { scope: 'global' });\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/db': PoDb;\n }\n}\n\n/** The shared database, for a caller that injected `po/db`; throws when no global root bound one. */\nexport function requirePoDb(context: Context): PoDb {\n const db = context.get(PO_DB_SERVICE) as PoDb | undefined;\n if (db === undefined)\n throw new Error('The Po database is unavailable. Install @agimon-ai/po-db at the global scope.');\n return db;\n}\n"],"mappings":";;;AAOA,MAAa,kBAAA,G,0CAAiBA,CAAAA,CAAAA,sBAAAA,CAA4BC,aAAAA,eAAe,EAAE,OAAO,SAAS,CAAC;;AAS5F,SAAgB,YAAY,SAAwB;CAClD,MAAM,KAAK,QAAQ,IAAIA,aAAAA,aAAa;CACpC,IAAI,OAAO,KAAA,GACT,MAAM,IAAI,MAAM,+EAA+E;CACjG,OAAO;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-db",
3
- "version": "0.0.0-alpha.128",
3
+ "version": "0.0.0-alpha.130",
4
4
  "description": "One shared sqlite database for the Po packages that need one",
5
5
  "keywords": [
6
6
  "ai",
@@ -61,13 +61,13 @@
61
61
  "access": "public"
62
62
  },
63
63
  "dependencies": {
64
- "@agimon-ai/po-core": "0.0.0-alpha.128",
64
+ "@agimon-ai/po-core": "0.0.0-alpha.130",
65
65
  "@deepseek-ai/cordis": "4.0.5",
66
66
  "@earendil-works/chord": "1.5.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@agimon-ai/po-build": "0.0.0-alpha.128",
70
- "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.128",
69
+ "@agimon-ai/po-build": "0.0.0-alpha.130",
70
+ "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.130",
71
71
  "@types/node": "26.6.5",
72
72
  "@vitest/coverage-v8": "5.0.4",
73
73
  "tsdown": "0.23.1",