@gate-forge/pack-sqlalchemy 0.10.4 → 0.11.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/dist/detector.d.ts +11 -19
- package/dist/detector.d.ts.map +1 -1
- package/dist/detector.js +10 -10
- package/dist/detector.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/planes.d.ts +22 -18
- package/dist/planes.d.ts.map +1 -1
- package/dist/planes.js +34 -40
- package/dist/planes.js.map +1 -1
- package/package.json +3 -3
package/dist/detector.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DiscoveryOutcome } from '@gate-forge/plugin-protocol';
|
|
1
|
+
import { type DiscoverContext, type DiscoveryOutcome } from '@gate-forge/plugin-protocol';
|
|
2
2
|
import { type PlanesConfig, type PlaneRule } from './planes.js';
|
|
3
3
|
/** The subprocess command the in-process transport spawns (G4 surface). */
|
|
4
4
|
export declare const DEFAULT_COMMAND: string[];
|
|
@@ -18,23 +18,15 @@ export declare function pythonEnvironment(extra?: readonly string[]): NodeJS.Pro
|
|
|
18
18
|
export interface SqlalchemyDetectorOptions {
|
|
19
19
|
/**
|
|
20
20
|
* Optional programmatic plane mapping. Takes precedence over the
|
|
21
|
-
* declarative config channel: when given,
|
|
22
|
-
* not read at all. The default is `NO_PLANE_MAPPING`.
|
|
21
|
+
* declarative config channel: when given, the host's `planes:`
|
|
22
|
+
* section is not read at all. The default is `NO_PLANE_MAPPING`.
|
|
23
23
|
*/
|
|
24
24
|
plane?: PlaneRule;
|
|
25
25
|
/**
|
|
26
|
-
* Explicit declarative plane
|
|
27
|
-
*
|
|
28
|
-
* ignored while `plane` is given).
|
|
26
|
+
* Explicit declarative plane rules; overrides the host's `planes:`
|
|
27
|
+
* section entirely when given (and is ignored while `plane` is given).
|
|
29
28
|
*/
|
|
30
29
|
planesConfig?: PlanesConfig;
|
|
31
|
-
/**
|
|
32
|
-
* Repo-relative path of the declarative plane config document (JSON),
|
|
33
|
-
* resolved against the working directory at discover time (default:
|
|
34
|
-
* `.gateforge/planes.json`). Absence is normal — the outcome is then
|
|
35
|
-
* byte-identical to `NO_PLANE_MAPPING`; a malformed document throws.
|
|
36
|
-
*/
|
|
37
|
-
planesConfigPath?: string;
|
|
38
30
|
/**
|
|
39
31
|
* Explicit owner-declared tenant scope columns. Overrides the
|
|
40
32
|
* `.gateforge.yml` `tenancy.scopeColumns` document entirely when given.
|
|
@@ -57,9 +49,9 @@ export interface SqlalchemyDetectorOptions {
|
|
|
57
49
|
/** Handshake-pinned plugin version (default: the pack version). */
|
|
58
50
|
pluginVersion?: string;
|
|
59
51
|
}
|
|
60
|
-
/** The pinned in-process plugin contract: `{ discover(paths) }`. */
|
|
52
|
+
/** The pinned in-process plugin contract: `{ discover(paths, context) }`. */
|
|
61
53
|
export interface SqlalchemyDetector {
|
|
62
|
-
discover(paths: readonly string[]): Promise<{
|
|
54
|
+
discover(paths: readonly string[], context?: DiscoverContext): Promise<{
|
|
63
55
|
resources: unknown[];
|
|
64
56
|
unresolved: unknown[];
|
|
65
57
|
findings: unknown[];
|
|
@@ -117,10 +109,10 @@ export declare function applyPlanesConfig(outcome: RawOutcome, config: PlanesCon
|
|
|
117
109
|
*
|
|
118
110
|
* Plane channels, in strict precedence order: the programmatic
|
|
119
111
|
* `options.plane` rule (config channel not read at all), then the
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* throws).
|
|
112
|
+
* `options.plane` rule (config channel not used at all), then the
|
|
113
|
+
* explicit `options.planesConfig`, then the `planes:` section the host
|
|
114
|
+
* hands to `discover()` (absent → `NO_PLANE_MAPPING` behavior
|
|
115
|
+
* byte-identical; malformed throws).
|
|
124
116
|
*
|
|
125
117
|
* Args:
|
|
126
118
|
* options: Plane mapping, spawn command/env, and handshake identity.
|
package/dist/detector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../src/detector.ts"],"names":[],"mappings":"AAsBA,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../src/detector.ts"],"names":[],"mappings":"AAsBA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAEtB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,SAAS,EAGf,MAAM,aAAa,CAAC;AAYrB,2EAA2E;AAC3E,eAAO,MAAM,eAAe,UAAqD,CAAC;AAElF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,CAAC,UAAU,CAOlF;AAED,oDAAoD;AACpD,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,6EAA6E;AAC7E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CACN,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC;QACT,SAAS,EAAE,OAAO,EAAE,CAAC;QACrB,UAAU,EAAE,OAAO,EAAE,CAAC;QACtB,QAAQ,EAAE,OAAO,EAAE,CAAC;QACpB,qBAAqB,EAAE,OAAO,EAAE,CAAC;QACjC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC,CAAC;CACJ;AAED,wDAAwD;AACxD,KAAK,UAAU,GAAG,gBAAgB,CAAC;AA2DnC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,SAAS,EAChB,YAAY,GAAE,SAAS,MAAM,EAAyB,GACrD,UAAU,CAWZ;AAmBD,mEAAmE;AACnE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AA2CnE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,YAAY,EACpB,YAAY,GAAE,SAAS,MAAM,EAAyB,GACrD,UAAU,CA0BZ;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,yBAA8B,GAAG,kBAAkB,CAoDpG"}
|
package/dist/detector.js
CHANGED
|
@@ -22,7 +22,8 @@ import { fileURLToPath } from 'node:url';
|
|
|
22
22
|
import { delimiter, resolve } from 'node:path';
|
|
23
23
|
import { PluginSession, } from '@gate-forge/plugin-protocol';
|
|
24
24
|
import { PACK_PLUGIN_ID, PACK_VERSION } from './version.js';
|
|
25
|
-
import {
|
|
25
|
+
import { OWNER_ANSWERS_PATH } from '@gate-forge/core';
|
|
26
|
+
import { NO_PLANE_MAPPING, planesConfigFromSection, resolvePlaneByRules, } from './planes.js';
|
|
26
27
|
import { applySingletonTags, TENANT_SCOPE_COLUMNS } from './singleton.js';
|
|
27
28
|
import { readTenancyScopeColumnsOrNull, CONFIG_PATH } from './tenancy.js';
|
|
28
29
|
/** Absolute dir of this pack's `python/` tree (the detector package). */
|
|
@@ -144,8 +145,8 @@ function planeContradictionFinding(facts, location, hits) {
|
|
|
144
145
|
return {
|
|
145
146
|
code: PLANE_RULE_CONTRADICTION,
|
|
146
147
|
detail: `table '${facts.tableName}' matches ${hits.length} declarative plane rules with ` +
|
|
147
|
-
`conflicting planes: ${described}; fix
|
|
148
|
-
'remains — the table stays plane-unresolved and blocks until then',
|
|
148
|
+
`conflicting planes: ${described}; fix the \`planes:\` section of ${OWNER_ANSWERS_PATH} ` +
|
|
149
|
+
'so exactly one plane remains — the table stays plane-unresolved and blocks until then',
|
|
149
150
|
locations: [{ file: location.file, line: location.line, col: location.col }],
|
|
150
151
|
};
|
|
151
152
|
}
|
|
@@ -228,10 +229,10 @@ export function applyPlanesConfig(outcome, config, scopeColumns = TENANT_SCOPE_C
|
|
|
228
229
|
*
|
|
229
230
|
* Plane channels, in strict precedence order: the programmatic
|
|
230
231
|
* `options.plane` rule (config channel not read at all), then the
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* throws).
|
|
232
|
+
* `options.plane` rule (config channel not used at all), then the
|
|
233
|
+
* explicit `options.planesConfig`, then the `planes:` section the host
|
|
234
|
+
* hands to `discover()` (absent → `NO_PLANE_MAPPING` behavior
|
|
235
|
+
* byte-identical; malformed throws).
|
|
235
236
|
*
|
|
236
237
|
* Args:
|
|
237
238
|
* options: Plane mapping, spawn command/env, and handshake identity.
|
|
@@ -252,7 +253,7 @@ export function createSqlalchemyDetector(options = {}) {
|
|
|
252
253
|
readTenancyScopeColumnsOrNull(resolve(process.cwd(), options.configPath ?? CONFIG_PATH)) ??
|
|
253
254
|
TENANT_SCOPE_COLUMNS;
|
|
254
255
|
return {
|
|
255
|
-
async discover(paths) {
|
|
256
|
+
async discover(paths, context) {
|
|
256
257
|
if (paths.length === 0) {
|
|
257
258
|
return { resources: [], unresolved: [], findings: [], classificationSignals: [] };
|
|
258
259
|
}
|
|
@@ -278,8 +279,7 @@ export function createSqlalchemyDetector(options = {}) {
|
|
|
278
279
|
if (plane !== undefined) {
|
|
279
280
|
return planeIsNoop(plane) ? withSignals : applyPlaneMapping(withSignals, plane, scopeColumns);
|
|
280
281
|
}
|
|
281
|
-
const config = options.planesConfig ??
|
|
282
|
-
readPlanesConfigOrNull(resolve(process.cwd(), options.planesConfigPath ?? PLANES_CONFIG_PATH));
|
|
282
|
+
const config = options.planesConfig ?? planesConfigFromSection(context?.sections.planes, OWNER_ANSWERS_PATH);
|
|
283
283
|
if (config.rules.length === 0) {
|
|
284
284
|
return withSignals; // no rules: byte-identical to NO_PLANE_MAPPING
|
|
285
285
|
}
|
package/dist/detector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detector.js","sourceRoot":"","sources":["../src/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"detector.js","sourceRoot":"","sources":["../src/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,aAAa,GAId,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,GAKpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE1E,yEAAyE;AACzE,MAA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EAAE,OAAO,CAAC,SAAS;oBAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;oBAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,qBAAqB,EAAE,OAAO,CAAC,qBAAqB;oBACpD,GAAG,CAAC,OAAO,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBACtF,CAAC;gBACF,MAAM,YAAY,GAAG,mBAAmB,EAAE,CAAC;gBAC3C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBACxB,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,WAAW,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;gBAChG,CAAC;gBACD,MAAM,MAAM,GACV,OAAO,CAAC,YAAY,IAAI,uBAAuB,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;gBAChG,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC9B,OAAO,WAAW,CAAC,CAAC,+CAA+C;gBACrE,CAAC;gBACD,OAAO,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;YAC9D,CAAC;oBAAS,CAAC;gBACT,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;YAC1B,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC;AAED,qDAAqD;AACrD,SAAS,WAAW,CAAC,KAAgB;IACnC,OAAO,KAAK,KAAK,gBAAgB,CAAC;AACpC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PACK_PLUGIN_ID, PACK_VERSION } from './version.js';
|
|
2
2
|
export { createSqlalchemyDetector, DEFAULT_COMMAND, pythonEnvironment, applyPlaneMapping, applyPlanesConfig, PLANE_RULE_CONTRADICTION, type SqlalchemyDetector, type SqlalchemyDetectorOptions, } from './detector.js';
|
|
3
|
-
export { DEFAULT_PLANES_CONFIG, NO_PLANE_MAPPING,
|
|
3
|
+
export { DEFAULT_PLANES_CONFIG, NO_PLANE_MAPPING, byTableName, parsePlanesConfigDocument, parsePlanesConfigText, planeRuleMatches, planesConfigFromSection, resolvePlaneByRules, type PlaneConfigRule, type PlaneContext, type PlaneMatchInput, type PlaneResolution, type PlaneRule, type PlaneRuleHit, type PlanesConfig, type SqlalchemyPlane, } from './planes.js';
|
|
4
4
|
export { applySingletonTags, singletonTagFor, TENANT_SCOPE_COLUMNS, type SingletonPerTenantFact, } from './singleton.js';
|
|
5
5
|
export { readTenancyScopeColumnsOrNull, CONFIG_PATH as TENANCY_CONFIG_PATH, } from './tenancy.js';
|
|
6
6
|
export { isTestSourcePath, TEST_PATH_SEGMENTS, } from './test-paths.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,yBAAyB,EACzB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,eAAe,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,KAAK,sBAAsB,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,6BAA6B,EAC7B,WAAW,IAAI,mBAAmB,GACnC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,uEAAuE;;AACvE,wBAA0C"}
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
import { createSqlalchemyDetector } from './detector.js';
|
|
25
25
|
export { PACK_PLUGIN_ID, PACK_VERSION } from './version.js';
|
|
26
26
|
export { createSqlalchemyDetector, DEFAULT_COMMAND, pythonEnvironment, applyPlaneMapping, applyPlanesConfig, PLANE_RULE_CONTRADICTION, } from './detector.js';
|
|
27
|
-
export { DEFAULT_PLANES_CONFIG, NO_PLANE_MAPPING,
|
|
27
|
+
export { DEFAULT_PLANES_CONFIG, NO_PLANE_MAPPING, byTableName, parsePlanesConfigDocument, parsePlanesConfigText, planeRuleMatches, planesConfigFromSection, resolvePlaneByRules, } from './planes.js';
|
|
28
28
|
export { applySingletonTags, singletonTagFor, TENANT_SCOPE_COLUMNS, } from './singleton.js';
|
|
29
29
|
export { readTenancyScopeColumnsOrNull, CONFIG_PATH as TENANCY_CONFIG_PATH, } from './tenancy.js';
|
|
30
30
|
export { isTestSourcePath, TEST_PATH_SEGMENTS, } from './test-paths.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,GAGzB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,GAGzB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,yBAAyB,EACzB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,GASpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,oBAAoB,GAErB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,6BAA6B,EAC7B,WAAW,IAAI,mBAAmB,GACnC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,qBAAqB,GAKtB,MAAM,qBAAqB,CAAC;AAC7B,uEAAuE;AACvE,eAAe,wBAAwB,EAAE,CAAC"}
|
package/dist/planes.d.ts
CHANGED
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
* - a programmatic {@link PlaneRule} (the detector factory option; for
|
|
8
8
|
* host code and tests); and
|
|
9
|
-
* - the
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* - the owner's `planes:` section (0.11.0: it moved into
|
|
10
|
+
* `.gateforge/classification-policy.yml`, was `.gateforge/planes.json`)
|
|
11
|
+
* — explicit, human-reviewed rules handed to `discover()` by the host
|
|
12
|
+
* (every rule must carry a non-empty `reason`, the review artifact). A
|
|
13
|
+
* `match` rule may additionally
|
|
12
14
|
* carry `exclude` — repo-root-relative globs pruning whole FILES from
|
|
13
15
|
* the rule's surface (a directory surface mixing planes, e.g.
|
|
14
16
|
* contractor-scoped routers beside global-ingress endpoints under one
|
|
@@ -28,8 +30,8 @@
|
|
|
28
30
|
* plane-unresolved and the core classifier blocks it, forcing the
|
|
29
31
|
* config author to cover every table (closed-world completeness).
|
|
30
32
|
*
|
|
31
|
-
* Absence of the
|
|
32
|
-
* {@link NO_PLANE_MAPPING}; a malformed
|
|
33
|
+
* Absence of the section is normal and byte-identical to
|
|
34
|
+
* {@link NO_PLANE_MAPPING}; a malformed one throws (fail closed).
|
|
33
35
|
*/
|
|
34
36
|
/** The plane enum the graph accepts. */
|
|
35
37
|
export type SqlalchemyPlane = 'tenant' | 'master' | 'global';
|
|
@@ -45,8 +47,6 @@ export type PlaneRule = (context: PlaneContext) => SqlalchemyPlane | null;
|
|
|
45
47
|
export declare const NO_PLANE_MAPPING: PlaneRule;
|
|
46
48
|
/** Rule that maps table names to planes; unmapped tables stay null. */
|
|
47
49
|
export declare function byTableName(mapping: Record<string, SqlalchemyPlane>): PlaneRule;
|
|
48
|
-
/** Repo-root-relative location of the declarative plane config document. */
|
|
49
|
-
export declare const PLANES_CONFIG_PATH = ".gateforge/planes.json";
|
|
50
50
|
/** One reviewed rule of the declarative plane config. */
|
|
51
51
|
export interface PlaneConfigRule {
|
|
52
52
|
/**
|
|
@@ -93,11 +93,11 @@ export interface PlanesConfig {
|
|
|
93
93
|
/** The absent-config default: no rules, no mapping (byte-identical noop). */
|
|
94
94
|
export declare const DEFAULT_PLANES_CONFIG: PlanesConfig;
|
|
95
95
|
/**
|
|
96
|
-
* Parses and validates
|
|
97
|
-
* (strict; every rule reviewed).
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
96
|
+
* Parses and validates the OWNER's plane section exactly as it always
|
|
97
|
+
* validated the standalone document (strict; every rule reviewed). The
|
|
98
|
+
* bytes moved into `.gateforge/classification-policy.yml` under `planes:`
|
|
99
|
+
* in 0.11.0, but the RULES and their refusals did not change: this stays
|
|
100
|
+
* the single validation source for plane rules, whoever holds the bytes.
|
|
101
101
|
*
|
|
102
102
|
* Accepted shape: `{ rules: [{ match?, exclude?, tables?, plane, reason }] }` — a
|
|
103
103
|
* rule carries EXACTLY ONE of `match` (repo-root-relative source-path
|
|
@@ -107,14 +107,18 @@ export declare const DEFAULT_PLANES_CONFIG: PlanesConfig;
|
|
|
107
107
|
* repo-root-relative globs pruning files from its surface — rejected
|
|
108
108
|
* on a `tables` rule).
|
|
109
109
|
*/
|
|
110
|
-
export declare function
|
|
110
|
+
export declare function parsePlanesConfigDocument(document: unknown, at: string): PlanesConfig;
|
|
111
|
+
/**
|
|
112
|
+
* Parses plane rules out of the section the host hands this detector.
|
|
113
|
+
* An ABSENT section is normal and byte-identical to the absent document:
|
|
114
|
+
* no rules, no mapping. A malformed one throws (fail closed).
|
|
115
|
+
*/
|
|
116
|
+
export declare function planesConfigFromSection(section: unknown, at: string): PlanesConfig;
|
|
111
117
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* {@link NO_PLANE_MAPPING}); malformed documents throw (fail closed —
|
|
115
|
-
* the CLI surfaces the error instead of scanning with partial trust).
|
|
118
|
+
* Parses and validates plane rules from JSON TEXT. Kept for generators
|
|
119
|
+
* that must self-check a proposed document BEFORE it is written.
|
|
116
120
|
*/
|
|
117
|
-
export declare function
|
|
121
|
+
export declare function parsePlanesConfigText(text: string, path: string): PlanesConfig;
|
|
118
122
|
/** The facts one `sqlalchemy.table` resource is matched against. */
|
|
119
123
|
export interface PlaneMatchInput {
|
|
120
124
|
/** Repo-root-relative source file path of the resource. */
|
package/dist/planes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planes.d.ts","sourceRoot":"","sources":["../src/planes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"planes.d.ts","sourceRoot":"","sources":["../src/planes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAIH,wCAAwC;AACxC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7D,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,sEAAsE;AACtE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,YAAY,KAAK,eAAe,GAAG,IAAI,CAAC;AAC1E,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,EAAE,SAAsB,CAAC;AAGtD,uEAAuE;AACvE,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,CAG/E;AAYD,yDAAyD;AACzD,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;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E;AACrE,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS,YAAY,EAAE,CAAC;IACvC,oEAAoE;IACpE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAWvF;AAoCD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,GAAG,eAAe,CAQjG"}
|
package/dist/planes.js
CHANGED
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
* - a programmatic {@link PlaneRule} (the detector factory option; for
|
|
8
8
|
* host code and tests); and
|
|
9
|
-
* - the
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* - the owner's `planes:` section (0.11.0: it moved into
|
|
10
|
+
* `.gateforge/classification-policy.yml`, was `.gateforge/planes.json`)
|
|
11
|
+
* — explicit, human-reviewed rules handed to `discover()` by the host
|
|
12
|
+
* (every rule must carry a non-empty `reason`, the review artifact). A
|
|
13
|
+
* `match` rule may additionally
|
|
12
14
|
* carry `exclude` — repo-root-relative globs pruning whole FILES from
|
|
13
15
|
* the rule's surface (a directory surface mixing planes, e.g.
|
|
14
16
|
* contractor-scoped routers beside global-ingress endpoints under one
|
|
@@ -28,10 +30,9 @@
|
|
|
28
30
|
* plane-unresolved and the core classifier blocks it, forcing the
|
|
29
31
|
* config author to cover every table (closed-world completeness).
|
|
30
32
|
*
|
|
31
|
-
* Absence of the
|
|
32
|
-
* {@link NO_PLANE_MAPPING}; a malformed
|
|
33
|
+
* Absence of the section is normal and byte-identical to
|
|
34
|
+
* {@link NO_PLANE_MAPPING}; a malformed one throws (fail closed).
|
|
33
35
|
*/
|
|
34
|
-
import { readFileSync } from 'node:fs';
|
|
35
36
|
import { globMatch } from '@gate-forge/core';
|
|
36
37
|
/** The empty rule; core derives plane from normalized signals. */
|
|
37
38
|
export const NO_PLANE_MAPPING = () => null;
|
|
@@ -40,11 +41,6 @@ export function byTableName(mapping) {
|
|
|
40
41
|
const table = new Map(Object.entries(mapping));
|
|
41
42
|
return (context) => table.get(context.tableName) ?? null;
|
|
42
43
|
}
|
|
43
|
-
// ---------------------------------------------------------------------------
|
|
44
|
-
// Declarative plane config (`.gateforge/planes.json`)
|
|
45
|
-
// ---------------------------------------------------------------------------
|
|
46
|
-
/** Repo-root-relative location of the declarative plane config document. */
|
|
47
|
-
export const PLANES_CONFIG_PATH = '.gateforge/planes.json';
|
|
48
44
|
/** The absent-config default: no rules, no mapping (byte-identical noop). */
|
|
49
45
|
export const DEFAULT_PLANES_CONFIG = { rules: [] };
|
|
50
46
|
/** The plane values a rule may assert, in canonical order. */
|
|
@@ -159,11 +155,11 @@ function parsePlaneConfigRule(value, path, index) {
|
|
|
159
155
|
};
|
|
160
156
|
}
|
|
161
157
|
/**
|
|
162
|
-
* Parses and validates
|
|
163
|
-
* (strict; every rule reviewed).
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
158
|
+
* Parses and validates the OWNER's plane section exactly as it always
|
|
159
|
+
* validated the standalone document (strict; every rule reviewed). The
|
|
160
|
+
* bytes moved into `.gateforge/classification-policy.yml` under `planes:`
|
|
161
|
+
* in 0.11.0, but the RULES and their refusals did not change: this stays
|
|
162
|
+
* the single validation source for plane rules, whoever holds the bytes.
|
|
167
163
|
*
|
|
168
164
|
* Accepted shape: `{ rules: [{ match?, exclude?, tables?, plane, reason }] }` — a
|
|
169
165
|
* rule carries EXACTLY ONE of `match` (repo-root-relative source-path
|
|
@@ -173,39 +169,37 @@ function parsePlaneConfigRule(value, path, index) {
|
|
|
173
169
|
* repo-root-relative globs pruning files from its surface — rejected
|
|
174
170
|
* on a `tables` rule).
|
|
175
171
|
*/
|
|
176
|
-
export function
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
throw new Error(`invalid planes config: expected an object at ${path}`);
|
|
172
|
+
export function parsePlanesConfigDocument(document, at) {
|
|
173
|
+
if (document === null || typeof document !== 'object' || Array.isArray(document)) {
|
|
174
|
+
throw new Error(`invalid planes config: expected an object at ${at}`);
|
|
180
175
|
}
|
|
181
|
-
const
|
|
182
|
-
const unknownKeys = Object.keys(
|
|
176
|
+
const record = document;
|
|
177
|
+
const unknownKeys = Object.keys(record).filter((key) => key !== 'rules');
|
|
183
178
|
if (unknownKeys.length > 0) {
|
|
184
|
-
throw new Error(`invalid planes config: unknown key(s) ${unknownKeys.sort().join(', ')} at ${
|
|
179
|
+
throw new Error(`invalid planes config: unknown key(s) ${unknownKeys.sort().join(', ')} at ${at}`);
|
|
185
180
|
}
|
|
186
|
-
const rules =
|
|
181
|
+
const rules = record['rules'];
|
|
187
182
|
if (!Array.isArray(rules)) {
|
|
188
|
-
throw new Error(`invalid planes config: 'rules' must be an array of rule objects at ${
|
|
183
|
+
throw new Error(`invalid planes config: 'rules' must be an array of rule objects at ${at}`);
|
|
189
184
|
}
|
|
190
|
-
return { rules: rules.map((rule, index) => parsePlaneConfigRule(rule,
|
|
185
|
+
return { rules: rules.map((rule, index) => parsePlaneConfigRule(rule, at, index)) };
|
|
191
186
|
}
|
|
192
187
|
/**
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* the CLI surfaces the error instead of scanning with partial trust).
|
|
188
|
+
* Parses plane rules out of the section the host hands this detector.
|
|
189
|
+
* An ABSENT section is normal and byte-identical to the absent document:
|
|
190
|
+
* no rules, no mapping. A malformed one throws (fail closed).
|
|
197
191
|
*/
|
|
198
|
-
export function
|
|
199
|
-
if (
|
|
192
|
+
export function planesConfigFromSection(section, at) {
|
|
193
|
+
if (section === undefined || section === null)
|
|
200
194
|
return DEFAULT_PLANES_CONFIG;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
return
|
|
195
|
+
return parsePlanesConfigDocument(section, at);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Parses and validates plane rules from JSON TEXT. Kept for generators
|
|
199
|
+
* that must self-check a proposed document BEFORE it is written.
|
|
200
|
+
*/
|
|
201
|
+
export function parsePlanesConfigText(text, path) {
|
|
202
|
+
return parsePlanesConfigDocument(JSON.parse(text), path);
|
|
209
203
|
}
|
|
210
204
|
/**
|
|
211
205
|
* Whether one config rule matches one table resource. A `match` rule
|
package/dist/planes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planes.js","sourceRoot":"","sources":["../src/planes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"planes.js","sourceRoot":"","sources":["../src/planes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAc7C,kEAAkE;AAClE,MAAM,CAAC,MAAM,gBAAgB,GAAc,GAAG,EAAE,CAAC,IAAI,CAAC;AAGtD,uEAAuE;AACvE,MAAM,UAAU,WAAW,CAAC,OAAwC;IAClE,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC;AAC3D,CAAC;AAyDD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAiB,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AAEjE,8DAA8D;AAC9D,MAAM,MAAM,GAA+B,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC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AE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAoB,EAAE,KAAsB;IAC9E,MAAM,QAAQ,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;IAC9D,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IAC1F,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACtB,IAAI,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1E,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvD,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;AAC1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gate-forge/pack-sqlalchemy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "SQLAlchemy CRUD discovery pack: AST-only python detector (GPP/3), in-process TS discover entry, configurable plane mapping, entity-adapter schema.",
|
|
6
6
|
"type": "module",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"test": "vitest run"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@gate-forge/core": "^0.
|
|
32
|
-
"@gate-forge/plugin-protocol": "^0.
|
|
31
|
+
"@gate-forge/core": "^0.11.0",
|
|
32
|
+
"@gate-forge/plugin-protocol": "^0.11.0",
|
|
33
33
|
"yaml": "^2.8.1",
|
|
34
34
|
"zod": "^4.1.5"
|
|
35
35
|
},
|