@skein-js/config 0.3.0 → 0.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.
package/dist/index.d.ts CHANGED
@@ -53,6 +53,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
53
53
  dims: z.ZodOptional<z.ZodNumber>;
54
54
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
55
  }, z.ZodTypeAny, "passthrough">>>;
56
+ ttl: z.ZodOptional<z.ZodObject<{
57
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
58
+ default_ttl: z.ZodOptional<z.ZodNumber>;
59
+ /** Extend an item's expiry when it is read (default true). */
60
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
61
+ /** How often the background sweeper runs, in minutes (default 60). */
62
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
63
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
64
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
65
+ default_ttl: z.ZodOptional<z.ZodNumber>;
66
+ /** Extend an item's expiry when it is read (default true). */
67
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
68
+ /** How often the background sweeper runs, in minutes (default 60). */
69
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
70
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
71
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
72
+ default_ttl: z.ZodOptional<z.ZodNumber>;
73
+ /** Extend an item's expiry when it is read (default true). */
74
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
75
+ /** How often the background sweeper runs, in minutes (default 60). */
76
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
77
+ }, z.ZodTypeAny, "passthrough">>>;
56
78
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
57
79
  index: z.ZodOptional<z.ZodObject<{
58
80
  embed: z.ZodOptional<z.ZodString>;
@@ -67,6 +89,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
67
89
  dims: z.ZodOptional<z.ZodNumber>;
68
90
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
91
  }, z.ZodTypeAny, "passthrough">>>;
92
+ ttl: z.ZodOptional<z.ZodObject<{
93
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
94
+ default_ttl: z.ZodOptional<z.ZodNumber>;
95
+ /** Extend an item's expiry when it is read (default true). */
96
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
97
+ /** How often the background sweeper runs, in minutes (default 60). */
98
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
99
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
100
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
101
+ default_ttl: z.ZodOptional<z.ZodNumber>;
102
+ /** Extend an item's expiry when it is read (default true). */
103
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
104
+ /** How often the background sweeper runs, in minutes (default 60). */
105
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
106
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
107
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
108
+ default_ttl: z.ZodOptional<z.ZodNumber>;
109
+ /** Extend an item's expiry when it is read (default true). */
110
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
111
+ /** How often the background sweeper runs, in minutes (default 60). */
112
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
113
+ }, z.ZodTypeAny, "passthrough">>>;
70
114
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
71
115
  index: z.ZodOptional<z.ZodObject<{
72
116
  embed: z.ZodOptional<z.ZodString>;
@@ -81,6 +125,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
81
125
  dims: z.ZodOptional<z.ZodNumber>;
82
126
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
127
  }, z.ZodTypeAny, "passthrough">>>;
128
+ ttl: z.ZodOptional<z.ZodObject<{
129
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
130
+ default_ttl: z.ZodOptional<z.ZodNumber>;
131
+ /** Extend an item's expiry when it is read (default true). */
132
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
133
+ /** How often the background sweeper runs, in minutes (default 60). */
134
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
135
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
136
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
137
+ default_ttl: z.ZodOptional<z.ZodNumber>;
138
+ /** Extend an item's expiry when it is read (default true). */
139
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
140
+ /** How often the background sweeper runs, in minutes (default 60). */
141
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
142
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
143
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
144
+ default_ttl: z.ZodOptional<z.ZodNumber>;
145
+ /** Extend an item's expiry when it is read (default true). */
146
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
147
+ /** How often the background sweeper runs, in minutes (default 60). */
148
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
149
+ }, z.ZodTypeAny, "passthrough">>>;
84
150
  }, z.ZodTypeAny, "passthrough">>>;
85
151
  /** Checkpointer backend; `"default"` == Postgres, absent == in-memory. */
86
152
  checkpointer: z.ZodOptional<z.ZodObject<{
@@ -134,6 +200,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
134
200
  dims: z.ZodOptional<z.ZodNumber>;
135
201
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
202
  }, z.ZodTypeAny, "passthrough">>>;
