@nexart/codemode-sdk 1.8.2 → 1.8.3

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 CHANGED
@@ -4,6 +4,45 @@ All notable changes to @nexart/codemode-sdk will be documented in this file.
4
4
 
5
5
  ---
6
6
 
7
+ ## [1.8.3] — 2026-01-25
8
+
9
+ ### Changed — CLI v0.2 Remote Renderer + Version Bump
10
+
11
+ **Non-Breaking Release**
12
+
13
+ This release adds CLI v0.2 with remote canonical renderer support and ensures all version references are synchronized.
14
+
15
+ #### CLI v0.2 Features
16
+ - **Remote renderer support** — `nexart run` now calls canonical Node renderer by default
17
+ - **`--renderer` flag** — Switch between `remote` (default) and `local` (placeholder)
18
+ - **`--endpoint` flag** — Custom renderer endpoint URL
19
+ - **`--include-code` flag** — Embed source code in snapshot for standalone verify/replay
20
+ - **`NEXART_RENDERER_ENDPOINT`** — Environment variable for default endpoint
21
+ - **Real PNG output** — When remote renderer available, produces actual rendered images
22
+
23
+ #### Snapshot v1 Updates
24
+ - `outputHash` = SHA-256 of PNG bytes (locked)
25
+ - `runtimeHash` sourced from renderer response when using remote mode
26
+ - Optional `code` field when `--include-code` is used
27
+
28
+ #### Documentation Updates
29
+ - Updated `docs/snapshot-v1.md` with runtimeHash sourcing and code embedding
30
+ - CLI README now documents remote renderer as default
31
+ - All version references updated from 1.8.2 to 1.8.3
32
+
33
+ #### Package Updates
34
+ - **SDK Version**: 1.8.3
35
+ - **CLI Version**: 0.2.0
36
+
37
+ ### Unchanged
38
+
39
+ - No changes to protocol semantics (v1.2.0)
40
+ - No changes to runtime APIs
41
+ - No changes to determinism guarantees
42
+ - Full backward compatibility with v1.8.2
43
+
44
+ ---
45
+
7
46
  ## [1.8.2] — 2026-01-24
8
47
 
9
48
  ### Changed — AI Agent Adoption Friction Reduction
@@ -71,7 +110,7 @@ This release addresses external review feedback about documentation framing and
71
110
  - **COMMERCIAL.md added** — Plain language licensing terms
72
111
  - **Free for**: personal, experiments, research, open-source
73
112
  - **Commercial production**: requires license
74
- - **Contact**: licensing@nexart.xyz
113
+ - **Contact**: contact@artnames.io
75
114
  - **No phase language, no future enforcement language**
76
115
 
77
116
  #### Package Updates
package/COMMERCIAL.md CHANGED
@@ -1,41 +1,43 @@
1
- # Commercial Licensing
1
+ # Commercial Use
2
2
 
3
3
  ## @nexart/codemode-sdk
4
4
 
5
5
  ---
6
6
 
7
- ## Free Use
7
+ ## License: MIT (Free for All Use)
8
8
 
9
- You may use this SDK at no cost for:
9
+ This SDK is released under the **MIT License**.
10
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
11
+ You may use it for **any purpose**, including:
12
+ - Personal projects
13
+ - Commercial products
14
+ - Revenue-generating applications
27
15
  - Enterprise deployments
16
+ - NFT minting
17
+ - SaaS applications
18
+
19
+ **No license key required. No usage tracking. No restrictions.**
28
20
 
29
21
  ---
30
22
 
31
- ## Get a License
23
+ ## How NexArt Monetizes
24
+
25
+ NexArt follows a "monetize edges, not core" model:
32
26
 
33
- Contact: **licensing@artnames.io**
27
+ | Component | Cost |
28
+ |-----------|------|
29
+ | SDK | Free (MIT) |
30
+ | CLI | Free (MIT) |
31
+ | Local run/replay/verify | Free |
32
+ | **Hosted attestation** | Paid |
33
+ | **Cloud retention** | Paid |
34
+ | **SLA guarantees** | Paid |
35
+ | **Compliance tooling** | Paid |
34
36
 
