@pgpmjs/core 4.2.1 → 4.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.
@@ -1,4 +1,4 @@
1
- import { BoilerplateConfig } from 'create-gen-app';
1
+ import { BoilerplateConfig } from 'genomic';
2
2
  import type { Inquirerer, Question } from 'inquirerer';
3
3
  export interface InspectTemplateOptions {
4
4
  /**
@@ -8,9 +8,9 @@ exports.inspectTemplate = inspectTemplate;
8
8
  exports.scaffoldTemplate = scaffoldTemplate;
9
9
  const os_1 = __importDefault(require("os"));
10
10
  const path_1 = __importDefault(require("path"));
11
- const create_gen_app_1 = require("create-gen-app");
11
+ const genomic_1 = require("genomic");
12
12
  exports.DEFAULT_TEMPLATE_REPO = 'https://github.com/constructive-io/pgpm-boilerplates.git';
13
- exports.DEFAULT_TEMPLATE_TTL_MS = 7 * 24 * 60 * 60 * 1000; // 1 week
13
+ exports.DEFAULT_TEMPLATE_TTL_MS = 1 * 24 * 60 * 60 * 1000; // 1 day
14
14
  exports.DEFAULT_TEMPLATE_TOOL_NAME = 'pgpm';
15
15
  function resolveCacheBaseDir(cacheBaseDir) {
16
16
  if (cacheBaseDir) {
@@ -26,7 +26,7 @@ function resolveCacheBaseDir(cacheBaseDir) {
26
26
  }
27
27
  function inspectTemplate(options) {
28
28
  const { fromPath, templateRepo = exports.DEFAULT_TEMPLATE_REPO, branch, cacheTtlMs = exports.DEFAULT_TEMPLATE_TTL_MS, toolName = exports.DEFAULT_TEMPLATE_TOOL_NAME, cwd, cacheBaseDir, dir, } = options;
29
- const scaffolder = new create_gen_app_1.TemplateScaffolder({
29
+ const scaffolder = new genomic_1.TemplateScaffolder({
30
30
  toolName,
31
31
  ttlMs: cacheTtlMs,
32
32
  cacheBaseDir: resolveCacheBaseDir(cacheBaseDir),
@@ -62,7 +62,7 @@ function inspectTemplate(options) {
62
62
  }
63
63
  async function scaffoldTemplate(options) {
64
64
  const { fromPath, outputDir, templateRepo = exports.DEFAULT_TEMPLATE_REPO, branch, answers, noTty = false, cacheTtlMs = exports.DEFAULT_TEMPLATE_TTL_MS, toolName = exports.DEFAULT_TEMPLATE_TOOL_NAME, cwd, cacheBaseDir, dir, prompter, } = options;
65
- const scaffolder = new create_gen_app_1.TemplateScaffolder({
65
+ const scaffolder = new genomic_1.TemplateScaffolder({
66
66
  toolName,
67
67
  ttlMs: cacheTtlMs,
68
68
  cacheBaseDir: resolveCacheBaseDir(cacheBaseDir),
@@ -1,8 +1,8 @@
1
1
  import os from 'os';
2
2
  import path from 'path';
3
- import { TemplateScaffolder } from 'create-gen-app';
3
+ import { TemplateScaffolder } from 'genomic';
4
4
  export const DEFAULT_TEMPLATE_REPO = 'https://github.com/constructive-io/pgpm-boilerplates.git';
5
- export const DEFAULT_TEMPLATE_TTL_MS = 7 * 24 * 60 * 60 * 1000; // 1 week
5
+ export const DEFAULT_TEMPLATE_TTL_MS = 1 * 24 * 60 * 60 * 1000; // 1 day
6
6
  export const DEFAULT_TEMPLATE_TOOL_NAME = 'pgpm';
7
7
  function resolveCacheBaseDir(cacheBaseDir) {
8
8
  if (cacheBaseDir) {
@@ -19,6 +19,8 @@ export const getAvailableExtensions = async (modules) => {
19
19
  'postgres_fdw',
20
20
  // Geospatial (vertical showcase)
21
21
  'postgis',
22
+ // AI & embeddings
23
+ 'vector',
22
24
  // Procedural logic (baseline)
23
25
  'plpgsql',
24
26
  ];
@@ -22,6 +22,8 @@ const getAvailableExtensions = async (modules) => {
22
22
  'postgres_fdw',
23
23
  // Geospatial (vertical showcase)
24
24
  'postgis',
25
+ // AI & embeddings
26
+ 'vector',
25
27
  // Procedural logic (baseline)
26
28
  'plpgsql',
27
29
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/core",
3
- "version": "4.2.1",
3
+ "version": "4.4.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM Package and Migration Tools",
6
6
  "main": "index.js",
@@ -44,7 +44,7 @@
44
44
  "@pgsql/types": "^17.6.2",
45
45
  "@types/pg": "^8.16.0",
46
46
  "copyfiles": "^2.4.1",
47
- "inquirerer": "^2.4.0",
47
+ "inquirerer": "^4.1.2",
48
48
  "makage": "^0.1.9"
49
49
  },
50
50
  "dependencies": {
@@ -52,8 +52,8 @@
52
52
  "@pgpmjs/logger": "^1.3.5",
53
53
  "@pgpmjs/server-utils": "^2.8.11",
54
54
  "@pgpmjs/types": "^2.12.8",
55
- "create-gen-app": "^0.10.0",
56
- "csv-to-pg": "^3.1.5",
55
+ "csv-to-pg": "^3.2.1",
56
+ "genomic": "^5.0.3",
57
57
  "glob": "^13.0.0",
58
58
  "komoji": "^0.7.11",
59
59
  "parse-package-name": "^1.0.0",
@@ -64,5 +64,5 @@
64
64
  "pgsql-parser": "^17.9.5",
65
65
  "yanse": "^0.1.8"
66
66
  },
67
- "gitHead": "5b93211b63e72bedcfabc7c4aa41c69ed33d0f6c"
67
+ "gitHead": "bda56442f70c77c98276bc7bab0450308c975df8"
68
68
  }