@nebutra/contracts 0.1.1 → 2.0.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/.turbo/turbo-build.log +16 -6
- package/.turbo/turbo-test.log +15 -0
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +31 -0
- package/LICENSE +21 -676
- package/dist/admin.d.ts +416 -0
- package/dist/admin.js +51 -0
- package/dist/admin.js.map +1 -0
- package/dist/chunk-ERZTZ3PW.js +257 -0
- package/dist/chunk-ERZTZ3PW.js.map +1 -0
- package/dist/chunk-PU65L2HQ.js +218 -0
- package/dist/chunk-PU65L2HQ.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +107 -1
- package/dist/notifications.d.ts +1 -1
- package/dist/sleptons.d.ts +510 -0
- package/dist/sleptons.js +61 -0
- package/dist/sleptons.js.map +1 -0
- package/package.json +18 -3
- package/src/__tests__/admin.test.ts +120 -0
- package/src/admin.ts +297 -0
- package/src/index.ts +2 -0
- package/src/sleptons.test.ts +62 -0
- package/src/sleptons.ts +242 -0
- package/tsup.config.ts +2 -0
- package/vitest.config.ts +10 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,37 +1,47 @@
|
|
|
1
1
|
|
|
2
|
-
> @nebutra/contracts@0.
|
|
2
|
+
> @nebutra/contracts@2.0.0 build /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/commerce/contracts
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
|
-
[34mCLI[39m Building entry: src/billing.ts, src/events.ts, src/identity.ts, src/index.ts, src/notifications.ts
|
|
5
|
+
[34mCLI[39m Building entry: src/admin.ts, src/billing.ts, src/events.ts, src/identity.ts, src/index.ts, src/notifications.ts, src/sleptons.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Using tsup config: /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/commerce/contracts/tsup.config.ts
|
|
9
9
|
[34mCLI[39m Target: es2022
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
+
[32mESM[39m [1mdist/admin.js [22m[32m1.04 KB[39m
|
|
12
13
|
[32mESM[39m [1mdist/billing.js [22m[32m332.00 B[39m
|
|
13
14
|
[32mESM[39m [1mdist/events.js [22m[32m173.00 B[39m
|
|
14
15
|
[32mESM[39m [1mdist/identity.js [22m[32m563.00 B[39m
|
|
15
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
16
|
+
[32mESM[39m [1mdist/index.js [22m[32m4.36 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/chunk-ERZTZ3PW.js [22m[32m8.13 KB[39m
|
|
16
18
|
[32mESM[39m [1mdist/chunk-NFJTVIKD.js [22m[32m1.32 KB[39m
|
|
17
19
|
[32mESM[39m [1mdist/chunk-2NXI4PJM.js [22m[32m565.00 B[39m
|
|
18
20
|
[32mESM[39m [1mdist/chunk-5JNQ2KAT.js [22m[32m2.07 KB[39m
|
|
19
21
|
[32mESM[39m [1mdist/notifications.js [22m[32m1.11 KB[39m
|
|
20
22
|
[32mESM[39m [1mdist/chunk-F4BR76CX.js [22m[32m2.91 KB[39m
|
|
23
|
+
[32mESM[39m [1mdist/sleptons.js [22m[32m1.40 KB[39m
|
|
24
|
+
[32mESM[39m [1mdist/chunk-PU65L2HQ.js [22m[32m6.74 KB[39m
|
|
25
|
+
[32mESM[39m [1mdist/admin.js.map [22m[32m71.00 B[39m
|
|
21
26
|
[32mESM[39m [1mdist/billing.js.map [22m[32m71.00 B[39m
|
|
22
27
|
[32mESM[39m [1mdist/events.js.map [22m[32m71.00 B[39m
|
|
23
28
|
[32mESM[39m [1mdist/identity.js.map [22m[32m71.00 B[39m
|
|
24
29
|
[32mESM[39m [1mdist/index.js.map [22m[32m71.00 B[39m
|
|
30
|
+
[32mESM[39m [1mdist/chunk-ERZTZ3PW.js.map [22m[32m16.58 KB[39m
|
|
25
31
|
[32mESM[39m [1mdist/chunk-NFJTVIKD.js.map [22m[32m2.78 KB[39m
|
|
26
32
|
[32mESM[39m [1mdist/chunk-2NXI4PJM.js.map [22m[32m1.16 KB[39m
|
|
27
33
|
[32mESM[39m [1mdist/chunk-5JNQ2KAT.js.map [22m[32m4.47 KB[39m
|
|
28
34
|
[32mESM[39m [1mdist/notifications.js.map [22m[32m71.00 B[39m
|
|
29
35
|
[32mESM[39m [1mdist/chunk-F4BR76CX.js.map [22m[32m6.05 KB[39m
|
|
30
|
-
[32mESM[39m
|
|
36
|
+
[32mESM[39m [1mdist/sleptons.js.map [22m[32m71.00 B[39m
|
|
37
|
+
[32mESM[39m [1mdist/chunk-PU65L2HQ.js.map [22m[32m14.02 KB[39m
|
|
38
|
+
[32mESM[39m ⚡️ Build success in 94ms
|
|
31
39
|
[34mDTS[39m Build start
|
|
32
|
-
[32mDTS[39m ⚡️ Build success in
|
|
33
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
40
|
+
[32mDTS[39m ⚡️ Build success in 22232ms
|
|
41
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.15 KB[39m
|
|
42
|
+
[32mDTS[39m [1mdist/admin.d.ts [22m[32m14.76 KB[39m
|
|
34
43
|
[32mDTS[39m [1mdist/billing.d.ts [22m[32m2.11 KB[39m
|
|
35
44
|
[32mDTS[39m [1mdist/events.d.ts [22m[32m1020.00 B[39m
|
|
36
45
|
[32mDTS[39m [1mdist/identity.d.ts [22m[32m4.03 KB[39m
|
|
37
46
|
[32mDTS[39m [1mdist/notifications.d.ts [22m[32m6.09 KB[39m
|
|
47
|
+
[32mDTS[39m [1mdist/sleptons.d.ts [22m[32m21.11 KB[39m
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
> @nebutra/contracts@2.0.0 test /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/commerce/contracts
|
|
3
|
+
> vitest run
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.4 [39m[90m/home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/commerce/contracts[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m src/__tests__/admin.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 91[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/sleptons.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 50[2mms[22m[39m
|
|
10
|
+
|
|
11
|
+
[2m Test Files [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
12
|
+
[2m Tests [22m [1m[32m11 passed[39m[22m[90m (11)[39m
|
|
13
|
+
[2m Start at [22m 02:31:07
|
|
14
|
+
[2m Duration [22m 1.49s[2m (transform 388ms, setup 0ms, import 1.34s, tests 141ms, environment 0ms)[22m
|
|
15
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @nebutra/contracts
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#541](https://github.com/Nebutra/Nebutra-Sailor/pull/541) [`a29746f`](https://github.com/Nebutra/Nebutra-Sailor/commit/a29746fdd9eabdfb9c1692a2dc43fc7d5810779c) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Sleptons résumé R0: schema, storage, and owner read/write.
|
|
8
|
+
- `@nebutra/contracts/sleptons` — `ResumeContentV1Schema` (the structured "track record" attached to a member profile), `ResumeWriteSchema`, `ResumeDerivedSchema`. Additive subpath export; nothing else in the package changes.
|
|
9
|
+
- `@nebutra/db` — `SleptonsResume` model + `ResumeLang` enum (migration `20260907000000_sleptons_resume`), 1:1 on `sleptons_member_profiles`, cascade delete. Not tenant-scoped, same as the other Sleptons tables.
|
|
10
|
+
- `@nebutra/sleptons` — `GET/PUT /api/resume` for the signed-in member: validate → derive (`headline`, `skills_flat`, `highlights`, `years_active`, `completeness`) → upsert. Plus a one-time importer for legacy CVise JSON exports.
|
|
11
|
+
|
|
12
|
+
Spec: `docs/superpowers/specs/2026-09-07-sleptons-resume-system-design.md`.
|
|
13
|
+
|
|
14
|
+
## 0.1.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Ship the MIT LICENSE file these packages have always declared but never included.
|
|
19
|
+
|
|
20
|
+
Every one of these declares `"license": "MIT"` in its manifest, and npm shows
|
|
21
|
+
that on the registry page — but the tarball carried no licence text at all.
|
|
22
|
+
MIT's own terms require the notice to accompany "all copies or substantial
|
|
23
|
+
portions of the Software", so a consumer vendoring one of these packages had
|
|
24
|
+
nothing to comply with.
|
|
25
|
+
|
|
26
|
+
No code changes. This is the licence text only, published so the tarballs
|
|
27
|
+
match what the manifests have been claiming.
|
|
28
|
+
|
|
29
|
+
`tests/architecture/release-surface.test.ts` now asserts the LICENSE _file_
|
|
30
|
+
exists and is MIT, not just the manifest _field_ — the field-only check is how
|
|
31
|
+
this went unnoticed, and is also how `create-sailor` shipped the full AGPL-3.0
|
|
32
|
+
text under an MIT declaration for its entire published history.
|
|
33
|
+
|
|
3
34
|
## 0.1.1
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|