35
- We offer flexible licensing options for teams and enterprises.
37
+ See [Core vs Edges](./docs/core-vs-edges.md) for the full breakdown.
36
38
 
37
39
  ---
38
40
 
39
41
  ## Questions?
40
42
 
41
- If you're unsure whether your use case requires a license, reach out to licensing@artnames.io. We're happy to help.
43
+ Contact: **contact@artnames.io**
package/LICENSE.md CHANGED
@@ -1,44 +1,9 @@
1
- NexArt Code Mode SDK — License
2
-
3
- See package.json for current version
4
- Status: DRAFT — Enforcement Not Active
5
-
6
-
7
-
8
- License Status
9
-
10
- The NexArt Code Mode SDK is currently released under the MIT License.
11
-
12
- At this time, all usage — including commercial usage — is permitted under the MIT License.
13
-
14
- This document also serves as advance notice of a future commercial licensing model that may apply to certain uses of the NexArt Protocol.
15
-
16
-
17
-
18
- Future Commercial Licensing (Not Active)
19
-
20
- NexArt intends to introduce a separate commercial license for specific categories of usage in a future release.
21
-
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
27
-
28
- Enforcement is NOT active.
29
-
30
- No license keys, validation, usage tracking, or commercial restrictions are currently implemented.
31
-
32
- Until enforcement is introduced in a future version, all usage remains governed solely by the MIT License below.
33
-
34
-
35
-
36
- MIT License
1
+ # MIT License
37
2
 
38
3
  Copyright (c) 2024–2026 NexArt
39
4
 
40
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
41
- of this software and associated documentation files (the Software), to deal
6
+ of this software and associated documentation files (the "Software"), to deal
42
7
  in the Software without restriction, including without limitation the rights
43
8
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
44
9
  copies of the Software, and to permit persons to whom the Software is
@@ -47,7 +12,7 @@ furnished to do so, subject to the following conditions:
47
12
  The above copyright notice and this permission notice shall be included in all
48
13
  copies or substantial portions of the Software.
49
14
 
50
- THE SOFTWARE IS PROVIDED AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@@ -55,8 +20,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
56
21
  SOFTWARE.
57
22
 
58
-
23
+ ---
24
+
25
+ ## Summary
26
+
27
+ This SDK is **MIT licensed** — free for all use, including commercial.
59
28
 
60
- Contact
29
+ NexArt monetizes optional hosted services (attestation, verification, compliance), not the SDK.
61
30
 
62
- For future commercial licensing inquiries: arrotu@artnames.io
31
+ See [Core vs Edges](./docs/core-vs-edges.md) for details.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @nexart/codemode-sdk
2
2
 
3
- **Version: 1.8.2 (Protocol v1.2.0)**
3
+ **Version: 1.8.3 (Protocol v1.2.0)**
4
4
 
5
5
  A deterministic execution runtime for reproducible, verifiable computation.
6
6
 
@@ -236,7 +236,7 @@ These are examples — the SDK is designed for any system requiring deterministi
236
236
  |----------|-------|
237
237
  | Protocol Version | v1.2.0 |
238
238
  | Status | **STABLE** |
239
- | SDK Version | 1.8.2 |
239
+ | SDK Version | 1.8.3 |
240
240
 
241
241
  **Core protocol surface is frozen. Breaking changes require v2.0.0.**
242
242
 
@@ -450,6 +450,16 @@ See [CHANGELOG.md](./CHANGELOG.md) for version history.
450
450
 
451
451
  ---
452
452
 
453
+ ## License
454
+
455
+ **MIT License** — Free for all use, including commercial.
456
+
457
+ NexArt monetizes optional hosted services (attestation, verification, compliance), not the SDK.
458
+
459
+ See [Core vs Edges](./docs/core-vs-edges.md) for details on what's free vs paid.
460
+
461
+ ---
462
+
453
463
  ## About
454
464
 
455
465
  This SDK is a reference implementation of a deterministic execution protocol designed for replay, verification, and long-term stability.
@@ -17,7 +17,7 @@ export { createEngine, } from './engine';
17
17
  /**
18
18
  * SDK Identity — imported from version.ts (single source of truth)
19
19
  */
