trellis 2.1.6 → 2.1.7
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/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
TrellisVcsEngine,
|
|
5
5
|
init_engine
|
|
6
|
-
} from "../index-
|
|
6
|
+
} from "../index-22jx9qsz.js";
|
|
7
7
|
import {
|
|
8
8
|
OntologyRegistry,
|
|
9
9
|
builtinOntologies,
|
|
@@ -3662,7 +3662,7 @@ program2.command("init").description("Initialize a new TrellisVCS repository in
|
|
|
3662
3662
|
process.stdout.write("\r\x1B[2K");
|
|
3663
3663
|
return;
|
|
3664
3664
|
}
|
|
3665
|
-
const label = progress.phase === "discovering" ? "Discovering\u2026" : progress.phase === "hashing" ? "Hashing\u2026" : "
|
|
3665
|
+
const label = progress.phase === "discovering" ? "Discovering\u2026" : progress.phase === "hashing" ? "Hashing\u2026" : "Scanning\u2026";
|
|
3666
3666
|
process.stdout.write(`\r\x1B[2K ${source_default.dim(label)} ${progress.message}`);
|
|
3667
3667
|
}
|
|
3668
3668
|
});
|
|
@@ -3672,11 +3672,21 @@ program2.command("init").description("Initialize a new TrellisVCS repository in
|
|
|
3672
3672
|
}
|
|
3673
3673
|
console.log(source_default.green("\u2713 Initialized Trellis repository"));
|
|
3674
3674
|
console.log(` ${source_default.dim("Path:")} ${rootPath}`);
|
|
3675
|
-
console.log(` ${source_default.dim("Ops:")} ${result.opsCreated} initial operations
|
|
3675
|
+
console.log(` ${source_default.dim("Ops:")} ${result.opsCreated} initial operations scanned`);
|
|
3676
3676
|
console.log(` ${source_default.dim("Config:")} .trellis/config.json`);
|
|
3677
3677
|
console.log(` ${source_default.dim("Op log:")} .trellis/ops.json`);
|
|
3678
|
+
console.log(` ${source_default.dim("Graph DB:")} .trellis/graph.db`);
|
|
3678
3679
|
console.log();
|
|
3679
|
-
console.log(source_default.
|
|
3680
|
+
console.log(source_default.bold("Next steps:"));
|
|
3681
|
+
console.log();
|
|
3682
|
+
console.log(` ${source_default.cyan("trellis status")} Check repository status`);
|
|
3683
|
+
console.log(` ${source_default.cyan("trellis log")} View recent history`);
|
|
3684
|
+
console.log(` ${source_default.cyan("trellis branch")} List or create branches`);
|
|
3685
|
+
console.log(` ${source_default.cyan("trellis milestone")} Create narrative checkpoints`);
|
|
3686
|
+
console.log(` ${source_default.cyan("trellis garden")} Discover abandoned work`);
|
|
3687
|
+
console.log(` ${source_default.cyan("trellis issue")} Create and track issues`);
|
|
3688
|
+
console.log();
|
|
3689
|
+
console.log(source_default.dim("The causal stream is now active. Every file change will be tracked."));
|
|
3680
3690
|
});
|
|
3681
3691
|
program2.command("repair").description("Attempt to repair a corrupted .trellis/ops.json file").option("-p, --path <path>", "Repository path", ".").action((opts) => {
|
|
3682
3692
|
const rootPath = resolve(opts.path);
|
|
@@ -3697,7 +3697,7 @@ class TrellisVcsEngine {
|
|
|
3697
3697
|
phase: "recording",
|
|
3698
3698
|
current: 0,
|
|
3699
3699
|
total: events.length,
|
|
3700
|
-
message: `
|
|
3700
|
+
message: `Scanning ${events.length} initial file operations\u2026`
|
|
3701
3701
|
});
|
|
3702
3702
|
for (const event of events) {
|
|
3703
3703
|
if (event.contentHash) {
|
|
@@ -3718,13 +3718,13 @@ class TrellisVcsEngine {
|
|
|
3718
3718
|
});
|
|
3719
3719
|
this.applyOp(op);
|
|
3720
3720
|
opsCreated++;
|
|
3721
|
-
const
|
|
3722
|
-
if (
|
|
3721
|
+
const scannedFiles = opsCreated - 1;
|
|
3722
|
+
if (scannedFiles % 25 === 0 || scannedFiles === events.length) {
|
|
3723
3723
|
opts?.onProgress?.({
|
|
3724
3724
|
phase: "recording",
|
|
3725
|
-
current:
|
|
3725
|
+
current: scannedFiles,
|
|
3726
3726
|
total: events.length,
|
|
3727
|
-
message: `
|
|
3727
|
+
message: `Scanned ${scannedFiles}/${events.length} initial file ops`
|
|
3728
3728
|
});
|
|
3729
3729
|
}
|
|
3730
3730
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trellis",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "A comprehensive graph-native platform for code, knowledge, and collaboration — version control, semantic analysis, knowledge graphs, embeddings, and decision traces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|