@liquidmetal-ai/drizzle 0.4.2 → 0.4.4

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,22 +1,22 @@
1
1
 
2
2
  
3
- > @liquidmetal-ai/drizzle@0.4.2 prebuild
3
+ > @liquidmetal-ai/drizzle@0.4.4 prebuild
4
4
  > npm install --ignore-scripts
5
5
 
6
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋
7
- up to date, audited 3153 packages in 5s
8
- ⠋
9
- ⠋553 packages are looking for funding
10
- ⠋ run `npm fund` for details
11
- ⠋
6
+ ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏
7
+ up to date, audited 3900 packages in 6s
8
+ ⠏
9
+ ⠏564 packages are looking for funding
10
+ ⠏ run `npm fund` for details
11
+ ⠏
12
12
  3 vulnerabilities (1 low, 2 moderate)
13
13
 
14
14
  To address all issues, run:
15
15
  npm audit fix
16
16
 
17
17
  Run `npm audit` for details.
18
- ⠋⠙
19
- > @liquidmetal-ai/drizzle@0.4.2 build
18
+ ⠏⠙
19
+ > @liquidmetal-ai/drizzle@0.4.4 build
20
20
  > shx rm -rf dist && tsc -b
21
21
 
22
22
  ⠙⠙
@@ -0,0 +1,6 @@
1
+
2
+ 
3
+ > @liquidmetal-ai/drizzle@0.4.1 lint
4
+ > eslint . --max-warnings=0
5
+
6
+ ⠙
@@ -0,0 +1,190 @@
1
+
2
+ 
3
+ > @liquidmetal-ai/drizzle@0.4.1 test
4
+ > vitest run
5
+
6
+ 
7
+  RUN  v2.1.9 /Users/dstaley/Work/liquidmetal/packages/drizzle
8
+
9
+ [?25l · src/mrn.test.ts (96)
10
+ [?25l[?25l[?25l[?25l[?25l ✓ src/mrn.test.ts (96)
11
+ [?25l[?25l[?25l[?25l ✓ src/mrn.test.ts (96)
12
+ · src/logging.test.ts (7)
13
+ [?25lstdout | src/logging.test.ts > Logger > can log messages at a debug level
14
+ { level: 'DEBUG', message: 'debug message', fields: {} }
15
+
16
+ stdout | src/logging.test.ts > Logger > can log messages at a info level
17
+ { level: 'INFO', message: 'info message', fields: {} }
18
+
19
+ stdout | src/logging.test.ts > Logger > can log messages at a warn level
20
+ { level: 'WARN', message: 'warn message', fields: {} }
21
+
22
+ stdout | src/logging.test.ts > Logger > can log messages at an error level
23
+ { level: 'ERROR', message: 'error message', fields: {} }
24
+
25
+ [?25l ✓ src/mrn.test.ts (96)
26
+ ✓ src/logging.test.ts (7)
27
+ [?25l[?25l ✓ src/mrn.test.ts (96)
28
+ · src/unsafe/framework.test.ts (7)
29
+ ✓ src/logging.test.ts (7)
30
+ stderr | src/unsafe/framework.test.ts > getPackageVersion > should return null when package is not found
31
+ Error reading package version: Error: Package version not found
32
+ at Module.getPackageVersion (/Users/dstaley/Work/liquidmetal/packages/drizzle/src/unsafe/framework.ts:108:11)
33
+ at /Users/dstaley/Work/liquidmetal/packages/drizzle/src/unsafe/framework.test.ts:151:21
34
+ at file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:533:5
35
+ at runTest (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1056:11)
36
+ at runSuite (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1205:15)
37
+ at runSuite (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1205:15)
38
+ at runFiles (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1262:5)
39
+ at startTests (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1271:3)
40
+ at file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:126:11
41
+ at withEnv (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:90:5)
42
+
43
+ [?25l ✓ src/mrn.test.ts (96)
44
+ · src/unsafe/framework.test.ts (7)
45
+ ✓ src/logging.test.ts (7)
46
+ stderr | src/unsafe/framework.test.ts > getPackageVersion > should handle command execution errors
47
+ Error executing npm list command: Error: Command failed
48
+ at /Users/dstaley/Work/liquidmetal/packages/drizzle/src/unsafe/framework.test.ts:192:9
49
+ at mockCall (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/spy/dist/index.js:61:17)
50
+ at spy (file:///Users/dstaley/Work/liquidmetal/node_modules/tinyspy/dist/index.js:45:80)
51
+ at node:internal/util:456:21
52
+ at new Promise (<anonymous>)
53
+ at spy (node:internal/util:442:12)
54
+ at getVersionFromCommand (/Users/dstaley/Work/liquidmetal/packages/drizzle/src/unsafe/framework.ts:69:30)
55
+ at Module.getPackageVersion (/Users/dstaley/Work/liquidmetal/packages/drizzle/src/unsafe/framework.ts:102:31)
56
+ at /Users/dstaley/Work/liquidmetal/packages/drizzle/src/unsafe/framework.test.ts:202:21
57
+ at file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:533:5
58
+
59
+ stderr | src/unsafe/framework.test.ts > getPackageVersion > should handle command execution errors
60
+ Error reading package version: Error: Package version not found
61
+ at Module.getPackageVersion (/Users/dstaley/Work/liquidmetal/packages/drizzle/src/unsafe/framework.ts:108:11)
62
+ at /Users/dstaley/Work/liquidmetal/packages/drizzle/src/unsafe/framework.test.ts:202:21
63
+ at file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:533:5
64
+ at runTest (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1056:11)
65
+ at runSuite (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1205:15)
66
+ at runSuite (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1205:15)
67
+ at runFiles (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1262:5)
68
+ at startTests (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/node_modules/@vitest/runner/dist/index.js:1271:3)
69
+ at file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:126:11
70
+ at withEnv (file:///Users/dstaley/Work/liquidmetal/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:90:5)
71
+
72
+ [?25l ✓ src/mrn.test.ts (96)
73
+ · src/appify/parse.test.ts (18)
74
+ · src/appify/build.test.ts (10)
75
+ ✓ src/unsafe/framework.test.ts (7)
76
+ · src/codestore.test.ts (9)
77
+ ✓ src/logging.test.ts (7)
78
+ [?25l ✓ src/mrn.test.ts (96)
79
+ ✓ src/appify/parse.test.ts (18)
80
+ ✓ src/appify/build.test.ts (10)
81
+ ✓ src/unsafe/framework.test.ts (7)
82
+ ✓ src/codestore.test.ts (9)
83
+ ✓ src/logging.test.ts (7)
84
+ [?25l[?25l[?25l[?25l[?25l[?25l ✓ src/mrn.test.ts (96)
85
+ · src/appify/validate.test.ts (17)
86
+ ✓ src/appify/parse.test.ts (18)
87
+ ✓ src/appify/build.test.ts (10)
88
+ ✓ src/unsafe/framework.test.ts (7)
89
+ ✓ src/codestore.test.ts (9)
90
+ ✓ src/logging.test.ts (7)
91
+ [?25l[?25l[?25l ✓ src/mrn.test.ts (96)
92
+ ✓ src/appify/validate.test.ts (17)
93
+ ✓ src/appify/parse.test.ts (18)
94
+ ✓ src/appify/build.test.ts (10)
95
+ ✓ src/unsafe/framework.test.ts (7)
96
+ ✓ src/codestore.test.ts (9)
97
+ ✓ src/logging.test.ts (7)
98
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l ✓ src/mrn.test.ts (96)
99
+ ✓ src/appify/validate.test.ts (17)
100
+ ✓ src/appify/parse.test.ts (18)
101
+ ✓ src/appify/build.test.ts (10)
102
+ ✓ src/unsafe/framework.test.ts (7)
103
+ ✓ src/codestore.test.ts (9)
104
+ ✓ src/logging.test.ts (7)
105
+ · src/appify/index.test.ts (3)
106
+ [?25l[?25l[?25l ✓ src/mrn.test.ts (96)
107
+ ✓ src/appify/validate.test.ts (17)
108
+ ✓ src/appify/parse.test.ts (18)
109
+ ✓ src/appify/build.test.ts (10)
110
+ ✓ src/unsafe/framework.test.ts (7)
111
+ ✓ src/codestore.test.ts (9)
112
+ ✓ src/logging.test.ts (7)
113
+ ✓ src/appify/index.test.ts (3)
114
+ [?25l[?25l[?25l[?25l[?25l[?25l ✓ src/mrn.test.ts (96)
115
+ ✓ src/appify/validate.test.ts (17)
116
+ ✓ src/appify/parse.test.ts (18)
117
+ ✓ src/appify/build.test.ts (10)
118
+ ✓ src/unsafe/framework.test.ts (7)
119
+ ✓ src/codestore.test.ts (9)
120
+ ✓ src/logging.test.ts (7)
121
+ · src/ulid.test.ts (8)
122
+ ✓ src/appify/index.test.ts (3)
123
+ [?25l[?25l[?25l ✓ src/mrn.test.ts (96)
124
+ ✓ src/appify/validate.test.ts (17)
125
+ ✓ src/appify/parse.test.ts (18)
126
+ ✓ src/appify/build.test.ts (10)
127
+ ✓ src/unsafe/framework.test.ts (7)
128
+ ✓ src/codestore.test.ts (9)
129
+ ✓ src/logging.test.ts (7)
130
+ · src/ulid.test.ts (8)
131
+ ✓ src/appify/index.test.ts (3)
132
+ ✓ src/raindrop/index.test.ts (1)
133
+ [?25l[?25l[?25l ✓ src/mrn.test.ts (96)
134
+ ✓ src/appify/validate.test.ts (17)
135
+ ✓ src/appify/parse.test.ts (18)
136
+ ✓ src/appify/build.test.ts (10)
137
+ ✓ src/unsafe/framework.test.ts (7)
138
+ ✓ src/codestore.test.ts (9)
139
+ ✓ src/logging.test.ts (7)
140
+ ✓ src/ulid.test.ts (8)
141
+ ✓ src/appify/index.test.ts (3)
142
+ ✓ src/raindrop/index.test.ts (1)
143
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l ✓ src/mrn.test.ts (96)
144
+ ✓ src/appify/validate.test.ts (17)
145
+ ✓ src/appify/parse.test.ts (18)
146
+ ✓ src/appify/build.test.ts (10)
147
+ ✓ src/unsafe/framework.test.ts (7)
148
+ ✓ src/codestore.test.ts (9)
149
+ ✓ src/logging.test.ts (7)
150
+ ✓ src/ulid.test.ts (8)
151
+ ✓ src/appify/index.test.ts (3)
152
+ · src/unsafe/codestore.test.ts (1)
153
+ ✓ src/raindrop/index.test.ts (1)
154
+ [?25l[?25l ✓ src/mrn.test.ts (96)
155
+ ✓ src/appify/validate.test.ts (17)
156
+ ✓ src/appify/parse.test.ts (18)
157
+ ✓ src/appify/build.test.ts (10)
158
+ ✓ src/unsafe/framework.test.ts (7)
159
+ ✓ src/codestore.test.ts (9)
160
+ ✓ src/logging.test.ts (7)
161
+ ✓ src/ulid.test.ts (8)
162
+ ✓ src/appify/index.test.ts (3)
163
+ ✓ src/unsafe/codestore.test.ts (1)
164
+ ✓ src/raindrop/index.test.ts (1)
165
+ [?25l ✓ src/codestore.test.ts (9)
166
+ ✓ src/logging.test.ts (7)
167
+ ✓ src/mrn.test.ts (96)
168
+ ✓ src/ulid.test.ts (8)
169
+ ✓ src/appify/build.test.ts (10)
170
+ ✓ src/appify/index.test.ts (3)
171
+ ✓ src/appify/parse.test.ts (18)
172
+ ✓ src/appify/validate.test.ts (17)
173
+ ✓ src/raindrop/index.test.ts (1)
174
+ ✓ src/unsafe/codestore.test.ts (1)
175
+ ✓ src/unsafe/framework.test.ts (7)
176
+
177
+  Test Files  11 passed (11)
178
+  Tests  177 passed (177)
179
+  Start at  16:44:29
180
+  Duration  4.87s (transform 3.30s, setup 0ms, collect 6.05s, tests 298ms, environment 10ms, prepare 7.49s)
181
+
182
+ [?25h[?25h⠙
183
+ > @liquidmetal-ai/drizzle@0.4.1 posttest
184
+ > npm run lint
185
+
186
+ ⠙⠙⠹⠸⠼
187
+ > @liquidmetal-ai/drizzle@0.4.1 lint
188
+ > eslint . --max-warnings=0
189
+
190
+ ⠴⠙⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @liquidmetal-ai/drizzle
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 3fd75ad: Add in Agent Memory and sql generation fixes
8
+
9
+ ## 0.4.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 28701e0: Update package dependencies
14
+
3
15
  ## 0.4.2
4
16
 
5
17
  ### Patch Changes
@@ -33,6 +33,7 @@ export declare class Application {
33
33
  vectorIndex: VectorIndex[];
34
34
  kvStore: KvStore[];
35
35
  smartBucket: SmartBucket[];
36
+ agentMemory: AgentMemory[];
36
37
  labels: Record<string, string>;
37
38
  constructor(name: TokenString, obj: ConfigObject);
38
39
  handlers(): (Service | Observer | Actor | Task)[];
@@ -159,6 +160,11 @@ export declare class SmartBucket {
159
160
  obj: ConfigObject;
160
161
  constructor(name: TokenString, obj: ConfigObject);
161
162
  }
163
+ export declare class AgentMemory {
164
+ name: TokenString;
165
+ obj: ConfigObject;
166
+ constructor(name: TokenString, obj: ConfigObject);
167
+ }
162
168
  export declare const VISIBILITIES: readonly ["none", "public", "private", "protected", "application", "suite", "tenant"];
163
169
  export type Visibility = (typeof VISIBILITIES)[number];
164
170
  export declare const TASK_TYPES: readonly ["cron"];
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/appify/build.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,cAAc,EACd,SAAS,EAGT,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACZ,MAAM,YAAY,CAAC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M,CAAC,CAAC;AAEvD,eAAO,MAAM,UAAU,mBAAoB,CAAC;AAC5C,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -182,6 +182,9 @@ export function buildApplication(node) {
182
182
  case 'smartbucket':
183
183
  buildStanza(buildSmartBucket, child, app.smartBucket, errors);
184
184
  break;
185
+ case 'agent_memory':
186
+ buildStanza(buildAgentMemory, child, app.agentMemory, errors);
187
+ break;
185
188
  default:
186
189
  errors.push({ message: 'unexpected stanza', ...child });
187
190
  }
@@ -426,6 +429,22 @@ function buildSmartBucket(stanza) {
426
429
  }
427
430
  return [smartBucket, errors];
428
431
  }
432
+ function buildAgentMemory(stanza) {
433
+ const errors = [];
434
+ const [name, nameErrors] = buildName1(stanza);
435
+ errors.push(...nameErrors);
436
+ const agentMemory = new AgentMemory(name, stanza);
437
+ for (const child of stanza.block?.children ?? []) {
438
+ switch (child.type) {
439
+ case 'comment':
440
+ case 'newline':
441
+ break;
442
+ default:
443
+ errors.push({ message: `unexpected ${child.type}`, ...child });
444
+ }
445
+ }
446
+ return [agentMemory, errors];
447
+ }
429
448
  function buildObserver(stanza) {
430
449
  const errors = [];
431
450
  const [name, nameErrors] = buildName1(stanza);
@@ -722,6 +741,7 @@ export class Application {
722
741
  vectorIndex = [];
723
742
  kvStore = [];
724
743
  smartBucket = [];
744
+ agentMemory = [];
725
745
  labels = {};
726
746
  constructor(name, obj) {
727
747
  this.name = name;
@@ -898,5 +918,13 @@ export class SmartBucket {
898
918
  this.obj = obj;
899
919
  }
900
920
  }
921
+ export class AgentMemory {
922
+ name;
923
+ obj;
924
+ constructor(name, obj) {
925
+ this.name = name;
926
+ this.obj = obj;
927
+ }
928
+ }
901
929
  export const VISIBILITIES = ['none', 'public', 'private', 'protected', 'application', 'suite', 'tenant'];
902
930
  export const TASK_TYPES = ['cron'];
@@ -314,3 +314,79 @@ application "my-app" {
314
314
  expect(observer.source.length).toBe(1);
315
315
  expect(valueOf(observer.source[0].bucket)).toBe('my-bucket');
316
316
  });
317
+ test('agent_memory basic parsing', () => {
318
+ const CONFIG = `
319
+ application "my-app" {
320
+ agent_memory "working-memory" {
321
+ }
322
+ }
323
+ `;
324
+ const tokenizer = new Tokenizer(CONFIG);
325
+ const parser = new Parser(tokenizer);
326
+ const ast = parser.parse();
327
+ expect(parser.errors).toEqual([]);
328
+ const [apps, errors] = buildManifest(ast);
329
+ expect(errors).toEqual([]);
330
+ // Check that we have exactly one application
331
+ expect(apps.length).toBe(1);
332
+ // Check that we have exactly one agent_memory
333
+ expect(apps[0].agentMemory.length).toBe(1);
334
+ // Check the agent_memory properties
335
+ const agentMemory = apps[0].agentMemory[0];
336
+ expect(valueOf(agentMemory.name)).toBe('working-memory');
337
+ });
338
+ test('agent_memory with invalid properties', () => {
339
+ const CONFIG = `
340
+ application "my-app" {
341
+ agent_memory "working-memory" {
342
+ invalid_property = "should fail"
343
+ }
344
+ }
345
+ `;
346
+ const tokenizer = new Tokenizer(CONFIG);
347
+ const parser = new Parser(tokenizer);
348
+ const ast = parser.parse();
349
+ expect(parser.errors).toEqual([]);
350
+ const [, errors] = buildManifest(ast);
351
+ // Should have one error for the invalid property
352
+ expect(errors.length).toBe(1);
353
+ expect(errors[0].message).toContain('unexpected');
354
+ });
355
+ test('agent_memory integration with other modules', () => {
356
+ const CONFIG = `
357
+ application "my-agent-app" {
358
+ agent_memory "working-memory" {
359
+ }
360
+
361
+ actor "agent-actor" {
362
+ visibility = "protected"
363
+ }
364
+
365
+ service "agent-api" {
366
+ }
367
+
368
+ bucket "agent-files" {
369
+ }
370
+ }
371
+ `;
372
+ const tokenizer = new Tokenizer(CONFIG);
373
+ const parser = new Parser(tokenizer);
374
+ const ast = parser.parse();
375
+ expect(parser.errors).toEqual([]);
376
+ const [apps, errors] = buildManifest(ast);
377
+ expect(errors).toEqual([]);
378
+ // Check that we have exactly one application
379
+ expect(apps.length).toBe(1);
380
+ const app = apps[0];
381
+ // Verify all module types are parsed correctly
382
+ expect(app.agentMemory.length).toBe(1);
383
+ expect(app.actor.length).toBe(1);
384
+ expect(app.service.length).toBe(1);
385
+ expect(app.bucket.length).toBe(1);
386
+ // Verify agent_memory properties
387
+ expect(valueOf(app.agentMemory[0].name)).toBe('working-memory');
388
+ // Verify other modules still work correctly
389
+ expect(valueOf(app.actor[0].name)).toBe('agent-actor');
390
+ expect(valueOf(app.service[0].name)).toBe('agent-api');
391
+ expect(valueOf(app.bucket[0].name)).toBe('agent-files');
392
+ });