203
+ ttl: z.ZodOptional<z.ZodObject<{
204
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
205
+ default_ttl: z.ZodOptional<z.ZodNumber>;
206
+ /** Extend an item's expiry when it is read (default true). */
207
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
208
+ /** How often the background sweeper runs, in minutes (default 60). */
209
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
210
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
211
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
212
+ default_ttl: z.ZodOptional<z.ZodNumber>;
213
+ /** Extend an item's expiry when it is read (default true). */
214
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
215
+ /** How often the background sweeper runs, in minutes (default 60). */
216
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
217
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
218
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
219
+ default_ttl: z.ZodOptional<z.ZodNumber>;
220
+ /** Extend an item's expiry when it is read (default true). */
221
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
222
+ /** How often the background sweeper runs, in minutes (default 60). */
223
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
224
+ }, z.ZodTypeAny, "passthrough">>>;
137
225
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
138
226
  index: z.ZodOptional<z.ZodObject<{
139
227
  embed: z.ZodOptional<z.ZodString>;
@@ -148,6 +236,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
148
236
  dims: z.ZodOptional<z.ZodNumber>;
149
237
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
150
238
  }, z.ZodTypeAny, "passthrough">>>;
239
+ ttl: z.ZodOptional<z.ZodObject<{
240
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
241
+ default_ttl: z.ZodOptional<z.ZodNumber>;
242
+ /** Extend an item's expiry when it is read (default true). */
243
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
244
+ /** How often the background sweeper runs, in minutes (default 60). */
245
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
246
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
247
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
248
+ default_ttl: z.ZodOptional<z.ZodNumber>;
249
+ /** Extend an item's expiry when it is read (default true). */
250
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
251
+ /** How often the background sweeper runs, in minutes (default 60). */
252
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
253
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
254
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
255
+ default_ttl: z.ZodOptional<z.ZodNumber>;
256
+ /** Extend an item's expiry when it is read (default true). */
257
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
258
+ /** How often the background sweeper runs, in minutes (default 60). */
259
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
260
+ }, z.ZodTypeAny, "passthrough">>>;
151
261
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
152
262
  index: z.ZodOptional<z.ZodObject<{
153
263
  embed: z.ZodOptional<z.ZodString>;
@@ -162,6 +272,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
162
272
  dims: z.ZodOptional<z.ZodNumber>;
163
273
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
164
274
  }, z.ZodTypeAny, "passthrough">>>;
275
+ ttl: z.ZodOptional<z.ZodObject<{
276
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
277
+ default_ttl: z.ZodOptional<z.ZodNumber>;
278
+ /** Extend an item's expiry when it is read (default true). */
279
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
280
+ /** How often the background sweeper runs, in minutes (default 60). */
281
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
282
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
283
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
284
+ default_ttl: z.ZodOptional<z.ZodNumber>;
285
+ /** Extend an item's expiry when it is read (default true). */
286
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
287
+ /** How often the background sweeper runs, in minutes (default 60). */
288
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
289
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
290
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
291
+ default_ttl: z.ZodOptional<z.ZodNumber>;
292
+ /** Extend an item's expiry when it is read (default true). */
293
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
294
+ /** How often the background sweeper runs, in minutes (default 60). */
295
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
296
+ }, z.ZodTypeAny, "passthrough">>>;
165
297
  }, z.ZodTypeAny, "passthrough">>>;
166
298
  /** Checkpointer backend; `"default"` == Postgres, absent == in-memory. */
167
299
  checkpointer: z.ZodOptional<z.ZodObject<{
@@ -215,6 +347,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
215
347
  dims: z.ZodOptional<z.ZodNumber>;
216
348
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
349
  }, z.ZodTypeAny, "passthrough">>>;
350
+ ttl: z.ZodOptional<z.ZodObject<{
351
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
352
+ default_ttl: z.ZodOptional<z.ZodNumber>;
353
+ /** Extend an item's expiry when it is read (default true). */
354
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
355
+ /** How often the background sweeper runs, in minutes (default 60). */
356
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
357
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
358
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
359
+ default_ttl: z.ZodOptional<z.ZodNumber>;
360
+ /** Extend an item's expiry when it is read (default true). */
361
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
362
+ /** How often the background sweeper runs, in minutes (default 60). */
363
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
364
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
365
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
366
+ default_ttl: z.ZodOptional<z.ZodNumber>;
367
+ /** Extend an item's expiry when it is read (default true). */
368
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
369
+ /** How often the background sweeper runs, in minutes (default 60). */
370
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
371
+ }, z.ZodTypeAny, "passthrough">>>;
218
372
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
219
373
  index: z.ZodOptional<z.ZodObject<{
220
374
  embed: z.ZodOptional<z.ZodString>;
@@ -229,6 +383,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
229
383
  dims: z.ZodOptional<z.ZodNumber>;
230
384
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
385
  }, z.ZodTypeAny, "passthrough">>>;
