sonamu 0.10.6 → 0.10.8
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/api/base-frame.d.ts +2 -0
- package/dist/api/base-frame.d.ts.map +1 -1
- package/dist/api/base-frame.js +8 -1
- package/dist/api/decorators.js +1 -1
- package/dist/api/sonamu.js +1 -1
- package/dist/bin/cli.js +10 -253
- package/dist/database/base-model.js +2 -2
- package/dist/entity/entity-manager.js +1 -1
- package/dist/index.js +3 -3
- package/dist/migration/code-generation.js +2 -2
- package/dist/migration/migrator.js +1 -1
- package/dist/migration/slack-confirm.js +1 -1
- package/dist/naite/naite-reporter.js +1 -1
- package/dist/syncer/checksum.js +1 -1
- package/dist/syncer/code-generator.js +1 -1
- package/dist/syncer/entity-operations.js +1 -1
- package/dist/syncer/syncer-actions.js +1 -1
- package/dist/syncer/syncer.js +1 -1
- package/dist/ui-web/assets/{index-D0MHYbxl.js → index-CJf8uJYf.js} +47 -41
- package/dist/ui-web/assets/index-GMMIVGja.css +1 -0
- package/dist/ui-web/index.html +2 -2
- package/dist/utils/formatter.js +1 -1
- package/package.json +3 -3
- package/src/api/base-frame.ts +14 -1
- package/src/bin/cli.ts +12 -375
- package/src/migration/code-generation.ts +1 -1
- package/dist/ui-web/assets/index-Dx_JX4aQ.css +0 -1
- package/src/skills/AGENTS.md +0 -108
- package/src/skills/sonamu/SKILL.md +0 -75
- package/src/skills/sonamu-ai-agents/SKILL.md +0 -205
- package/src/skills/sonamu-api/SKILL.md +0 -480
- package/src/skills/sonamu-auth/SKILL.md +0 -327
- package/src/skills/sonamu-auth/references/plugins.md +0 -310
- package/src/skills/sonamu-auth/references/user-id-migration-followups.md +0 -192
- package/src/skills/sonamu-auth/references/user-id-migration.md +0 -455
- package/src/skills/sonamu-config/SKILL.md +0 -203
- package/src/skills/sonamu-config/references/database.md +0 -452
- package/src/skills/sonamu-config/references/environments.md +0 -178
- package/src/skills/sonamu-config/references/server-options.md +0 -400
- package/src/skills/sonamu-entity/SKILL.md +0 -180
- package/src/skills/sonamu-entity/references/creation-workflow.md +0 -581
- package/src/skills/sonamu-entity/references/design-guides.md +0 -243
- package/src/skills/sonamu-entity/references/field-types.md +0 -170
- package/src/skills/sonamu-entity/references/relations-detail.md +0 -245
- package/src/skills/sonamu-entity/references/relations.md +0 -463
- package/src/skills/sonamu-entity/references/subset.md +0 -156
- package/src/skills/sonamu-fixture/SKILL.md +0 -180
- package/src/skills/sonamu-fixture/references/cli-usage.md +0 -439
- package/src/skills/sonamu-fixture/references/cone.md +0 -298
- package/src/skills/sonamu-frontend/SKILL.md +0 -142
- package/src/skills/sonamu-frontend/references/components.md +0 -323
- package/src/skills/sonamu-frontend/references/examples.md +0 -64
- package/src/skills/sonamu-frontend/references/hooks.md +0 -273
- package/src/skills/sonamu-frontend/references/runtime.md +0 -165
- package/src/skills/sonamu-frontend/references/scaffolding.md +0 -439
- package/src/skills/sonamu-i18n/SKILL.md +0 -287
- package/src/skills/sonamu-migration/SKILL.md +0 -316
- package/src/skills/sonamu-naite/SKILL.md +0 -266
- package/src/skills/sonamu-query/SKILL.md +0 -48
- package/src/skills/sonamu-query/references/model-patterns.md +0 -390
- package/src/skills/sonamu-query/references/model.md +0 -366
- package/src/skills/sonamu-query/references/puri.md +0 -413
- package/src/skills/sonamu-query/references/search.md +0 -238
- package/src/skills/sonamu-query/references/upsert.md +0 -324
- package/src/skills/sonamu-tasks/SKILL.md +0 -236
- package/src/skills/sonamu-testing/SKILL.md +0 -251
- package/src/skills/sonamu-testing/references/devrunner.md +0 -405
- package/src/skills/sonamu-testing/references/helpers.md +0 -185
- package/src/skills/sonamu-testing/references/patterns.md +0 -263
- package/src/skills/sonamu-testing/references/pitfalls.md +0 -588
- package/src/skills/sonamu-testing/references/quick-start.md +0 -285
- package/src/skills/sonamu-testing/references/type-safety.md +0 -172
- package/src/skills/sonamu-testing/references/writing-plan.md +0 -375
- package/src/skills/sonamu-vector/SKILL.md +0 -222
|
@@ -15,8 +15,8 @@ import { getMigrationSetFromEntity, init_migration_set } from "./migration-set.j
|
|
|
15
15
|
import { group, sum, unique } from "radashi";
|
|
16
16
|
import assert from "assert";
|
|
17
17
|
import path from "path";
|
|
18
|
-
import { mkdir, readdir, unlink, writeFile } from "fs/promises";
|
|
19
18
|
import chalk from "chalk";
|
|
19
|
+
import { mkdir, readdir, unlink, writeFile } from "fs/promises";
|
|
20
20
|
//#region src/migration/migrator.ts
|
|
21
21
|
/**
|
|
22
22
|
* 주어진 Promise가 ms 안에 완료되지 않으면 onTimeout 에러로 reject한다.
|
|
@@ -3,9 +3,9 @@ import { SD, init_sd } from "../dict/sd.js";
|
|
|
3
3
|
import { Sonamu, init_sonamu } from "../api/sonamu.js";
|
|
4
4
|
import assert from "assert";
|
|
5
5
|
import path from "path";
|
|
6
|
-
import crypto from "crypto";
|
|
7
6
|
import fs from "fs/promises";
|
|
8
7
|
import os from "os";
|
|
8
|
+
import crypto from "crypto";
|
|
9
9
|
//#region src/migration/slack-confirm.ts
|
|
10
10
|
var SlackConfirm;
|
|
11
11
|
var init_slack_confirm = __esmMin((() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { findApiRootPath, init_utils } from "../utils/utils.js";
|
|
2
2
|
import { join } from "path";
|
|
3
|
-
import { createHash } from "crypto";
|
|
4
3
|
import { homedir } from "os";
|
|
4
|
+
import { createHash } from "crypto";
|
|
5
5
|
import { connect } from "net";
|
|
6
6
|
//#region src/naite/naite-reporter.ts
|
|
7
7
|
/**
|
package/dist/syncer/checksum.js
CHANGED
|
@@ -7,8 +7,8 @@ import { GLOB_EXCLUDE, getChecksumPatternGroupInAbsolutePath, init_file_patterns
|
|
|
7
7
|
import { isEqual } from "radashi";
|
|
8
8
|
import { createReadStream } from "fs";
|
|
9
9
|
import path from "path";
|
|
10
|
-
import crypto from "crypto";
|
|
11
10
|
import { readFile, writeFile } from "fs/promises";
|
|
11
|
+
import crypto from "crypto";
|
|
12
12
|
import equal from "fast-deep-equal";
|
|
13
13
|
//#region src/syncer/checksum.ts
|
|
14
14
|
/**
|
|
@@ -14,8 +14,8 @@ import { init_lodash_able, wrapIf } from "../utils/lodash-able.js";
|
|
|
14
14
|
import { init_file_tracking, trackWritten } from "./file-tracking.js";
|
|
15
15
|
import { unique } from "radashi";
|
|
16
16
|
import path from "path";
|
|
17
|
-
import { mkdir, writeFile } from "fs/promises";
|
|
18
17
|
import chalk from "chalk";
|
|
18
|
+
import { mkdir, writeFile } from "fs/promises";
|
|
19
19
|
//#region src/syncer/code-generator.ts
|
|
20
20
|
/**
|
|
21
21
|
* 템플릿을 렌더링하고 파일로 생성합니다.
|
|
@@ -6,8 +6,8 @@ import { exists, init_fs_utils } from "../utils/fs-utils.js";
|
|
|
6
6
|
import { Sonamu, init_sonamu } from "../api/sonamu.js";
|
|
7
7
|
import { EntityManager, init_entity_manager } from "../entity/entity-manager.js";
|
|
8
8
|
import { generateTemplate, init_code_generator } from "./code-generator.js";
|
|
9
|
-
import { rm } from "fs/promises";
|
|
10
9
|
import chalk from "chalk";
|
|
10
|
+
import { rm } from "fs/promises";
|
|
11
11
|
//#region src/syncer/entity-operations.ts
|
|
12
12
|
/**
|
|
13
13
|
* 새로운 엔티티를 생성합니다.
|
|
@@ -9,8 +9,8 @@ import { init_file_tracking, trackWritten } from "./file-tracking.js";
|
|
|
9
9
|
import { generateTemplate, init_code_generator } from "./code-generator.js";
|
|
10
10
|
import assert from "assert";
|
|
11
11
|
import path, { dirname } from "path";
|
|
12
|
-
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
13
12
|
import chalk from "chalk";
|
|
13
|
+
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
14
14
|
//#region src/syncer/syncer-actions.ts
|
|
15
15
|
async function actionSyncConfig() {
|
|
16
16
|
const { host, port } = Sonamu.config.server.listen ?? {};
|
package/dist/syncer/syncer.js
CHANGED
|
@@ -19,8 +19,8 @@ import { actionCopySharedToTargetsIfNotExists, actionGenerateHttps, actionGenera
|
|
|
19
19
|
import { group, unique } from "radashi";
|
|
20
20
|
import assert from "assert";
|
|
21
21
|
import path from "path";
|
|
22
|
-
import { unlink } from "fs/promises";
|
|
23
22
|
import chalk from "chalk";
|
|
23
|
+
import { unlink } from "fs/promises";
|
|
24
24
|
import { minimatch } from "minimatch";
|
|
25
25
|
import { EventEmitter } from "events";
|
|
26
26
|
import { hot } from "@sonamu-kit/hmr-hook";
|