@memfork/cli 0.1.46 → 0.1.47
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/dist/cli.js +1 -0
- package/dist/commands/ops.d.ts +1 -0
- package/dist/commands/ops.js +1 -0
- package/dist/commands/ui-server.js +13 -0
- package/package.json +1 -1
- package/ui/assets/{index-CXGCH_Kj.js → index-CmScTvnH.js} +12 -12
- package/ui/assets/{index-CXGCH_Kj.js.map → index-CmScTvnH.js.map} +1 -1
- package/ui/index.html +1 -1
package/dist/cli.js
CHANGED
|
@@ -85,6 +85,7 @@ program
|
|
|
85
85
|
.requiredOption("-m, --message <msg>", "commit message")
|
|
86
86
|
.option("-b, --branch <name>", "branch (default: current git branch)")
|
|
87
87
|
.option("-f, --facts <facts...>", "one or more fact strings")
|
|
88
|
+
.option("--tool <tool>", "tool that wrote this commit: codex | cursor | sdk")
|
|
88
89
|
.option("--from-response <text>", "extract facts from a full response text")
|
|
89
90
|
.option("--auto-extract", "use LLM to extract durable facts (requires --from-response)")
|
|
90
91
|
.option("--file <path>", "attach a file as a Walrus artifact (repeatable). Requires artifacts.enabled = true in config.", (v, acc) => [...acc, v], [])
|
package/dist/commands/ops.d.ts
CHANGED
package/dist/commands/ops.js
CHANGED
|
@@ -155,6 +155,7 @@ export async function cmdCommit(opts) {
|
|
|
155
155
|
const { blobId, artifacts: refs } = await client.commit(branch, {
|
|
156
156
|
facts,
|
|
157
157
|
message: opts.message,
|
|
158
|
+
...(opts.tool ? { tool: opts.tool } : {}),
|
|
158
159
|
...(artifacts.length > 0 ? { artifacts } : {}),
|
|
159
160
|
});
|
|
160
161
|
const out = { blobId, branch, artifacts: refs };
|
|
@@ -242,6 +242,19 @@ async function handleApiHistory(res, url) {
|
|
|
242
242
|
message: facts?.length ? facts[0] : `commit ${entry.blob_id.slice(0, 8)}`,
|
|
243
243
|
delta: payload["delta"] ?? {},
|
|
244
244
|
...(artifacts?.length ? { artifacts } : {}),
|
|
245
|
+
// author is stored as base64-encoded bytes; decode to 0x-prefixed hex address.
|
|
246
|
+
...(payload["author"] ? {
|
|
247
|
+
author: (() => {
|
|
248
|
+
try {
|
|
249
|
+
const hex = Buffer.from(String(payload["author"]), "base64").toString("hex");
|
|
250
|
+
return `0x${hex}`;
|
|
251
|
+
}
|
|
252
|
+
catch {
|
|
253
|
+
return undefined;
|
|
254
|
+
}
|
|
255
|
+
})(),
|
|
256
|
+
} : {}),
|
|
257
|
+
...(payload["tool"] ? { tool: payload["tool"] } : {}),
|
|
245
258
|
}];
|
|
246
259
|
});
|
|
247
260
|
commits.sort((a, b) => a.ts_ms - b.ts_ms);
|