create-cmp-cli 0.3.0 → 0.3.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cmp-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "The AI delivery harness for Kotlin/Compose Multiplatform — scaffolds a green-building app (Android + iOS) in minutes and holds AI-driven changes to a machine-enforced verify lane with a committed evidence receipt. Installs the `create-cmp` command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/template/gitignore
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
.gradle
|
|
3
3
|
/local.properties
|
|
4
4
|
.DS_Store
|
|
5
|
-
/build
|
|
5
|
+
# Gradle build outputs — unanchored so module dirs (composeApp/build/, …) match too,
|
|
6
|
+
# not just a root-level build/. Anchored `/build` misses composeApp/build/, which would
|
|
7
|
+
# then get committed and destabilise the evidence receipt's inputs hash.
|
|
8
|
+
build/
|
|
6
9
|
/captures
|
|
7
10
|
.externalNativeBuild
|
|
8
11
|
.cxx
|
|
@@ -33,9 +33,16 @@ function isExcluded(relPath) {
|
|
|
33
33
|
return EXCLUDED_PREFIXES.some((prefix) => relPath === prefix || relPath.startsWith(`${prefix}/`));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
// The verified surface is the set of files that WILL be committed: tracked files
|
|
37
|
+
// PLUS untracked-but-not-ignored files (`--others --exclude-standard`). A freshly
|
|
38
|
+
// generated feature's files are untracked when the lane runs and the receipt is
|
|
39
|
+
// written, yet they land in the very same commit as the receipt — so they must be
|
|
40
|
+
// hashed, or the committed receipt would never attest its own commit (and CI's
|
|
41
|
+
// receipt-matches-HEAD gate would false-fail on every change). Gitignored scratch
|
|
42
|
+
// (build outputs, qa-artifacts) is still excluded via --exclude-standard.
|
|
36
43
|
function tryGitLsFiles(root) {
|
|
37
44
|
try {
|
|
38
|
-
const out = execSync("git ls-files -z", { cwd: root, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] });
|
|
45
|
+
const out = execSync("git ls-files -z --cached --others --exclude-standard", { cwd: root, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] });
|
|
39
46
|
return out.split("\0").filter(Boolean);
|
|
40
47
|
} catch {
|
|
41
48
|
return null;
|