@agentic-kit/db-tools 0.6.0 → 0.7.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentic-kit/db-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "harness-neutral Constructive database tools — provisioning, schema, policies, records, templates and codegen as HarnessTools any adapter can bind",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"test:watch": "jest --watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"12factor-env": "^1.
|
|
33
|
-
"@agentic-kit/harness": "^0.
|
|
34
|
-
"@constructive-io/graphql-query": "^4.
|
|
35
|
-
"@constructive-io/sdk": "^1.
|
|
32
|
+
"12factor-env": "^1.33.0",
|
|
33
|
+
"@agentic-kit/harness": "^0.16.0",
|
|
34
|
+
"@constructive-io/graphql-query": "^4.19.1",
|
|
35
|
+
"@constructive-io/sdk": "^1.18.1",
|
|
36
36
|
"node-type-registry": "^1.18.1",
|
|
37
37
|
"zod": "^4.4.3"
|
|
38
38
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"database",
|
|
46
46
|
"constructive"
|
|
47
47
|
],
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "79b4264038d5c4da44ac1ed461195a4853f3953c"
|
|
49
49
|
}
|
|
@@ -23,39 +23,6 @@
|
|
|
23
23
|
// `pgpm env` (the same mechanism the old `eval "$(pgpm env)"` shell step used).
|
|
24
24
|
// If neither yields a connection, provisioning still succeeded — we return a
|
|
25
25
|
// note so the tool can warn the user that sign-in/CRUD may need a manual fixup.
|
|
26
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
27
|
-
if (k2 === undefined) k2 = k;
|
|
28
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
29
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
30
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
31
|
-
}
|
|
32
|
-
Object.defineProperty(o, k2, desc);
|
|
33
|
-
}) : (function(o, m, k, k2) {
|
|
34
|
-
if (k2 === undefined) k2 = k;
|
|
35
|
-
o[k2] = m[k];
|
|
36
|
-
}));
|
|
37
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
38
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
39
|
-
}) : function(o, v) {
|
|
40
|
-
o["default"] = v;
|
|
41
|
-
});
|
|
42
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
43
|
-
var ownKeys = function(o) {
|
|
44
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
45
|
-
var ar = [];
|
|
46
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
47
|
-
return ar;
|
|
48
|
-
};
|
|
49
|
-
return ownKeys(o);
|
|
50
|
-
};
|
|
51
|
-
return function (mod) {
|
|
52
|
-
if (mod && mod.__esModule) return mod;
|
|
53
|
-
var result = {};
|
|
54
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
55
|
-
__setModuleDefault(result, mod);
|
|
56
|
-
return result;
|
|
57
|
-
};
|
|
58
|
-
})();
|
|
59
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60
27
|
exports.parsePgpmEnv = parsePgpmEnv;
|
|
61
28
|
exports.resolvePgEnv = resolvePgEnv;
|
|
@@ -127,7 +94,7 @@ async function applySqlFixups(args) {
|
|
|
127
94
|
// note instead of failing the tool after the database is already provisioned.
|
|
128
95
|
let pool;
|
|
129
96
|
try {
|
|
130
|
-
const { Pool } = await
|
|
97
|
+
const { Pool } = await import('pg');
|
|
131
98
|
pool = new Pool({
|
|
132
99
|
host: pgEnv.host,
|
|
133
100
|
port: pgEnv.port ? Number(pgEnv.port) : undefined,
|