@housekit/kit 0.1.10 → 0.1.12

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/README.md CHANGED
@@ -71,11 +71,10 @@ The standard for CI/CD and production environments.
71
71
  Create a `housekit.config.ts` (or `.js`, `.mjs`) in your project root.
72
72
 
73
73
  ```typescript
74
- import type { HouseKitConfig } from 'housekit';
74
+ import type { HouseKitConfig } from '@housekit/kit';
75
75
 
76
76
  export default {
77
- // Path to your table/view definitions
78
- schema: './src/schema',
77
+ schema: './src/schema', // Where your table definitions live
79
78
 
80
79
  // Where migrations and snapshots will be stored
81
80
  out: './housekit',
package/dist/index.js CHANGED
@@ -8588,7 +8588,7 @@ async function initCommand() {
8588
8588
  const schemaPath = await inputPrompt("Schema directory", schemaDir);
8589
8589
  const migrationsPath = await inputPrompt("Migrations output directory", migrationsDir);
8590
8590
  const configPath = `housekit.config.${fileType}`;
8591
- const configContent = fileType === "ts" ? `import type { HouseKitConfig } from 'housekit';
8591
+ const configContent = fileType === "ts" ? `import type { HouseKitConfig } from '@housekit/kit';
8592
8592
 
8593
8593
  export default {
8594
8594
  schema: "${schemaPath}",
@@ -8631,7 +8631,7 @@ import { t, defineTable, Engine } from '@housekit/orm';
8631
8631
  export const logs = defineTable('logs', (t) => ({
8632
8632
  id: t.uuid('id').autoGenerate().primaryKey(),
8633
8633
  message: t.text('message').comment('Log message content'),
8634
- level: t.enumType('level', ['info', 'warning', 'error']).default('info').comment('Log severity level'),
8634
+ level: t.enum('level', ['info', 'warning', 'error']).default('info').comment('Log severity level'),
8635
8635
  tags: t.array(t.text('tag')).nullable().comment('Array of tags for categorizing logs'),
8636
8636
  metadata: t.json('metadata').nullable().comment('Additional log metadata'),
8637
8637
  createdAt: t.timestamp('created_at').default('now()'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@housekit/kit",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "CLI tool for HouseKit - manage ClickHouse schemas, migrations, and database operations with type-safe workflows.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@clickhouse/client": "^1.14.0",
51
- "@housekit/orm": "^0.1.10",
51
+ "@housekit/orm": "^0.1.12",
52
52
  "chalk": "^5.6.2",
53
53
  "cli-table3": "^0.6.5",
54
54
  "commander": "^12.0.0",