ccsidekick 1.6.0 → 1.6.1
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/dist/ccsidekick-render.js +14 -7
- package/dist/ccsidekick.js +14 -7
- package/package.json +1 -1
|
@@ -2443,7 +2443,7 @@ var DEFAULT_CONFIG = {
|
|
|
2443
2443
|
schema_version: 1,
|
|
2444
2444
|
character: { enabled: true, mode: "random", name: "spiderman", roster: [] },
|
|
2445
2445
|
theme: { name: "character", banding: "solid", mood_shift: false, icons: {} },
|
|
2446
|
-
comments: { character: true, helpful: true, min_severity: "
|
|
2446
|
+
comments: { character: true, helpful: true, min_severity: "medium" },
|
|
2447
2447
|
network: { fx_refresh: false, usage_fetch: false, balance_path: "" },
|
|
2448
2448
|
statusline: { currency: defaultCurrency(), widgets: DEFAULT_WIDGETS }
|
|
2449
2449
|
};
|
|
@@ -3471,6 +3471,12 @@ function readGit(cwd, run = defaultRunner2(cwd)) {
|
|
|
3471
3471
|
} = parseNumstat(run(["diff", "HEAD", "--numstat"]));
|
|
3472
3472
|
const rollup = countSubmodules(workTreeRoot) > 0 ? readSubmoduleRollup(run, workTreeRoot) : null;
|
|
3473
3473
|
const behindDefault = readBehindDefault(run, status.branch, defaultBranch);
|
|
3474
|
+
const remoteBranchExists = status.branch !== undefined && !status.upstream ? run([
|
|
3475
|
+
"rev-parse",
|
|
3476
|
+
"--verify",
|
|
3477
|
+
"--quiet",
|
|
3478
|
+
`refs/remotes/origin/${status.branch}`
|
|
3479
|
+
]).trim() !== "" : false;
|
|
3474
3480
|
return {
|
|
3475
3481
|
...opt2("branch", status.branch),
|
|
3476
3482
|
...opt2("sha", status.sha),
|
|
@@ -3487,6 +3493,7 @@ function readGit(cwd, run = defaultRunner2(cwd)) {
|
|
|
3487
3493
|
submoduleBranches: rollup?.branches ?? [],
|
|
3488
3494
|
upstream: status.upstream,
|
|
3489
3495
|
upstreamGone: status.upstreamGone,
|
|
3496
|
+
remoteBranchExists,
|
|
3490
3497
|
...opt2("originRepo", originRepo),
|
|
3491
3498
|
...opt2("defaultBranch", defaultBranch),
|
|
3492
3499
|
...opt2("root", workTreeRoot === "" ? undefined : workTreeRoot),
|
|
@@ -6260,7 +6267,7 @@ var HELPFUL_CATALOG = [
|
|
|
6260
6267
|
},
|
|
6261
6268
|
{
|
|
6262
6269
|
id: "pay_as_you_go_active",
|
|
6263
|
-
severity: "
|
|
6270
|
+
severity: "low",
|
|
6264
6271
|
category: "billing",
|
|
6265
6272
|
momentary: false,
|
|
6266
6273
|
template: "Pay-as-you-go is on. Every request now bills on top of your plan.",
|
|
@@ -6317,9 +6324,9 @@ var HELPFUL_CATALOG = [
|
|
|
6317
6324
|
severity: "high",
|
|
6318
6325
|
category: "context",
|
|
6319
6326
|
momentary: false,
|
|
6320
|
-
template: "{pct}% full with uncommitted work. Commit
|
|
6327
|
+
template: "{pct}% full with uncommitted work. Commit now while the context is fresh.",
|
|
6321
6328
|
test: (i) => i.context.usedPct > COMPACT_SOON_PCT && dirty(i.git),
|
|
6322
|
-
render: (i) => `${pct(i.context.usedPct)} full with uncommitted work. Commit
|
|
6329
|
+
render: (i) => `${pct(i.context.usedPct)} full with uncommitted work. Commit now while the context is fresh.`
|
|
6323
6330
|
},
|
|
6324
6331
|
{
|
|
6325
6332
|
id: "compaction_thrash",
|
|
@@ -6435,7 +6442,7 @@ var HELPFUL_CATALOG = [
|
|
|
6435
6442
|
category: "git",
|
|
6436
6443
|
momentary: false,
|
|
6437
6444
|
template: "No upstream set. `git push -u origin HEAD` to track it.",
|
|
6438
|
-
test: (i) => i.git !== null && i.git.branch !== undefined && !i.git.upstream,
|
|
6445
|
+
test: (i) => i.git !== null && i.git.branch !== undefined && !i.git.upstream && !i.git.remoteBranchExists,
|
|
6439
6446
|
render: () => "No upstream set. `git push -u origin HEAD` to track it."
|
|
6440
6447
|
},
|
|
6441
6448
|
{
|
|
@@ -6512,7 +6519,7 @@ var HELPFUL_CATALOG = [
|
|
|
6512
6519
|
},
|
|
6513
6520
|
{
|
|
6514
6521
|
id: "detached_head",
|
|
6515
|
-
severity: "
|
|
6522
|
+
severity: "medium",
|
|
6516
6523
|
category: "git",
|
|
6517
6524
|
momentary: false,
|
|
6518
6525
|
template: "Detached HEAD. Branch before committing or new commits can vanish.",
|
|
@@ -6530,7 +6537,7 @@ var HELPFUL_CATALOG = [
|
|
|
6530
6537
|
},
|
|
6531
6538
|
{
|
|
6532
6539
|
id: "effort_low",
|
|
6533
|
-
severity: "
|
|
6540
|
+
severity: "medium",
|
|
6534
6541
|
category: "workflow",
|
|
6535
6542
|
momentary: false,
|
|
6536
6543
|
template: "Effort on low. Hard problems get shallow answers.",
|
package/dist/ccsidekick.js
CHANGED
|
@@ -2149,7 +2149,7 @@ var init_catalog = __esm(() => {
|
|
|
2149
2149
|
},
|
|
2150
2150
|
{
|
|
2151
2151
|
id: "pay_as_you_go_active",
|
|
2152
|
-
severity: "
|
|
2152
|
+
severity: "low",
|
|
2153
2153
|
category: "billing",
|
|
2154
2154
|
momentary: false,
|
|
2155
2155
|
template: "Pay-as-you-go is on. Every request now bills on top of your plan.",
|
|
@@ -2206,9 +2206,9 @@ var init_catalog = __esm(() => {
|
|
|
2206
2206
|
severity: "high",
|
|
2207
2207
|
category: "context",
|
|
2208
2208
|
momentary: false,
|
|
2209
|
-
template: "{pct}% full with uncommitted work. Commit
|
|
2209
|
+
template: "{pct}% full with uncommitted work. Commit now while the context is fresh.",
|
|
2210
2210
|
test: (i) => i.context.usedPct > COMPACT_SOON_PCT && dirty(i.git),
|
|
2211
|
-
render: (i) => `${pct(i.context.usedPct)} full with uncommitted work. Commit
|
|
2211
|
+
render: (i) => `${pct(i.context.usedPct)} full with uncommitted work. Commit now while the context is fresh.`
|
|
2212
2212
|
},
|
|
2213
2213
|
{
|
|
2214
2214
|
id: "compaction_thrash",
|
|
@@ -2324,7 +2324,7 @@ var init_catalog = __esm(() => {
|
|
|
2324
2324
|
category: "git",
|
|
2325
2325
|
momentary: false,
|
|
2326
2326
|
template: "No upstream set. `git push -u origin HEAD` to track it.",
|
|
2327
|
-
test: (i) => i.git !== null && i.git.branch !== undefined && !i.git.upstream,
|
|
2327
|
+
test: (i) => i.git !== null && i.git.branch !== undefined && !i.git.upstream && !i.git.remoteBranchExists,
|
|
2328
2328
|
render: () => "No upstream set. `git push -u origin HEAD` to track it."
|
|
2329
2329
|
},
|
|
2330
2330
|
{
|
|
@@ -2401,7 +2401,7 @@ var init_catalog = __esm(() => {
|
|
|
2401
2401
|
},
|
|
2402
2402
|
{
|
|
2403
2403
|
id: "detached_head",
|
|
2404
|
-
severity: "
|
|
2404
|
+
severity: "medium",
|
|
2405
2405
|
category: "git",
|
|
2406
2406
|
momentary: false,
|
|
2407
2407
|
template: "Detached HEAD. Branch before committing or new commits can vanish.",
|
|
@@ -2419,7 +2419,7 @@ var init_catalog = __esm(() => {
|
|
|
2419
2419
|
},
|
|
2420
2420
|
{
|
|
2421
2421
|
id: "effort_low",
|
|
2422
|
-
severity: "
|
|
2422
|
+
severity: "medium",
|
|
2423
2423
|
category: "workflow",
|
|
2424
2424
|
momentary: false,
|
|
2425
2425
|
template: "Effort on low. Hard problems get shallow answers.",
|
|
@@ -5485,7 +5485,7 @@ var init_config = __esm(() => {
|
|
|
5485
5485
|
schema_version: 1,
|
|
5486
5486
|
character: { enabled: true, mode: "random", name: "spiderman", roster: [] },
|
|
5487
5487
|
theme: { name: "character", banding: "solid", mood_shift: false, icons: {} },
|
|
5488
|
-
comments: { character: true, helpful: true, min_severity: "
|
|
5488
|
+
comments: { character: true, helpful: true, min_severity: "medium" },
|
|
5489
5489
|
network: { fx_refresh: false, usage_fetch: false, balance_path: "" },
|
|
5490
5490
|
statusline: { currency: defaultCurrency(), widgets: DEFAULT_WIDGETS }
|
|
5491
5491
|
};
|
|
@@ -6424,6 +6424,12 @@ function readGit(cwd, run = defaultRunner2(cwd)) {
|
|
|
6424
6424
|
} = parseNumstat(run(["diff", "HEAD", "--numstat"]));
|
|
6425
6425
|
const rollup = countSubmodules(workTreeRoot) > 0 ? readSubmoduleRollup(run, workTreeRoot) : null;
|
|
6426
6426
|
const behindDefault = readBehindDefault(run, status.branch, defaultBranch);
|
|
6427
|
+
const remoteBranchExists = status.branch !== undefined && !status.upstream ? run([
|
|
6428
|
+
"rev-parse",
|
|
6429
|
+
"--verify",
|
|
6430
|
+
"--quiet",
|
|
6431
|
+
`refs/remotes/origin/${status.branch}`
|
|
6432
|
+
]).trim() !== "" : false;
|
|
6427
6433
|
return {
|
|
6428
6434
|
...opt2("branch", status.branch),
|
|
6429
6435
|
...opt2("sha", status.sha),
|
|
@@ -6440,6 +6446,7 @@ function readGit(cwd, run = defaultRunner2(cwd)) {
|
|
|
6440
6446
|
submoduleBranches: rollup?.branches ?? [],
|
|
6441
6447
|
upstream: status.upstream,
|
|
6442
6448
|
upstreamGone: status.upstreamGone,
|
|
6449
|
+
remoteBranchExists,
|
|
6443
6450
|
...opt2("originRepo", originRepo),
|
|
6444
6451
|
...opt2("defaultBranch", defaultBranch),
|
|
6445
6452
|
...opt2("root", workTreeRoot === "" ? undefined : workTreeRoot),
|