graphile-storage-registry 0.2.0 → 0.4.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.
package/README.md CHANGED
@@ -92,9 +92,10 @@ Install skills for AI coding agents:
92
92
  # All platform skills (security, blueprints, codegen, billing, etc.)
93
93
  npx skills add constructive-io/constructive-skills
94
94
 
95
- # Individual repo skills (pgpm, testing, CLI, search, etc.)
96
- npx skills add https://github.com/constructive-io/constructive --skill pgpm
97
- npx skills add https://github.com/constructive-io/constructive --skill constructive-testing
95
+ # Individual repo skills (pgpm, safegres, testing, CLI, search, etc.)
96
+ npx skills add constructive-io/constructive --skill pgpm
97
+ npx skills add constructive-io/constructive --skill safegres
98
+ npx skills add constructive-io/constructive --skill constructive-testing
98
99
  ```
99
100
 
100
101
  ## Credits
package/esm/pairing.d.ts CHANGED
@@ -66,6 +66,11 @@ export interface StoragePlanePair {
66
66
  * attribute (a registry fact — never inferred from the plane's scope name).
67
67
  */
68
68
  hasOwnerId: boolean;
69
+ /**
70
+ * Whether the plane is database-keyed: the buckets table carries a
71
+ * `database_id` scope column, so several databases' buckets share it.
72
+ */
73
+ hasDatabaseId: boolean;
69
74
  }
70
75
  /**
71
76
  * Pair one `@storageFiles` codec with its `@storageBuckets` codec through the
package/esm/pairing.js CHANGED
@@ -56,6 +56,7 @@ export function pairStoragePlane(filesCodec, pgRegistry) {
56
56
  relationName,
57
57
  fkAttributes: [...relation.localAttributes],
58
58
  hasOwnerId: !!bucketsCodec.attributes?.owner_id,
59
+ hasDatabaseId: !!bucketsCodec.attributes?.database_id,
59
60
  };
60
61
  }
61
62
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-storage-registry",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Registry-derived storage plane discovery for PostGraphile v5 — pairs @storageFiles/@storageBuckets codecs through their actual foreign-key relations and derives the canonical upload surface names, so no table name is ever load-bearing",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "homepage": "https://github.com/constructive-io/constructive",
@@ -42,5 +42,5 @@
42
42
  "postgres",
43
43
  "graphql"
44
44
  ],
45
- "gitHead": "baa84094b8541eb5000701b0060aa5b298032dc7"
45
+ "gitHead": "648ec06cb132ea41634f56991de5ba62e60d8154"
46
46
  }
package/pairing.d.ts CHANGED
@@ -66,6 +66,11 @@ export interface StoragePlanePair {
66
66
  * attribute (a registry fact — never inferred from the plane's scope name).
67
67
  */
68
68
  hasOwnerId: boolean;
69
+ /**
70
+ * Whether the plane is database-keyed: the buckets table carries a
71
+ * `database_id` scope column, so several databases' buckets share it.
72
+ */
73
+ hasDatabaseId: boolean;
69
74
  }
70
75
  /**
71
76
  * Pair one `@storageFiles` codec with its `@storageBuckets` codec through the
package/pairing.js CHANGED
@@ -60,6 +60,7 @@ function pairStoragePlane(filesCodec, pgRegistry) {
60
60
  relationName,
61
61
  fkAttributes: [...relation.localAttributes],
62
62
  hasOwnerId: !!bucketsCodec.attributes?.owner_id,
63
+ hasDatabaseId: !!bucketsCodec.attributes?.database_id,
63
64
  };
64
65
  }
65
66
  /**