@gobi-ai/cli 2.0.33 → 2.0.34
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/dist/commands/sense.js +32 -15
- package/package.json +1 -1
- package/skills/gobi-artifact/SKILL.md +2 -2
- package/skills/gobi-core/SKILL.md +2 -2
- package/skills/gobi-homepage/SKILL.md +1 -1
- package/skills/gobi-media/SKILL.md +2 -2
- package/skills/gobi-sense/SKILL.md +2 -2
- package/skills/gobi-space/SKILL.md +2 -2
- package/skills/gobi-vault/SKILL.md +2 -2
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
"name": "gobi-ai"
|
|
5
5
|
},
|
|
6
6
|
"description": "Claude Code plugin for the Gobi collaborative knowledge platform CLI",
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.34",
|
|
8
8
|
"plugins": [
|
|
9
9
|
{
|
|
10
10
|
"name": "gobi",
|
|
11
11
|
"description": "Manage the Gobi collaborative knowledge platform from the command line. Publish vault profiles, create posts and replies, generate images and videos.",
|
|
12
|
-
"version": "2.0.
|
|
12
|
+
"version": "2.0.34",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "gobi-ai"
|
|
15
15
|
},
|
package/dist/commands/sense.js
CHANGED
|
@@ -71,21 +71,17 @@ export function registerSenseCommand(program) {
|
|
|
71
71
|
for (const t of transcriptions) {
|
|
72
72
|
const rawTurns = (t.turns || []);
|
|
73
73
|
for (const turn of rawTurns) {
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
continue;
|
|
83
|
-
}
|
|
84
|
-
allTurns.push({ speaker: turn.speaker, timestamp: turn.timestamp, text: line });
|
|
85
|
-
}
|
|
74
|
+
const text = String(turn.text ?? "").trim();
|
|
75
|
+
if (!text)
|
|
76
|
+
continue;
|
|
77
|
+
allTurns.push({
|
|
78
|
+
speaker: String(turn.speaker ?? ""),
|
|
79
|
+
timestamp: String(turn.timestamp ?? ""),
|
|
80
|
+
text,
|
|
81
|
+
});
|
|
86
82
|
}
|
|
87
83
|
}
|
|
88
|
-
// Filter to requested time range and sort
|
|
84
|
+
// Filter to requested time range and sort by time.
|
|
89
85
|
const startMs = new Date(opts.startTime).getTime();
|
|
90
86
|
const endMs = new Date(opts.endTime).getTime();
|
|
91
87
|
const filtered = allTurns
|
|
@@ -94,8 +90,29 @@ export function registerSenseCommand(program) {
|
|
|
94
90
|
return ts >= startMs && ts <= endMs;
|
|
95
91
|
})
|
|
96
92
|
.sort((a, b) => a.timestamp.localeCompare(b.timestamp));
|
|
93
|
+
// Friendly speaker labels: named voices → their name, the user → "Me",
|
|
94
|
+
// anonymous voices (bare index, Person:/uv:) → a stable "Speaker N"
|
|
95
|
+
// numbered by first appearance across the sorted transcript.
|
|
96
|
+
const anonOrdinals = new Map();
|
|
97
|
+
let nextOrdinal = 1;
|
|
98
|
+
const labelFor = (token) => {
|
|
99
|
+
const named = token.match(/^(.+):(\d+)$/);
|
|
100
|
+
if (named) {
|
|
101
|
+
const name = named[1].trim();
|
|
102
|
+
if (name === "Me")
|
|
103
|
+
return "Me";
|
|
104
|
+
if (name && name !== "Person" && name !== "uv")
|
|
105
|
+
return name;
|
|
106
|
+
}
|
|
107
|
+
if (!anonOrdinals.has(token))
|
|
108
|
+
anonOrdinals.set(token, nextOrdinal++);
|
|
109
|
+
return `Speaker ${anonOrdinals.get(token)}`;
|
|
110
|
+
};
|
|
97
111
|
if (isJsonMode(sense)) {
|
|
98
|
-
jsonOut({
|
|
112
|
+
jsonOut({
|
|
113
|
+
transcriptions: filtered.map((t) => ({ ...t, speaker: labelFor(t.speaker) })),
|
|
114
|
+
lastSeenTime,
|
|
115
|
+
});
|
|
99
116
|
return;
|
|
100
117
|
}
|
|
101
118
|
if (!filtered.length) {
|
|
@@ -104,7 +121,7 @@ export function registerSenseCommand(program) {
|
|
|
104
121
|
console.log(`Latest data available: ${lastSeenTime}`);
|
|
105
122
|
return;
|
|
106
123
|
}
|
|
107
|
-
const lines = filtered.map((t) => `-
|
|
124
|
+
const lines = filtered.map((t) => `- ${labelFor(t.speaker)} (${t.timestamp}): ${t.text}`);
|
|
108
125
|
console.log(`Transcriptions (${filtered.length} turns):\n` + lines.join("\n"));
|
|
109
126
|
if (lastSeenTime)
|
|
110
127
|
console.log(`Latest data available: ${lastSeenTime}`);
|
package/package.json
CHANGED
|
@@ -9,12 +9,12 @@ description: >-
|
|
|
9
9
|
allowed-tools: Bash(gobi:*)
|
|
10
10
|
metadata:
|
|
11
11
|
author: gobi-ai
|
|
12
|
-
version: "2.0.
|
|
12
|
+
version: "2.0.34"
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
# gobi-artifact
|
|
16
16
|
|
|
17
|
-
Gobi artifact commands for versioned, post-attachable creations (v2.0.
|
|
17
|
+
Gobi artifact commands for versioned, post-attachable creations (v2.0.34).
|
|
18
18
|
|
|
19
19
|
Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
|
|
20
20
|
|
|
@@ -8,12 +8,12 @@ description: >-
|
|
|
8
8
|
allowed-tools: Bash(gobi:*)
|
|
9
9
|
metadata:
|
|
10
10
|
author: gobi-ai
|
|
11
|
-
version: "2.0.
|
|
11
|
+
version: "2.0.34"
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
# gobi-core
|
|
15
15
|
|
|
16
|
-
Core CLI commands for the Gobi collaborative knowledge platform (v2.0.
|
|
16
|
+
Core CLI commands for the Gobi collaborative knowledge platform (v2.0.34).
|
|
17
17
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
@@ -10,12 +10,12 @@ description: >-
|
|
|
10
10
|
allowed-tools: Bash(gobi:*)
|
|
11
11
|
metadata:
|
|
12
12
|
author: gobi-ai
|
|
13
|
-
version: "2.0.
|
|
13
|
+
version: "2.0.34"
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# gobi-media
|
|
17
17
|
|
|
18
|
-
Gobi media generation commands (v2.0.
|
|
18
|
+
Gobi media generation commands (v2.0.34).
|
|
19
19
|
|
|
20
20
|
Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
|
|
21
21
|
|
|
@@ -7,12 +7,12 @@ description: >-
|
|
|
7
7
|
allowed-tools: Bash(gobi:*)
|
|
8
8
|
metadata:
|
|
9
9
|
author: gobi-ai
|
|
10
|
-
version: "2.0.
|
|
10
|
+
version: "2.0.34"
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# gobi-sense
|
|
14
14
|
|
|
15
|
-
Gobi sense commands for activity and transcription data (v2.0.
|
|
15
|
+
Gobi sense commands for activity and transcription data (v2.0.34).
|
|
16
16
|
|
|
17
17
|
Requires gobi-cli installed and authenticated. See the **gobi-core** skill for setup.
|
|
18
18
|
|
|
@@ -11,12 +11,12 @@ description: >-
|
|
|
11
11
|
allowed-tools: Bash(gobi:*)
|
|
12
12
|
metadata:
|
|
13
13
|
author: gobi-ai
|
|
14
|
-
version: "2.0.
|
|
14
|
+
version: "2.0.34"
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
# gobi-space
|
|
18
18
|
|
|
19
|
-
Gobi space, global, and personal-space posts (v2.0.
|
|
19
|
+
Gobi space, global, and personal-space posts (v2.0.34).
|
|
20
20
|
|
|
21
21
|
Requires gobi-cli installed and authenticated. See the **gobi-core** skill for setup.
|
|
22
22
|
|
|
@@ -8,12 +8,12 @@ description: >-
|
|
|
8
8
|
allowed-tools: Bash(gobi:*)
|
|
9
9
|
metadata:
|
|
10
10
|
author: gobi-ai
|
|
11
|
-
version: "2.0.
|
|
11
|
+
version: "2.0.34"
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
# gobi-vault
|
|
15
15
|
|
|
16
|
-
Gobi vault commands for publishing your vault profile and syncing files (v2.0.
|
|
16
|
+
Gobi vault commands for publishing your vault profile and syncing files (v2.0.34).
|
|
17
17
|
|
|
18
18
|
Requires gobi-cli installed and authenticated. See gobi-core skill for setup.
|
|
19
19
|
|