@yhong91/vibetime 0.1.35 → 0.1.36

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/bin/vibetime.mjs +21 -19
  2. package/package.json +1 -1
package/bin/vibetime.mjs CHANGED
@@ -1928,7 +1928,7 @@ function countTextLines(text) {
1928
1928
  }
1929
1929
 
1930
1930
  // src/lib/constants.ts
1931
- var PACKAGE_VERSION = true ? "0.1.35" : "0.1.1";
1931
+ var PACKAGE_VERSION = true ? "0.1.36" : "0.1.1";
1932
1932
  var DEFAULT_API_URL = "http://121.196.224.82:3001";
1933
1933
  var DEFAULT_BACKFILL_BATCH_SIZE = 50;
1934
1934
  var DEFAULT_BACKFILL_BATCH_BYTES = 800 * 1024;
@@ -4248,7 +4248,7 @@ async function parseCodebuddyTraceFile(filePath, options) {
4248
4248
  confidence: "partial"
4249
4249
  }), 0, "trace");
4250
4250
  }
4251
- if (trace.prompt && traceStartedAt) {
4251
+ if (traceStartedAt) {
4252
4252
  const turnId = `turn_${createStableHash([sessionId, trace.traceId]).slice(0, 24)}`;
4253
4253
  push(baseEvent({
4254
4254
  ts: traceStartedAt,
@@ -4260,23 +4260,25 @@ async function parseCodebuddyTraceFile(filePath, options) {
4260
4260
  model,
4261
4261
  confidence: "partial"
4262
4262
  }), 0, "trace");
4263
- push(baseEvent({
4264
- ts: traceStartedAt,
4265
- type: "prompt.submitted",
4266
- sessionId,
4267
- turnId,
4268
- cwd,
4269
- project,
4270
- model,
4271
- confidence: "partial",
4272
- metrics: {
4273
- prompts: 1,
4274
- promptChars: trace.prompt.length
4275
- },
4276
- refs: stringRefs({
4277
- promptHash: trace.prompt ? `sha256:${createStableHash(trace.prompt)}` : void 0
4278
- })
4279
- }), 0, "trace");
4263
+ if (trace.prompt) {
4264
+ push(baseEvent({
4265
+ ts: traceStartedAt,
4266
+ type: "prompt.submitted",
4267
+ sessionId,
4268
+ turnId,
4269
+ cwd,
4270
+ project,
4271
+ model,
4272
+ confidence: "partial",
4273
+ metrics: {
4274
+ prompts: 1,
4275
+ promptChars: trace.prompt.length
4276
+ },
4277
+ refs: stringRefs({
4278
+ promptHash: `sha256:${createStableHash(trace.prompt)}`
4279
+ })
4280
+ }), 0, "trace");
4281
+ }
4280
4282
  if (traceEndedAt) {
4281
4283
  push(baseEvent({
4282
4284
  ts: traceEndedAt,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yhong91/vibetime",
3
3
  "type": "module",
4
- "version": "0.1.35",
4
+ "version": "0.1.36",
5
5
  "description": "vibetime CLI — install AI-agent hooks (Claude Code, Codex, OpenCode, Pi) and report activity to vibetime.",
6
6
  "license": "MIT",
7
7
  "publishConfig": {