@nexart/codemode-sdk 1.8.0 → 1.8.2
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/CHANGELOG.md +85 -0
- package/COMMERCIAL.md +41 -0
- package/LICENSE.md +5 -5
- package/README.md +250 -700
- package/dist/sdk/codemode/core-index.d.ts +6 -4
- package/dist/sdk/codemode/core-index.d.ts.map +1 -1
- package/dist/sdk/codemode/core-index.js +6 -4
- package/dist/{entry → sdk/codemode/entry}/browser.d.ts +5 -2
- package/dist/sdk/codemode/entry/browser.d.ts.map +1 -0
- package/dist/{entry → sdk/codemode/entry}/browser.js +10 -4
- package/dist/{entry → sdk/codemode/entry}/node.d.ts +2 -1
- package/dist/sdk/codemode/entry/node.d.ts.map +1 -0
- package/dist/{entry → sdk/codemode/entry}/node.js +2 -1
- package/dist/{runtime.d.ts → sdk/codemode/runtime.d.ts} +2 -2
- package/dist/sdk/codemode/runtime.d.ts.map +1 -0
- package/dist/{runtime.js → sdk/codemode/runtime.js} +3 -2
- package/dist/sdk/codemode/static-engine.d.ts.map +1 -1
- package/dist/sdk/codemode/static-engine.js +24 -11
- package/dist/sdk/codemode/version.d.ts +18 -0
- package/dist/sdk/codemode/version.d.ts.map +1 -0
- package/dist/sdk/codemode/version.js +17 -0
- package/examples/agent-quickstart.ts +159 -0
- package/examples/preflight-test.ts +1 -1
- package/package.json +4 -2
- package/dist/builder-manifest.d.ts +0 -79
- package/dist/builder-manifest.d.ts.map +0 -1
- package/dist/builder-manifest.js +0 -97
- package/dist/core-index.d.ts +0 -21
- package/dist/core-index.d.ts.map +0 -1
- package/dist/core-index.js +0 -26
- package/dist/engine.d.ts +0 -24
- package/dist/engine.d.ts.map +0 -1
- package/dist/engine.js +0 -67
- package/dist/entry/browser.d.ts.map +0 -1
- package/dist/entry/node.d.ts.map +0 -1
- package/dist/execute.d.ts +0 -46
- package/dist/execute.d.ts.map +0 -1
- package/dist/execute.js +0 -283
- package/dist/execution-sandbox.d.ts +0 -107
- package/dist/execution-sandbox.d.ts.map +0 -1
- package/dist/execution-sandbox.js +0 -207
- package/dist/index.d.ts +0 -31
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -63
- package/dist/loop-engine.d.ts +0 -22
- package/dist/loop-engine.d.ts.map +0 -1
- package/dist/loop-engine.js +0 -229
- package/dist/noise-bridge.d.ts +0 -44
- package/dist/noise-bridge.d.ts.map +0 -1
- package/dist/noise-bridge.js +0 -68
- package/dist/noise-engine.d.ts +0 -74
- package/dist/noise-engine.d.ts.map +0 -1
- package/dist/noise-engine.js +0 -132
- package/dist/noise-sketches/fractalNoise.d.ts +0 -11
- package/dist/noise-sketches/fractalNoise.d.ts.map +0 -1
- package/dist/noise-sketches/fractalNoise.js +0 -121
- package/dist/noise-sketches/index.d.ts +0 -21
- package/dist/noise-sketches/index.d.ts.map +0 -1
- package/dist/noise-sketches/index.js +0 -28
- package/dist/p5-runtime.d.ts +0 -75
- package/dist/p5-runtime.d.ts.map +0 -1
- package/dist/p5-runtime.js +0 -1031
- package/dist/runtime.d.ts.map +0 -1
- package/dist/sdk/codemode/index.d.ts +0 -31
- package/dist/sdk/codemode/index.d.ts.map +0 -1
- package/dist/sdk/codemode/index.js +0 -63
- package/dist/sdk/codemode/noise-bridge.d.ts +0 -44
- package/dist/sdk/codemode/noise-bridge.d.ts.map +0 -1
- package/dist/sdk/codemode/noise-bridge.js +0 -68
- package/dist/sdk/codemode/noise-engine.d.ts +0 -74
- package/dist/sdk/codemode/noise-engine.d.ts.map +0 -1
- package/dist/sdk/codemode/noise-engine.js +0 -132
- package/dist/sdk/codemode/noise-sketches/fractalNoise.d.ts +0 -11
- package/dist/sdk/codemode/noise-sketches/fractalNoise.d.ts.map +0 -1
- package/dist/sdk/codemode/noise-sketches/fractalNoise.js +0 -121
- package/dist/sdk/codemode/noise-sketches/index.d.ts +0 -21
- package/dist/sdk/codemode/noise-sketches/index.d.ts.map +0 -1
- package/dist/sdk/codemode/noise-sketches/index.js +0 -28
- package/dist/shared/noiseSnapshot.d.ts +0 -59
- package/dist/shared/noiseSnapshot.d.ts.map +0 -1
- package/dist/shared/noiseSnapshot.js +0 -72
- package/dist/sound-bridge.d.ts +0 -89
- package/dist/sound-bridge.d.ts.map +0 -1
- package/dist/sound-bridge.js +0 -128
- package/dist/soundart-engine.d.ts +0 -87
- package/dist/soundart-engine.d.ts.map +0 -1
- package/dist/soundart-engine.js +0 -173
- package/dist/soundart-sketches/chladniBloom.d.ts +0 -3
- package/dist/soundart-sketches/chladniBloom.d.ts.map +0 -1
- package/dist/soundart-sketches/chladniBloom.js +0 -53
- package/dist/soundart-sketches/dualVortex.d.ts +0 -3
- package/dist/soundart-sketches/dualVortex.d.ts.map +0 -1
- package/dist/soundart-sketches/dualVortex.js +0 -67
- package/dist/soundart-sketches/geometryIllusion.d.ts +0 -3
- package/dist/soundart-sketches/geometryIllusion.d.ts.map +0 -1
- package/dist/soundart-sketches/geometryIllusion.js +0 -89
- package/dist/soundart-sketches/index.d.ts +0 -39
- package/dist/soundart-sketches/index.d.ts.map +0 -1
- package/dist/soundart-sketches/index.js +0 -72
- package/dist/soundart-sketches/isoflow.d.ts +0 -3
- package/dist/soundart-sketches/isoflow.d.ts.map +0 -1
- package/dist/soundart-sketches/isoflow.js +0 -60
- package/dist/soundart-sketches/loomWeave.d.ts +0 -3
- package/dist/soundart-sketches/loomWeave.d.ts.map +0 -1
- package/dist/soundart-sketches/loomWeave.js +0 -59
- package/dist/soundart-sketches/noiseTerraces.d.ts +0 -3
- package/dist/soundart-sketches/noiseTerraces.d.ts.map +0 -1
- package/dist/soundart-sketches/noiseTerraces.js +0 -53
- package/dist/soundart-sketches/orb.d.ts +0 -3
- package/dist/soundart-sketches/orb.d.ts.map +0 -1
- package/dist/soundart-sketches/orb.js +0 -50
- package/dist/soundart-sketches/pixelGlyphs.d.ts +0 -3
- package/dist/soundart-sketches/pixelGlyphs.d.ts.map +0 -1
- package/dist/soundart-sketches/pixelGlyphs.js +0 -72
- package/dist/soundart-sketches/prismFlowFields.d.ts +0 -3
- package/dist/soundart-sketches/prismFlowFields.d.ts.map +0 -1
- package/dist/soundart-sketches/prismFlowFields.js +0 -51
- package/dist/soundart-sketches/radialBurst.d.ts +0 -3
- package/dist/soundart-sketches/radialBurst.d.ts.map +0 -1
- package/dist/soundart-sketches/radialBurst.js +0 -60
- package/dist/soundart-sketches/resonantSoundBodies.d.ts +0 -3
- package/dist/soundart-sketches/resonantSoundBodies.d.ts.map +0 -1
- package/dist/soundart-sketches/resonantSoundBodies.js +0 -89
- package/dist/soundart-sketches/rings.d.ts +0 -11
- package/dist/soundart-sketches/rings.d.ts.map +0 -1
- package/dist/soundart-sketches/rings.js +0 -89
- package/dist/soundart-sketches/squares.d.ts +0 -3
- package/dist/soundart-sketches/squares.d.ts.map +0 -1
- package/dist/soundart-sketches/squares.js +0 -52
- package/dist/soundart-sketches/waveStripes.d.ts +0 -3
- package/dist/soundart-sketches/waveStripes.d.ts.map +0 -1
- package/dist/soundart-sketches/waveStripes.js +0 -44
- package/dist/static-engine.d.ts +0 -20
- package/dist/static-engine.d.ts.map +0 -1
- package/dist/static-engine.js +0 -157
- package/dist/types.d.ts +0 -191
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,91 @@ All notable changes to @nexart/codemode-sdk will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.8.2] — 2026-01-24
|
|
8
|
+
|
|
9
|
+
### Changed — AI Agent Adoption Friction Reduction
|
|
10
|
+
|
|
11
|
+
**Non-Breaking, Documentation-Only Release**
|
|
12
|
+
|
|
13
|
+
This release addresses external review feedback (Grok/Lovable/Replit) about AI agent adoption friction. No runtime, API, or behavior changes. Protocol remains v1.2.0.
|
|
14
|
+
|
|
15
|
+
#### Agent Quickstart Example Added
|
|
16
|
+
- **New `examples/agent-quickstart.ts`** — Copy-paste ready reference for AI agents
|
|
17
|
+
- Uses ONLY `createRuntime()` (modern, agent-first API)
|
|
18
|
+
- No canvas, no p5, browser-safe
|
|
19
|
+
- Demonstrates: seed → runtime → deterministic ops → digest → verification
|
|
20
|
+
- Shows strict mode enforcement and error handling
|
|
21
|
+
|
|
22
|
+
#### Documentation Clarified — Entrypoint Selection
|
|
23
|
+
- **"Which API should I use?"** section added to README
|
|
24
|
+
- Decision table: `createRuntime()` vs `executeCodeMode()`
|
|
25
|
+
- Clear guidance: `createRuntime()` = DEFAULT, `executeCodeMode()` = legacy/node-only
|
|
26
|
+
- **"For AI coding agents"** section expanded with:
|
|
27
|
+
- Quick rules: always `createRuntime()`, never `Math.random()`, always `strict: true`
|
|
28
|
+
- Link to `examples/agent-quickstart.ts`
|
|
29
|
+
- Detailed strict mode explanation (why it exists, scoping, restoration)
|
|
30
|
+
|
|
31
|
+
#### Version Consistency Pass
|
|
32
|
+
- **New `version.ts`** — Single source of truth for SDK_VERSION, PROTOCOL_VERSION, PROTOCOL_PHASE
|
|
33
|
+
- All programmatic exports (runtime.ts, core-index.ts, entry/browser.ts) now import from version.ts
|
|
34
|
+
- Eliminates version drift between package.json, runtime exports, and documentation
|
|
35
|
+
- All documentation updated to reference version 1.8.2
|
|
36
|
+
- README, CHANGELOG, package.json all synchronized
|
|
37
|
+
|
|
38
|
+
#### Package Updates
|
|
39
|
+
- **Version**: 1.8.2
|
|
40
|
+
- **New script**: `npm run example:agent` — Run agent quickstart example
|
|
41
|
+
|
|
42
|
+
### Unchanged
|
|
43
|
+
|
|
44
|
+
- No changes to runtime behavior
|
|
45
|
+
- No changes to APIs or exports
|
|
46
|
+
- No changes to protocol version (remains v1.2.0)
|
|
47
|
+
- No changes to determinism guarantees
|
|
48
|
+
- No changes to strict mode enforcement
|
|
49
|
+
- Full backward compatibility with v1.8.1
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## [1.8.1] — 2026-01-24
|
|
54
|
+
|
|
55
|
+
### Changed — Documentation & Licensing Clarity
|
|
56
|
+
|
|
57
|
+
**Non-Breaking, Metadata-Only Release**
|
|
58
|
+
|
|
59
|
+
This release addresses external review feedback about documentation framing and licensing clarity. No runtime, API, or behavior changes.
|
|
60
|
+
|
|
61
|
+
#### Documentation Reframed
|
|
62
|
+
- **Removed app-specific framing** — SDK no longer positioned as "for Frontierra" or "for ByX"
|
|
63
|
+
- **Genre-based language** — Now describes use cases (generative art, games, simulations, research)
|
|
64
|
+
- **"Who this is for / Who this is not for"** section added for clarity
|
|
65
|
+
- **"Where this fits"** section explains architectural boundary
|
|
66
|
+
- **"Why not roll your own?"** section honestly addresses when to skip this SDK
|
|
67
|
+
- **"Used by"** section lists NexArt, ByX, Frontierra as examples (not defining use cases)
|
|
68
|
+
- **Removed "This SDK IS the protocol" language** — Now describes as "reference implementation"
|
|
69
|
+
|
|
70
|
+
#### Licensing Clarified
|
|
71
|
+
- **COMMERCIAL.md added** — Plain language licensing terms
|
|
72
|
+
- **Free for**: personal, experiments, research, open-source
|
|
73
|
+
- **Commercial production**: requires license
|
|
74
|
+
- **Contact**: licensing@nexart.xyz
|
|
75
|
+
- **No phase language, no future enforcement language**
|
|
76
|
+
|
|
77
|
+
#### Package Updates
|
|
78
|
+
- **Version**: 1.8.1
|
|
79
|
+
- **files**: Added COMMERCIAL.md
|
|
80
|
+
- **homepage**: Added to package.json
|
|
81
|
+
|
|
82
|
+
### Unchanged
|
|
83
|
+
|
|
84
|
+
- No changes to runtime behavior
|
|
85
|
+
- No changes to APIs or exports
|
|
86
|
+
- No changes to protocol version (remains v1.2.0)
|
|
87
|
+
- No changes to determinism guarantees
|
|
88
|
+
- Full backward compatibility with v1.8.0
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
7
92
|
## [1.8.0] — 2026-01-24
|
|
8
93
|
|
|
9
94
|
### Added — Agent-First Runtime Authority Layer
|
package/COMMERCIAL.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Commercial Licensing
|
|
2
|
+
|
|
3
|
+
## @nexart/codemode-sdk
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Free Use
|
|
8
|
+
|
|
9
|
+
You may use this SDK at no cost for:
|
|
10
|
+
|
|
11
|
+
- **Personal projects** — Learning, hobby work, portfolio pieces
|
|
12
|
+
- **Experiments and prototypes** — Proof of concepts, demos, hackathons
|
|
13
|
+
- **Research and education** — Academic work, teaching, scientific research
|
|
14
|
+
- **Open-source projects** — Projects with source code publicly available under an OSI-approved license
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Commercial Use
|
|
19
|
+
|
|
20
|
+
Commercial production deployments require a license.
|
|
21
|
+
|
|
22
|
+
**Commercial use includes:**
|
|
23
|
+
- Products or services that generate revenue
|
|
24
|
+
- Internal tools used in commercial operations
|
|
25
|
+
- SaaS applications
|
|
26
|
+
- Games or simulations sold or monetized
|
|
27
|
+
- Enterprise deployments
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Get a License
|
|
32
|
+
|
|
33
|
+
Contact: **licensing@artnames.io**
|
|
34
|
+
|
|
35
|
+
We offer flexible licensing options for teams and enterprises.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Questions?
|
|
40
|
+
|
|
41
|
+
If you're unsure whether your use case requires a license, reach out to licensing@artnames.io. We're happy to help.
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
NexArt Code Mode SDK — License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
See package.json for current version
|
|
4
4
|
Status: DRAFT — Enforcement Not Active
|
|
5
5
|
|
|
6
6
|
⸻
|
|
@@ -20,10 +20,10 @@ Future Commercial Licensing (Not Active)
|
|
|
20
20
|
NexArt intends to introduce a separate commercial license for specific categories of usage in a future release.
|
|
21
21
|
|
|
22
22
|
Planned commercial usage categories may include (non-exhaustive):
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
• Minting NFTs for sale
|
|
24
|
+
• Revenue-generating applications
|
|
25
|
+
• Products or services that charge fees
|
|
26
|
+
• Enterprise or business deployments
|
|
27
27
|
|
|
28
28
|
Enforcement is NOT active.
|
|
29
29
|
|