@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.
Files changed (138) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/COMMERCIAL.md +41 -0
  3. package/LICENSE.md +5 -5
  4. package/README.md +250 -700
  5. package/dist/sdk/codemode/core-index.d.ts +6 -4
  6. package/dist/sdk/codemode/core-index.d.ts.map +1 -1
  7. package/dist/sdk/codemode/core-index.js +6 -4
  8. package/dist/{entry → sdk/codemode/entry}/browser.d.ts +5 -2
  9. package/dist/sdk/codemode/entry/browser.d.ts.map +1 -0
  10. package/dist/{entry → sdk/codemode/entry}/browser.js +10 -4
  11. package/dist/{entry → sdk/codemode/entry}/node.d.ts +2 -1
  12. package/dist/sdk/codemode/entry/node.d.ts.map +1 -0
  13. package/dist/{entry → sdk/codemode/entry}/node.js +2 -1
  14. package/dist/{runtime.d.ts → sdk/codemode/runtime.d.ts} +2 -2
  15. package/dist/sdk/codemode/runtime.d.ts.map +1 -0
  16. package/dist/{runtime.js → sdk/codemode/runtime.js} +3 -2
  17. package/dist/sdk/codemode/static-engine.d.ts.map +1 -1
  18. package/dist/sdk/codemode/static-engine.js +24 -11
  19. package/dist/sdk/codemode/version.d.ts +18 -0
  20. package/dist/sdk/codemode/version.d.ts.map +1 -0
  21. package/dist/sdk/codemode/version.js +17 -0
  22. package/examples/agent-quickstart.ts +159 -0
  23. package/examples/preflight-test.ts +1 -1
  24. package/package.json +4 -2
  25. package/dist/builder-manifest.d.ts +0 -79
  26. package/dist/builder-manifest.d.ts.map +0 -1
  27. package/dist/builder-manifest.js +0 -97
  28. package/dist/core-index.d.ts +0 -21
  29. package/dist/core-index.d.ts.map +0 -1
  30. package/dist/core-index.js +0 -26
  31. package/dist/engine.d.ts +0 -24
  32. package/dist/engine.d.ts.map +0 -1
  33. package/dist/engine.js +0 -67
  34. package/dist/entry/browser.d.ts.map +0 -1
  35. package/dist/entry/node.d.ts.map +0 -1
  36. package/dist/execute.d.ts +0 -46
  37. package/dist/execute.d.ts.map +0 -1
  38. package/dist/execute.js +0 -283
  39. package/dist/execution-sandbox.d.ts +0 -107
  40. package/dist/execution-sandbox.d.ts.map +0 -1
  41. package/dist/execution-sandbox.js +0 -207
  42. package/dist/index.d.ts +0 -31
  43. package/dist/index.d.ts.map +0 -1
  44. package/dist/index.js +0 -63
  45. package/dist/loop-engine.d.ts +0 -22
  46. package/dist/loop-engine.d.ts.map +0 -1
  47. package/dist/loop-engine.js +0 -229
  48. package/dist/noise-bridge.d.ts +0 -44
  49. package/dist/noise-bridge.d.ts.map +0 -1
  50. package/dist/noise-bridge.js +0 -68
  51. package/dist/noise-engine.d.ts +0 -74
  52. package/dist/noise-engine.d.ts.map +0 -1
  53. package/dist/noise-engine.js +0 -132
  54. package/dist/noise-sketches/fractalNoise.d.ts +0 -11
  55. package/dist/noise-sketches/fractalNoise.d.ts.map +0 -1
  56. package/dist/noise-sketches/fractalNoise.js +0 -121
  57. package/dist/noise-sketches/index.d.ts +0 -21
  58. package/dist/noise-sketches/index.d.ts.map +0 -1
  59. package/dist/noise-sketches/index.js +0 -28
  60. package/dist/p5-runtime.d.ts +0 -75
  61. package/dist/p5-runtime.d.ts.map +0 -1
  62. package/dist/p5-runtime.js +0 -1031
  63. package/dist/runtime.d.ts.map +0 -1
  64. package/dist/sdk/codemode/index.d.ts +0 -31
  65. package/dist/sdk/codemode/index.d.ts.map +0 -1
  66. package/dist/sdk/codemode/index.js +0 -63
  67. package/dist/sdk/codemode/noise-bridge.d.ts +0 -44
  68. package/dist/sdk/codemode/noise-bridge.d.ts.map +0 -1
  69. package/dist/sdk/codemode/noise-bridge.js +0 -68
  70. package/dist/sdk/codemode/noise-engine.d.ts +0 -74
  71. package/dist/sdk/codemode/noise-engine.d.ts.map +0 -1
  72. package/dist/sdk/codemode/noise-engine.js +0 -132
  73. package/dist/sdk/codemode/noise-sketches/fractalNoise.d.ts +0 -11
  74. package/dist/sdk/codemode/noise-sketches/fractalNoise.d.ts.map +0 -1
  75. package/dist/sdk/codemode/noise-sketches/fractalNoise.js +0 -121
  76. package/dist/sdk/codemode/noise-sketches/index.d.ts +0 -21
  77. package/dist/sdk/codemode/noise-sketches/index.d.ts.map +0 -1
  78. package/dist/sdk/codemode/noise-sketches/index.js +0 -28
  79. package/dist/shared/noiseSnapshot.d.ts +0 -59
  80. package/dist/shared/noiseSnapshot.d.ts.map +0 -1
  81. package/dist/shared/noiseSnapshot.js +0 -72
  82. package/dist/sound-bridge.d.ts +0 -89
  83. package/dist/sound-bridge.d.ts.map +0 -1
  84. package/dist/sound-bridge.js +0 -128
  85. package/dist/soundart-engine.d.ts +0 -87
  86. package/dist/soundart-engine.d.ts.map +0 -1
  87. package/dist/soundart-engine.js +0 -173
  88. package/dist/soundart-sketches/chladniBloom.d.ts +0 -3
  89. package/dist/soundart-sketches/chladniBloom.d.ts.map +0 -1
  90. package/dist/soundart-sketches/chladniBloom.js +0 -53
  91. package/dist/soundart-sketches/dualVortex.d.ts +0 -3
  92. package/dist/soundart-sketches/dualVortex.d.ts.map +0 -1
  93. package/dist/soundart-sketches/dualVortex.js +0 -67
  94. package/dist/soundart-sketches/geometryIllusion.d.ts +0 -3
  95. package/dist/soundart-sketches/geometryIllusion.d.ts.map +0 -1
  96. package/dist/soundart-sketches/geometryIllusion.js +0 -89
  97. package/dist/soundart-sketches/index.d.ts +0 -39
  98. package/dist/soundart-sketches/index.d.ts.map +0 -1
  99. package/dist/soundart-sketches/index.js +0 -72
  100. package/dist/soundart-sketches/isoflow.d.ts +0 -3
  101. package/dist/soundart-sketches/isoflow.d.ts.map +0 -1
  102. package/dist/soundart-sketches/isoflow.js +0 -60
  103. package/dist/soundart-sketches/loomWeave.d.ts +0 -3
  104. package/dist/soundart-sketches/loomWeave.d.ts.map +0 -1
  105. package/dist/soundart-sketches/loomWeave.js +0 -59
  106. package/dist/soundart-sketches/noiseTerraces.d.ts +0 -3
  107. package/dist/soundart-sketches/noiseTerraces.d.ts.map +0 -1
  108. package/dist/soundart-sketches/noiseTerraces.js +0 -53
  109. package/dist/soundart-sketches/orb.d.ts +0 -3
  110. package/dist/soundart-sketches/orb.d.ts.map +0 -1
  111. package/dist/soundart-sketches/orb.js +0 -50
  112. package/dist/soundart-sketches/pixelGlyphs.d.ts +0 -3
  113. package/dist/soundart-sketches/pixelGlyphs.d.ts.map +0 -1
  114. package/dist/soundart-sketches/pixelGlyphs.js +0 -72
  115. package/dist/soundart-sketches/prismFlowFields.d.ts +0 -3
  116. package/dist/soundart-sketches/prismFlowFields.d.ts.map +0 -1
  117. package/dist/soundart-sketches/prismFlowFields.js +0 -51
  118. package/dist/soundart-sketches/radialBurst.d.ts +0 -3
  119. package/dist/soundart-sketches/radialBurst.d.ts.map +0 -1
  120. package/dist/soundart-sketches/radialBurst.js +0 -60
  121. package/dist/soundart-sketches/resonantSoundBodies.d.ts +0 -3
  122. package/dist/soundart-sketches/resonantSoundBodies.d.ts.map +0 -1
  123. package/dist/soundart-sketches/resonantSoundBodies.js +0 -89
  124. package/dist/soundart-sketches/rings.d.ts +0 -11
  125. package/dist/soundart-sketches/rings.d.ts.map +0 -1
  126. package/dist/soundart-sketches/rings.js +0 -89
  127. package/dist/soundart-sketches/squares.d.ts +0 -3
  128. package/dist/soundart-sketches/squares.d.ts.map +0 -1
  129. package/dist/soundart-sketches/squares.js +0 -52
  130. package/dist/soundart-sketches/waveStripes.d.ts +0 -3
  131. package/dist/soundart-sketches/waveStripes.d.ts.map +0 -1
  132. package/dist/soundart-sketches/waveStripes.js +0 -44
  133. package/dist/static-engine.d.ts +0 -20
  134. package/dist/static-engine.d.ts.map +0 -1
  135. package/dist/static-engine.js +0 -157
  136. package/dist/types.d.ts +0 -191
  137. package/dist/types.d.ts.map +0 -1
  138. 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
- Version: 1.6.0
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
- Minting NFTs for sale
24
- Revenue-generating applications
25
- Products or services that charge fees
26
- Enterprise or business deployments
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