@agentic-kit/pi 0.8.4 → 0.8.6

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.
@@ -19,7 +19,7 @@ type RawField = {
19
19
  };
20
20
  type RawInflection = Partial<Record<keyof TableInflection, string | null>>;
21
21
  type RawQuery = {
22
- all: string;
22
+ all: string | null;
23
23
  one?: string | null;
24
24
  create?: string | null;
25
25
  update?: string | null;
@@ -45,9 +45,6 @@ export const META_QUERY = `
45
45
  }
46
46
  }
47
47
  `;
48
- function pgFieldToCamelCase(name) {
49
- return name.replace(/_([a-z0-9])/g, (_, c) => c.toUpperCase());
50
- }
51
48
  function convertInflection(inflection) {
52
49
  if (!inflection)
53
50
  return undefined;
@@ -82,7 +79,7 @@ function convertQuery(query) {
82
79
  if (!query)
83
80
  return undefined;
84
81
  return {
85
- all: query.all,
82
+ all: query.all ?? '',
86
83
  one: query.one ?? null,
87
84
  create: query.create ?? '',
88
85
  update: query.update ?? null,
@@ -97,7 +94,7 @@ export function cleanTable(meta) {
97
94
  fields: (meta.fields ?? [])
98
95
  .filter((f) => Boolean(f))
99
96
  .map((field) => ({
100
- name: pgFieldToCamelCase(field.name),
97
+ name: field.name,
101
98
  type: {
102
99
  gqlType: field.type.gqlType,
103
100
  isArray: field.type.isArray,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentic-kit/pi",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "Pi adapter for agentic-kit — the Constructive typed db tools (provision, blueprint, codegen, records, policies, templates) and confirm gate as a pi coding-agent extension",
6
6
  "main": "index.js",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@agentic-kit/harness": "^0.8.2",
33
- "@constructive-io/graphql-query": "^4.11.4",
34
- "@constructive-io/sdk": "^1.10.4",
35
- "node-type-registry": "^1.13.2",
33
+ "@constructive-io/graphql-query": "^4.11.6",
34
+ "@constructive-io/sdk": "^1.10.6",
35
+ "node-type-registry": "^1.13.3",
36
36
  "zod": "^4.4.3"
37
37
  },
38
38
  "peerDependencies": {
@@ -48,5 +48,5 @@
48
48
  "coding-agent",
49
49
  "constructive"
50
50
  ],
51
- "gitHead": "90f447482b056a4949134565db2665f21d11aca3"
51
+ "gitHead": "45cd961cf956d2d28e4d09b20db4204982c33593"
52
52
  }
package/records/meta.d.ts CHANGED
@@ -19,7 +19,7 @@ type RawField = {
19
19
  };
20
20
  type RawInflection = Partial<Record<keyof TableInflection, string | null>>;
21
21
  type RawQuery = {
22
- all: string;
22
+ all: string | null;
23
23
  one?: string | null;
24
24
  create?: string | null;
25
25
  update?: string | null;
package/records/meta.js CHANGED
@@ -50,9 +50,6 @@ exports.META_QUERY = `
50
50
  }
51
51
  }
52
52
  `;
53
- function pgFieldToCamelCase(name) {
54
- return name.replace(/_([a-z0-9])/g, (_, c) => c.toUpperCase());
55
- }
56
53
  function convertInflection(inflection) {
57
54
  if (!inflection)
58
55
  return undefined;
@@ -87,7 +84,7 @@ function convertQuery(query) {
87
84
  if (!query)
88
85
  return undefined;
89
86
  return {
90
- all: query.all,
87
+ all: query.all ?? '',
91
88
  one: query.one ?? null,
92
89
  create: query.create ?? '',
93
90
  update: query.update ?? null,
@@ -102,7 +99,7 @@ function cleanTable(meta) {
102
99
  fields: (meta.fields ?? [])
103
100
  .filter((f) => Boolean(f))
104
101
  .map((field) => ({
105
- name: pgFieldToCamelCase(field.name),
102
+ name: field.name,
106
103
  type: {
107
104
  gqlType: field.type.gqlType,
108
105
  isArray: field.type.isArray,