20
- export declare const SDK_VERSION = "1.8.2";
20
+ export declare const SDK_VERSION = "1.8.3";
21
21
  export declare const SDK_NAME = "@nexart/codemode-sdk";
22
22
  export { PROTOCOL_VERSION, PROTOCOL_PHASE };
23
23
  //# sourceMappingURL=core-index.d.ts.map
@@ -28,7 +28,7 @@ export { createRuntime, NexArtRuntime, RUNTIME_VERSION, } from '../runtime';
28
28
  export type { RuntimeOptions, RuntimeState, NexArtRuntime as NexArtRuntimeType, } from '../runtime';
29
29
  export { renderSoundArtViaCodeMode, canRenderViaCodeMode, getCodeModeAvailableStyles, } from '../soundart-engine';
30
30
  export type { TweakParams, SoundArtEngineConfig, SoundArtRenderOptions, SoundArtRenderResult, SoundArtMetadata, SoundSnapshot, SoundFeatures, SoundArtSketchName, } from '../soundart-engine';
31
- export declare const SDK_VERSION = "1.8.2";
31
+ export declare const SDK_VERSION = "1.8.3";
32
32
  export declare const SDK_NAME = "@nexart/codemode-sdk";
33
33
  export declare const SDK_ENTRY = "browser";
34
34
  /**
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * NexArt Code Mode Runtime SDK - p5-like Runtime
3
+ * See version.ts for SDK/Protocol version (single source of truth)
3
4
  *
4
5
  * ╔══════════════════════════════════════════════════════════════════════════╗
5
- * ║ CODE MODE PROTOCOL v1.2.0 (Phase 3) STABLE
6
+ * ║ CODE MODE PROTOCOL STABLE (see version.ts for version)
6
7
  * ║ ║
7
8
  * ║ Status: HARD PROTOCOL ENFORCEMENT ║
8
9
  * ║ This is the stable, canonical execution surface. ║
@@ -30,7 +31,7 @@
30
31
  import type { TimeVariables } from './types';
31
32
  /**
32
33
  * Code Mode Protocol Version
33
- * This constant defines the locked protocol version.
34
+ * Imports from version.ts (single source of truth).
34
35
  * Changes to the execution surface require a version bump.
35
36
  */
36
37
  export declare const CODE_MODE_PROTOCOL_VERSION = "1.2.0";
@@ -1 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BAAuB,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAE3E"}
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * NexArt Code Mode Runtime SDK - p5-like Runtime
3
+ * See version.ts for SDK/Protocol version (single source of truth)
3
4
  *
4
5
  * ╔══════════════════════════════════════════════════════════════════════════╗
5
- * ║ CODE MODE PROTOCOL v1.2.0 (Phase 3) STABLE
6
+ * ║ CODE MODE PROTOCOL STABLE (see version.ts for version)
6
7
  * ║ ║
7
8
  * ║ Status: HARD PROTOCOL ENFORCEMENT ║
8
9
  * ║ This is the stable, canonical execution surface. ║
@@ -27,13 +28,14 @@
27
28
  * ║ ⚠️ Future changes require Phase 2+ ║
28
29
  * ╚══════════════════════════════════════════════════════════════════════════╝
29
30
  */
31
+ import { PROTOCOL_VERSION, PROTOCOL_PHASE } from './version';
30
32
  /**
31
33
  * Code Mode Protocol Version
32
- * This constant defines the locked protocol version.
34
+ * Imports from version.ts (single source of truth).
33
35
  * Changes to the execution surface require a version bump.
34
36
  */
35
- export const CODE_MODE_PROTOCOL_VERSION = '1.2.0';
36
- export const CODE_MODE_PROTOCOL_PHASE = 3;
37
+ export const CODE_MODE_PROTOCOL_VERSION = PROTOCOL_VERSION;
38
+ export const CODE_MODE_PROTOCOL_PHASE = PROTOCOL_PHASE;
37
39
  export const CODE_MODE_ENFORCEMENT = 'HARD';
38
40
  /**
39
41
  * Create a seeded random number generator (Mulberry32)
@@ -18,7 +18,7 @@
18
18
  * ║ BROWSER-SAFE: No Node.js dependencies. Works in Vite/Next/React. ║
19
19
  * ╚══════════════════════════════════════════════════════════════════════════╝
20
20
  */
