@yhong91/vibetime 0.1.62 → 0.1.63

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 +8 -3
  2. package/package.json +1 -1
package/bin/vibetime.mjs CHANGED
@@ -2047,7 +2047,7 @@ function claudeStyleFileMetrics(tool, input) {
2047
2047
  }
2048
2048
 
2049
2049
  // src/lib/constants.ts
2050
- var PACKAGE_VERSION = true ? "0.1.62" : "0.1.1";
2050
+ var PACKAGE_VERSION = true ? "0.1.63" : "0.1.1";
2051
2051
  var GENERATED_MARKER = "Generated by vibetime.";
2052
2052
  var DEFAULT_API_URL = "http://121.196.224.82:3001";
2053
2053
  var DEFAULT_BACKFILL_BATCH_SIZE = 50;
@@ -14900,6 +14900,10 @@ import { randomUUID } from "node:crypto";
14900
14900
  import { existsSync as existsSync2, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
14901
14901
  import { homedir, hostname } from "node:os";
14902
14902
  import path24 from "node:path";
14903
+ function disabledBackfillSourceSet(config) {
14904
+ const list = Array.isArray(config.disabledSources) ? config.disabledSources : [];
14905
+ return new Set(list.map((id) => String(id).trim()).filter(Boolean));
14906
+ }
14903
14907
  function configDir(home = homedir()) {
14904
14908
  return path24.join(home, ".vibetime");
14905
14909
  }
@@ -15644,7 +15648,8 @@ async function createBackfillPlanFromOptions(options, ctx, action, registry) {
15644
15648
  const home = resolveHome3(options, ctx);
15645
15649
  const env = ctx.env;
15646
15650
  const source = normalizeBackfillSource(stringOption(options.source) || "all");
15647
- const sourceDefs = source === "all" ? registry.all().map((a) => ({ id: a.id, label: a.label, paths: a.sourcePaths(home, env) })) : (() => {
15651
+ const disabled = disabledBackfillSourceSet(readConfig(home));
15652
+ const sourceDefs = source === "all" ? registry.all().filter((a) => !disabled.has(a.id)).map((a) => ({ id: a.id, label: a.label, paths: a.sourcePaths(home, env) })) : (() => {
15648
15653
  const adapter = registry.get(source);
15649
15654
  if (!adapter) {
15650
15655
  return [];
@@ -15879,7 +15884,7 @@ async function importBackfillPlan(plan, options, ctx, registry) {
15879
15884
  `);
15880
15885
  return 1;
15881
15886
  }
15882
- const sourceDefs = registry.all().filter((a) => supportedSources.has(a.id) && (source === "all" || a.id === source)).map((a) => ({ id: a.id, label: a.label, paths: a.sourcePaths(home, ctx.env) }));
15887
+ const sourceDefs = registry.all().filter((a) => supportedSources.has(a.id) && (source === "all" ? !disabledBackfillSourceSet(readConfig(home)).has(a.id) : a.id === source)).map((a) => ({ id: a.id, label: a.label, paths: a.sourcePaths(home, ctx.env) }));
15883
15888
  const remote = resolveRemoteFromOptions(options, ctx);
15884
15889
  const remoteKey = backfillRemoteKey(remote?.baseUrl ?? DEFAULT_API_URL);
15885
15890
  if (options.force) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yhong91/vibetime",
3
3
  "type": "module",
4
- "version": "0.1.62",
4
+ "version": "0.1.63",
5
5
  "description": "vibetime CLI — install AI-agent hooks (Claude Code, Codex, OpenCode, Pi, Cursor) and report activity to vibetime.",
6
6
  "license": "MIT",
7
7
  "publishConfig": {