@claudinite/cli 1.61005.8 → 1.61007.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/launch +37 -18
- package/manifest.json +9 -9
- package/manifest.sig.json +1 -1
- package/package.json +1 -1
package/launch
CHANGED
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
# manifest and manifest.sig.json, and execs cn init, which verifies that
|
|
25
25
|
# signature before it writes anything. Windows is not covered: npm's shim
|
|
26
26
|
# for a sh script there is the desktop work.
|
|
27
|
+
# Any other command run through that bin runs the member's own pin, the
|
|
28
|
+
# member being the directory --repo names or else the working directory.
|
|
27
29
|
#
|
|
28
30
|
# CLAUDINITE_REGISTRY overrides the registry and CLAUDINITE_MAX_DOWNLOAD_BYTES
|
|
29
31
|
# the download size cap; both exist for tests and the rehearsal.
|
|
@@ -94,6 +96,40 @@ matches() {
|
|
|
94
96
|
# Step 1: the pin, from exactly one settings file.
|
|
95
97
|
|
|
96
98
|
here=$(cd "$(dirname "$0")" && pwd) || refuse "cannot locate the .claudinite folder"
|
|
99
|
+
|
|
100
|
+
# Run as the npm package's bin, through the symlink npm made.
|
|
101
|
+
self=$0
|
|
102
|
+
while [ -L "$self" ]; do
|
|
103
|
+
link=$(readlink "$self") || break
|
|
104
|
+
case $link in
|
|
105
|
+
/*) self=$link ;;
|
|
106
|
+
*) self=$(dirname "$self")/$link ;;
|
|
107
|
+
esac
|
|
108
|
+
done
|
|
109
|
+
pkgdir=$(cd "$(dirname "$self")" && pwd) || refuse "cannot locate the launcher's folder"
|
|
110
|
+
bootstrap=
|
|
111
|
+
if [ -f "$pkgdir/manifest.json" ] && [ -f "$pkgdir/package.json" ]; then
|
|
112
|
+
if [ "${1:-}" = init ]; then
|
|
113
|
+
bootstrap=1
|
|
114
|
+
else
|
|
115
|
+
repo=.
|
|
116
|
+
want=
|
|
117
|
+
for arg do
|
|
118
|
+
if [ -n "$want" ]; then
|
|
119
|
+
want=
|
|
120
|
+
[ -d "$arg" ] && repo=$arg
|
|
121
|
+
continue
|
|
122
|
+
fi
|
|
123
|
+
case $arg in
|
|
124
|
+
--) break ;;
|
|
125
|
+
--repo|-repo) want=1 ;;
|
|
126
|
+
--repo=*|-repo=*) [ -d "${arg#*=}" ] && repo=${arg#*=} ;;
|
|
127
|
+
esac
|
|
128
|
+
done
|
|
129
|
+
here=$(cd "$repo" && pwd)/.claudinite || refuse "cannot locate the repository $repo"
|
|
130
|
+
fi
|
|
131
|
+
fi
|
|
132
|
+
|
|
97
133
|
format=
|
|
98
134
|
count=0
|
|
99
135
|
for ext in yaml toml json; do
|
|
@@ -103,28 +139,11 @@ for ext in yaml toml json; do
|
|
|
103
139
|
fi
|
|
104
140
|
done
|
|
105
141
|
|
|
106
|
-
# The bootstrap reads the package npx unpacked: resolve the bin symlink.
|
|
107
|
-
bootstrap=
|
|
108
|
-
if [ "$count" -eq 0 ] && [ "${1:-}" = init ]; then
|
|
109
|
-
self=$0
|
|
110
|
-
while [ -L "$self" ]; do
|
|
111
|
-
link=$(readlink "$self") || break
|
|
112
|
-
case $link in
|
|
113
|
-
/*) self=$link ;;
|
|
114
|
-
*) self=$(dirname "$self")/$link ;;
|
|
115
|
-
esac
|
|
116
|
-
done
|
|
117
|
-
pkgdir=$(cd "$(dirname "$self")" && pwd) || refuse "cannot locate the package folder"
|
|
118
|
-
if [ -f "$pkgdir/manifest.json" ] && [ -f "$pkgdir/package.json" ]; then
|
|
119
|
-
bootstrap=1
|
|
120
|
-
fi
|
|
121
|
-
fi
|
|
122
|
-
|
|
123
142
|
if [ -n "$bootstrap" ]; then
|
|
124
143
|
settings=$pkgdir/manifest.json
|
|
125
144
|
[ -f "$pkgdir/manifest.sig.json" ] || refuse "$pkgdir holds no manifest.sig.json, and cn init never runs from an unsigned manifest"
|
|
126
145
|
else
|
|
127
|
-
[ "$count" -eq 1 ] || refuse "exactly one of .claudinite/settings.yaml, .claudinite/settings.toml or .claudinite/settings.json must exist, found $count"
|
|
146
|
+
[ "$count" -eq 1 ] || refuse "exactly one of .claudinite/settings.yaml, .claudinite/settings.toml or .claudinite/settings.json must exist, found $count in ${here%/.claudinite}"
|
|
128
147
|
settings=$here/settings.$format
|
|
129
148
|
fi
|
|
130
149
|
|
package/manifest.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"v": 1,
|
|
3
|
-
"version": "1.
|
|
4
|
-
"builtAt": "2026-10-
|
|
5
|
-
"commit": "
|
|
3
|
+
"version": "1.61007.1",
|
|
4
|
+
"builtAt": "2026-10-07T14:36:18Z",
|
|
5
|
+
"commit": "5ec243e",
|
|
6
6
|
"goVersion": "go1.24.13",
|
|
7
|
-
"updaterDigest": "
|
|
7
|
+
"updaterDigest": "e3a3fe97ee799f454a5a716c5bb64a77c3f267149609c8dc2dc1c83d25e3523b",
|
|
8
8
|
"binaries": {
|
|
9
|
-
"linux-x64": {"file": "cn", "sha256": "
|
|
10
|
-
"linux-arm64": {"file": "cn", "sha256": "
|
|
11
|
-
"darwin-x64": {"file": "cn", "sha256": "
|
|
12
|
-
"darwin-arm64": {"file": "cn", "sha256": "
|
|
13
|
-
"windows-x64": {"file": "cn.exe", "sha256": "
|
|
9
|
+
"linux-x64": {"file": "cn", "sha256": "c28fdee52c0d275e2a381833b247e399e2be87773b8248a0fc91a09b7d351382", "size": 11833528},
|
|
10
|
+
"linux-arm64": {"file": "cn", "sha256": "fd92b6148628841b1cc36a3993938e8dfbf8e1b5750255657ec0d40151df38a9", "size": 10944696},
|
|
11
|
+
"darwin-x64": {"file": "cn", "sha256": "14a6bc618aa846eaa92eaac769e9233785961799d00b9c51a55575198417737b", "size": 12074912},
|
|
12
|
+
"darwin-arm64": {"file": "cn", "sha256": "3db51965cd8fc02248d1a1d08713d75917a0f84e69d572c29b1dd177a0be43c3", "size": 11190770},
|
|
13
|
+
"windows-x64": {"file": "cn.exe", "sha256": "d6c59d335b65761728bedef4bd70f1d465786fb075d652564d12e79b0b83ea08", "size": 12107776}
|
|
14
14
|
},
|
|
15
15
|
"testedPacks": {}
|
|
16
16
|
}
|
package/manifest.sig.json
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
"payload": "eyJ2IjoxLCJrZXlJZCI6ImM3NzQwNWM2ZDA4NzExODYiLCJwdWJsaWNLZXkiOiI0UHlTQzRTbG5MakJ1cVY2Qll4eU9XWUtLOWkzV295NkZCQ1ZNckF6clRzIiwidXNlIjoibWFuaWZlc3QiLCJpc3N1ZXIiOiJlYTg1ZjM1NDIxZjM3NWZjIiwibm90QmVmb3JlIjoiMjAyNi0xMC0wM1QxNjozNjozN1oiLCJub3RBZnRlciI6IjIwMjctMTAtMDNUMTY6MzY6MzdaIn0",
|
|
4
4
|
"signature": "ex4GNEE3PIUj3Ue6X2TZnbB5E6G-DVrGNaYdvI13NuOauoJYilB_54TyAH490IS9-IZiu3BKVYpigm3uDTXSBw"
|
|
5
5
|
},
|
|
6
|
-
"signature": "
|
|
6
|
+
"signature": "cj_npYCjj2Y4NYTjPMUsxUNJGcGqesDgY9Z10FWzaYljznxcmCbJoyNYQN_h7T7zWwANsfYw1fBjDhRzacQbBQ"
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudinite/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.61007.1",
|
|
4
4
|
"description": "Claudinite engine release manifest and launcher",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {"type": "git", "url": "git+https://github.com/missingbulb/ClaudiniteEngine.git"},
|