@gjermundgaraba/upup 0.6.0 → 0.7.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/README.md +2 -2
- package/dist/main.mjs +17 -12
- package/native/dist/upup-sparkle.json +1 -1
- package/native/dist/upup-sparkle.zip +0 -0
- package/package.json +25 -25
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Understand, audit and update system tools and project dependencies from one TUI.
|
|
|
8
8
|
npm install -g @gjermundgaraba/upup
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Requires Node
|
|
11
|
+
Requires the Node.js release `engines` in `package.json` names, or newer. The TUI is built on [OpenTUI](https://github.com/anomalyco/opentui), which runs through Node's FFI.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
@@ -123,7 +123,7 @@ Each update run is also logged to `updates/` in the user cache directory, one JS
|
|
|
123
123
|
|
|
124
124
|
## Development
|
|
125
125
|
|
|
126
|
-
Requires
|
|
126
|
+
Requires [Vite+](https://viteplus.dev), which installs the Node.js release `.node-version` pins.
|
|
127
127
|
|
|
128
128
|
Run `mise install` once to get the Go toolchain `mise.toml` pins; a binary-audit test reads its build info and is skipped without Go.
|
|
129
129
|
|
package/dist/main.mjs
CHANGED
|
@@ -42,7 +42,7 @@ import * as ActionMcp from "@gjermundgaraba/effect-actions/ActionMcp";
|
|
|
42
42
|
import * as Action from "@gjermundgaraba/effect-actions/Action";
|
|
43
43
|
import { setup, types } from "xstate/fsm";
|
|
44
44
|
// package.json
|
|
45
|
-
var version$1 = "0.
|
|
45
|
+
var version$1 = "0.7.1";
|
|
46
46
|
// src/ai/Setup.ts
|
|
47
47
|
const Thinking = Schema.Literals([
|
|
48
48
|
"off",
|
|
@@ -287,7 +287,7 @@ const make$18 = (models, credentials = store()) => Effect.gen(function* () {
|
|
|
287
287
|
const settings = yield* Settings;
|
|
288
288
|
const catalogue = Effect.promise(async () => {
|
|
289
289
|
const providers = models.getProviders();
|
|
290
|
-
const signedIn = await Promise.all(providers.map(async (provider) => await models.checkAuth(provider.id).then((check) => check !== void 0
|
|
290
|
+
const signedIn = await Promise.all(providers.map(async (provider) => await models.checkAuth(provider.id).then((check) => check !== void 0).catch(() => false)));
|
|
291
291
|
return providers.flatMap((provider, index) => models.getModels(provider.id).map((model) => ({
|
|
292
292
|
provider: provider.id,
|
|
293
293
|
providerName: provider.name,
|
|
@@ -1921,7 +1921,7 @@ const readMeta = (workspace) => Effect.tryPromise({
|
|
|
1921
1921
|
catch: failed$2(workspace)
|
|
1922
1922
|
}).pipe(Effect.flatMap((text) => Schema.decodeEffect(MetaJson)(text).pipe(Effect.mapError(failed$2(workspace)))));
|
|
1923
1923
|
const describes = (meta, identity) => meta.name === identity.delta.artifact && meta.ecosystem === identity.delta.ecosystem && meta.from === identity.delta.from && meta.to === identity.delta.to && sameContext(meta.context, identity.context);
|
|
1924
|
-
const readable = (workspace, identity) => readMeta(workspace).pipe(Effect.flatMap((meta) => describes(meta, identity) ? Effect.promise(async () => await stat(path.join(workspace, files.diff)).then(() => true
|
|
1924
|
+
const readable = (workspace, identity) => readMeta(workspace).pipe(Effect.flatMap((meta) => describes(meta, identity) ? Effect.promise(async () => await stat(path.join(workspace, files.diff)).then(() => true).catch(() => false)) : Effect.succeed(false)), Effect.orElseSucceed(() => false));
|
|
1925
1925
|
const prune = (workspace) => Effect.promise(async () => {
|
|
1926
1926
|
const entries = await readdir(workspace, { withFileTypes: true }).catch(() => []);
|
|
1927
1927
|
await Promise.all(entries.filter((entry) => entry.isDirectory()).map(async (entry) => {
|
|
@@ -1963,8 +1963,8 @@ const majorsOf = (from, to) => {
|
|
|
1963
1963
|
}] : [];
|
|
1964
1964
|
});
|
|
1965
1965
|
};
|
|
1966
|
-
const exists$1 = async (file) => await stat(file).then(() => true
|
|
1967
|
-
const emptyTree = async (directory) => await readdir(directory).then((entries) => entries.length === 0
|
|
1966
|
+
const exists$1 = async (file) => await stat(file).then(() => true).catch(() => false);
|
|
1967
|
+
const emptyTree = async (directory) => await readdir(directory).then((entries) => entries.length === 0).catch(() => false);
|
|
1968
1968
|
const majorsIn = async (workspace) => {
|
|
1969
1969
|
const [from, to] = await Promise.all([listed$2(workspace, files.dependencyListFrom), listed$2(workspace, files.dependencyListTo)]);
|
|
1970
1970
|
return majorsOf(from, to);
|
|
@@ -2146,7 +2146,10 @@ const auditExtension = (workspace) => {
|
|
|
2146
2146
|
steps = request.messages.filter((message) => message.role === "assistant").length;
|
|
2147
2147
|
nudged = request.messages.some((message) => message.role === "user" && message.content === nudge);
|
|
2148
2148
|
},
|
|
2149
|
-
onYield: () => nudged ? void 0 : {
|
|
2149
|
+
onYield: () => nudged ? void 0 : {
|
|
2150
|
+
kind: "continue",
|
|
2151
|
+
continue: nudge
|
|
2152
|
+
}
|
|
2150
2153
|
}), hook(ToolTask, { beforeTool: (call) => steps >= 64 && call.name !== "submit_report" ? { block: `The 64-step limit is reached; call submit_report now.` } : void 0 })]
|
|
2151
2154
|
});
|
|
2152
2155
|
};
|
|
@@ -6476,7 +6479,7 @@ const writeNote = (workspace, file, text) => Effect.tryPromise({
|
|
|
6476
6479
|
issue: `write ${file}: ${failure$1(error)}`
|
|
6477
6480
|
})
|
|
6478
6481
|
});
|
|
6479
|
-
const exists = (file) => Effect.promise(async () => await stat(file).then(() => true
|
|
6482
|
+
const exists = (file) => Effect.promise(async () => await stat(file).then(() => true).catch(() => false));
|
|
6480
6483
|
const sourceTree = (client, archive, destination) => Effect.scoped(Effect.gen(function* () {
|
|
6481
6484
|
const checksum = archive.checksum.toLowerCase();
|
|
6482
6485
|
const downloaded = yield* downloadVerified(client, archive.url, checksum);
|
|
@@ -7546,7 +7549,7 @@ const copyChanged = (workspace, trees, roots, paths) => Effect.tryPromise({
|
|
|
7546
7549
|
if (tree === void 0) continue;
|
|
7547
7550
|
for (const file of paths) {
|
|
7548
7551
|
const source = path.join(tree, file);
|
|
7549
|
-
if (await lstat(source).then(() => true
|
|
7552
|
+
if (await lstat(source).then(() => true).catch(() => false)) await copyPath(source, path.join(workspace, roots[side], file));
|
|
7550
7553
|
}
|
|
7551
7554
|
}
|
|
7552
7555
|
},
|
|
@@ -8622,10 +8625,12 @@ const layer$5 = (cacheDir) => Layer.effect(Audits, Effect.gen(function* () {
|
|
|
8622
8625
|
to: identity.delta.to
|
|
8623
8626
|
})}\n`, { mode: 384 });
|
|
8624
8627
|
}).pipe(Effect.ignore);
|
|
8625
|
-
const landed = (landing) => Effect.promise(async () =>
|
|
8628
|
+
const landed = (landing) => Effect.promise(async () => {
|
|
8629
|
+
const text = await readFile(landingFile(landing), "utf-8").catch(() => void 0);
|
|
8630
|
+
if (text === void 0) return Option.none();
|
|
8626
8631
|
const note = JSON.parse(text);
|
|
8627
8632
|
return Predicate.hasProperty(note, "from") && Predicate.hasProperty(note, "to") && Predicate.isString(note.from) && note.to === landing.version ? Option.some(note.from) : Option.none();
|
|
8628
|
-
}
|
|
8633
|
+
});
|
|
8629
8634
|
const workspaces = path.join(root, "workspaces");
|
|
8630
8635
|
const workspaceFor = (identity) => path.join(workspaces, workspaceKey(identity));
|
|
8631
8636
|
const pathsOf = (identity, policyKey) => ({
|
|
@@ -8805,7 +8810,7 @@ const layer$5 = (cacheDir) => Layer.effect(Audits, Effect.gen(function* () {
|
|
|
8805
8810
|
const workspace = path.join(workspaces, name);
|
|
8806
8811
|
return Effect.scoped(Effect.gen(function* () {
|
|
8807
8812
|
if (!(yield* tryHold(workspace))) return;
|
|
8808
|
-
const prepared = yield* Effect.promise(async () => await stat(path.join(workspace, files.meta)).then((info) => info.mtimeMs
|
|
8813
|
+
const prepared = yield* Effect.promise(async () => await stat(path.join(workspace, files.meta)).then((info) => info.mtimeMs).catch(() => 0));
|
|
8809
8814
|
if (started - prepared > Duration.toMillis(keptWorkspaces)) {
|
|
8810
8815
|
yield* discard(workspace, name);
|
|
8811
8816
|
return;
|
|
@@ -9345,7 +9350,7 @@ const discover$5 = Effect.fn("GitHubActions.discover")(function* (dir) {
|
|
|
9345
9350
|
return [yield* make$16(root, host === "github.com" ? void 0 : host)];
|
|
9346
9351
|
});
|
|
9347
9352
|
// src/process/on-path.ts
|
|
9348
|
-
const executable = (file) => Effect.promise(async () => await access(file, constants.X_OK).then(() => true
|
|
9353
|
+
const executable = (file) => Effect.promise(async () => await access(file, constants.X_OK).then(() => true).catch(() => false));
|
|
9349
9354
|
const onPath = (command) => Effect.forEach((process.env["PATH"] ?? "").split(path.delimiter).filter((dir) => dir !== ""), (dir) => executable(path.join(dir, command)), { concurrency: "unbounded" }).pipe(Effect.map((found) => found.includes(true)));
|
|
9350
9355
|
// src/process/Sudo.ts
|
|
9351
9356
|
var Sudo = class extends Context.Service()("upup/Sudo") {};
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjermundgaraba/upup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Understand, audit, and update system tools and project dependencies from one TUI.",
|
|
5
5
|
"homepage": "https://github.com/gjermundgaraba/upup#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -24,57 +24,57 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@earendil-works/chord": "1.
|
|
28
|
-
"@earendil-works/pi-ai": "1.
|
|
29
|
-
"@earendil-works/pi-durable": "1.
|
|
30
|
-
"@effect/platform-node": "4.
|
|
31
|
-
"@gjermundgaraba/effect-actions": "0.
|
|
32
|
-
"@opentui/core": "0.
|
|
33
|
-
"@opentui/solid": "0.
|
|
27
|
+
"@earendil-works/chord": "1.7.0",
|
|
28
|
+
"@earendil-works/pi-ai": "1.7.0",
|
|
29
|
+
"@earendil-works/pi-durable": "1.7.0",
|
|
30
|
+
"@effect/platform-node": "4.2.0",
|
|
31
|
+
"@gjermundgaraba/effect-actions": "0.40.0",
|
|
32
|
+
"@opentui/core": "0.9.9",
|
|
33
|
+
"@opentui/solid": "0.9.9",
|
|
34
34
|
"@sigstore/bundle": "5.0.1",
|
|
35
35
|
"@sigstore/tuf": "5.0.1",
|
|
36
|
-
"@sigstore/verify": "4.1.
|
|
37
|
-
"effect": "4.
|
|
38
|
-
"fast-xml-parser": "5.12.
|
|
36
|
+
"@sigstore/verify": "4.1.4",
|
|
37
|
+
"effect": "4.2.0",
|
|
38
|
+
"fast-xml-parser": "5.12.1",
|
|
39
39
|
"jsonc-parser": "3.3.1",
|
|
40
40
|
"proper-lockfile": "4.1.2",
|
|
41
41
|
"semver": "7.8.6",
|
|
42
|
-
"solid-js": "1.9.
|
|
43
|
-
"tar-stream": "3.
|
|
42
|
+
"solid-js": "1.9.20",
|
|
43
|
+
"tar-stream": "3.3.0",
|
|
44
44
|
"toml-eslint-parser": "1.0.3",
|
|
45
45
|
"unbzip2-stream": "1.4.3",
|
|
46
|
-
"xstate": "6.0.0-
|
|
46
|
+
"xstate": "6.0.0-beta.6",
|
|
47
47
|
"xz-decompress": "0.2.3",
|
|
48
48
|
"yaml": "2.9.1",
|
|
49
49
|
"yauzl": "3.4.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@clanker-stuff/oxlint-config": "0.
|
|
53
|
-
"@effect/tsgo": "0.
|
|
54
|
-
"@effect/vitest": "4.
|
|
55
|
-
"@types/node": "26.6.
|
|
52
|
+
"@clanker-stuff/oxlint-config": "0.6.1",
|
|
53
|
+
"@effect/tsgo": "0.74.4",
|
|
54
|
+
"@effect/vitest": "4.2.0",
|
|
55
|
+
"@types/node": "26.6.11",
|
|
56
56
|
"@types/proper-lockfile": "4.1.4",
|
|
57
57
|
"@types/semver": "7.8.0",
|
|
58
58
|
"@types/unbzip2-stream": "1.4.3",
|
|
59
59
|
"@types/yauzl": "3.4.0",
|
|
60
60
|
"@types/yazl": "3.3.1",
|
|
61
61
|
"typescript": "7.0.2",
|
|
62
|
-
"ultracite": "8.
|
|
63
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@
|
|
64
|
-
"vite-plugin-solid": "2.11.
|
|
65
|
-
"vite-plus": "1.
|
|
66
|
-
"vitest": "5.1.
|
|
62
|
+
"ultracite": "8.3.1",
|
|
63
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@8.3.8001",
|
|
64
|
+
"vite-plugin-solid": "2.11.17",
|
|
65
|
+
"vite-plus": "1.8.0",
|
|
66
|
+
"vitest": "5.1.1",
|
|
67
67
|
"yazl": "3.3.1"
|
|
68
68
|
},
|
|
69
69
|
"devEngines": {
|
|
70
70
|
"packageManager": {
|
|
71
71
|
"name": "pnpm",
|
|
72
|
-
"version": "12.
|
|
72
|
+
"version": "12.23.0",
|
|
73
73
|
"onFail": "download"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"engines": {
|
|
77
|
-
"node": ">=26.13.
|
|
77
|
+
"node": ">=26.13.1"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "vp pack",
|