@nimiplatform/app-tools 0.6.0 → 0.6.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/README.md +6 -0
- package/lib/app-project-lifecycle.mjs +5 -2
- package/package.json +2 -2
- package/skills/nimi-app-lifecycle/references/release.md +2 -0
- package/skills/nimi-app-lifecycle/references/upgrade-platform.md +2 -0
- package/templates/default-starter/.gitattributes +2 -0
- package/templates/default-starter.manifest.json +4 -0
package/README.md
CHANGED
|
@@ -296,6 +296,12 @@ out of source files, `.env`, and release notes.
|
|
|
296
296
|
|
|
297
297
|
### 4. Check, build, and publish a version
|
|
298
298
|
|
|
299
|
+
Keep the packaged `LICENSE` identical to the reviewed Git source. New scaffolds
|
|
300
|
+
include `LICENSE -text` in `.gitattributes`. Add the same rule to an existing
|
|
301
|
+
repository while preserving its other attributes, and commit it before tagging.
|
|
302
|
+
This prevents Windows checkout conversion from changing the license bytes that
|
|
303
|
+
Registry verifies against the exact source tag.
|
|
304
|
+
|
|
299
305
|
Run the existing local path from the App repository:
|
|
300
306
|
|
|
301
307
|
```bash
|
|
@@ -251,7 +251,7 @@ function assertPackageManifestCurrent(packageJson, versions) {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
function normalizePackageManifest(packageJson, descriptor, versions, buildProfileRef) {
|
|
254
|
+
function normalizePackageManifest(packageJson, descriptor, versions, buildProfileRef, packageSource) {
|
|
255
255
|
if (!packageJson || typeof packageJson !== 'object' || Array.isArray(packageJson)) {
|
|
256
256
|
throw new Error('package.json must contain an object');
|
|
257
257
|
}
|
|
@@ -302,6 +302,9 @@ function normalizePackageManifest(packageJson, descriptor, versions, buildProfil
|
|
|
302
302
|
.replace(/\bnimi-app\s+doctor\s*&&\s*/gu, '');
|
|
303
303
|
}
|
|
304
304
|
assertPackageManifestCurrent(normalized, versions);
|
|
305
|
+
// Project formatters may use different whitespace or key order. Only managed
|
|
306
|
+
// value changes require rewriting this App-owned manifest.
|
|
307
|
+
if (stableInputJson(normalized) === stableInputJson(packageJson)) return packageSource;
|
|
305
308
|
return `${JSON.stringify(normalized, null, 2)}\n`;
|
|
306
309
|
}
|
|
307
310
|
|
|
@@ -996,7 +999,7 @@ function buildExistingSubmittedAppSyncPlan(targetDir, versions, sources) {
|
|
|
996
999
|
author: typeof files.packageJson.author === 'string' ? files.packageJson.author : '',
|
|
997
1000
|
};
|
|
998
1001
|
const planned = [
|
|
999
|
-
{ path: files.packagePath, content: normalizePackageManifest(files.packageJson, descriptor, versions, buildProfile.buildProfileRef), previous: files.packageSource },
|
|
1002
|
+
{ path: files.packagePath, content: normalizePackageManifest(files.packageJson, descriptor, versions, buildProfile.buildProfileRef, files.packageSource), previous: files.packageSource },
|
|
1000
1003
|
];
|
|
1001
1004
|
if (requiresTauri) {
|
|
1002
1005
|
planned.push(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimiplatform/app-tools",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Public app-authoring CLI for Nimi App projects.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"nimiScaffoldVersions": {
|
|
21
21
|
"sdkVersion": "^0.13.0",
|
|
22
|
-
"appToolsVersion": "^0.6.
|
|
22
|
+
"appToolsVersion": "^0.6.2",
|
|
23
23
|
"nimicodingVersion": "0.6.3",
|
|
24
24
|
"aiSdkVersion": "^6.0.85",
|
|
25
25
|
"kitVersion": "^0.9.0",
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Before production, use public dependencies and frozen locks, complete portable App information and existing notices, and build/pack on the declared OS/architecture. Reuse `nimi-app check --production`, `test`, `build --target <target> --production`, and `pack --target <target> --production`. Local check does not establish GitHub settings or a release.
|
|
4
4
|
|
|
5
|
+
The packaged root `LICENSE` must match the reviewed source file byte for byte. New scaffolds include `LICENSE -text` in `.gitattributes`; for an existing repository, retain its other attributes and add that rule before tagging. It preserves the Git blob's original bytes when Windows would otherwise convert LF to CRLF. Registry checks the exact published package against the tagged source.
|
|
6
|
+
|
|
5
7
|
Follow the [publisher setup guide](https://github.com/nimiplatform/nimi/blob/main/app-tools/README.md#publishing-on-github) before the first tag. Its `NIMI_REPOSITORY_ADMIN_TOKEN` needs only **Administration: Read-only** to check tag protection and Release immutability; actual Release uploads use GitHub's built-in token, which lacks that administration permission. A secret configured in another App repository is not inherited. Check real settings when publication is in scope. Keep App package/manifest versions equal and the annotated `v<version>` tag on a commit in the actual canonical default-branch history. Publish only with the user's existing authorization; fixing a local check does not authorize a new release.
|
|
6
8
|
|
|
7
9
|
The managed tag workflow owns production tests, target artifacts, attestations and immutable Release execution. Manual dispatch is a development build. Reuse its final Release/asset verification; a code change needs a new version, not a moved tag. Do not add local publish or another App production workflow.
|
|
@@ -8,4 +8,6 @@ Review App-owned instructions outside managed blocks when the upgrade changes an
|
|
|
8
8
|
|
|
9
9
|
Migrate the affected App-owned API uses, run sync, then install the full normalized dependency set and regenerate the package-manager lockfile. Run check and the relevant tests/build and real journey. Fresh scaffold identity and direct features remain fixed; the tool updates derived version/matrix projections. Existing Apps continue without a fresh lock.
|
|
10
10
|
|
|
11
|
+
For existing Apps, sync preserves the exact `package.json` text when its managed values are already current. A project formatter's whitespace or key ordering alone is not drift; actual managed value changes are still synchronized.
|
|
12
|
+
|
|
11
13
|
Do not downgrade away required features, edit installed package code or disable checks to get a green result. A platform capability awaiting publication blocks public release reproducibility, not independent engineering work. Validate a representative actual old-to-new combination; do not build a general migration framework.
|