@exla/rudder 5.0.11 → 5.0.13
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/cloud/package.json +7 -1
- package/dist/backends.js +22 -10
- package/dist/backends.js.map +1 -1
- package/dist/cloud.js +24 -4
- package/dist/cloud.js.map +1 -1
- package/dist/effort.js +1 -5
- package/dist/effort.js.map +1 -1
- package/dist/models.d.ts +19 -0
- package/dist/models.js +107 -3
- package/dist/models.js.map +1 -1
- package/dist/native/darwin-arm64/native-manifest.json +3 -3
- package/dist/native/darwin-arm64/rudder-native +0 -0
- package/dist/native/linux-x64/native-manifest.json +3 -3
- package/dist/native/linux-x64/rudder-native +0 -0
- package/dist/native-agents.js +19 -8
- package/dist/native-agents.js.map +1 -1
- package/dist/opencode.d.ts +13 -0
- package/dist/opencode.js +25 -0
- package/dist/opencode.js.map +1 -0
- package/dist/project-files/agent-notes.d.ts +40 -0
- package/dist/project-files/agent-notes.js +112 -0
- package/dist/project-files/agent-notes.js.map +1 -0
- package/dist/project-files/file-refs.d.ts +51 -0
- package/dist/project-files/file-refs.js +230 -0
- package/dist/project-files/file-refs.js.map +1 -0
- package/dist/project-files/home.d.ts +5 -1
- package/dist/project-files/home.js +27 -16
- package/dist/project-files/home.js.map +1 -1
- package/dist/project-files/service.d.ts +5 -1
- package/dist/project-files/service.js +3 -3
- package/dist/project-files/service.js.map +1 -1
- package/dist/run-manager.js +1 -2
- package/dist/run-manager.js.map +1 -1
- package/dist/util.js +1 -0
- package/dist/util.js.map +1 -1
- package/package.json +1 -1
- package/dist/project-files/notes.d.ts +0 -64
- package/dist/project-files/notes.js +0 -212
- package/dist/project-files/notes.js.map +0 -1
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { constants } from "node:fs";
|
|
2
|
-
import { appendFile, lstat, mkdir, open, readFile, realpath, writeFile } from "node:fs/promises";
|
|
3
|
-
import { createHash } from "node:crypto";
|
|
4
|
-
import { homedir } from "node:os";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import { runCommand } from "../util.js";
|
|
7
|
-
import { FILE_LIMITS, ProjectFileError, ProjectFileService } from "./service.js";
|
|
8
|
-
/** The user's notes for a project: RUDDER_NOTES.md at the root of the
|
|
9
|
-
* checkout on the home. Only the user writes it, from the app's Notes editor.
|
|
10
|
-
* Agents are not told about it and nothing else in Rudder writes it.
|
|
11
|
-
*
|
|
12
|
-
* Reads and saves go through ProjectFileService, narrowed to this one file:
|
|
13
|
-
* a symlink or anything but a regular file is refused, and a save is swapped
|
|
14
|
-
* in by rename only while the file still holds the revision the editor loaded,
|
|
15
|
-
* so two devices never overwrite each other silently. A missing file reads as
|
|
16
|
-
* empty; the first save creates it.
|
|
17
|
-
*
|
|
18
|
-
* Git: a new notes file is kept out of Git by a line in the repository's
|
|
19
|
-
* local exclude (.git/info/exclude), never the tracked .gitignore. The line
|
|
20
|
-
* goes in before the file exists, so no jj snapshot in between picks it up;
|
|
21
|
-
* jj honours that file for untracked paths. "Keep out of Git" off removes the
|
|
22
|
-
* line, and the file shows up to commit like any other (jj tracks it at its
|
|
23
|
-
* next snapshot). Back on, the line returns and a file that is not committed
|
|
24
|
-
* yet is untracked again: an ignore rule alone never untracks a path jj
|
|
25
|
-
* already tracks. A committed file, or one the repository's own ignore rules
|
|
26
|
-
* cover, is reported as it is and left alone.
|
|
27
|
-
*/
|
|
28
|
-
export const NOTES_FILE = "RUDDER_NOTES.md";
|
|
29
|
-
const EXCLUDE_LINE = `/${NOTES_FILE}`;
|
|
30
|
-
const SCOPE = { projectId: "notes", workspaceId: "notes", attemptId: "notes", ownerEpoch: 0 };
|
|
31
|
-
const REVISION = /^[a-f0-9]{64}$/;
|
|
32
|
-
const CONTROL = /[\x00-\x08\x0b\x0c\x0e-\x1f]/;
|
|
33
|
-
/** The one entry point of the home RPC, for a project directory the home chose. */
|
|
34
|
-
export async function projectNotes(dir, request) {
|
|
35
|
-
if (request?.version !== 1)
|
|
36
|
-
throw new ProjectFileError("invalid", "Unsupported notes request");
|
|
37
|
-
const root = await realpath(dir);
|
|
38
|
-
switch (request.operation) {
|
|
39
|
-
case "read": return readNotes(root);
|
|
40
|
-
case "write": {
|
|
41
|
-
const { baseRevision, text } = request;
|
|
42
|
-
if (!(baseRevision === null || (typeof baseRevision === "string" && REVISION.test(baseRevision))) || typeof text !== "string") {
|
|
43
|
-
throw new ProjectFileError("invalid", "Invalid notes save");
|
|
44
|
-
}
|
|
45
|
-
if (Buffer.byteLength(text) > FILE_LIMITS.writeBytes)
|
|
46
|
-
throw new ProjectFileError("large", "Notes over 1 MiB cannot be saved here");
|
|
47
|
-
if (CONTROL.test(text))
|
|
48
|
-
throw new ProjectFileError("invalid", "The text contains control characters");
|
|
49
|
-
return baseRevision === null ? createNotes(root, text) : saveNotes(root, baseRevision, text);
|
|
50
|
-
}
|
|
51
|
-
case "git":
|
|
52
|
-
if (typeof request.keepOut !== "boolean")
|
|
53
|
-
throw new ProjectFileError("invalid", "Invalid notes request");
|
|
54
|
-
return { git: await keepOutOfGit(root, request.keepOut) };
|
|
55
|
-
default: throw new ProjectFileError("invalid", "Unsupported notes request");
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const files = (root) => new ProjectFileService(async () => ({ scope: SCOPE, root, access: { kind: "host" }, only: NOTES_FILE }));
|
|
59
|
-
const missing = (error) => error instanceof ProjectFileError && error.code === "missing";
|
|
60
|
-
async function readNotes(root) {
|
|
61
|
-
const git = await gitState(root);
|
|
62
|
-
let doc;
|
|
63
|
-
try {
|
|
64
|
-
doc = await files(root).dispatch({ version: 1, operation: "read", scope: SCOPE, path: NOTES_FILE });
|
|
65
|
-
}
|
|
66
|
-
catch (error) {
|
|
67
|
-
if (missing(error))
|
|
68
|
-
return { text: "", revision: null, git };
|
|
69
|
-
throw error;
|
|
70
|
-
}
|
|
71
|
-
if (typeof doc.text !== "string")
|
|
72
|
-
throw new ProjectFileError("unsupported", `${NOTES_FILE} is not UTF-8 text`);
|
|
73
|
-
return { text: doc.text, revision: doc.revision, git };
|
|
74
|
-
}
|
|
75
|
-
async function saveNotes(root, baseRevision, text) {
|
|
76
|
-
let result;
|
|
77
|
-
try {
|
|
78
|
-
result = await files(root).dispatch({ version: 1, operation: "write", scope: SCOPE, path: NOTES_FILE, baseRevision, text });
|
|
79
|
-
}
|
|
80
|
-
catch (error) {
|
|
81
|
-
if (missing(error))
|
|
82
|
-
return { outcome: "conflict", ...(await readNotes(root)) };
|
|
83
|
-
throw error;
|
|
84
|
-
}
|
|
85
|
-
if ("outcome" in result && result.outcome === "saved")
|
|
86
|
-
return { outcome: "saved", revision: result.revision };
|
|
87
|
-
return { outcome: "conflict", ...(await readNotes(root)) };
|
|
88
|
-
}
|
|
89
|
-
/** The first save. Out of Git by default: the exclude line is written before
|
|
90
|
-
* the file exists. Another device creating it first is a conflict. */
|
|
91
|
-
async function createNotes(root, text) {
|
|
92
|
-
if ((await gitState(root)).state === "included")
|
|
93
|
-
await setExcludeLine(root, true);
|
|
94
|
-
let file;
|
|
95
|
-
try {
|
|
96
|
-
file = await open(path.join(root, NOTES_FILE), constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL | constants.O_NOFOLLOW, 0o644);
|
|
97
|
-
}
|
|
98
|
-
catch (error) {
|
|
99
|
-
if (error.code === "EEXIST")
|
|
100
|
-
return { outcome: "conflict", ...(await readNotes(root)) };
|
|
101
|
-
throw error;
|
|
102
|
-
}
|
|
103
|
-
try {
|
|
104
|
-
await file.writeFile(text);
|
|
105
|
-
await file.sync();
|
|
106
|
-
}
|
|
107
|
-
finally {
|
|
108
|
-
await file.close();
|
|
109
|
-
}
|
|
110
|
-
return { outcome: "saved", revision: createHash("sha256").update(text).digest("hex"), git: await gitState(root) };
|
|
111
|
-
}
|
|
112
|
-
async function keepOutOfGit(root, keepOut) {
|
|
113
|
-
const now = await gitState(root);
|
|
114
|
-
if (now.state === "committed")
|
|
115
|
-
throw new ProjectFileError("invalid", `${NOTES_FILE} is committed in this repository, so Git keeps it either way`);
|
|
116
|
-
if (now.state === "ignored")
|
|
117
|
-
throw new ProjectFileError("invalid", `${now.by} already ignores ${NOTES_FILE}. Change it there.`);
|
|
118
|
-
await setExcludeLine(root, keepOut);
|
|
119
|
-
if (keepOut && now.state === "included")
|
|
120
|
-
await untrack(root);
|
|
121
|
-
return gitState(root);
|
|
122
|
-
}
|
|
123
|
-
const git = (root, args) => runCommand("git", args, { cwd: root, allowFailure: true });
|
|
124
|
-
async function gitOut(root, args) {
|
|
125
|
-
const result = await git(root, args);
|
|
126
|
-
if (result.code !== 0)
|
|
127
|
-
throw new Error(`git ${args[0]} failed in ${root}: ${result.stderr.trim()}`);
|
|
128
|
-
return result.stdout;
|
|
129
|
-
}
|
|
130
|
-
/** The repository's local exclude file. Every home project is a Git repository. */
|
|
131
|
-
async function excludeFile(root) {
|
|
132
|
-
return path.resolve(root, (await gitOut(root, ["rev-parse", "--git-path", "info/exclude"])).trim());
|
|
133
|
-
}
|
|
134
|
-
/** Where RUDDER_NOTES.md stands. In a colocated jj repository Git's index
|
|
135
|
-
* follows jj's working copy (files jj tracks in @ are intent-to-add there). */
|
|
136
|
-
export async function gitState(root) {
|
|
137
|
-
const exclude = await excludeFile(root);
|
|
138
|
-
const head = await git(root, ["rev-parse", "-q", "--verify", "HEAD^{commit}"]);
|
|
139
|
-
if (head.code === 0 && (await gitOut(root, ["ls-tree", "--name-only", "HEAD", "--", NOTES_FILE])).trim())
|
|
140
|
-
return { state: "committed" };
|
|
141
|
-
// Tracked but not committed yet: staged in Git, or tracked by jj in @.
|
|
142
|
-
if ((await gitOut(root, ["ls-files", "--", NOTES_FILE])).trim())
|
|
143
|
-
return { state: "included" };
|
|
144
|
-
const rule = await git(root, ["check-ignore", "-v", "--no-index", "--", NOTES_FILE]);
|
|
145
|
-
if (rule.code === 1)
|
|
146
|
-
return { state: "included" };
|
|
147
|
-
if (rule.code !== 0)
|
|
148
|
-
throw new Error(`git check-ignore failed in ${root}: ${rule.stderr.trim()}`);
|
|
149
|
-
// "<source>:<line>:<pattern>\t<path>". A negated pattern means not ignored.
|
|
150
|
-
const match = /^(.+?):(\d+):(.*)\t/.exec(rule.stdout);
|
|
151
|
-
if (!match)
|
|
152
|
-
throw new Error(`git check-ignore printed an unexpected line in ${root}: ${rule.stdout.trim()}`);
|
|
153
|
-
const [, source, , pattern] = match;
|
|
154
|
-
if (pattern.startsWith("!"))
|
|
155
|
-
return { state: "included" };
|
|
156
|
-
if (path.resolve(root, source) === exclude && pattern === EXCLUDE_LINE)
|
|
157
|
-
return { state: "excluded" };
|
|
158
|
-
return { state: "ignored", by: shownSource(root, source) };
|
|
159
|
-
}
|
|
160
|
-
function shownSource(root, source) {
|
|
161
|
-
if (source.startsWith("~"))
|
|
162
|
-
return source;
|
|
163
|
-
const at = path.resolve(root, source);
|
|
164
|
-
if (at.startsWith(`${root}/`))
|
|
165
|
-
return path.relative(root, at);
|
|
166
|
-
const home = homedir();
|
|
167
|
-
return at.startsWith(`${home}/`) ? `~/${path.relative(home, at)}` : at;
|
|
168
|
-
}
|
|
169
|
-
async function setExcludeLine(root, present) {
|
|
170
|
-
const file = await excludeFile(root);
|
|
171
|
-
let text = "";
|
|
172
|
-
try {
|
|
173
|
-
text = await readFile(file, "utf8");
|
|
174
|
-
}
|
|
175
|
-
catch (error) {
|
|
176
|
-
if (error.code !== "ENOENT")
|
|
177
|
-
throw error;
|
|
178
|
-
}
|
|
179
|
-
const lines = text.split("\n");
|
|
180
|
-
if (lines.some((line) => line.trim() === EXCLUDE_LINE) === present)
|
|
181
|
-
return;
|
|
182
|
-
if (present) {
|
|
183
|
-
await mkdir(path.dirname(file), { recursive: true });
|
|
184
|
-
await appendFile(file, `${text && !text.endsWith("\n") ? "\n" : ""}${EXCLUDE_LINE}\n`);
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
await writeFile(file, lines.filter((line) => line.trim() !== EXCLUDE_LINE).join("\n"));
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
/** A notes file that is not committed but still tracked: jj tracks it in @
|
|
191
|
-
* once a snapshot saw it, and only `jj file untrack` lets go (it needs the
|
|
192
|
-
* exclude line in place first). Without jj, Git's index holds it only when
|
|
193
|
-
* someone staged it. */
|
|
194
|
-
async function untrack(root) {
|
|
195
|
-
let jj = false;
|
|
196
|
-
try {
|
|
197
|
-
jj = (await lstat(path.join(root, ".jj"))).isDirectory();
|
|
198
|
-
}
|
|
199
|
-
catch (error) {
|
|
200
|
-
if (error.code !== "ENOENT")
|
|
201
|
-
throw error;
|
|
202
|
-
}
|
|
203
|
-
if (jj) {
|
|
204
|
-
const tracked = await runCommand("jj", ["file", "list", "--ignore-working-copy", "-r", "@", "--", NOTES_FILE], { cwd: root });
|
|
205
|
-
if (tracked.stdout.trim())
|
|
206
|
-
await runCommand("jj", ["file", "untrack", "--", NOTES_FILE], { cwd: root });
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
if ((await gitOut(root, ["ls-files", "--", NOTES_FILE])).trim())
|
|
210
|
-
await gitOut(root, ["rm", "--cached", "-q", "--", NOTES_FILE]);
|
|
211
|
-
}
|
|
212
|
-
//# sourceMappingURL=notes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notes.js","sourceRoot":"","sources":["../../src/project-files/notes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,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