@atscript/typescript 0.1.49 → 0.1.51
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 +9 -6
- package/dist/index.cjs +4 -1480
- package/dist/index.mjs +2 -1454
- package/dist/plugin-D96fH7Va.mjs +1456 -0
- package/dist/plugin-cY7VLpmN.cjs +1491 -0
- package/dist/test-utils.cjs +27 -0
- package/dist/test-utils.d.ts +25 -0
- package/dist/test-utils.mjs +26 -0
- package/dist/utils.cjs +38 -22
- package/dist/utils.d.ts +10 -6
- package/dist/utils.mjs +38 -22
- package/package.json +21 -14
- package/scripts/setup-skills.js +0 -88
- package/skills/atscript-typescript/.gitkeep +0 -0
- package/skills/atscript-typescript/SKILL.md +0 -52
- package/skills/atscript-typescript/annotations.md +0 -259
- package/skills/atscript-typescript/codegen.md +0 -131
- package/skills/atscript-typescript/core.md +0 -166
- package/skills/atscript-typescript/runtime.md +0 -290
- package/skills/atscript-typescript/syntax.md +0 -252
- package/skills/atscript-typescript/utilities.md +0 -452
- package/skills/atscript-typescript/validation.md +0 -293
- /package/dist/{json-schema-Bu4xgpQn.cjs → json-schema-BgW_S2sP.cjs} +0 -0
- /package/dist/{json-schema-Bl8jkrCj.mjs → json-schema-DrJMwvm1.mjs} +0 -0
package/README.md
CHANGED
|
@@ -34,11 +34,11 @@ npx asc --noEmit
|
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
36
|
// Runtime validation
|
|
37
|
-
import {
|
|
37
|
+
import { buildJsonSchema } from '@atscript/typescript/utils'
|
|
38
38
|
import { User } from './schema/user.as'
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
const schema = buildJsonSchema(User)
|
|
40
|
+
User.validator().validate(inputData) // throws on failure
|
|
41
|
+
const schema = buildJsonSchema(User.annotatedType)
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## Features
|
|
@@ -51,13 +51,16 @@ const schema = buildJsonSchema(User)
|
|
|
51
51
|
- Type-safe utility types: `FlatOf<T>`, `PrimaryKeyOf<T>`, `OwnPropsOf<T>`, `NavPropsOf<T>`
|
|
52
52
|
- Global `atscript.d.ts` generation for typed metadata access
|
|
53
53
|
|
|
54
|
-
## AI Agent
|
|
54
|
+
## AI Agent Skill
|
|
55
|
+
|
|
56
|
+
Unified skill for AI coding agents (Claude Code, Cursor, Windsurf, Codex, etc.) covering all `@atscript/*` packages:
|
|
55
57
|
|
|
56
58
|
```bash
|
|
57
|
-
npx
|
|
58
|
-
npx atscript-typescript-skill --global # Install globally
|
|
59
|
+
npx skills add moostjs/atscript
|
|
59
60
|
```
|
|
60
61
|
|
|
62
|
+
Learn more at [skills.sh](https://skills.sh).
|
|
63
|
+
|
|
61
64
|
## Documentation
|
|
62
65
|
|
|
63
66
|
- [TypeScript Guide](https://atscript.dev/packages/typescript/)
|