@grovehq/cli 0.39.1 → 0.40.0

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.
Files changed (2) hide show
  1. package/cli.cjs +18 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -4260,7 +4260,7 @@ async function fetchNpmLatest(signal) {
4260
4260
  }
4261
4261
 
4262
4262
  // src/lib/version.ts
4263
- var CLI_VERSION = true ? "0.39.1" : "0.0.0-dev";
4263
+ var CLI_VERSION = true ? "0.40.0" : "0.0.0-dev";
4264
4264
  function compareSemver(a, b) {
4265
4265
  const parse = (v) => (v.split("-")[0] ?? v).split(".").map((n) => Number.parseInt(n, 10) || 0);
4266
4266
  const pa = parse(a);
@@ -5077,10 +5077,13 @@ var api = {
5077
5077
  return {
5078
5078
  ...res,
5079
5079
  data: {
5080
- entries: res.data.entries.map((e) => ({
5081
- ...e,
5082
- documents: e.documents ?? (e.documentIds ?? []).map((documentId) => ({ documentId, path: null }))
5083
- }))
5080
+ entries: res.data.entries.map(
5081
+ (e) => e.kind === "state_change" ? e : {
5082
+ ...e,
5083
+ kind: "handoff",
5084
+ documents: e.documents ?? (e.documentIds ?? []).map((documentId) => ({ documentId, path: null }))
5085
+ }
5086
+ )
5084
5087
  }
5085
5088
  };
5086
5089
  },
@@ -5821,6 +5824,10 @@ function refreshMirror(stableId, data) {
5821
5824
  var UNNAMEABLE_DOCUMENT = "a document Grove can no longer name";
5822
5825
  function composerOf(entry) {
5823
5826
  const person3 = entry.authorDisplayName ?? "a workspace member";
5827
+ if (entry.kind === "state_change") {
5828
+ if (entry.authorId === null) return "Grove, on its own";
5829
+ return entry.how === "hand" ? `${person3}, by hand` : `Grove, for ${person3}`;
5830
+ }
5824
5831
  switch (entry.postedBy) {
5825
5832
  case "grove":
5826
5833
  return `Grove, for ${person3}`;
@@ -5831,10 +5838,14 @@ function composerOf(entry) {
5831
5838
  }
5832
5839
  }
5833
5840
  function renderEntry(entry, index, total) {
5834
- const lines = [
5841
+ const head = [
5835
5842
  `Entry ${index + 1} of ${total} \u2014 posted ${new Date(entry.createdAt).toISOString()}, by ${composerOf(entry)}`,
5836
5843
  `Entry id: ${entry.entryId}`,
5837
- entry.text,
5844
+ entry.text
5845
+ ];
5846
+ if (entry.kind === "state_change") return head.join("\n");
5847
+ const lines = [
5848
+ ...head,
5838
5849
  entry.documents.length === 0 ? "Names no documents." : `Documents changed: ${entry.documents.map((doc) => doc.path ?? UNNAMEABLE_DOCUMENT).join(", ")}`,
5839
5850
  ...entry.threadIds.length === 0 && entry.threadOrder.length === 0 ? ["Names no threads."] : [],
5840
5851
  ...entry.threadIds.length === 0 ? [] : [`Threads closed: ${entry.threadIds.join(", ")}`],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grovehq/cli",
3
- "version": "0.39.1",
3
+ "version": "0.40.0",
4
4
  "description": "Grove's command line, for coding agents building Grove projects.",
5
5
  "homepage": "https://grovehq.com",
6
6
  "license": "UNLICENSED",