@nm-lang/cli 0.0.0-stage → 0.2.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.
@@ -0,0 +1,109 @@
1
+ export type NMCapabilityStatus = "stable" | "preview" | "experimental";
2
+ export declare const NM_LANGUAGE_PREVIEW_READINESS_FORMAT: "nm-language-preview-readiness";
3
+ export declare const NM_LANGUAGE_PREVIEW_READINESS_VERSION: "0.1";
4
+ export type NMLanguagePreviewRequirementId = "stable-core" | "workspace-product-spine" | "tooling-product-spine" | "transparent-capability-separation";
5
+ export type NMLanguagePreviewRequirement = {
6
+ id: NMLanguagePreviewRequirementId;
7
+ passed: boolean;
8
+ evidence: readonly string[];
9
+ };
10
+ export type NMLanguagePreviewReadiness = {
11
+ format: typeof NM_LANGUAGE_PREVIEW_READINESS_FORMAT;
12
+ version: typeof NM_LANGUAGE_PREVIEW_READINESS_VERSION;
13
+ ready: boolean;
14
+ targetStatus: "preview";
15
+ requirements: readonly NMLanguagePreviewRequirement[];
16
+ experimentalCapabilityPolicy: "explicit-opt-in-and-independently-versioned";
17
+ stableCorePolicy: "parser-and-statevector-remain-stable";
18
+ };
19
+ export type NMLanguageReleaseChange = {
20
+ languageVersion: string;
21
+ date: string;
22
+ from: NMCapabilityStatus;
23
+ to: NMCapabilityStatus;
24
+ breaking: boolean;
25
+ summary: {
26
+ en: string;
27
+ tr: string;
28
+ };
29
+ };
30
+ export declare const nmVersionManifest: {
31
+ readonly languageVersion: "0.2.0";
32
+ readonly packageVersion: "0.2.0";
33
+ readonly irVersion: "0.1";
34
+ readonly qasm3SidecarVersion: "0.3";
35
+ readonly learningPackageVersion: "0.1";
36
+ readonly authoringBundleVersion: "0.1";
37
+ readonly workspaceManifestVersion: "0.1";
38
+ readonly workspaceSnapshotVersion: "0.1";
39
+ readonly stability: NMCapabilityStatus;
40
+ readonly capabilities: {
41
+ readonly parser: "stable";
42
+ readonly statevectorRuntime: "stable";
43
+ readonly stabilizerRuntime: "preview";
44
+ readonly sourcePreservingFormatter: "preview";
45
+ readonly turkishSourceSurface: "preview";
46
+ readonly languageServer: "preview";
47
+ readonly multiFileWorkspace: "preview";
48
+ readonly workspaceSnapshots: "preview";
49
+ readonly targetNativeLowering: "preview";
50
+ readonly calibratedPlacement: "preview";
51
+ readonly targetScheduling: "preview";
52
+ readonly quantumJobApi: "preview";
53
+ readonly cli: "preview";
54
+ readonly verifiedCopilot: "experimental";
55
+ readonly verifiedTutor: "experimental";
56
+ readonly learningPackages: "preview";
57
+ readonly qasm3Export: "preview";
58
+ readonly strictQasm3Carrier: "preview";
59
+ readonly hardwareExecution: "experimental";
60
+ readonly trainBlock: "preview";
61
+ readonly adjointGradients: "preview";
62
+ readonly qmlLosses: "preview";
63
+ readonly spsaOptimizer: "preview";
64
+ readonly extendedEncodings: "preview";
65
+ readonly embeddedQmlDatasets: "preview";
66
+ readonly mlStdLibrary: "preview";
67
+ readonly quantumKernels: "preview";
68
+ readonly qaoaRuntime: "preview";
69
+ readonly qngOptimizer: "preview";
70
+ readonly trainingStudio: "preview";
71
+ readonly trainabilityDiagnostics: "preview";
72
+ readonly modelPackages: "preview";
73
+ readonly qmlCopilot: "preview";
74
+ readonly pennylaneExport: "preview";
75
+ readonly mcpServer: "preview";
76
+ readonly sourceDebugger: "preview";
77
+ readonly experimentRecords: "preview";
78
+ readonly localWorkspaceStore: "preview";
79
+ readonly qmlBenchmarks: "preview";
80
+ readonly experimentHistory: "preview";
81
+ readonly qmlTrainingControls: "experimental";
82
+ readonly qmlTrainingCheckpoints: "experimental";
83
+ readonly typedClassicalValues: "experimental";
84
+ readonly targetCapabilityConstraints: "experimental";
85
+ readonly functionResults: "experimental";
86
+ readonly moduleVisibility: "experimental";
87
+ readonly exactImports: "experimental";
88
+ readonly propertyAssertions: "experimental";
89
+ readonly genericOracles: "experimental";
90
+ readonly genericCircuits: "experimental";
91
+ readonly qecExperiments: "experimental";
92
+ readonly composedNoise: "experimental";
93
+ readonly feedForward: "experimental";
94
+ readonly typedCollection: "experimental";
95
+ readonly comptimeConst: "experimental";
96
+ readonly classicalFunctions: "experimental";
97
+ readonly parameterGroups: "experimental";
98
+ readonly computeApply: "experimental";
99
+ };
100
+ };
101
+ export type NMVersionManifest = typeof nmVersionManifest;
102
+ export type NMLanguagePreviewCapabilityManifest = {
103
+ capabilities: {
104
+ [K in keyof NMVersionManifest["capabilities"]]: NMCapabilityStatus;
105
+ };
106
+ };
107
+ export declare function evaluateNMLanguagePreviewReadiness(manifest?: NMLanguagePreviewCapabilityManifest): NMLanguagePreviewReadiness;
108
+ export declare const nmLanguagePreviewReadiness: NMLanguagePreviewReadiness;
109
+ export declare const nmLanguageReleaseChangelog: readonly NMLanguageReleaseChange[];
@@ -0,0 +1,156 @@
1
+ export const NM_LANGUAGE_PREVIEW_READINESS_FORMAT = "nm-language-preview-readiness";
2
+ export const NM_LANGUAGE_PREVIEW_READINESS_VERSION = "0.1";
3
+ export const nmVersionManifest = {
4
+ languageVersion: "0.2.0",
5
+ packageVersion: "0.2.0",
6
+ irVersion: "0.1",
7
+ qasm3SidecarVersion: "0.3",
8
+ learningPackageVersion: "0.1",
9
+ authoringBundleVersion: "0.1",
10
+ workspaceManifestVersion: "0.1",
11
+ workspaceSnapshotVersion: "0.1",
12
+ stability: "preview",
13
+ capabilities: {
14
+ parser: "stable",
15
+ statevectorRuntime: "stable",
16
+ stabilizerRuntime: "preview",
17
+ sourcePreservingFormatter: "preview",
18
+ turkishSourceSurface: "preview",
19
+ languageServer: "preview",
20
+ multiFileWorkspace: "preview",
21
+ workspaceSnapshots: "preview",
22
+ targetNativeLowering: "preview",
23
+ calibratedPlacement: "preview",
24
+ targetScheduling: "preview",
25
+ quantumJobApi: "preview",
26
+ cli: "preview",
27
+ verifiedCopilot: "experimental",
28
+ verifiedTutor: "experimental",
29
+ learningPackages: "preview",
30
+ qasm3Export: "preview",
31
+ strictQasm3Carrier: "preview",
32
+ hardwareExecution: "experimental",
33
+ trainBlock: "preview",
34
+ adjointGradients: "preview",
35
+ qmlLosses: "preview",
36
+ spsaOptimizer: "preview",
37
+ extendedEncodings: "preview",
38
+ embeddedQmlDatasets: "preview",
39
+ mlStdLibrary: "preview",
40
+ quantumKernels: "preview",
41
+ qaoaRuntime: "preview",
42
+ qngOptimizer: "preview",
43
+ trainingStudio: "preview",
44
+ trainabilityDiagnostics: "preview",
45
+ modelPackages: "preview",
46
+ qmlCopilot: "preview",
47
+ pennylaneExport: "preview",
48
+ mcpServer: "preview",
49
+ sourceDebugger: "preview",
50
+ experimentRecords: "preview",
51
+ localWorkspaceStore: "preview",
52
+ qmlBenchmarks: "preview",
53
+ experimentHistory: "preview",
54
+ qmlTrainingControls: "experimental",
55
+ qmlTrainingCheckpoints: "experimental",
56
+ typedClassicalValues: "experimental",
57
+ targetCapabilityConstraints: "experimental",
58
+ functionResults: "experimental",
59
+ moduleVisibility: "experimental",
60
+ exactImports: "experimental",
61
+ propertyAssertions: "experimental",
62
+ genericOracles: "experimental",
63
+ genericCircuits: "experimental",
64
+ qecExperiments: "experimental",
65
+ composedNoise: "experimental",
66
+ feedForward: "experimental",
67
+ typedCollection: "experimental",
68
+ comptimeConst: "experimental",
69
+ classicalFunctions: "experimental",
70
+ parameterGroups: "experimental",
71
+ computeApply: "experimental",
72
+ },
73
+ };
74
+ export function evaluateNMLanguagePreviewReadiness(manifest = nmVersionManifest) {
75
+ const capabilities = manifest.capabilities;
76
+ const productStatus = (id) => capabilities[id] === "stable" || capabilities[id] === "preview";
77
+ const statuses = Object.values(capabilities);
78
+ const requirements = [
79
+ {
80
+ id: "stable-core",
81
+ passed: capabilities.parser === "stable" &&
82
+ capabilities.statevectorRuntime === "stable",
83
+ evidence: [
84
+ "tests/nm-parser.spec.ts",
85
+ "tests/nm-runtime.spec.ts",
86
+ "tests/nm-toolchain.spec.ts",
87
+ ],
88
+ },
89
+ {
90
+ id: "workspace-product-spine",
91
+ passed: productStatus("multiFileWorkspace") &&
92
+ productStatus("workspaceSnapshots") &&
93
+ productStatus("localWorkspaceStore"),
94
+ evidence: [
95
+ "tests/nm-workspace.spec.ts",
96
+ "tests/nm-workspace-snapshot-conformance.spec.ts",
97
+ "tests/nm-workspace-store.spec.ts",
98
+ "tests/workspace-snapshot-e2e.spec.ts",
99
+ ],
100
+ },
101
+ {
102
+ id: "tooling-product-spine",
103
+ passed: productStatus("cli") &&
104
+ productStatus("languageServer") &&
105
+ productStatus("sourcePreservingFormatter"),
106
+ evidence: [
107
+ "tests/nm-cli.spec.ts",
108
+ "tests/nm-language-server.spec.ts",
109
+ "tests/nm-source-formatter-surface-conformance.spec.ts",
110
+ ],
111
+ },
112
+ {
113
+ id: "transparent-capability-separation",
114
+ passed: statuses.every((status) => ["stable", "preview", "experimental"].includes(status)) && statuses.includes("experimental"),
115
+ evidence: [
116
+ "app/[locale]/docs/nm-language/CapabilityMatrix.tsx",
117
+ "tests/nm-capability-stability.spec.ts",
118
+ "tests/schema-route.spec.ts",
119
+ ],
120
+ },
121
+ ];
122
+ return {
123
+ format: NM_LANGUAGE_PREVIEW_READINESS_FORMAT,
124
+ version: NM_LANGUAGE_PREVIEW_READINESS_VERSION,
125
+ ready: requirements.every(({ passed }) => passed),
126
+ targetStatus: "preview",
127
+ requirements,
128
+ experimentalCapabilityPolicy: "explicit-opt-in-and-independently-versioned",
129
+ stableCorePolicy: "parser-and-statevector-remain-stable",
130
+ };
131
+ }
132
+ export const nmLanguagePreviewReadiness = evaluateNMLanguagePreviewReadiness();
133
+ export const nmLanguageReleaseChangelog = [
134
+ {
135
+ languageVersion: "0.2.0",
136
+ date: "2026-09-26",
137
+ from: "preview",
138
+ to: "preview",
139
+ breaking: false,
140
+ summary: {
141
+ en: "Coordinated 0.2.0 preview for the expanded language, numerical library, training workflows and toolchain. New sessions use the default language profile; saved feature choices and supported 0.1.0 artifacts remain readable. Capability statuses and artifact format versions are unchanged.",
142
+ tr: "Genişletilmiş dil, sayısal kütüphane, eğitim akışları ve araç zinciri için eşleşen 0.2.0 ön izlemesi. Yeni oturumlar varsayılan dil profilini kullanır; kayıtlı özellik seçimleri ve desteklenen 0.1.0 dosyaları okunabilir kalır. Yetenek durumları ve dosya biçimi sürümleri değişmedi.",
143
+ },
144
+ },
145
+ {
146
+ languageVersion: "0.1.0",
147
+ date: "2026-07-15",
148
+ from: "experimental",
149
+ to: "preview",
150
+ breaking: false,
151
+ summary: {
152
+ en: "Promoted the overall N/M product label to preview after the stable parser/statevector core, usable workspace spine, version-aligned tooling, and gate-transparent capability matrix were verified; experimental N/M 0.2 capabilities remain explicit opt-ins.",
153
+ tr: "Kararlı parser/statevector çekirdeği, kullanılabilir workspace omurgası, sürümle eşleşen araçlar ve kapıları görünür capability matrisi doğrulandıktan sonra genel N/M ürün etiketi ön izlemeye yükseltildi; deneysel N/M 0.2 yetenekleri açık opt-in olarak kalır.",
154
+ },
155
+ },
156
+ ];
package/package.json CHANGED
@@ -1,6 +1,58 @@
1
1
  {
2
2
  "name": "@nm-lang/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "private": false,
5
+ "description": "Command-line tools for formatting, linting, testing, workspace snapshots, execution, and exports for N/M quantum programs.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/statukocu/quantumsoftware.tech.git",
9
+ "directory": "packages/nm-cli"
10
+ },
11
+ "homepage": "https://quantumsoftware-tech.vercel.app/en/docs/nm-language/cli",
12
+ "bugs": {
13
+ "url": "https://quantumsoftware-tech.vercel.app/en/#contact"
14
+ },
15
+ "license": "SEE LICENSE IN LICENSE.txt",
16
+ "engines": {
17
+ "node": ">=20"
18
+ },
19
+ "keywords": [
20
+ "quantum",
21
+ "cli",
22
+ "language-tooling",
23
+ "workspace",
24
+ "nm-language"
25
+ ],
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "tag": "next",
29
+ "registry": "https://registry.npmjs.org",
30
+ "provenance": false
31
+ },
32
+ "type": "module",
33
+ "main": "./dist/index.js",
34
+ "types": "./dist/index.d.ts",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.js"
39
+ }
40
+ },
41
+ "bin": {
42
+ "nm": "./bin/nm.mjs"
43
+ },
44
+ "files": [
45
+ "bin",
46
+ "dist",
47
+ "LICENSE.txt",
48
+ "NOTICE.txt"
49
+ ],
50
+ "dependencies": {
51
+ "@nm-lang/core": "0.2.0",
52
+ "jiti": "^2.7.0"
53
+ },
54
+ "scripts": {
55
+ "build": "node ../../scripts/build-nm-packages.mjs --package cli",
56
+ "typecheck": "tsc -p tsconfig.json --noEmit"
57
+ }
58
+ }