386
+ ttl: z.ZodOptional<z.ZodObject<{
387
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
388
+ default_ttl: z.ZodOptional<z.ZodNumber>;
389
+ /** Extend an item's expiry when it is read (default true). */
390
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
391
+ /** How often the background sweeper runs, in minutes (default 60). */
392
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
393
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
394
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
395
+ default_ttl: z.ZodOptional<z.ZodNumber>;
396
+ /** Extend an item's expiry when it is read (default true). */
397
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
398
+ /** How often the background sweeper runs, in minutes (default 60). */
399
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
400
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
401
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
402
+ default_ttl: z.ZodOptional<z.ZodNumber>;
403
+ /** Extend an item's expiry when it is read (default true). */
404
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
405
+ /** How often the background sweeper runs, in minutes (default 60). */
406
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
407
+ }, z.ZodTypeAny, "passthrough">>>;
232
408
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
233
409
  index: z.ZodOptional<z.ZodObject<{
234
410
  embed: z.ZodOptional<z.ZodString>;
@@ -243,6 +419,28 @@ declare const langgraphJsonSchema: z.ZodObject<{
243
419
  dims: z.ZodOptional<z.ZodNumber>;
244
420
  fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
245
421
  }, z.ZodTypeAny, "passthrough">>>;
422
+ ttl: z.ZodOptional<z.ZodObject<{
423
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
424
+ default_ttl: z.ZodOptional<z.ZodNumber>;
425
+ /** Extend an item's expiry when it is read (default true). */
426
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
427
+ /** How often the background sweeper runs, in minutes (default 60). */
428
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
429
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
430
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
431
+ default_ttl: z.ZodOptional<z.ZodNumber>;
432
+ /** Extend an item's expiry when it is read (default true). */
433
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
434
+ /** How often the background sweeper runs, in minutes (default 60). */
435
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
436
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
437
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
438
+ default_ttl: z.ZodOptional<z.ZodNumber>;
439
+ /** Extend an item's expiry when it is read (default true). */
440
+ refresh_on_read: z.ZodOptional<z.ZodBoolean>;
441
+ /** How often the background sweeper runs, in minutes (default 60). */
442
+ sweep_interval_minutes: z.ZodOptional<z.ZodNumber>;
443
+ }, z.ZodTypeAny, "passthrough">>>;
246
444
  }, z.ZodTypeAny, "passthrough">>>;
247
445
  /** Checkpointer backend; `"default"` == Postgres, absent == in-memory. */
248
446
  checkpointer: z.ZodOptional<z.ZodObject<{
package/dist/index.js CHANGED
@@ -69,6 +69,14 @@ var storeIndexSchema = z.object({
69
69
  dims: z.number().optional(),
70
70
  fields: z.array(z.string()).optional()
71
71
  }).passthrough();
72
+ var storeTtlSchema = z.object({
73
+ /** Default item lifetime in minutes when a `put` doesn't specify its own `ttl`. */
74
+ default_ttl: z.number().optional(),
75
+ /** Extend an item's expiry when it is read (default true). */
76
+ refresh_on_read: z.boolean().optional(),
77
+ /** How often the background sweeper runs, in minutes (default 60). */
78
+ sweep_interval_minutes: z.number().optional()
79
+ }).passthrough();
72
80
  var langgraphJsonSchema = z.object({
73
81
  /** REQUIRED: map of graph id → "path:export". */
74
82
  graphs: z.record(z.string()),
@@ -77,7 +85,7 @@ var langgraphJsonSchema = z.object({
77
85
  /** `.env` path or an inline map, loaded into `process.env` at boot. */
78
86
  env: z.union([z.string(), z.record(z.string())]).optional(),
79
87
  /** Long-term memory store config. */
80
- store: z.object({ index: storeIndexSchema.optional() }).passthrough().optional(),
88
+ store: z.object({ index: storeIndexSchema.optional(), ttl: storeTtlSchema.optional() }).passthrough().optional(),
81
89
  /** Checkpointer backend; `"default"` == Postgres, absent == in-memory. */
82
90
  checkpointer: z.object({ type: z.string() }).passthrough().optional(),
83
91
  /** Server customization (CORS, route toggles) applied by the framework adapter. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skein-js/config",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "langgraph.json parser and graph loader (path:export) for skein-js.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Maina Wycliffe <wmmaina7@gmail.com>",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@langchain/langgraph-api": "^1.4.0",
44
44
  "zod": "^3.25.76",
45
- "@skein-js/core": "0.3.0"
45
+ "@skein-js/core": "0.4.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@langchain/langgraph": "^1.4.0",