21
- export declare const RUNTIME_VERSION = "1.8.2";
21
+ export declare const RUNTIME_VERSION = "1.8.3";
22
22
  export interface RuntimeOptions {
23
23
  seed: string | number;
24
24
  vars?: number[];
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * NexArt Code Mode Runtime SDK - Types
3
- * Version: 1.6.0 (Protocol v1.2.0)
3
+ * See version.ts for SDK version (single source of truth)
4
4
  *
5
5
  * Type definitions for the Code Mode runtime engine.
6
6
  * This is the canonical type surface for @nexart/codemode-sdk.
@@ -8,6 +8,7 @@
8
8
  /**
9
9
  * Protocol Constants
10
10
  * These define the locked protocol identity.
11
+ * Imports from version.ts (single source of truth).
11
12
  */
12
13
  export declare const PROTOCOL_IDENTITY: {
13
14
  readonly protocol: "nexart";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GACpB;IACE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;CACtB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEN,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,E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M,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE;QACJ,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;KAChC,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,19 +1,21 @@
1
1
  /**
2
2
  * NexArt Code Mode Runtime SDK - Types
3
- * Version: 1.6.0 (Protocol v1.2.0)
3
+ * See version.ts for SDK version (single source of truth)
4
4
  *
5
5
  * Type definitions for the Code Mode runtime engine.
6
6
  * This is the canonical type surface for @nexart/codemode-sdk.
7
7
  */
8
+ import { PROTOCOL_VERSION, PROTOCOL_PHASE } from './version';
8
9
  /**
9
10
  * Protocol Constants
10
11
  * These define the locked protocol identity.
12
+ * Imports from version.ts (single source of truth).
11
13
  */
12
14
  export const PROTOCOL_IDENTITY = {
13
15
  protocol: 'nexart',
14
16
  engine: 'codemode',
15
- protocolVersion: '1.2.0',
16
- phase: 3,
17
+ protocolVersion: PROTOCOL_VERSION,
18
+ phase: PROTOCOL_PHASE,
17
19
  deterministic: true,
18
20
  };
19
21
  /**
@@ -8,11 +8,11 @@
8
8
  * See package.json for the canonical npm version.
9
9
  */
10
10
  /** SDK version - must match package.json version */
11
- export declare const SDK_VERSION = "1.8.2";
11
+ export declare const SDK_VERSION = "1.8.3";
12
12
  /** Protocol version - defines runtime semantics and determinism guarantees */
13
13
  export declare const PROTOCOL_VERSION = "1.2.0";
14
14
  /** Protocol phase - phase 3 = stable, production-ready */
15
15
  export declare const PROTOCOL_PHASE = 3;
16
16
  /** Combined version string for display */
17
- export declare const VERSION_STRING = "v1.8.2 (Protocol v1.2.0)";
17
+ export declare const VERSION_STRING = "v1.8.3 (Protocol v1.2.0)";
18
18
  //# sourceMappingURL=version.d.ts.map
@@ -8,7 +8,7 @@
8
8
  * See package.json for the canonical npm version.
9
9
  */
10
10
  /** SDK version - must match package.json version */
11
- export const SDK_VERSION = '1.8.2';
11
+ export const SDK_VERSION = '1.8.3';
12
12
  /** Protocol version - defines runtime semantics and determinism guarantees */
13
13
  export const PROTOCOL_VERSION = '1.2.0';
14
14
  /** Protocol phase - phase 3 = stable, production-ready */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @nexart/codemode-sdk — Preflight Release Tests
3
3
  *
4
- * Extended verification tests for v1.8.2 release validation.
4
+ * Extended verification tests for v1.8.3 release validation.
5
5
  * Tests strict mode restoration, error messages, and cross-env digest parity.
6
6
  *
7
7
  * Run: npx tsx examples/preflight-test.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexart/codemode-sdk",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "NexArt Code Mode SDK - Deterministic, reproducible, verifiable generative art runtime. Agent-first design for AI coding assistants.",
5
5
  "type": "module",
6
6
  "main": "./dist/entry/browser.js",