atris 3.73.0 → 3.73.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/lib/zen-fleet.js +2 -2
- package/lib/zen-workspace.js +6 -1
- package/lib/zen.js +9 -0
- package/package.json +2 -1
package/lib/zen-fleet.js
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
const fs = require('node:fs');
|
|
10
10
|
const os = require('node:os');
|
|
11
11
|
const path = require('node:path');
|
|
12
|
-
const { DEFAULT_TEAM_STATE, dirtyEntries, untrackedFiles } = require('./zen');
|
|
12
|
+
const { DEFAULT_TEAM_STATE, LIVE_LOGS, dirtyEntries, untrackedFiles } = require('./zen');
|
|
13
13
|
const { applyZen } = require('./zen-apply');
|
|
14
14
|
|
|
15
|
-
const LIVE_DATA = DEFAULT_TEAM_STATE.filter((p) => p.startsWith('*.')).map((p) => p.slice(1));
|
|
15
|
+
const LIVE_DATA = DEFAULT_TEAM_STATE.filter((p) => p.startsWith('*.') && !LIVE_LOGS.includes(p)).map((p) => p.slice(1));
|
|
16
16
|
const SECRET = /(^|\/)(\.env(\..+)?|id_rsa[^/]*|[^/]*\.(pem|key|p12)|[^/]*(secret|credential)[^/]*)$/i;
|
|
17
17
|
|
|
18
18
|
function fleetFile() {
|
package/lib/zen-workspace.js
CHANGED
|
@@ -73,10 +73,15 @@ function workspaceZen({ root, dryRun = false } = {}) {
|
|
|
73
73
|
|
|
74
74
|
const unhealable = r.map_refs?.unhealable_count || 0;
|
|
75
75
|
if (unhealable) out.yours.push({ text: `${plural(unhealable, 'map link points', 'map links point')} nowhere`, cmd: 'atris clean' });
|
|
76
|
+
// These are notes (often feature docs, not wiki pages) written about code
|
|
77
|
+
// that has changed since. Rewriting one takes judgment, so it is yours; name
|
|
78
|
+
// the note when there is only one so the line says exactly what to open.
|
|
76
79
|
const pages = r.stale_pages?.items || [];
|
|
77
80
|
if (pages.length) {
|
|
78
81
|
out.yours.push({
|
|
79
|
-
text:
|
|
82
|
+
text: pages.length === 1
|
|
83
|
+
? `${pages[0].page} is older than the code it describes`
|
|
84
|
+
: `${pages.length} notes are older than the code they describe`,
|
|
80
85
|
cmd: 'atris clean --dry-run',
|
|
81
86
|
});
|
|
82
87
|
}
|
package/lib/zen.js
CHANGED
|
@@ -28,8 +28,16 @@ const DEFAULT_TEAM_STATE = [
|
|
|
28
28
|
'*.sqlite',
|
|
29
29
|
'*.sqlite3',
|
|
30
30
|
'*.duckdb',
|
|
31
|
+
// Append-only logs and ledgers a running app keeps writing. Left in place
|
|
32
|
+
// like a database, but a repo is not skipped for one (see LIVE_LOGS).
|
|
33
|
+
'*.jsonl',
|
|
34
|
+
'*.ndjson',
|
|
31
35
|
];
|
|
32
36
|
|
|
37
|
+
// Growing logs are everywhere in team state, so zen --all does not hold a
|
|
38
|
+
// whole repo back for them the way it does for an unsaved database.
|
|
39
|
+
const LIVE_LOGS = ['*.jsonl', '*.ndjson'];
|
|
40
|
+
|
|
33
41
|
function gitOut(args, cwd) {
|
|
34
42
|
const result = runGit(args, cwd);
|
|
35
43
|
return result.status === 0 ? result.stdout.trim() : null;
|
|
@@ -437,6 +445,7 @@ module.exports = {
|
|
|
437
445
|
dirtyEntries,
|
|
438
446
|
gitOut,
|
|
439
447
|
isTeamState,
|
|
448
|
+
LIVE_LOGS,
|
|
440
449
|
dirtyFiles,
|
|
441
450
|
listWorktrees,
|
|
442
451
|
readTeamState,
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atris",
|
|
3
|
-
"version": "3.73.
|
|
3
|
+
"version": "3.73.1",
|
|
4
4
|
"description": "you say what you want in plain words. atris builds it, checks it, and shows you proof.",
|
|
5
|
+
"mcpName": "io.github.atrislabs/atris",
|
|
5
6
|
"main": "bin/atris.js",
|
|
6
7
|
"bin": {
|
|
7
8
|
"atris": "bin/atris",
|