@nimiplatform/app-tools 0.12.3 → 0.12.4
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 +2 -4
- package/lib/app-project-lifecycle.mjs +1 -1
- package/lib/app-scaffold.mjs +1 -1
- package/package.json +4 -3
- package/skills/nimi-app-lifecycle/references/safety-declaration.md +1 -1
- package/skills/nimi-app-lifecycle/references/upgrade-platform.md +2 -0
- package/templates/default-starter.manifest.json +2 -2
package/README.md
CHANGED
|
@@ -501,10 +501,8 @@ A distribution package includes `app-info.json`, containing its actual icon,
|
|
|
501
501
|
summary, available usage guide and version notes, license, portable requirements
|
|
502
502
|
and, when declared, the publisher safety declaration from `nimi.app.yaml`
|
|
503
503
|
`safety_profile` (see the lifecycle skill's safety-declaration reference). An
|
|
504
|
-
undeclared `safety_profile` stays absent and blocks nothing locally
|
|
505
|
-
Registry
|
|
506
|
-
requires the complete declaration; App Tools does not fetch that policy during
|
|
507
|
-
local checks.
|
|
504
|
+
undeclared `safety_profile` stays absent and blocks nothing locally; new public
|
|
505
|
+
Registry admission requires the complete declaration.
|
|
508
506
|
Every `pack`, including development-mode packaging and non-release CI, requires
|
|
509
507
|
valid App information. Complete `nimi.app.yaml` and its resources before packing;
|
|
510
508
|
production check/build validates them before the build starts:
|
|
@@ -1470,7 +1470,7 @@ export function checkAppProject(cwd, options = {}, versions, runners = {}) {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
const safetyProfile = descriptor.safetyProfile ? 'declared' : 'undeclared';
|
|
1472
1472
|
if (options.production === true && !options.json && safetyProfile === 'undeclared') {
|
|
1473
|
-
process.stdout.write('[nimi-app] safety_profile is not declared in nimi.app.yaml; local builds
|
|
1473
|
+
process.stdout.write('[nimi-app] safety_profile is not declared in nimi.app.yaml; local builds and private packages remain usable, while new public Registry admission requires the declaration.\n');
|
|
1474
1474
|
}
|
|
1475
1475
|
return emitResult({
|
|
1476
1476
|
ok: true,
|
package/lib/app-scaffold.mjs
CHANGED
|
@@ -38,7 +38,7 @@ export const SCAFFOLD_LOCK_PATH = `${SCAFFOLD_STATE_DIR}/lock.json`;
|
|
|
38
38
|
export const SCAFFOLD_TEMPLATE_LICENSE_NOTICE_PATH = 'licenses/nimi-app-template.txt';
|
|
39
39
|
// Files that earlier scaffold versions managed and that now belong to the App.
|
|
40
40
|
// Sync records the new owner and leaves the existing file exactly as it is.
|
|
41
|
-
export const SCAFFOLD_APP_OWNED_HANDOVER_PATHS = Object.freeze(['LICENSE']);
|
|
41
|
+
export const SCAFFOLD_APP_OWNED_HANDOVER_PATHS = Object.freeze(['LICENSE', 'README.md', 'SECURITY.md']);
|
|
42
42
|
const TEMPLATE_LICENSE_COPYRIGHT_LINE = /^Copyright \(c\) (\d{4}) \S.*$/gmu;
|
|
43
43
|
const TEMPLATE_LICENSE_NOTICE_HEADER = [
|
|
44
44
|
'Nimi App template notice',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimiplatform/app-tools",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "Public app-authoring CLI for Nimi App projects.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public",
|
|
18
|
-
"provenance": true
|
|
18
|
+
"provenance": true,
|
|
19
|
+
"tag": "maintenance-0.12"
|
|
19
20
|
},
|
|
20
21
|
"nimiScaffoldVersions": {
|
|
21
22
|
"sdkVersion": "^0.21.0",
|
|
22
|
-
"appToolsVersion": "^0.12.
|
|
23
|
+
"appToolsVersion": "^0.12.4",
|
|
23
24
|
"nimicodingVersion": "0.6.5",
|
|
24
25
|
"aiSdkVersion": "^6.0.85",
|
|
25
26
|
"kitVersion": "^0.20.0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`nimi.app.yaml` `safety_profile` is the only author input for the App's safety declaration. It states, for the exact version being released, what the App actually provides: intended audience, content descriptors, AI interaction and output facts with the current presence of notices and markings, bounded data/sharing/account/commercial practices, and high-impact decision uses. App Tools projects it one way into `app-info.json`, the archive declaration, the exact sidecar and the candidate; do not maintain a second copy in `.nimi/admission/submission.yaml` — sync regenerates that copy and check rejects a hand-edited one.
|
|
4
4
|
|
|
5
|
-
Omit the field entirely while it is not yet declared. Absence means undeclared; it is never an empty risk list or a platform safety default. Local dev, test, build and pack, private packages and local import stay usable without it.
|
|
5
|
+
Omit the field entirely while it is not yet declared. Absence means undeclared; it is never an empty risk list or a platform safety default. Local dev, test, build and pack, private packages and local import stay usable without it. New public Registry admission requires the complete declaration, so declare it before preparing a public submission.
|
|
6
6
|
|
|
7
7
|
Declare facts, not proofs. `absent` is a legitimate value for a notice or marking, and `present` means the supported paths uniformly provide it (declare `absent` when only some do). Audience is publisher positioning, not legal age verification. Descriptors cover provided functionality, default content and reasonably foreseeable ordinary use, not every possible model output. Capability names never imply declaration values: a `voice.create` reference does not require an `audio` output entry or a voice-replication risk feature. Do not add marking code, scanners, age checks or business SDK calls to satisfy the declaration.
|
|
8
8
|
|
|
@@ -25,3 +25,5 @@ A scaffold from an app-tools version that still managed `LICENSE` hands it to th
|
|
|
25
25
|
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.
|
|
26
26
|
|
|
27
27
|
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.
|
|
28
|
+
|
|
29
|
+
README.md and SECURITY.md belong to the App after creation. If an earlier lock lists them as managed, explicit sync transfers ownership without rewriting their contents or recreating missing documents. Run sync and commit the updated lock; subsequent sync and check preserve the App-authored documents.
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"path": "README.md",
|
|
40
|
-
"class": "
|
|
40
|
+
"class": "app-owned product code"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"path": "scripts/validate.mjs",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"path": "SECURITY.md",
|
|
48
|
-
"class": "
|
|
48
|
+
"class": "app-owned product code"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "src-tauri/build.rs",
|