codetime-cli 0.3.1 → 0.3.2

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/codetime.mjs +7 -5
  2. package/package.json +2 -2
package/bin/codetime.mjs CHANGED
@@ -972,7 +972,7 @@ import { readFile as readFile2, stat as stat2 } from "node:fs/promises";
972
972
  import path2 from "node:path";
973
973
 
974
974
  // src/lib/constants.ts
975
- var PACKAGE_VERSION = true ? "0.3.1" : "0.1.1";
975
+ var PACKAGE_VERSION = true ? "0.3.2" : "0.1.1";
976
976
  var DEFAULT_API_URL = "https://codetime.dev";
977
977
  var DEFAULT_BACKFILL_BATCH_SIZE = 50;
978
978
  var DEFAULT_BACKFILL_BATCH_BYTES = 800 * 1024;
@@ -4676,9 +4676,10 @@ async function backfillCommand(options, ctx, registry) {
4676
4676
  }
4677
4677
  if (action === "import" && !options["dry-run"]) {
4678
4678
  const requested = normalizeBackfillSource(stringOption(options.source) || "all");
4679
- const supported = /* @__PURE__ */ new Set(["all", "codex", "claude-code", "opencode", "pi"]);
4679
+ const supported = /* @__PURE__ */ new Set(["all", "codex", "claude-code", "opencode", "pi", "amp"]);
4680
4680
  if (!supported.has(requested)) {
4681
- write(ctx.stderr, "Only Codex, Claude Code, OpenCode, and Pi backfill import are implemented.\n");
4681
+ write(ctx.stderr, `Unsupported backfill source: ${requested}
4682
+ `);
4682
4683
  return 1;
4683
4684
  }
4684
4685
  const plan2 = await createBackfillPlanFromOptions(options, ctx, "discover", reg);
@@ -4900,10 +4901,11 @@ function writeBackfillPlan(plan, options, ctx) {
4900
4901
  }
4901
4902
  async function importBackfillPlan(plan, options, ctx, registry) {
4902
4903
  const source = normalizeBackfillSource(stringOption(options.source) || "all");
4903
- const supportedSources = /* @__PURE__ */ new Set(["codex", "claude-code", "opencode", "pi"]);
4904
+ const supportedSources = /* @__PURE__ */ new Set(["codex", "claude-code", "opencode", "pi", "amp"]);
4904
4905
  const home = resolveHome(options, ctx);
4905
4906
  if (source !== "all" && !supportedSources.has(source)) {
4906
- write(ctx.stderr, "Only Codex, Claude Code, OpenCode, and Pi backfill import are implemented.\n");
4907
+ write(ctx.stderr, `Unsupported backfill source: ${source}
4908
+ `);
4907
4909
  return 1;
4908
4910
  }
4909
4911
  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) }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "codetime-cli",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "description": "codetime CLI — install AI-agent hooks (Claude Code, Codex, OpenCode, Pi) and report activity to codetime.dev.",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
@@ -35,7 +35,7 @@
35
35
  "devDependencies": {
36
36
  "cac": "^7.0.0",
37
37
  "esbuild": "^0.28.0",
38
- "@codetime/shared": "0.3.1"
38
+ "@codetime/shared": "0.3.2"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "tsc -p tsconfig.json",