instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shaun0927__openchrome__1073 | shaun0927/openchrome | 1,073 | defect | 3a45d3e38bba41c17afa6ebd656c1a527b946a2a | 06782d8e10beadd1996520dc34a240dad3f7e5fc | feat(recovery): record passive trajectory ledger (#1017) | ## Summary\n- Adds a passive, bounded RecoveryTrajectoryLedger for redacted tool-attempt telemetry.\n- Wires MCP tool success/error completions into the ledger without changing browser behavior.\n- Adds a local stale-ref fixture route for follow-up live OpenChrome verification.\n\nCloses #1017.\n\n## Validation\n- npm ... | diff --git a/src/mcp-server.ts b/src/mcp-server.ts
index 350bbf7f3..f7ffdc5c5 100644
--- a/src/mcp-server.ts
+++ b/src/mcp-server.ts
@@ -53,6 +53,7 @@ import { OpenChromeConnectionError } from './errors/connection';
import { getTaskJournal } from './journal/task-journal';
import { getDashboardState } from './desktop/... | 10 | 9 | 5 | [{"id": "G0", "claim": "The recovery classifier only treats a previous call with result 'error' as recoverable, so failed attempts recorded as 'no_progress' (non-throwing isError results) are never followed by a 'recovered' label and the new ledger undercounts recoveries.", "category": "correctness", "verdict": "suppor... | null |
shaun0927__openchrome__1074 | shaun0927/openchrome | 1,074 | defect | dffb099b27c49418aca49c258851e6028522fa2a | 64a7b3ecccb32142180b537c5a044e3524dd41ee | feat(actions): support secret-safe act variables | ## Summary
- adds `%name%` variable placeholders to `act` with execution-time substitution
- keeps cached/planned actions placeholder-based while typing real runtime values into the page
- redacts act variable values from responses, activity telemetry, task journal, recordings, and audit redaction paths
Closes #995.
... | diff --git a/src/mcp-server.ts b/src/mcp-server.ts
index 68a40b0e3..6784f9b36 100644
--- a/src/mcp-server.ts
+++ b/src/mcp-server.ts
@@ -61,6 +61,18 @@ import {
getSecretStore,
} from './core/secrets';
+
+function redactActVariablesForTelemetry(toolName: string, args: Record<string, unknown>): Record<string, unkn... | 6 | 5 | 5 | [{"id": "G0", "claim": "The [Verification] url/title line appended to the act response is not passed through any redaction pass, so a placeholder that resolves into the final URL or title can leak its secret value in content[0].text.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
shaun0927__openchrome__1101 | shaun0927/openchrome | 1,101 | defect | 197f41eee5517e1bfeaee6c2a5dfc5daece5cfe5 | d341e6713a10e80f322718a7a97a15c1de39b9a0 | feat(actions): add guarded workflow cache (#1000) | ## Progress / Review status
_Auto-refreshed 2026-05-13 — owner comments cleaned up to reduce review noise._
| Field | Value |
| --- | --- |
| Branch | `feat/1000-guarded-workflow-cache` → `develop` |
| Draft | no |
| CI | — |
| Mergeable | ❌ CONFLICTING |
| Review decision | — |
| Codex (latest) | 💡 suggestions post... | diff --git a/src/actions/action-cache.ts b/src/actions/action-cache.ts
index 251910593..1052fb407 100644
--- a/src/actions/action-cache.ts
+++ b/src/actions/action-cache.ts
@@ -9,7 +9,9 @@ import { getDomainMemory, extractDomainFromUrl } from '../memory/domain-memory';
import { ParsedAction } from './action-parser';
... | 4 | 2 | 2 | [{"id": "G0", "claim": "Recording normalizes workflow keys with the action list while lookup/validation normalize without it, so entries redacted via a secret-like target are written under a different key than subsequent reads and become unreplayable.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
shaun0927__openchrome__1138 | shaun0927/openchrome | 1,138 | defect | dd76c3bc6c67421f646c70dd2129b7658e84af77 | a2c41701c74c6d5789ef5ff35ba28ca02f099bd5 | feat(harness): add opt-in run wandering budgets (#1026) | ## Summary
- Adds opt-in run budget evaluation for `max_tool_calls`, `max_same_tool_retries`, `max_observation_only_calls`, `max_no_progress_streak`, and `max_wall_ms`.
- Extends `oc_run_status` with an optional `budget` object; without it, existing hint-only run status behavior is unchanged.
- Marks budget-exceeded ru... | diff --git a/docs/harness/run-budgets.md b/docs/harness/run-budgets.md
new file mode 100644
index 000000000..56f828c0d
--- /dev/null
+++ b/docs/harness/run-budgets.md
@@ -0,0 +1,13 @@
+# Run harness wandering budgets
+
+`oc_run_status` accepts an optional `budget` object for opt-in run-level wandering guards. When omit... | 2 | 1 | 1 | [{"id": "G0", "claim": "oc_run_status now calls finishRun(...) and writes a run_finished event when a budget is exceeded, so marking it READ_ONLY in src/types/tool-annotations.ts breaks the tool-annotation contract and can let policy layers that allow read-only tools mutate ledger state.", "category": "correctness", "v... | null |
shaun0927__openchrome__1144 | shaun0927/openchrome | 1,144 | defect | 3549ad098979c90ef6ae387bf0996bf60b798f1a | e43214e3a6a2e148e82c2cf8ea403f056ef45093 | feat(contracts): add execute_plan final verification gate (#1031) | ## Summary
- adds an opt-in `finalVerification` gate to compiled plans so `execute_plan` can evaluate final Outcome Contract assertions before reporting success
- supports caller-provided bounded snapshot evidence via `finalSnapshot` (or a custom `snapshotParam`) and reports structured pass/fail evidence
- adds regress... | diff --git a/src/orchestration/plan-executor.ts b/src/orchestration/plan-executor.ts
index db1962439..5329bfa5b 100644
--- a/src/orchestration/plan-executor.ts
+++ b/src/orchestration/plan-executor.ts
@@ -6,16 +6,114 @@
*/
import { MCPResult, ToolHandler } from '../types/mcp';
-import {
- CompiledPlan,
- Co... | 2 | 1 | 1 | [{"id": "G0", "claim": "When dom_text is a selector map, buildSnapshotEvalContext's domText falls back to the body text when the requested selector key is missing, which can make a selector-scoped final assertion pass against unrelated page text and weaken the gate's correctness.", "category": "correctness", "verdict":... | null |
shaun0927__openchrome__1154 | shaun0927/openchrome | 1,154 | defect | f9cb30c780666cd5cd86f548cedccadfe763541b | a6c18993deb64b5ddd5bdb97e81cb3ad03e1593b | Add checkpoint timeline navigation | ## Summary
- Extends `oc_checkpoint` with a bounded append-only timeline while preserving latest/current checkpoint compatibility.
- Adds `action: "list"` and `load({ checkpointId })`/`delete({ checkpointId })` paths for timeline navigation.
- Saves stable `checkpointId`, optional `parentId`, label, session id, tab sum... | diff --git a/docs/tools/checkpoint-timeline.md b/docs/tools/checkpoint-timeline.md
new file mode 100644
index 000000000..8308b58d8
--- /dev/null
+++ b/docs/tools/checkpoint-timeline.md
@@ -0,0 +1,16 @@
+# Checkpoint timeline
+
+`oc_checkpoint` keeps its original `save`, `load`, and `delete` behavior, and now also write... | 6 | 6 | 6 | [{"id": "G0", "claim": "When `load` is called without a `checkpointId`, it should fall back to the newest timeline entry instead of returning \"No checkpoint found\" when `current-checkpoint.json` is absent but timeline entries still exist.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":... | null |
shaun0927__openchrome__1157 | shaun0927/openchrome | 1,157 | defect | e9ebfacbb2140ef6ef0f877de2a858f6e4dc9364 | ec2f06190449ce43c61727e11b2f0d30f2880244 | Expose pollable run events for long tasks | ## Summary
- add pollable `progress`, `partial_result`, and `warning` run events for long-task tools when callers pass a run id
- keep long-task tools synchronous by default while exposing `openchrome://runs/<run_id>` in run summaries
- bound run-ledger retention with `OPENCHROME_RUN_MAX_RECORDS` and document the opt-i... | diff --git a/docs/harness/run-events.md b/docs/harness/run-events.md
new file mode 100644
index 000000000..4b4f2a42a
--- /dev/null
+++ b/docs/harness/run-events.md
@@ -0,0 +1,29 @@
+# Long-task run events
+
+The run harness provides an opt-in, pollable event ledger for browser workflows
+that can outlive a single short... | 1 | 1 | 0 | [{"id": "G0", "claim": "recordSummary returns resource_uri values like openchrome://runs/<id> that cannot be dereferenced through MCP resources/read (handleResourcesRead only supports openchrome://usage-guide and openchrome://skill-graph/*), which would mislead clients that treat resource_uri as actionable and should b... | null |
shaun0927__openchrome__1158 | shaun0927/openchrome | 1,158 | defect | e7446f376a289b9f5700f3ff4dbae47f85da1649 | d1899e072bf075943785689919e27dcd6eb58c15 | Learn privacy-safe recovery episodes | ## Summary
- add bounded `FailureEpisodeStore` for redacted domain/task/error recovery episodes
- integrate episodes with `PatternLearner` so verified different-tool follow-ups can produce future advisory learned hints
- document the privacy model, pruning/confidence behavior, and no-auto-execution contract
## Verific... | diff --git a/docs/harness/failure-episode-memory.md b/docs/harness/failure-episode-memory.md
new file mode 100644
index 000000000..a3dd088c0
--- /dev/null
+++ b/docs/harness/failure-episode-memory.md
@@ -0,0 +1,30 @@
+# Privacy-safe failure episode memory
+
+OpenChrome's hint learner records a bounded, privacy-safe fai... | 3 | 3 | 3 | [{"id": "G0", "claim": "Episode IDs built from the timestamp plus a slug of domain/failedTool/recoveryTool (truncated to a short fixed length) can collide, so two different failures resolved by the same recovery in the same millisecond can be written with identical IDs, making recordFailedReuse(episodeId) ambiguous and... | null |
shaun0927__openchrome__1160 | shaun0927/openchrome | 1,160 | defect | 788dd0422684a53ee557d34e2a54465949c09f39 | 868875864817b6c931e28548a9763c67ef826104 | perf(extraction): support scoped extract_data refs | ## Summary
- adds mutually exclusive `selector` / `ref_id` / `backendNodeId` scoped extraction support to `extract_data`
- resolves `ref_id` through `RefIdManager` and backend nodes through CDP before running scoped strategies
- skips document-level JSON-LD/Microdata/OpenGraph for element scopes to avoid global metadat... | diff --git a/docs/recipes/README.md b/docs/recipes/README.md
index 53169f80b..50d08ffad 100644
--- a/docs/recipes/README.md
+++ b/docs/recipes/README.md
@@ -10,6 +10,7 @@ model composes them into prose.
|---|---|---|
| [multi-source-news-digest.md](multi-source-news-digest.md) | Pull headlines from several news sourc... | 1 | 1 | 1 | [{"id": "G0", "claim": "Converting ref_id/backendNodeId scopes to a CSS selector and marking them resolved can make the downstream extractors evaluate in the top document and silently fall back to unscoped document.body extraction when the referenced node is inside an iframe or shadow root, returning unrelated page dat... | null |
shaun0927__openchrome__1161 | shaun0927/openchrome | 1,161 | defect | b05bc308b9961df3a855549eebc1d63cc1c1630f | 0ee1fcb13b33f3ac30b34f444af8b770ab61ddf1 | perf(actions): add page-fingerprint action cache v2 | ## Summary
- adds action-cache v2 key parts with bounded page fingerprint, viewport, URL pattern, action kinds, option fingerprint, locale, and UA class
- makes `act` report a stable `[cache] status=... keyVersion=...` line for HIT/MISS/STALE/BYPASS
- rejects v2 replay on page/option fingerprint drift and keeps v1 entr... | diff --git a/docs/recipes/README.md b/docs/recipes/README.md
index 53169f80b..677e1a518 100644
--- a/docs/recipes/README.md
+++ b/docs/recipes/README.md
@@ -8,6 +8,7 @@ model composes them into prose.
| Recipe | Goal | Tools touched |
|---|---|---|
+| [action-cache-v2.md](action-cache-v2.md) | Interpret `act` cache... | 2 | 2 | 2 | [{"id": "G0", "claim": "On success the v2 entry is recorded under the post-execution page.url() while the key parts were built from the pre-action URL, so for instructions that navigate across domains the cache is effectively unusable (lookups from the original domain never find the entry; destination-domain lookups ha... | null |
shaun0927__openchrome__822 | shaun0927/openchrome | 822 | defect | 3a45d3e38bba41c17afa6ebd656c1a527b946a2a | ba73db6851d55199a1ce5288c1b8ef0132cb8f74 | fix(core): export documented luma/pixelRgb/rgbAt helpers | ## Summary
- Add the missing `export` modifier on three image-feature helpers (`luma`, `pixelRgb`, `rgbAt`) that the in-source comment already promised "remain exported for external callers".
- Clears 3 lint warnings on develop (`src/core/perception/image-features.ts:253/262/347`) so `npm run lint -- --max-warnings=0` ... | diff --git a/src/core/perception/image-features.ts b/src/core/perception/image-features.ts
index c640bd70a..cb2fa4f8c 100644
--- a/src/core/perception/image-features.ts
+++ b/src/core/perception/image-features.ts
@@ -250,7 +250,7 @@ function clampEnd(v: number, lo: number, hi: number): number {
}
/** Rec. 601 luma ... | 2 | 2 | 1 | [{"id": "G0", "claim": "When w or h is 0, clampInt(x, 0, w-1) yields a negative index so pixelRgb and rgbAt return undefined color components, violating their declared return types; since they are now exported API, they should handle zero dimensions gracefully.", "category": "correctness", "verdict": "supported", "prio... | null |
shaun0927__openchrome__895 | shaun0927/openchrome | 895 | defect | 3a45d3e38bba41c17afa6ebd656c1a527b946a2a | 498d4817d8f037789f6511e99df11964ac0c9853 | feat(skill-memory): auto-recall domain skills on navigate (#824) | ## Summary
Adds an opt-in, bounded auto-recall on `navigate` and `tabs_create`. When `OPENCHROME_AUTO_RECALL=1` or the per-call `recall:true` flag is set, the response gains a `domain_skills` payload (≤ 3 skills, ≤ 2 KB per body, ≤ 8 KB total). With the flag off and no arg, response shape is byte-identical to current `... | diff --git a/docs/skills/auto-recall.md b/docs/skills/auto-recall.md
new file mode 100644
index 000000000..165ddfe4b
--- /dev/null
+++ b/docs/skills/auto-recall.md
@@ -0,0 +1,90 @@
+# Auto-Recall Domain Skills on Navigate
+
+Auto-recall injects stored domain skills into `navigate` and `tabs_create` responses
+so the LL... | 10 | 8 | 7 | [{"id": "G0", "claim": "Body truncation recomputes the byte length and allocates a new Buffer inside the loop, and slicing the UTF-8 string at an arbitrary byte boundary can split multi-byte characters, producing invalid UTF-8 (replacement characters) in the returned body.", "category": "correctness", "verdict": "suppo... | null |
shaun0927__openchrome__916 | shaun0927/openchrome | 916 | defect | 3a45d3e38bba41c17afa6ebd656c1a527b946a2a | e22df6afc7e539691f1c49b11a3cb4757dfb02de | feat(core): browser-lifecycle event bus + trace recorder (#857) | Closes #857
## Summary
- New `src/core/lifecycle/` event bus with typed `LifecycleEvent` union and error-isolated dispatch
- Trace recorder at `src/core/trace/recorder.ts` subscribes to `'*'` and batches via `TraceStorage.appendEvents()` — closes the PR-2 follow-up
- Emit sites wired in `src/chrome/launcher.ts`, `src/... | diff --git a/.dependency-cruiser.cjs b/.dependency-cruiser.cjs
index cdc76a681..ff653c01c 100644
--- a/.dependency-cruiser.cjs
+++ b/.dependency-cruiser.cjs
@@ -18,6 +18,17 @@ module.exports = {
from: { path: '^src/core/' },
to: { path: '^src/pilot/' },
},
+ {
+ name: 'lifecycle-must-not-impo... | 6 | 1 | 1 | [{"id": "G0", "claim": "With the lifecycle bus enabled, the chrome:exit callback clearing lastKnownPid can leave check() with no cached PID after an unexpected exit, so the watchdog skips relaunch recovery entirely.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
shaun0927__openchrome__928 | shaun0927/openchrome | 928 | defect | 3a45d3e38bba41c17afa6ebd656c1a527b946a2a | 7d50d4afe51aa10f28ea98b26f0be1e8a94ace75 | feat(pilot): oc_skill_replay — deterministic CDP-step replay with oc_assert contract gate (#856) | ## Summary
Pilot-tier MCP tool that walks a recorded skill's `steps[]` verbatim via the existing CDP client, then runs a bound contract predicate to gate PASS. No retries, no DOM heuristics, no LLM (P3/P4).
## Module surface
- `src/pilot/skill/replay.ts` — pure runner. Cross-origin precondition gate; `step_timeout_m... | diff --git a/src/core/skill-memory/store.ts b/src/core/skill-memory/store.ts
index bc4d71909..129570cbe 100644
--- a/src/core/skill-memory/store.ts
+++ b/src/core/skill-memory/store.ts
@@ -308,6 +308,19 @@ export class SkillMemoryStore {
// keeps the previously-recorded value.
frozenSnapshotPath: skil... | 6 | 5 | 5 | [{"id": "G0", "claim": "The replay adapter swallows all page.waitForNavigation failures via .catch(() => {}), so a step marked awaitFrameNavigated cannot fail on timeout and a missing navigation may be treated as success (PASS) instead of STEP_FAIL, breaking the deterministic step contract.", "category": "correctness",... | null |
shaun0927__openchrome__940 | shaun0927/openchrome | 940 | defect | 3a45d3e38bba41c17afa6ebd656c1a527b946a2a | 6c1372b8890ab7ac973f54c3d6c9eee015b57da7 | feat(core): MCP progress notifications for long-running tools (#863) | ## Summary
Adds the request-scoped progress emitter the MCP spec describes for `notifications/progress`. **Foundation only** — long-running tools (`crawl`, `crawl_sitemap`, `oc_evidence_bundle`, `oc_session_snapshot`, `recording`) opt in by importing `progress.report(...)` in follow-up PRs without any further plumbing... | diff --git a/src/core/progress/progress-context.ts b/src/core/progress/progress-context.ts
new file mode 100644
index 000000000..072dde6d8
--- /dev/null
+++ b/src/core/progress/progress-context.ts
@@ -0,0 +1,271 @@
+/**
+ * MCP progress notifications — request-scoped emitter (issue #863).
+ *
+ * The MCP spec defines `... | 3 | 1 | 1 | [{"id": "G0", "claim": "progress.report() only checks that an AsyncLocalStorage store exists, so async work spawned inside the tool can still emit progress after runWithProgress() has returned/rejected and flushed in finally, sending notifications/progress for an operation no longer in progress, contrary to the MCP req... | null |
shaun0927__openchrome__947 | shaun0927/openchrome | 947 | defect | 2e2569124834e8945b9591c62364d9dae514373b | c2fb17d9a8e60475d5d55850a4f1e9fd3533ad84 | feat(core): includeSnapshot chaining option on input tools (#845) | ## Progress / Review status
_Auto-refreshed 2026-05-13 — owner comments cleaned up to reduce review noise._
| Field | Value |
| --- | --- |
| Branch | `feat/845-include-snapshot-chaining` → `develop` |
| Draft | no |
| CI | ✅ all 9 checks passing |
| Mergeable | ✅ MERGEABLE |
| Review decision | — |
| Codex (latest) ... | diff --git a/src/hints/rules/composite-suggestions.ts b/src/hints/rules/composite-suggestions.ts
index d5575e7b6..a22c2babc 100644
--- a/src/hints/rules/composite-suggestions.ts
+++ b/src/hints/rules/composite-suggestions.ts
@@ -12,6 +12,18 @@ function recentToolCount(ctx: HintContext, name: string): number {
return... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new hint suppression (`lastCallCarriedSnapshot`) keys off the requested `returnAfterState` arg instead of evidence that a snapshot was actually emitted, so follow-up read_page and modal hints are silenced even when the previous call failed or snapshot capture produced nothing.", "category": ... | null |
shaun0927__openchrome__955 | shaun0927/openchrome | 955 | defect | d76fee8bfc9aac21630f9d6dbaf435494db7aeac | ad4e26c474b4eaf33c0a175299e115cabfb3403b | feat(dashboard): task & skill ledger views (#865) | ## Progress / Review status
_Auto-refreshed 2026-05-13 — owner comments cleaned up to reduce review noise._
| Field | Value |
| --- | --- |
| Branch | `feat/865-dashboard-ledger-views` → `feat/855-task-ledger` |
| Draft | no |
| CI | — |
| Mergeable | ✅ MERGEABLE |
| Review decision | — |
| Codex (latest) | 💡 sugges... | diff --git a/src/dashboard/index.ts b/src/dashboard/index.ts
index f8d4166bf..d0bec3151 100644
--- a/src/dashboard/index.ts
+++ b/src/dashboard/index.ts
@@ -6,15 +6,17 @@
import { EventEmitter } from 'events';
import { getVersion } from '../version.js';
-import { Renderer, getRenderer } from './renderer.js';
+im... | 2 | 2 | 2 | [{"id": "G0", "claim": "The ledger views only invoke refreshLedgers() when j/k is pressed, so once a view is open the periodic tick keeps calling refresh() without re-reading disk state, leaving task/skill rows stale until the user exits and re-enters the view despite the in-code comment claiming tick-based updates.", ... | null |
shayaantx__botdarr__120 | shayaantx/botdarr | 120 | defect | 0ea239a146be667c962c5d5120634a13dcc592cf | 68cbbdb3051c6360a8adff96a7b1a3c13629ded3 | Add lookup by TVDB Id on Sonarr | Hi, there.
I forked your project to add some things I would like and ended up implementing that TODO to lookup by tvdb id on Sonarr. From what I've searched, this is the way it's commonly done. Hope this is okay.
## Breaking change
command `!show id add SHOW_TITLE_HERE SHOW_ID_HERE ` is now `!show id add SHOW_ID... | diff --git a/src/main/java/com/botdarr/api/AddStrategy.java b/src/main/java/com/botdarr/api/AddStrategy.java
index 12e9d7c..25214dd 100644
--- a/src/main/java/com/botdarr/api/AddStrategy.java
+++ b/src/main/java/com/botdarr/api/AddStrategy.java
@@ -49,6 +49,29 @@ public CommandResponse addWithSearchId(String searchText... | 1 | 1 | 1 | [{"id": "G0", "claim": "Because the command no longer takes a show title, the response builders should stop appending the show title in SonarrCommands#getAddShowCommandStr (and its call sites across the chat clients), or the command should be exposed under a separate id-only command so users can still copy and paste th... | null |
shazow__ssh-chat__192 | shazow/ssh-chat | 192 | defect | f6de73d42084711b6f3edd676eeae1f43898c95a | 6cafa52496fb9adff466c8044ded0a10c77044f8 | /whois: Hide IP if user isn't admin, display client and time joined. | Resolves #170.
First time contributing to this project, so I'm not yet familiar with the practices here. There was no CONTRIBUTING.md with special instructions to follow (aside from https://github.com/shazow/ssh-chat#compiling--developing), so I just did everything the normal way.
I asked if you're okay with a new de... | diff --git a/.gitmodules b/.gitmodules
index 3b9d0692..37f75faf 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -14,3 +14,7 @@
path = vendor/github.com/shazow/rateio
url = https://github.com/shazow/rateio
branch = master
+[submodule "vendor/github.com/dustin/go-humanize"]
+ path = vendor/github.com/dustin/go-humani... | 2 | 2 | 2 | [{"id": "G0", "claim": "Adding the go-humanize submodule by hand-editing .gitmodules leaves the commit unpinned, so the reviewer asks to add it with `git submodule add` so the commit gets pinned.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Instea... | null |
shazow__ssh-chat__297 | shazow/ssh-chat | 297 | defect | 953c3d46b25b472c5fddc75e092bb5d1215769b1 | e5c6740b899ed5db92e2d559cfee90f2ae8a9b71 | Freakin' Timestamps On Every Freakin' Line | I have mixed feelings about this. It's not great, could be improved. Not sure if I'll get a chance to improve it anytime soon though.
Definitely no timezone support, or even per-second resolution. If this opens up those cans of worms, I'm going to be sad.
- [x] Current method adds a goroutine per user, would be n... | diff --git a/chat/message/theme.go b/chat/message/theme.go
index d2585b75..9a10cb2c 100644
--- a/chat/message/theme.go
+++ b/chat/message/theme.go
@@ -1,6 +1,9 @@
package message
-import "fmt"
+import (
+ "fmt"
+ "time"
+)
const (
// Reset resets the color
@@ -122,43 +125,49 @@ type Theme struct {
names *... | 4 | 1 | 0 | [{"id": "G0", "claim": "Calling time.Format for the timestamp on every rendered line trades runtime performance for code clarity.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The nearly-static yyyy-mm-dd and truly-static \" UTC\" strings on every li... | null |
shazow__ssh-chat__395 | shazow/ssh-chat | 395 | defect | c3b589b2861e51b19325eb3d7cc4480d3834c4ea | bd345ce012d57968c30de709aaff7367275184ad | Move password authentication handling into sshd/auth (fixes #394). | Password authentication is now completely handled in Auth. The normal
keyboard-interactive handler checks if passwords are supported and asks
for them, removing the need to override the callbacks.
Brute force throttling is removed; I'd like to base it on IP address
banning, which requires changes to the checks.
... | diff --git a/auth.go b/auth.go
index 8a15367..bf3dbcd 100644
--- a/auth.go
+++ b/auth.go
@@ -1,6 +1,8 @@
package sshchat
import (
+ "crypto/sha256"
+ "crypto/subtle"
"encoding/csv"
"errors"
"fmt"
@@ -43,7 +45,9 @@ func newAuthAddr(addr net.Addr) string {
}
// Auth stores lookups for bans, whitelists, and ... | 3 | 2 | 0 | [{"id": "G0", "claim": "Fix the typos in the auth.go SetPassword doc comment (\"anables\"/\"emty\"/\"geiven\"), as worded in the attached suggestion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Change all references to \"password\" to \"passphr... | null |
shazow__ssh-chat__399 | shazow/ssh-chat | 399 | defect | 7628a47c4c7603982a20c4c48c5ddc61f9269279 | 18a00b66c8577c9f09268fb7c84c283a44a90e20 | Add /allowlist command | closes #270
also closes #256
### user-facing changes
Ops have a new /whitelist command to modify the whitelist. Help text:
```
Usage: /whitelist help | on | off | add {PUBKEY|USER}... | remove {PUBKEY|USER}... | import [AGE] | reload {keep|flush} | reverify | status
help: this help message
on, off: set whit... | diff --git a/auth.go b/auth.go
index 1de0087..87e8669 100644
--- a/auth.go
+++ b/auth.go
@@ -1,12 +1,14 @@
package sshchat
import (
+ "bufio"
"crypto/sha256"
"crypto/subtle"
"encoding/csv"
"errors"
"fmt"
"net"
+ "os"
"strings"
"time"
@@ -51,11 +53,14 @@ func newAuthAddr(addr net.Addr) string {
//... | 5 | 4 | 1 | [{"id": "G0", "claim": "The large command handler should be pulled apart into helper functions living adjacently rather than one huge handler.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The /whitelist command should be renamed to /allowlist.... | null |
sheeki03__tirith__51 | sheeki03/tirith | 51 | defect | b72980395348f958caa3196405b367ea95624415 | 6a5c441b6fe281f8047f9c742bf86a16a3de36e9 | Fix GHSA-c6rj-wmf4-6963, add nushell hooks, cargo-vet, PKGBUILD LTO | ## Summary
- Fix GHSA-c6rj-wmf4-6963 security advisory
- Add nushell shell hooks
- Add cargo-vet integration
- Add LTO to PKGBUILD for AUR
- Fix Windows TOCTOU race, doctor path quoting, case-insensitive cargo detection
- Escape nushell doctor hook path for embedded quotes/backslashes
## Test plan
- [x] All existing t... | diff --git a/Cargo.lock b/Cargo.lock
index e686ae904..0f76fa8ab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1543,6 +1543,7 @@ dependencies = [
"fs2",
"home",
"is-terminal",
+ "libc",
"once_cell",
"percent-encoding",
"regex",
diff --git a/crates/tirith-core/Cargo.toml b/crates/tirith-core/Cargo.toml
index f... | 4 | 2 | 2 | [{"id": "G0", "claim": "normalize_shell_name matches nushell with == while the other shells use contains(), so nu.exe or nushell.exe on Windows may not match; use base.contains(\"nushell\") || base == \"nu\" for consistency.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, ... | null |
shell-pool__shpool__1 | shell-pool/shpool | 1 | defect | ae60a9b50c90f1019bdd54d8b4fa4f8480056f33 | b5bd72f81a9f7087fa7517cfd130e0dbfe08f597 | add github ci config | This patch configures shpool to start using github actions for CI. It is cribbed from
[wprs](https://github.com/wayland-transpositor/wprs/tree/master/.github/workflows). | diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
new file mode 100644
index 00000000..58cc43fe
--- /dev/null
+++ b/.github/workflows/nightly.yml
@@ -0,0 +1,18 @@
+name: nightly
+on:
+ schedule:
+ - cron: '04 05 * * *'
+
+jobs:
+ deny:
+ name: cargo deny --all-features check
+ runs-o... | 1 | 1 | 0 | [{"id": "G0", "claim": "The TRACY_NO_INVARIANT_CHECK env block in .github/workflows/presubmit.yml is not needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shell-pool__shpool__109 | shell-pool/shpool | 109 | defect | 303550817f95a8f4e6b4a0916399fecba0ef4172 | 2b1350ac856441f816cf87bdfdc547e38b17f999 | fix: migrate to new shpool-protocol crate | This patch migrates us from the old protocol
module to the new protocol crate. The logic
remains in the protocol module in the form
of the client struct and the new ChunkExt
extension trait since the methods don't
belong in the protocol description itself.
This does not yet add the version negotiation
logic th... | diff --git a/Cargo.lock b/Cargo.lock
index 066fb48e..ee238744 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -569,6 +569,7 @@ dependencies = [
"serde",
"serde_derive",
"shell-words",
+ "shpool-protocol",
"shpool_pty",
"shpool_vt100",
"signal-hook",
diff --git a/libshpool/Cargo.toml b/libshpool/Cargo.toml
index... | 1 | 1 | 0 | [{"id": "G0", "claim": "Prefer importing the method-only trait as `use tty::TtySizeExt as _`, which brings it into scope for method resolution without letting it be referenced by ident (offered as a personal preference).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shell-pool__shpool__110 | shell-pool/shpool | 110 | defect | 55f6e8a8f94e7e42b4953058314a10c639d034ed | 88d4fc5237fda1d0f4a2f5b7d29195db8b8a149d | fix: add version negotiation warnings | This patch adds some version negotiation logic
and appropriate warnings to shpool. Shpool remains permissive about version mismatches, only issuing
warnings so that the user may continue to perform
any operations which still function correctly, but it now provides recommendations on how to
address the issue.
The... | diff --git a/Cargo.lock b/Cargo.lock
index ee238744..30f01889 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -986,7 +986,7 @@ dependencies = [
[[package]]
name = "shpool-protocol"
-version = "0.1.0"
+version = "0.2.0"
dependencies = [
"anyhow",
"serde",
diff --git a/libshpool/Cargo.toml b/libshpool/Cargo.toml
ind... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add unit tests for the new version_ord function in libshpool/src/protocol.rs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Connecting to an old daemon that sends no version header may desync the stream or block the client forev... | null |
shell-pool__shpool__137 | shell-pool/shpool | 137 | defect | 8a2741a6ae4f49ec24ff1aa47ec1beda3a07c20d | a2e1106c5c56c5b0686586c63fdac4b89ac753aa | fix: exit success for graceful detaches | This patch fixes the exit code for the attach
process so that it is 0 when shpool has been
told to gracefully detach, either via the
`shpool detach` subcommand or via the detach
keybinding. It is more semantically correct
to exit 0 in these cases.
Fixes #130
BREAKING CHANGE: technically could impact some scr... | diff --git a/libshpool/src/daemon/shell.rs b/libshpool/src/daemon/shell.rs
index 97d8323f..c7e5b4e3 100644
--- a/libshpool/src/daemon/shell.rs
+++ b/libshpool/src/daemon/shell.rs
@@ -292,8 +292,9 @@ impl SessionInner {
.context("sending client connection ack")?;
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request should add a test asserting a zero exit status somewhere (ideally reusing an existing test) so that future changes cannot undo this breaking behaviour.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shell-pool__shpool__138 | shell-pool/shpool | 138 | defect | d704bff44ff443eb2cd08a202c9c3053ef27d5ba | 9af6f8ed6004f38e29b335c3d49ca02698eeaa2c | fix: forward shell env to pager | This patch fixes the motd.pager mode to start launching the pager with the same environment that we launch the shell with. The old way of just inheriting the same environment that the daemon has has the problem that it will not correctly match the user's TERM value, which can cause problems for programs like `less` tha... | diff --git a/libshpool/src/daemon/pager.rs b/libshpool/src/daemon/pager.rs
index fbca141b..2d0f3a04 100644
--- a/libshpool/src/daemon/pager.rs
+++ b/libshpool/src/daemon/pager.rs
@@ -104,6 +104,8 @@ impl Pager {
init_tty_size: TtySize,
// The message to display
msg: &str,
+ // The env ... | 4 | 2 | 0 | [{"id": "G0", "claim": "The `shell_env` parameter should maybe be renamed to `supplemental_env`, or its docstrings should emphasize that it holds only the shpool-specific shell envs while any other envs from the spawning shell are inherited.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scop... | null |
shell-pool__shpool__180 | shell-pool/shpool | 180 | defect | a2c6de16fc3c2eb3a47607f532f516cc964f93be | 0678e59aed29d7dd78c3311656ad57cd0c64dade | fix: reduce deadlock potential in shell->client | This patch attempts to reduce the potential to deadlock in the shell->client thread by removing the mutex lock around the shell->client unix socket stream. While recent changes to reduce deadlocks have successfully prevented a single locked session from gumming up all the other sessions, the core issue seems to be pers... | diff --git a/libshpool/src/config_watcher.rs b/libshpool/src/config_watcher.rs
index f2de5fb1..16434200 100644
--- a/libshpool/src/config_watcher.rs
+++ b/libshpool/src/config_watcher.rs
@@ -321,21 +321,18 @@ impl<Handler> ConfigWatcherInner<Handler> {
self.paths.drain().map(|(path, (watched_path, _))|... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment explaining why the fork is not cloned should make clear that the Fork object logically has two parts — the child pid and the automatically managed pty fd via Drop — and that the child watcher thread only needs the unmanaged child pid part.", "category": "documentation", "verdict": "s... | null |
shell-pool__shpool__21 | shell-pool/shpool | 21 | defect | bf614b94ea2746d649bfccfef884b51f89102b41 | 3c7dbaf4760caa7930f8a109e3e4cbd839009a0e | automatically reload config on changes | This patch teaches the shpool daemon to automatically pick up changes to the config when a user writes a new value. Right now, people need to restart the daemon every time they make a config change, which is pretty disruptive because it means losing sessions. Now
people can tweak config without losing sessions.
Fix... | diff --git a/Cargo.lock b/Cargo.lock
index cfb81e18..a62b3b70 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,7 +61,7 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
dependencies = [
- "windows-sys",
+... | 4 | 2 | 0 | [{"id": "G0", "claim": "Reviewers suggest restructuring Manager::new so that computing config_path does not set config as a side effect (e.g. a struct holding both, a method returning both, or another way without the side-effect assignment) to make it clearer.", "category": "design", "verdict": "supported", "priority":... | null |
shell-pool__shpool__223 | shell-pool/shpool | 223 | defect | 4374c9a85e87b2a13f9a59017e9d4b8dc6bbeead | 594f11c0ae79055887e4fd9ca2bd87f4a8f3e02c | feat: dump forward_env in file | This patch teaches shpool to dump the environment
forwarded from the attach shell in $SHPOOL_SESSION_DIR/forard.env on every reattach. Previously, these env var bindings would only impact the initial environment when the shell is first spawned. Dumping the vars to a file allows users to keep their environment up to da... | diff --git a/libshpool/src/daemon/server.rs b/libshpool/src/daemon/server.rs
index 12743f2a..14dbb8a0 100644
--- a/libshpool/src/daemon/server.rs
+++ b/libshpool/src/daemon/server.rs
@@ -338,6 +338,7 @@ impl Server {
info!("released lock on shells table");
self.link_ssh_auth_sock(&header).context("l... | 3 | 2 | 1 | [{"id": "G0", "claim": "The session_name parameter could take a Path instead of PathBuf to avoid unnecessary clones.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Environment variables should really be OsStr/OsString for the sake of path correctness for... | null |
shell-pool__shpool__27 | shell-pool/shpool | 27 | defect | c1c8cd5733097db65e903194eef636857d785ff9 | f8a99dec978213e2645bddc1f3c5eafc709fa3ff | sniff shells for prompt injection |
This patch teaches shpool to discern the shell it is launching
more accurately than we were doing in the past. Previously
we would just look at the name of the shell binary, but it
turns out this does not work well when people put `exec fish`
in their .bashrc or something similar. There are actually
some good re... | diff --git a/libshpool/src/daemon/prompt.rs b/libshpool/src/daemon/prompt.rs
index b0fd6620..d7c261ab 100644
--- a/libshpool/src/daemon/prompt.rs
+++ b/libshpool/src/daemon/prompt.rs
@@ -15,9 +15,17 @@
// This file contains the logic for injecting the `prompt_annotation`
// config option into a user's prompt for know... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a comment explaining what the shell-sniffing code does, e.g. that it runs a command which prints the command name of the process.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the `ps -p <pid>... | null |
shell-pool__shpool__272 | shell-pool/shpool | 272 | defect | 99c6f097732da056e11e721c7979d00c066e01b0 | e8558ae4c6f3b66bea1f6092d1f0fe651b9e6769 | fix: hang when starting with nu shell | This patch fixes a bug where shpool would hang when trying to start a nu shell by default. This has to do with our startup sentinal injection. A workaround exists where you can just blank out the prompt prefix, but we should try to automatically do that much when working with nu.
I should add a note to the troublesh... | diff --git a/libshpool/src/consts.rs b/libshpool/src/consts.rs
index 2ac79fa9..3defc60a 100644
--- a/libshpool/src/consts.rs
+++ b/libshpool/src/consts.rs
@@ -33,8 +33,8 @@ pub const STARTUP_SENTINEL: &str = "SHPOOL_STARTUP_SENTINEL";
pub const PROMPT_SENTINEL: &str = "SHPOOL_PROMPT_SETUP_SENTINEL";
// A magic env ... | 4 | 2 | 0 | [{"id": "G0", "claim": "The blank-prefix check in prompt.rs is redundant because prompt prefixing is already skipped when the prefix is blank; consider removing it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "There are several typos such as... | null |
shell-pool__shpool__294 | shell-pool/shpool | 294 | defect | 1b3b27f059f0008c0509b5170d84b86c752b1da3 | db7ef0cc59087faa95793bf9382e675a12f7427c | feat(list): add --json flag with connect/disconnect timestamps | Adds `--json` flag to `shpool list` to expose session data including when sessions were last connected/disconnected, making it easier to identify recently-used sessions.
Closes #292
Supersedes #293, which added optional columns to the tabular output. Per maintainer feedback, pivoted to a single `--json` flag that... | diff --git a/Cargo.lock b/Cargo.lock
index 5cf19bf0..d0a18dde 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -546,6 +546,7 @@ dependencies = [
"rmp-serde",
"serde",
"serde_derive",
+ "serde_json",
"shell-words",
"shpool-protocol",
"shpool_pty",
diff --git a/libshpool/Cargo.toml b/libshpool/Cargo.toml
index 265... | 4 | 4 | 2 | [{"id": "G0", "claim": "Rename connected_at and disconnected_at to last_connected_at and last_disconnected_at for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Move the two timestamp fields into a single SessionLifecycleTimestamps stru... | null |
shell-pool__shpool__300 | shell-pool/shpool | 300 | defect | f1f83531e4aeb5db48b9919132cf303ba16c608b | 8b589758dba7a0a4e31c2bb82fff71ec0bb34226 | feat: Mac port #183 | This work is based on the previous work by @seruman in their fork https://github.com/seruman/shpool/tree/macos
I tried to retain as much of the existing work done and base my work on top of that.
seruman's fork had socket timeouts disabled on macOS. I wasn't able to reproduce socket timeouts not working on macOS ... | diff --git a/Cargo.lock b/Cargo.lock
index d0a18dde..130930b3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -959,9 +959,9 @@ dependencies = [
[[package]]
name = "shpool_pty"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01fbec35414044d1f92bfa2d8eb... | 8 | 7 | 2 | [{"id": "G0", "claim": "Simplify the set_read_timeout handling in handle_conn by removing the separate #[cfg(not(target_os = \"macos\"))] block below and attaching the macOS cfg only to the if statement, keeping the cfg just to be explicit.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco... | null |
shell-pool__shpool__311 | shell-pool/shpool | 311 | defect | fea580ccc27b4f580b21278a1fc9284113b9c89e | 1db970abdccef1596ce6b4f63bf3f0671cce1a4f | feat: add experimental shpool-vterm engine | This patch integrates the new shpool-vterm crate with
shpool as a replacement for shpool_vt100. For now, this
is opt in, and I expect it to be pretty broken in lots
of ways that we'll find out as people start trying it
out.
By default, we still use the old shpool_vt100 crate.
This is progress on #46 | diff --git a/Cargo.lock b/Cargo.lock
index 21d6008b..7eda1b8e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -560,6 +560,7 @@ dependencies = [
"serde_json",
"shell-words",
"shpool-protocol",
+ "shpool-vterm",
"shpool_pty",
"shpool_vt100",
"signal-hook",
@@ -1008,6 +1009,22 @@ dependencies = [
"serde_derive",... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README (or similar docs) should be updated to let people know the new session_restore_engine config option exists.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shell-pool__shpool__321 | shell-pool/shpool | 321 | defect | fea580ccc27b4f580b21278a1fc9284113b9c89e | ff107a2c84c6989915b08461b9f0d8345c746d5c | feat: add attach background mode | ### Summary
Adds `-b/--background` flag to `shpool attach` for creating sessions with commands and immediate detach. resolves https://github.com/shell-pool/shpool/issues/320
### Changes
- Added `-b/--background` CLI flag (mutually exclusive with `--attach-only`)
- Refactored `attach_impl` in libshpool/src/attach.... | diff --git a/libshpool/src/attach.rs b/libshpool/src/attach.rs
index a3617e76..5ce5d962 100644
--- a/libshpool/src/attach.rs
+++ b/libshpool/src/attach.rs
@@ -20,7 +20,7 @@ use shpool_protocol::{
ResizeRequest, SessionMessageReply, SessionMessageRequest, SessionMessageRequestPayload,
TtySize,
};
-use tracing... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add \"(expected)\" to the end of the already-detached warn log line to make clear that the session already being detached is normal at that point.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the clippy lint failure... | null |
shell-pool__shpool__348 | shell-pool/shpool | 348 | defect | 974864bfb6c0b4ee232a1d200634a242bb84990c | bdb3eeefa7058a74bd9447b7a675bce70e4aa5c5 | fix: wait for shell deadlock | ## Issue Link
This is a re-write of https://github.com/shell-pool/shpool/pull/342 to strip out some agent artifacts.
## AI Policy Ack
Ack
## Description
This patch fixes a deadlock that could occur if the shell blocks forever on startup. To fix, we only grab the global shells lock when looking for an exi... | diff --git a/libshpool/src/daemon/prompt.rs b/libshpool/src/daemon/prompt.rs
index cfd208a6..0ed29147 100644
--- a/libshpool/src/daemon/prompt.rs
+++ b/libshpool/src/daemon/prompt.rs
@@ -15,16 +15,31 @@
// This file contains the logic for injecting the `prompt_annotation`
// config option into a user's prompt for kno... | 1 | 1 | 0 | [{"id": "G0", "claim": "It could be worth mentioning the polling/timeout change in prompt.rs in the commit, because reading the title alone first suggested the fix was to add a timeout.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shell-pool__shpool__358 | shell-pool/shpool | 358 | defect | 6cfd23c1c2028287ecd7a780cc5349d3ee5541fa | f6c8ec0f902b850f91cb05ff0852dc47215c5f02 | fix: exe path resolution bug | ## Issue Link
n/a I just hit this myself and spotted it in the logs. There is a google internal bug that's pretty useless on a public issue tracker that I think is relevant.
## AI Policy Ack
ack
### This PR was:
* [ ] mostly or completely vibe coded
* [ ] mostly or completely meat coded
* [X] bit of bo... | diff --git a/libshpool/src/daemon/prompt.rs b/libshpool/src/daemon/prompt.rs
index 74a62bf6..bc52f39e 100644
--- a/libshpool/src/daemon/prompt.rs
+++ b/libshpool/src/daemon/prompt.rs
@@ -27,7 +27,7 @@ use tracing::{debug, error, info, instrument, warn};
use crate::{
consts::{SENTINEL_FLAG_VAR, STARTUP_SENTINEL},
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment in exe.rs explaining why a path could ever end in \" (deleted)\" (e.g. the Linux kernel appends it to /proc/<pid>/exe after a binary is replaced), since that is not obvious.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shell-pool__shpool__58 | shell-pool/shpool | 58 | defect | 21315729a140cc5e469a8f893eec6efc651d06d2 | 1563d9c8e02e0d7360e99d6fd98edda4d71c7be1 | Configuration loading overhaul | - Fix a small issue in test about XDG_RUNTIME_DIR handling
- Simple merging logic for `Config`
- Load config from system-wide locations (fixes #30)
- Dynamically pick up changes from newly created config files (fixes #29)
- Use `directories-rs` to find the user-level config directory path (We should also consider u... | diff --git a/Cargo.lock b/Cargo.lock
index 2e42223b..41c2d7c5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -86,6 +86,12 @@ version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
+[[package]]
+name = "assert_matc... | 21 | 19 | 2 | [{"id": "G0", "claim": "The #[allow(dead_code)] pragma on the Manager.watcher field may no longer be needed and should be dropped if so.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The context annotation on ProjectDirs::from should describe t... | null |
shell-pool__shpool__6 | shell-pool/shpool | 6 | defect | 510817b1d7c99a5d72bc382f5534f40827ce9053 | aa0d5a023571cd725cac7d76b630b2fa1a313b66 | add support for dumping motd on session creation | This patch adds support for one of the two motd modes that I plan to support. In this basic "dump" mode, we only display the message of the day when a user first creates a session. Since we are doing it right at the beginning, we can be confident we won't be
mangling the restore buffer. Directly injecting the message ... | diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 7b9e0ee6..6b7ab5c4 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -9,10 +9,11 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The cargo-deny config needs `version = 2` under [advisories] and a top-level `[graph]` section with `all-features = true`, otherwise the bad old v1 defaults apply.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In inject_pref... | null |
shell-pool__shpool__8 | shell-pool/shpool | 8 | defect | e94f658e3b1be706d61e81c033fd50c686f7cc38 | 267097dc9bfb65523e1f16e3237cf8fa3a5d872a | add motd pager mode | This is chained on https://github.com/shell-pool/shpool/pull/6, I'll rebase before merging
This patch adds a new pager mode for displaying the
motd. The difference between the normal dump mode
and the pager mode is that the pager will always
display the motd, regardless of if a user is making
... | diff --git a/Cargo.lock b/Cargo.lock
index ce53a1e7..3d30026c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -393,6 +393,7 @@ dependencies = [
"shpool_pty",
"shpool_vt100",
"signal-hook",
+ "tempfile",
"termini",
"toml",
"tracing",
diff --git a/libshpool/Cargo.toml b/libshpool/Cargo.toml
index 04f0cd2e..2ba6ed... | 5 | 2 | 0 | [{"id": "G0", "claim": "The Server field holding the show_motd::DailyMessenger should be renamed from motd_shower to daily_messenger, as was done for the type in the other PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new pager.rs file is missin... | null |
shell-pool__shpool__98 | shell-pool/shpool | 98 | defect | 6a7a947723211658858124ae5affa69ff19f0cbd | 5db1d0cf63954675bc99d94ed87599fa50828f60 | feat: add autodaemonization support | This patch teaches shpool to daemonize like
pretty much all the other tools in the space.
Shpool has been pretty weird in not supporting
this considering this is how tmux and whatnot
work.
This new behavior needs to be opted into via
a command line flag, but part of me thinks that
it ought to be the new defaul... | diff --git a/Cargo.lock b/Cargo.lock
index 313e35b3..935b7ad0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -261,6 +261,15 @@ version = "0.8.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
+[[package]]
+name = "daemoniz... | 4 | 3 | 1 | [{"id": "G0", "claim": "The --socket help text says the default path is ~/.local/run/shpool.socket, but the actual default is ~/.local/run/shpool/shpool.socket, so the comment should be updated, not the code.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
shelljs__shelljs__1080 | shelljs/shelljs | 1,080 | defect | 4b6b17a6356c6db2b01ad6822e8771c00c4ea730 | fd83b9aa7e59431e2f7b73584cc4f6e1b1496b23 | Added -L to find to visit symlinked folders too. | Actually find does not go inside a symlink that is a folder.
In order to preserve old behaviour, the -L flag has been introduced to modify the behaviour and enter symlink'ed folders. | diff --git a/src/find.js b/src/find.js
index b6c882979..80db9935b 100644
--- a/src/find.js
+++ b/src/find.js
@@ -2,7 +2,11 @@ var path = require('path');
var common = require('./common');
var _ls = require('./ls');
-common.register('find', _find, {});
+common.register('find', _find, {
+ cmdOptions: {
+ 'L': 'li... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks why the 'simple path' test's expected find() result count was increased from 11 to 12, requesting justification for the changed expectation.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shelljs__shelljs__1206 | shelljs/shelljs | 1,206 | defect | 24ba6e24d278d7450b0cf4d54986b742059d2ec0 | b85d79375f8a4aac7a8e15c40b9aafe7283b5303 | Add -B, -A, and -C options to grep | Adds the `-B` (before context) and `-A` (after context) options to grep. I may have gone overboard on tests but I wanted to make sure that most feasible configurations work (combined, separate, with space, without space).
### Notes
* Modifies `globStart` to accept a function with a parameter `args`. This allows `-B... | diff --git a/.editorconfig b/.editorconfig
index a35cd0dca..afe97de28 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -10,5 +10,8 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
+[*.js]
+quote_type = single
+
[*.{md,markdown}]
trim_trailing_whitespace = false
diff --git a/.es... | 9 | 9 | 1 | [{"id": "G0", "claim": "The editorconfig/quote-enforcement style changes should be split out of this pull request into a separate PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ShellJS does not use prettier and has it as no dependency, so th... | null |
shelljs__shelljs__23 | shelljs/shelljs | 23 | defect | 769c81f535d6328ae918294794570ab541d1541c | 0b624342a74c63279f40e7677f559341d5d39585 | add primaries to _test | I started adding tests, but the special files caused the tests for `mv` to fail. Also I couldn't figure out how to make a socket.
| diff --git a/shell.js b/shell.js
index 8136901f8..b4c75b25b 100644
--- a/shell.js
+++ b/shell.js
@@ -513,8 +513,14 @@ exports.mkdir = wrap('mkdir', _mkdir);
//@ ### test(expression)
//@ Available expression primaries:
//@
+//@ + `'-b', 'path'`: true if path is a block device
+//@ + `'-c', 'path'`: true if path is a ... | 4 | 3 | 2 | [{"id": "G0", "claim": "The pull request should be merged with tests and docs included, the docs being automatically extracted from the comments above the _test() function.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "mv fails on special files: a bloc... | null |
shelljs__shelljs__273 | shelljs/shelljs | 273 | defect | a38ef4557e8658dec9409a034b31c70d8646e7de | c32657c5b0f7c0b3112223e60239a79390ebd91e | Implementing cd('-') to behave like Bash's "cd -" | I added a `previousDir` field to `common.state` to allow the `cd()` function to have this option. I also added unit tests for this behavior.
Usage is as follows:
``` Javascript
// Setup
mkdir('foo');
mkdir('bar');
cd('foo');
cd('../bar');
echo(pwd()); // outputs "/path/to/bar"
cd('-'); // jump back
echo(pwd()); // ou... | diff --git a/src/cd.js b/src/cd.js
index 230f43265..11b7e7a8b 100644
--- a/src/cd.js
+++ b/src/cd.js
@@ -8,12 +8,21 @@ function _cd(options, dir) {
if (!dir)
common.error('directory not specified');
+ if (dir === '-') {
+ var previous_dir = true;
+ if (!common.state.previousDir)
+ common.error('OL... | 2 | 1 | 0 | [{"id": "G0", "claim": "The error message raised when `cd('-')` runs with no previous directory ('OLDPWD not set') should be made more descriptive.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "common.state.previousDir should default to pwd() r... | null |
shelljs__shelljs__282 | shelljs/shelljs | 282 | defect | dc5c59be36fb89ade233633ae1d7491626fc3ce9 | 5c05e74c781093678e7ba4c99052e42b9c8aecc4 | Fix relative symlinks | Fixes #100
| diff --git a/src/ln.js b/src/ln.js
index a7b9701b3..ef8698b0d 100644
--- a/src/ln.js
+++ b/src/ln.js
@@ -29,10 +29,12 @@ function _ln(options, source, dest) {
common.error('Missing <source> and/or <dest>');
}
- source = path.resolve(process.cwd(), String(source));
+ source = String(source);
+ var sourcePat... | 3 | 3 | 2 | [{"id": "G0", "claim": "The use of `path.isAbsolute`, which does not exist in Node.js v0.10, breaks the build on that platform; the check for an existing source should be written so it works on Node v0.10.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim... | null |
shelljs__shelljs__290 | shelljs/shelljs | 290 | defect | 439a0b0aaa0e9895873b35bb88c2a2cdb6a0c4cd | e841b99f01f4b26a2b71bb877c047ea844fa9caa | Search PATHEXT instead of 3 hardcoded values | Redo of #134.
Since it was only a few lines, it was easy to rewrite against master.
| diff --git a/src/which.js b/src/which.js
index 4ea7d03b4..64ff47004 100644
--- a/src/which.js
+++ b/src/which.js
@@ -2,6 +2,9 @@ var common = require('./common');
var fs = require('fs');
var path = require('path');
+// XP's system default value for PATHEXT system variable
+var XP_DEFAULT_PATHEXT = '.com;.exe;.bat;.... | 4 | 3 | 0 | [{"id": "G0", "claim": "The XP_DEFAULT_PATHEXT comment should mention that WinXP lacks this variable, and BYK is also unsure whether supporting Windows XP is a good idea at all.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Caching pathExtArray.l... | null |
shelljs__shelljs__314 | shelljs/shelljs | 314 | defect | c1813c22afa16119da3f7aadf1867c8d6a47591b | dc508b75c66d79327b2712e4292e46cece0db35d | feat(sed): support multiple file names | fixes #231. Semantics are like unix sed.
Also, if we merge this, it makes the PR to add support for pipes slightly nicer.
| diff --git a/README.md b/README.md
index b3f9c3e3b..594706e62 100644
--- a/README.md
+++ b/README.md
@@ -328,7 +328,8 @@ Analogous to the redirect-and-append operator `>>` in Unix, but works with JavaS
those returned by `cat`, `grep`, etc).
-### sed([options,] search_regex, replacement, file)
+### sed([options,] s... | 3 | 2 | 0 | [{"id": "G0", "claim": "The error message should say \"no files given\" instead of \"no paths given\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The per-file existence check may be unnecessary because common.expand (glob) filters out nonexi... | null |
shelljs__shelljs__324 | shelljs/shelljs | 324 | defect | c072738758953292a45e9f9908a4f78f1d066de8 | 6039c0bea5939c8e5be97b49e7125ab1d7bbc7e1 | feat(ls): add -l option | The `-l` option will now cause `ls()` to return an object containing file stats.
These objects will also have a toString() method that formats it into something
analogous to `ls -l`'s output format.
This is useful in the case of `ls('-l', 'dir/').join('\n')`, which will now have formatting similar to unix's `ls -l`.
... | diff --git a/README.md b/README.md
index f816b8976..46f1177e8 100644
--- a/README.md
+++ b/README.md
@@ -170,6 +170,7 @@ Returns the current directory.
### ls([options,] path_array)
Available options:
++ `-l`: long list format
+ `-R`: recursive
+ `-A`: all files (include files beginning with `.`, except for `.` a... | 5 | 3 | 0 | [{"id": "G0", "claim": "The stats object's `name` should hold just the filename, with a separate `path` property carrying the full path, which the reviewer finds clearer.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using Object.create() puts the stats o... | null |
shelljs__shelljs__329 | shelljs/shelljs | 329 | defect | 760c1910817c586f2838654cfbd62e3579855293 | ac2925900ea63968a607dc6bccd1340cb0f5b88d | feat(set): add new set() command | Add new set() command as a wrapper for `config` variables. This takes the `-e`, `-v`, `+e`, and `+v` flags.
This is based off (and replaces) #149, which introduced the `logCmd` option. This also adds `set()` as a nice wrapper for interfacing with the variables.
`config.verbose` will log each command in a unix-y kind ... | diff --git a/README.md b/README.md
index 05decbe22..34a9fa80e 100644
--- a/README.md
+++ b/README.md
@@ -563,6 +563,21 @@ A FILE argument that does not exist is created empty, unless -c is supplied.
This is a partial implementation of *[touch(1)](http://linux.die.net/man/1/touch)*.
+### set(options)
+Available opt... | 2 | 1 | 0 | [{"id": "G0", "claim": "Simplify the parsing by always prepending '-' to the option string here (and registering the options accordingly).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Detecting the negate prefix should use `options[0] === '+'` instead of... | null |
shelljs__shelljs__348 | shelljs/shelljs | 348 | defect | bc13470f914ed45b7203880f23b5e9e81579ff76 | e4ba0c0469acd3c449bbee44db130771801af832 | fix(exec): now actually supports shell option | Looks like #335 doesn't work perfectly with all options. This is because `execSync` does 2 calls to `exec()`, and some options need to be passed to both calls.
This should clean things up a bit, and fix the issue for the `shell` option, which would actually fix #138 and #208.
| diff --git a/src/exec.js b/src/exec.js
index 4174adbd3..0c8ba52e8 100644
--- a/src/exec.js
+++ b/src/exec.js
@@ -65,11 +65,18 @@ function execSync(cmd, opts) {
var execCommand = '"'+process.execPath+'" '+scriptFile;
var script;
+ var optArray = [];
+ optArray.push('env: process.env');
+ optArray.push("maxBuf... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hand-built options string in execSync should just be an object serialized with JSON.stringify.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shelljs__shelljs__352 | shelljs/shelljs | 352 | defect | bc13470f914ed45b7203880f23b5e9e81579ff76 | 6d26215c97920aa7a85268fe319a07abbde72a2e | feat(glob): glob support for (almost) all commands | Fixes #343. This performs glob expansion on commands, where it makes sense. This doesn't glob for:
- `pwd()` (it doesn't take any arguments)
- `test()` (globbing here is very unreliable in bash)
- `exec()` (this actually **does** glob-expand, but that's done in the shell itself (`/bin/sh`), not by this function
- `set(... | diff --git a/src/cat.js b/src/cat.js
index 5840b4ea7..7205713d4 100644
--- a/src/cat.js
+++ b/src/cat.js
@@ -26,8 +26,6 @@ function _cat(options, files) {
files = [].slice.call(arguments, 1);
// if it's array leave it as it is
- files = common.expand(files);
-
files.forEach(function(file) {
if (!fs.e... | 2 | 2 | 1 | [{"id": "G0", "claim": "The per-command globbing index (-1/0/n) hard-coded inside common.wrap's indexOfExpandableArg table should instead be passed in as an option to common.wrap.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Globbing support for which(... | null |
shelljs__shelljs__370 | shelljs/shelljs | 370 | defect | d0b7d0943fa2ef2bc2a19aaf9526a5b6fb978972 | 8981540bbcc4c108debf1663848b627c26d7622a | feat(pipe): add support for pipes between commands | Fixes #148
Commands can now be piped, of the form:
``` javascript
grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt');
echo('files with o\'s in the name:\n' + ls().grep('o'));
cat('test.js').exec('node'); // pipe to exec() call
```
Commands can send their output to another command in a pipe-like fa... | diff --git a/README.md b/README.md
index 962db6fda..dde629522 100644
--- a/README.md
+++ b/README.md
@@ -619,7 +619,7 @@ otherwise returns string explaining the error
Examples:
-```
+```javascript
var foo = ShellString('hello world');
```
@@ -627,10 +627,25 @@ Turns a regular string into a string-like object s... | 4 | 2 | 0 | [{"id": "G0", "claim": "Cache the call to common.wrap when attaching the command/pipe methods instead of re-invoking wrap() on every call — the repeated re-wrapping (in ShellString and duplicated in ls.js) is not performant and not DRY.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "intr... | null |
shelljs__shelljs__379 | shelljs/shelljs | 379 | defect | 46d9c3f1bb3d3878a7f5862b7bebc0b1387be0b4 | b7e62a6331ebb910d86d496e7b67f15ff10193f4 | New commands: sort(), head(), and tail() | These are initial versions of the `head()` and `sort()` commands. **Not ready to merge**. Feel free to take a look and give feedback on what I have implemented so far.
I haven't written unit tests yet, but I will do so soon.
The reason these are together in one PR is that I wanted to be able to hack out a translation... | diff --git a/README.md b/README.md
index 0beb0c45e..73590a786 100644
--- a/README.md
+++ b/README.md
@@ -330,6 +330,20 @@ containing the files if more than one file is given (a new line character is
introduced between each file). Wildcard `*` accepted.
+### head([{'-n', <num>},] file [, file ...])
+### head([{'-n'... | 4 | 4 | 1 | [{"id": "G0", "claim": "The head() usage example in README.md is missing a quote (head({'-n, 1} should be head({'-n': 1}).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new head() section in README.md has no description of what head does, and... | null |
shelljs__shelljs__384 | shelljs/shelljs | 384 | defect | da6d06830dd1ebe4202e7fd107315b41cf5838f5 | 7073a5c8df222638312677ae078d655b4a716d50 | feature: use rechoir | This is a redo of #258, since it looks like it may have been abandoned.
| diff --git a/bin/shjs b/bin/shjs
index aae3bc64c..75ca58b9d 100755
--- a/bin/shjs
+++ b/bin/shjs
@@ -32,24 +32,8 @@ for (var i = 0, l = args.length; i < l; i++) {
}
}
-if (scriptName.match(/\.coffee$/)) {
- //
- // CoffeeScript
- //
- if (which('coffee')) {
- exec('coffee "' + scriptName + '" ' + args.join... | 2 | 2 | 2 | [{"id": "G0", "claim": "The shjs test helper should spawn subprocesses with the currently running Node.js executable (process.argv[0] or the equivalent process.execPath) rather than the 'node' resolved from PATH, since the user may have run the tests with a different node.", "category": "correctness", "verdict": "suppo... | null |
shelljs__shelljs__400 | shelljs/shelljs | 400 | defect | f006fcd8b1899418790852792c6843702014c004 | 167a89b2195a10b579ffaaf4013854546d18b632 | feat(glob): expose config.globOptions. | Allow users to customize the settings of `glob.sync()` (if they so-desire). This doesn't change the default behavior.
I imagine this is a feature a few users may want (users wanted something similar for `exec()` options in #163, #284, #132 ).
| diff --git a/README.md b/README.md
index 0beb0c45e..c5dc1ba62 100644
--- a/README.md
+++ b/README.md
@@ -697,3 +697,13 @@ Will print each command as follows:
cd dir/
ls subdir/
```
+
+### config.globOptions
+
+Example:
+
+```javascript
+config.globOptions = {nodir: true};
+```
+
+Use this value for calls to `glob.sy... | 1 | 1 | 0 | [{"id": "G0", "claim": "In expand(), the caller-passed opts and config.globOptions should be merged together rather than the config value only being used as a fallback when opts is falsy.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shelljs__shelljs__47 | shelljs/shelljs | 47 | defect | 62eb9a68435a4aaaadf05fd994a0c7df585e2459 | 4bc372513710ac0430d93f1067b4ddc659826719 | Work in progress: pushd/popd/dirs | I started work on arturadib/shelljs#24. Currently, pretty much just started looking at [pushd](http://ss64.com/bash/pushd.html) and [popd](http://ss64.com/bash/popd.html); [dirs](http://ss64.com/bash/dirs.html) has the most basic implementation with no options supported currently. Tests are optimistic and too simple. C... | diff --git a/shell.js b/shell.js
index 9126b12c3..9d5db9e91 100644
--- a/shell.js
+++ b/shell.js
@@ -862,6 +862,118 @@ function _echo() {
};
exports.echo = _echo; // don't wrap() as it could parse '-options'
+var _dirStack = (function(stack) {
+ stack.isIndex = function(index) {
+ if (isNaN(index)) {
+ ret... | 9 | 9 | 7 | [{"id": "G0", "claim": "Use semicolons consistently with the existing code style in shell.js and the new test files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Do not export `dirs` via wrap() until it is ready for users with docs and tests; ... | null |
shelljs__shelljs__590 | shelljs/shelljs | 590 | defect | a8b593354567fc38916e00887740eb307370e20e | 828253917eac9cf9e1ead195defd62ec6fb43776 | Add "-n" option to echo | Fixes #559 | diff --git a/README.md b/README.md
index dd811e359..2ad5ddd8d 100644
--- a/README.md
+++ b/README.md
@@ -474,12 +474,14 @@ Returns string containing the absolute path to the command.
Available options:
+ `-e`: interpret backslash escapes (default)
++ `-n`: remove trailing newline from output
Examples:
```java... | 4 | 3 | 0 | [{"id": "G0", "claim": "Add a test for `echo -en 'foo\\n'` (escaped characters together with -en) to make sure that -e escape processing still works.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use process.stdout.write only when -n is passed and keep... | null |
shelljs__shelljs__598 | shelljs/shelljs | 598 | defect | 5ded216dc2d111fb32a3769ca38f091d2005b135 | 7d56e0b69448c22271b17dfd1cea647143480fca | Fix: rm behavior regarding symlinks | Fixes #519 | diff --git a/ava-test/rm.js b/ava-test/rm.js
index f56d3053c..a3f6b109c 100644
--- a/ava-test/rm.js
+++ b/ava-test/rm.js
@@ -253,7 +253,7 @@ test(
);
test('remove symbolic link to a dir', t => {
- const result = shell.rm('-f', `${t.context.tmp}/rm/link_to_a_dir`);
+ const result = shell.rm(`${t.context.tmp}/rm/li... | 2 | 1 | 1 | [{"id": "G0", "claim": "src/rm.js should be restructured into a single if/else-if ladder covering file, directory, symlink and an else fallback instead of the current sequential ifs with duplicated unlinkSync/directory branches.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
shelljs__shelljs__615 | shelljs/shelljs | 615 | defect | f996bd11e37e26b8be281933e3ac2447101d4bad | 1174af0470bf07a44d096ec8d02e132869a22bd0 | Throw an error if the options string does not start with '-' | Fixes #614 | diff --git a/src/common.js b/src/common.js
index 12f5298d4..25434a675 100644
--- a/src/common.js
+++ b/src/common.js
@@ -135,6 +135,8 @@ exports.getUserHome = getUserHome;
// parseOptions('-a', {'a':'alice', 'b':'bob'});
// Returns {'reference': 'string-value', 'bob': false} when passed two dictionaries of the form... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the new behavior of throwing when the options string does not start with '-'.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shelljs__shelljs__636 | shelljs/shelljs | 636 | defect | 7fa4b995bf9096d2b69311d729693b8b0eee8bbf | 267dacc1d264119aa7710d94956d83bda9afbff8 | refactor: create common.execPath | Switch to using `common.execPath` instead of `process.execPath` directly and warn
electron users if we were unable to find the correct path to NodeJS.
This should be safe to merge into master because exec didn't work before anyway.
Fixes #633 | diff --git a/src/common.js b/src/common.js
index 12f5298d4..8221622f8 100644
--- a/src/common.js
+++ b/src/common.js
@@ -409,3 +409,9 @@ function _register(name, implementation, wrapOptions) {
}
}
exports.register = _register;
+
+// Expose the path to the NodeJS binary to utilities
+var isElectron = Boolean(proces... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new execPath guard may need to cover execAsync too — maybe the check should go in _exec instead of execSync.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "common.execPath should be configurable through shell.config (live in the... | null |
shelljs__shelljs__648 | shelljs/shelljs | 648 | defect | 152354aa4df2eba7e871c2e97141e831303e1a9e | 997e0d4835db04b76b2c76b12c7e7a2e0ff23592 | Chore drop 0.12 | Fixes #647 | diff --git a/.travis.yml b/.travis.yml
index 49666f084..5b19b21a9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,6 @@
language: c++
sudo: false
env:
- - NODE_VERSION="0.11"
- - NODE_VERSION="0.12"
- - NODE_VERSION="iojs-v1"
- - NODE_VERSION="iojs-v2"
- - NODE_VERSION="iojs-v3"
- NODE_VERSION="4"
-... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README should carry a note that starting with v0.8 the project supports only Node v4+.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shelljs__shelljs__665 | shelljs/shelljs | 665 | defect | 434ed592de7c0e85592a1dcb8cbb772a3c3189d7 | b9110415bb63c2b3e5ea280c4384237be69f33dd | ls -L (follow symlinks) | This closes #563
I added some tests for `-L` option and fixed the other.
@nfischer If I'm not mistaken, there is a difference between bash's `ls -R` and shelljs's related to dir symlinks. Bash only shows the symlink itself but shelljs shows the direct children as well (1 level). In this case, `ls -RL` will show ... | diff --git a/src/ls.js b/src/ls.js
index 7f25056cd..460424b06 100644
--- a/src/ls.js
+++ b/src/ls.js
@@ -9,6 +9,7 @@ common.register('ls', _ls, {
cmdOptions: {
'R': 'recursive',
'A': 'all',
+ 'L': 'link',
'a': 'all_deprecated',
'd': 'directory',
'l': 'long',
@@ -22,6 +23,7 @@ common.regis... | 1 | 1 | 1 | [{"id": "G0", "claim": "The ternary in `stat = stat || options.link ? fs.statSync(abs) : fs.lstatSync(abs)` must be parenthesized, otherwise the condition is `stat || options.link` instead of just `options.link`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
shelljs__shelljs__674 | shelljs/shelljs | 674 | defect | 8dd2488ec54ec56e18b5a72ee3ecc7d9c11668fb | a1080d7a7d54df53dbd895c7d5745f3e55b67ee2 | refactor(parseOptions): better handle errors | For the case where `parseOptions()` is passed a string that does not
start with a hyphen, we should reject this string instead of returning
the same value. This has no change on any other test cases, and should
not affect any commands since we are careful about what input we pass to
`parseOptions()`
This also ad... | diff --git a/src/common.js b/src/common.js
index 8b07421a9..c7e155263 100644
--- a/src/common.js
+++ b/src/common.js
@@ -183,11 +183,12 @@ function parseOptions(opt, map, errorOptions) {
});
if (!opt) return options; // defaults
+ var hasErrorOpts = typeof errorOptions === 'object';
var optionName;
if ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The error message for a string not starting with '-' should read \"Options string must start with a '-'\" instead of \"Must start the options string with a '-'\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added `... | null |
shelljs__shelljs__676 | shelljs/shelljs | 676 | defect | df06ac4a8a011b38f701b3fbc852cefa3e964091 | f40f8c1045fa8d607619af0b306a957a78b5fc28 | Modified glob pattern. Fixes #666 | ### Rebase of #669
This PR continues #665 and fixes #666.
From `node-glob` repo:
>Note that symlinked directories are not crawled as part of a **, though their contents may match against subsequent portions of the pattern. This prevents infinite loops and duplicates and the like.
Therefore, the current patt... | diff --git a/src/ls.js b/src/ls.js
index cd2d9202e..6486fbb85 100644
--- a/src/ls.js
+++ b/src/ls.js
@@ -3,7 +3,7 @@ var fs = require('fs');
var common = require('./common');
var glob = require('glob');
-var globPatternRecursive = path.sep + '**' + path.sep + '*';
+var globPatternRecursive = path.sep + '**';
com... | 1 | 1 | 0 | [{"id": "G0", "claim": "Request to add a comment explaining that the `path.relative(p, item)` guard is needed because the glob pattern returns the directory itself.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shelljs__shelljs__679 | shelljs/shelljs | 679 | defect | 5318fdc43a56a5f13655f105c7e2e1146452506d | 9cec9590455e54400e98ad37d7917248af816a1c | Fix cp overwriting identical files | If `cp` is passed a destination that is location of a source file, in effect, copying a file to itself, the source file will become empty. This prevents this situation form happening by verifying that the destination is a different location than the source.
Fixes #678 | diff --git a/src/cp.js b/src/cp.js
index 111e031c9..afeab1698 100644
--- a/src/cp.js
+++ b/src/cp.js
@@ -211,6 +211,7 @@ function _cp(options, sources, dest) {
var destExists = fs.existsSync(dest);
var destStat = destExists && fs.statSync(dest);
+ var identicalFiles = [];
// Dest is not existing dir, but ... | 3 | 2 | 2 | [{"id": "G0", "claim": "Report the identical-file error with common.error() and the continue:true option at the point the file is detected, and remove the hunk that collects the errors in an array and emits them after the loop, since it shouldn't be necessary.", "category": "design", "verdict": "supported", "priority":... | null |
shelljs__shelljs__687 | shelljs/shelljs | 687 | defect | b6b2cd84ef7ece7d3ebec21957eb23c51c034908 | 63e39c415dea65d0f9833f08ff2cca4078a7fc20 | Add support for removing fifos | Adds support for removing fifos.
Fixes #617 | diff --git a/src/rm.js b/src/rm.js
index 6ce6719a4..595368114 100644
--- a/src/rm.js
+++ b/src/rm.js
@@ -141,7 +141,7 @@ function _rm(options, files) {
} else {
common.error('path is a directory', { continue: true });
}
- } else if (stats.isSymbolicLink()) {
+ } else if (stats.isSymbolicLin... | 1 | 1 | 1 | [{"id": "G0", "claim": "Use regular string concatenation instead of a template literal in the mkfifo helper, because template literals do not work on Node v0.12.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shelljs__shelljs__688 | shelljs/shelljs | 688 | defect | b6b2cd84ef7ece7d3ebec21957eb23c51c034908 | f50a7e4ec9c8d007fe0fcd3c1b8cb2eff83a4103 | Remove contents of symlink to dir with rm -rf | Fix the behavior of `rm` such that:
1. `rm('-rf', 'link_to_dir/')` deletes contents of real dir, but keeps dir and symlink
2. `rm('-rf', 'link_to_dir')` deletes the symlink itself
Fixes #587 | diff --git a/src/rm.js b/src/rm.js
index 6ce6719a4..70424a8dc 100644
--- a/src/rm.js
+++ b/src/rm.js
@@ -1,5 +1,6 @@
var common = require('./common');
var fs = require('fs');
+var path = require('path');
common.register('rm', _rm, {
cmdOptions: {
@@ -17,7 +18,7 @@ common.register('rm', _rm, {
//
// Licensed u... | 5 | 4 | 1 | [{"id": "G0", "claim": "The catch-block comment \"symlink is bad, so just remove it\" should be reworded to something like \"symlink is broken, so only delete the link, not its contents\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "handleSymbo... | null |
shelljs__shelljs__702 | shelljs/shelljs | 702 | defect | 80d590ec0575e1dc8a83268f8fedd310c7c7e43d | 8f9402735a1111004735fae78b5aed9ce544fdf2 | Fix #631 throw error when overwriting recently created file | Fixes #631
If you have a copy command like:
`$ cp file1.txt out/file1.txt destination/`
You should get an error that says something like:
`cp: will not overwrite just-created ‘destination/file1.txt’ with ‘out/file1.txt’`
same behavior goes for mv with -R, -f flags. | diff --git a/src/cp.js b/src/cp.js
index 04c4e57ef..93ecb43fd 100644
--- a/src/cp.js
+++ b/src/cp.js
@@ -150,6 +150,14 @@ function cpdirSyncRecursive(sourceDir, destDir, currentDepth, opts) {
} // for files
} // cpdirSyncRecursive
+// Checks if cureent file was created recently
+function checkRecentCreated(source... | 3 | 1 | 0 | [{"id": "G0", "claim": "Add a test for copying a non-empty directory (with colliding contents), a case the pull request is missing.", "category": "testing", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "checkRecentCreated should keep a list of all copied files as they are copied... | null |
shelljs__shelljs__713 | shelljs/shelljs | 713 | defect | bbe521b57dfeda64954bc9a4eff99890fa85cce4 | 505c503383717018798a7acaa7d10cc360a672eb | Properly handle directories as arguments | We previously did not handle directories very well for many of our commands (would immediately error out). This fixes that.
* `cat()`: did not handle directories as inputs, now it gracefully errors
* `head()`: same thing. It also had a typo in a test.
* `sort()`: same thing. It had the same typo.
* `tail()`: ... | diff --git a/src/cat.js b/src/cat.js
index a74a25c84..af1ad1d4d 100644
--- a/src/cat.js
+++ b/src/cat.js
@@ -30,6 +30,8 @@ function _cat(options, files) {
files.forEach(function (file) {
if (!fs.existsSync(file)) {
common.error('no such file or directory: ' + file);
+ } else if (fs.statSync(file).isDi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `return` statements after `common.error(...)` in src/head.js are unnecessary because `common.error` throws an error, so the function should exit there.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shelljs__shelljs__725 | shelljs/shelljs | 725 | defect | e7bebba2424fe550b84428b796e5fc15eaff4c62 | a0aebb0116adcad373e8ea37590fbcf9a5c388bb | Deprecate common.getUserHome, advise using os.homedir instead | Deprecates `common.getUserHome` and provides a warning about the deprecation. Also replaces all of the internal uses of `common.getUserHome` with `os.homedir`.
Fixes #683 | diff --git a/src/cd.js b/src/cd.js
index 634ed835c..c6f1ada33 100644
--- a/src/cd.js
+++ b/src/cd.js
@@ -1,4 +1,5 @@
var fs = require('fs');
+var os = require('os');
var common = require('./common');
common.register('cd', _cd, {});
@@ -8,7 +9,7 @@ common.register('cd', _cd, {});
//@ Changes to directory `dir` for... | 1 | 1 | 1 | [{"id": "G0", "claim": "Don't deprecate the internal common.getUserHome — remove it instead, since only the functions listed in plugin.js are explicitly exported as the public API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shelljs__shelljs__763 | shelljs/shelljs | 763 | defect | 2ee83ebf7440b695ac78694cbec8a3302d8896ec | e87bbc10ba69dc1c459a9dcfd5b53ca39abecc15 | Add "encoding" option to exec | Fixes #675 by adding support for the `'encoding'` option to `exec`. It technically supported the `'encoding'` option before, but the return values of `stdout` and `stderr` did not honor the encoding. Now, they will. | diff --git a/README.md b/README.md
index 51082f47c..479fea71b 100644
--- a/README.md
+++ b/README.md
@@ -273,11 +273,13 @@ like `.to()`.
### exec(command [, options] [, callback])
-Available options (all `false` by default):
+Available options:
+ `async`: Asynchronous execution. If a callback is provided, it wi... | 3 | 3 | 0 | [{"id": "G0", "claim": "The ternary mapping 'buffer' to null for fs.readFileSync is unclear and should be dropped in favor of `encoding = opts.encoding`, since turning 'buffer' into null seems weird.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new... | null |
shelljs__shelljs__802 | shelljs/shelljs | 802 | defect | 6189d7f8e54456918520b469ec5074dd4c08875b | d588c632c4b051f2d081ea93a659db02a713b6e6 | Remove separate "internal error" from exec | Fixes #734
Removes `common.error('internal error')` from `exec`, allowing any internal errors in `exec` to be wrapped by `ShellJSInternalError` instead. | diff --git a/src/exec.js b/src/exec.js
index 03f9826b5..416850c61 100644
--- a/src/exec.js
+++ b/src/exec.js
@@ -93,7 +93,7 @@ function execSync(cmd, opts, pipe) {
try { common.unlinkSync(stdoutFile); } catch (e) {}
if (code !== 0) {
- common.error('', code, { continue: true });
+ common.error(stderr, cod... | 3 | 3 | 1 | [{"id": "G0", "claim": "The three-alternative error regex in the 'config.fatal and unknown command' test needs a comment explaining why three different shell error messages are matched (and whether the error should still be checked as a ShellJSInternalError).", "category": "maintainability", "verdict": "supported", "pr... | null |
shelljs__shelljs__848 | shelljs/shelljs | 848 | defect | 4733a32c0825cd75742959ebcef7dc93b03f1b50 | fc2b37a8ad71d9761a6775a23b986f6f6be38efa | Prevent require-ing bin/shjs | Fixes #789
This makes it so that `bin/shjs` cannot be `require`d as a module, and adds a test for this. | diff --git a/bin/shjs b/bin/shjs
index 75ca58b9d..a0e1d1a82 100755
--- a/bin/shjs
+++ b/bin/shjs
@@ -1,12 +1,21 @@
#!/usr/bin/env node
-require('../global');
-if (process.argv.length < 3) {
- console.log('ShellJS: missing argument (script name)');
+function exit(msg) {
+ console.log(msg);
console.log();
proc... | 3 | 3 | 0 | [{"id": "G0", "claim": "The require.main !== module guard should be moved up to the top of bin/shjs, above the helper function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deferred require('../global') should sit immediately below the req... | null |
shelljs__shelljs__869 | shelljs/shelljs | 869 | defect | 1dd437eb6b29a2d9e88ed1542cba5a3bd4e66c99 | cf6c70fb02e261ad1f72c7eb3a9eba6724c00162 | Add preserve option to cp | This is a redo of #841.
This adds the `-p` flag to `cp()` to preserve certain attributes, such as timestamps.
Fixes #771 | diff --git a/README.md b/README.md
index cf916b94c..37919a2b3 100644
--- a/README.md
+++ b/README.md
@@ -202,6 +202,7 @@ Available options:
+ `-r`, `-R`: recursive
+ `-L`: follow symlinks
+ `-P`: don't follow symlinks
++ `-p`: preserve file mode, ownership, and timestamps
Examples:
diff --git a/src/cp.js b/src/... | 5 | 4 | 3 | [{"id": "G0", "claim": "Remove the misplaced sleeps in the cp -p tests and replace them with a correct solution that uses touch to set the source timestamps to something other than \"now\".", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Make the preserv... | null |
shelljs__shelljs__876 | shelljs/shelljs | 876 | defect | 8dae55ff4ac89017eb2fd071b94e8464b1a20bdc | 4a871e0feb97550bfc6cfa534f3b4b5cf4f2af2b | grep includes the i flag | grep includes the i flag to ignored upper/lower case differences | diff --git a/src/grep.js b/src/grep.js
index 3880fa191..0394d427e 100644
--- a/src/grep.js
+++ b/src/grep.js
@@ -7,6 +7,7 @@ common.register('grep', _grep, {
cmdOptions: {
'v': 'inverse',
'l': 'nameOnly',
+ 'i': 'ignoreCase',
},
});
@@ -17,7 +18,8 @@ common.register('grep', _grep, {
//@ Available... | 4 | 4 | 2 | [{"id": "G0", "claim": "Reword the new `-i` doc-comment sentence in src/grep.js to simply \"Ignore case.\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Run `npm run gendocs` so the generated README documents the new `-i` flag.", "category": "do... | null |
shelljs__shelljs__889 | shelljs/shelljs | 889 | defect | 4113a72c16dc919ca0f204c9552eaf9247a9dc37 | dface6c7bcae4589d238f94895c45c9153baf299 | feat(cp): support update flag when recursing | Fixed `cp -Ru` ignoring `-u`, and added a test.
Fixes #808 | diff --git a/src/cp.js b/src/cp.js
index 6218f6700..aa3c80efb 100644
--- a/src/cp.js
+++ b/src/cp.js
@@ -260,7 +260,7 @@ function _cp(options, sources, dest) {
try {
common.statFollowLinks(path.dirname(dest));
- cpdirSyncRecursive(src, newDest, 0, { no_force: options.no_force, followsymli... | 9 | 8 | 3 | [{"id": "G0", "claim": "The test title should be renamed from \"-Ru no longer ignores -u\" to \"-Ru respects the -u flag recursively\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should verify by checking file contents (the dest fil... | null |
shelljs__shelljs__901 | shelljs/shelljs | 901 | defect | 4bd22e77423182219cd43f0c8d38621b1c957986 | 56dbb20b7d4f6e1cdbcb537b91d4d8f1cb26ec96 | fix: Exit 1 with empty string if no match | Resolve an issue where grep returned 0 (with a `\n` as the output), even when the regex doesn't match.
Fixes #900 | diff --git a/src/grep.js b/src/grep.js
index b696792a7..11fe4c6b0 100644
--- a/src/grep.js
+++ b/src/grep.js
@@ -68,6 +68,10 @@ function _grep(options, regex, files) {
}
});
+ if (grep.length === 0) {
+ common.error('', 1, { silent: true });
+ return;
+ }
return grep.join('\n') + '\n';
}
module.e... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new empty-result guard fires even when a file error with exit code 2 is already recorded, so the existing no-such-file tests get an extra 'grep: ' on stderr and fail; the if-condition should also check common.state.error/common.state.errorCode so unreadable-file cases keep exit code 2 and th... | null |
shenminglinyi__PlotPilot__61 | shenminglinyi/PlotPilot | 61 | defect | fd90a7107a88dbcae640c831208f9e23b086eb03 | 239c49b8e8e28dc0192088727a2288bfb36c1430 | feat: 代码质量提升 - 修复异常处理、清理调试代码、合并PR#59增强 | ## 变更说明
### 1. 代码质量修复(P0/P1优先级)
- **修复13处裸 `except:` 捕获** - 改为具体异常类型(`json.JSONDecodeError`, `ValueError`, `TypeError`, `AttributeError`, `KeyError`等),避免吞掉 `KeyboardInterrupt`、`SystemExit` 等系统异常
- **修复 `_call_llm_and_parse_with_retry` 未使用 `last_error`** - 增强错误日志,记录最后一次失败原因
- **清理所有 `print()` 调试语句** - 改为 `logger.debug(... | diff --git a/application/ai/knowledge_llm_contract.py b/application/ai/knowledge_llm_contract.py
index 099506286..62af50515 100644
--- a/application/ai/knowledge_llm_contract.py
+++ b/application/ai/knowledge_llm_contract.py
@@ -107,7 +107,7 @@ def parse_json_from_response(rsp: str):
if match is not None:
... | 10 | 4 | 3 | [{"id": "G0", "claim": "The JSON parser migration is incomplete: _call_llm_and_parse still calls the removed helpers _sanitize_llm_json_output/_parse_llm_json_to_dict, which can raise NameError, and it converts parse failures to {} so the retry loop returns immediately and retries are effectively skipped.", "category":... | null |
shentao__vue-multiselect__588 | shentao/vue-multiselect | 588 | defect | 62a3bf61deedc6c9f60edd99db66d85f81890fd5 | 5b1d0bc18ba4ce77ffcdaaac24de69d3d15ad0e7 | Fix for new tags changing to lowercase | Fix for https://github.com/monterail/vue-multiselect/issues/560 issue. | diff --git a/src/multiselectMixin.js b/src/multiselectMixin.js
index f2ec805c..031468e5 100644
--- a/src/multiselectMixin.js
+++ b/src/multiselectMixin.js
@@ -328,7 +328,7 @@ export default {
if (this.tagPosition === 'bottom') {
options.push({ isTag: true, label: normalizedSearch })
} else ... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the tagPosition === 'bottom' branch, the pushed tag label should use the same (preserved-case) expression as the unshift on line 331 instead of normalizedSearch.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shentufoundation__shentu__129 | shentufoundation/shentu | 129 | defect | 185be1a95e78032514e20670110a7839cc070165 | ea56e6d30be14a1a25f15d5a081df2b93f4336d8 | cvm: Improve account query to include CVM related info | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/cmd/certikcli/main.go b/cmd/certikcli/main.go
index 36aee107c..10c956dce 100644
--- a/cmd/certikcli/main.go
+++ b/cmd/certikcli/main.go
@@ -108,6 +108,7 @@ func queryCmd(cdc *amino.Codec) *cobra.Command {
cvmcli.QueryTxCmd(cdc),
flags.LineBreak,
authcli.GetAccountCmd(cdc),
+ cvmcli.GetAccountCmd(... | 2 | 2 | 2 | [{"id": "G0", "claim": "The account query should be routed entirely through the CVM module CLI/REST, since the PR currently puts too much unnecessary account-query code in auth that could be handled in the CVM module.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "c... | null |
shentufoundation__shentu__133 | shentufoundation/shentu | 133 | defect | 27111ed5b29969a1c44c2efc3c546e6321b74b69 | 52e8812023841a6a2eb1625f7ad5acfd82b79bdd | oracle: fix import-export for task and withdraw | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/app/sim_test.go b/app/sim_test.go
index 86d3bcb4b..04fc38971 100644
--- a/app/sim_test.go
+++ b/app/sim_test.go
@@ -30,6 +30,7 @@ import (
distr "github.com/certikfoundation/shentu/x/distribution"
"github.com/certikfoundation/shentu/x/gov"
"github.com/certikfoundation/shentu/x/mint"
+ "github.com/cer... | 3 | 2 | 0 | [{"id": "G0", "claim": "A task that is closed and removed from the closing task queue (0x05) but not yet deleted from the task queue (0x04) is put back into the closing task queue after an export-import, which caused an inconsistency in the import-export test.", "category": "correctness", "verdict": "uncertain", "prior... | null |
shentufoundation__shentu__30 | shentufoundation/shentu | 30 | defect | 29660444925c8f2a5872c78d46c600dfdfcaedde | 2d046397ac81c60287e248c8a920cb121988daf9 | simulation: change sim denom back to `stake` | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/app/app.go b/app/app.go
index 649d0a0de..0ea22a497 100644
--- a/app/app.go
+++ b/app/app.go
@@ -20,8 +20,10 @@ import (
cosmosBank "github.com/cosmos/cosmos-sdk/x/bank"
"github.com/cosmos/cosmos-sdk/x/genutil"
cosmosGov "github.com/cosmos/cosmos-sdk/x/gov"
+ cosmosMint "github.com/cosmos/cosmos-sdk/x... | 3 | 2 | 2 | [{"id": "G0", "claim": "Instead of embedding the Cosmos SDK mint AppModule (cosmosMint.NewAppModule(app.mintKeeper.Keeper)) in app.go, the PR should keep the custom shentu mint module there and define the needed methods in the project's own mint module, since their mint module differs from Cosmos's.", "category": "desi... | null |
shentufoundation__shentu__371 | shentufoundation/shentu | 371 | defect | 77aa85eb959e77a18706d994b00d0cad5a620e20 | 9c4cd7ca6a941da5056eea0c205d1fc4ee47b830 | AUTH: add MVA delegation amounts fix | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/app/app.go b/app/app.go
index 18091ac59..e5167fa8e 100644
--- a/app/app.go
+++ b/app/app.go
@@ -589,6 +589,7 @@ func NewShentuApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest
// BeginBlocker processes application updates at the beginning of each block.
func (app *ShentuApp) BeginBlock... | 2 | 2 | 0 | [{"id": "G0", "claim": "RunForkLogic can just panic on failure and drop the error plumbing instead of returning an error from FixAccounts.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The df and dv variables in resetVestingDelegatedBalances are unneces... | null |
shentufoundation__shentu__624 | shentufoundation/shentu | 624 | defect | 607e6c5e4a6aabce1376c4f988dba03872084ca4 | 28891259e2c2611736f6bf5b62ca48cb56636aba | Precog create tx task | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/x/oracle/handler.go b/x/oracle/handler.go
index 47b2336f0..fb14467bb 100644
--- a/x/oracle/handler.go
+++ b/x/oracle/handler.go
@@ -48,6 +48,10 @@ func NewHandler(k keeper.Keeper) sdk.Handler {
res, err := msgServer.DeleteTask(sdk.WrapSDKContext(ctx), msg)
return sdk.WrapServiceResult(ctx, res, err... | 1 | 1 | 0 | [{"id": "G0", "claim": "The TxBytes validation error in MsgCreateTxTask.ValidateBasic should say \"tx\" instead of the typo \"tax\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shentufoundation__shentu__738 | shentufoundation/shentu | 738 | defect | 725de9bfc0b103d82ffdedfd0122ba02bdfe2ed2 | 1c9ee6bfb3aee959233da0cc28282a098d7f26e4 | Migrate shield | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/x/shield/keeper/migrations.go b/x/shield/keeper/migrations.go
index be773ef5a..99cf5db34 100644
--- a/x/shield/keeper/migrations.go
+++ b/x/shield/keeper/migrations.go
@@ -7,6 +7,7 @@ import (
v232 "github.com/shentufoundation/shentu/v2/x/shield/legacy/v232"
+ v280 "github.com/shentufoundation/shentu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new legacy migration package should be named v4, after the shield module version it migrates to, instead of v280.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shentufoundation__shentu__739 | shentufoundation/shentu | 739 | defect | 725de9bfc0b103d82ffdedfd0122ba02bdfe2ed2 | d8df45ea18d34f566f84c1d070827488b7daa06e | migrate cert stored prefix to shentu | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/x/cert/keeper/migrations.go b/x/cert/keeper/migrations.go
new file mode 100644
index 000000000..4751ee16e
--- /dev/null
+++ b/x/cert/keeper/migrations.go
@@ -0,0 +1,22 @@
+package keeper
+
+import (
+ sdk "github.com/cosmos/cosmos-sdk/types"
+
+ v280 "github.com/shentufoundation/shentu/v2/x/cert/legacy/v28... | 1 | 1 | 0 | [{"id": "G0", "claim": "The cert store's libraryStoreKey entries, which contain certik-prefixed string addresses, should be handled by this migration; the reviewer is unsure whether mainnet actually holds any such entries.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
shentufoundation__shentu__740 | shentufoundation/shentu | 740 | defect | 725de9bfc0b103d82ffdedfd0122ba02bdfe2ed2 | 6c39cd519a9590425734d95fa292a2d1c3b85222 | migrate oracle certik prefix to shentu | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/x/oracle/keeper/migrations.go b/x/oracle/keeper/migrations.go
index 69f3f802f..7bf05da7c 100644
--- a/x/oracle/keeper/migrations.go
+++ b/x/oracle/keeper/migrations.go
@@ -2,6 +2,7 @@ package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
+ v280 "github.com/shentufoundation/shentu/v2/x/oracl... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new Migrate2to3 registration must be accompanied by a ConsensusVersion modification (bump to 3), otherwise the migration will never run.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The value stored under the Withdraw k... | null |
shentufoundation__shentu__949 | shentufoundation/shentu | 949 | defect | 08dcd8fd511d8e0056c14c3085dca52945643003 | 8cb621ce443603777f402ea8c7bdf8b1b8e3b9f3 | v2.14.0 dev | <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > >... | diff --git a/Dockerfile b/Dockerfile
index 0de80b510..ee59d18ea 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,20 +1,29 @@
ARG IMG_TAG=latest
# Compile the shentud binary
-FROM golang:1.19-alpine AS shentud-builder
+FROM golang:1.22-alpine AS shentud-builder
WORKDIR /src/app/
+ENV PACKAGES="curl make git libc-dev ... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the Makefile the build-tags whitespace variable should be assigned as `whitespace := $(whitespace) $(whitespace)` instead of `whitespace += $(whitespace)`, because the recursive self-append leaves the variable empty so the substitution fails and `make build-static-linux-amd64` errors.", "cate... | null |
shenweichen__DeepCTR__387 | shenweichen/DeepCTR | 387 | defect | 0df401c5bbe2e00105aff62013ec687bea61774c | 8804e7e64691a0a9374167b5fbf84fce1eb5bc58 | New Feature: Modify the Hash layer to support the lookup table | New Feature:
Modify the `Hash` layer to support the lookup feature.
Now there are two hash techniques supported in the `Hash` layer:
1. Lookup Table: when setup `vocabulary_path`, it can looks up input keys in a table and output the corresponding values. Missed keys are always return the default value, eg... | diff --git a/deepctr/feature_column.py b/deepctr/feature_column.py
index cb04ce1d..6f277ba1 100644
--- a/deepctr/feature_column.py
+++ b/deepctr/feature_column.py
@@ -15,12 +15,12 @@
class SparseFeat(namedtuple('SparseFeat',
- ['name', 'vocabulary_size', 'embedding_dim', 'use_hash', 'dty... | 5 | 5 | 1 | [{"id": "G0", "claim": "Ask the PR author to help solve issue #379 (the PositionEncoding position_enc problem) in this change.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The Hash layer may not work in tensorflow versions below 2.0.0.", "catego... | null |
shepmaster__snafu__107 | shepmaster/snafu | 107 | defect | 52e16704228abb9310f74ba74f1b755383c17ada | c701396db6cca9afdbf59d4d7f4c43c38263d27e | Implement Doc Comments as Default Display Implementations | If there is no #[snafu(display(...))] attribute on a variant, but there is a doc comment, the doc comment is now chosen as the implementation of Display for the variant.
Resolves #106 | diff --git a/compatibility-tests/compile-fail/tests/ui/error-reporting.stderr b/compatibility-tests/compile-fail/tests/ui/error-reporting.stderr
index c6fbb4ba..0d34db5a 100644
--- a/compatibility-tests/compile-fail/tests/ui/error-reporting.stderr
+++ b/compatibility-tests/compile-fail/tests/ui/error-reporting.stderr
@... | 3 | 3 | 1 | [{"id": "G0", "claim": "Doc comments with a summary line followed by a blank line and a longer body should stop at the two consecutive newlines and use only the summary as the default Display, rather than inlining the whole docstring.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
shepmaster__snafu__117 | shepmaster/snafu | 117 | defect | e09e9478bcc37968f711b0d5d22f04ea60963c77 | 6547bdcb230c9502b046fc0f4d43f37ec5480d26 | Allow default generic parameters on error types | Fixes #116 but I'm not sure about some quote macro usages and test completeness | diff --git a/snafu-derive/src/lib.rs b/snafu-derive/src/lib.rs
index dcd9db83..da1d9f5a 100644
--- a/snafu-derive/src/lib.rs
+++ b/snafu-derive/src/lib.rs
@@ -674,6 +674,57 @@ trait GenericAwareNames {
Box::new(quote! { #enum_name<#(#original_generics,)*> })
}
+ fn provided_generic_types_without_defa... | 5 | 4 | 0 | [{"id": "G0", "claim": "The `provided_generic_types_and_consts` method added to `GenericAwareNames` is never used and must be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `flat_map` instead of `filter_map` in the new `GenericAware... | null |
shepmaster__snafu__173 | shepmaster/snafu | 173 | defect | 32016ad94634a4a801c1d833ffe543c28247a57f | 58327ad9d829be2b9a1cd49243fc570269daa7db | Add support for standard library std::backtrace::Backtrace | See #172. This gives a proper `.backtrace()` to snafu errors, using nightly's `#![feature(backtrace)]`.
When enabled, this re-exports `std::backtrace::Backtrace` as `snafu::Backtrace` and changes `snafu::ErrorCompat::backtrace` such that it returns a std library backtrace instead of one from the `backtrace` crate.
... | diff --git a/.cirrus.yml b/.cirrus.yml
index 16f15191..3e006450 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -36,6 +36,8 @@ nightly_test_task:
fingerprint_script: cat Cargo.toml
primary_test_script:
- cargo +nightly test
+ without_backtrace_test_script:
+ - RUST_BACKTRACE=1 cargo test --manifest-path ... | 4 | 4 | 0 | [{"id": "G0", "claim": "The generated code uses `Backtrace::capture()`, so the backtrace is only created when `RUST_BACKTRACE=1` is set at runtime; the reviewers raise whether `force_capture` should be used instead, proposing that a `Backtrace` field mean `force_capture` and an `Option<Backtrace>` field mean `capture`.... | null |
shepmaster__snafu__177 | shepmaster/snafu | 177 | defect | 6bce5c62d1f5bf7616cc783b387ac4a91d106c5a | f550545ed36bc235c49e45450107d31d3d2e0f7d | Update to Rust 2018, syn/quote/proc-macro2 1.0 | Decision made in #154.
Fixes #164.
This takes advantage of all of the improvements in syn/quote/proc-macro2 1.0 that I could find in the code, and switches to some Rust 2018 idioms, but more could probably be done with more familiarity or research.
Certainly some of the changes in my commits are debatable, for e... | diff --git a/.cirrus.yml b/.cirrus.yml
index 16f15191..5311c0f5 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -63,36 +63,17 @@ v1_34_test_task:
- cargo test
before_cache_script: rm -rf $CARGO_HOME/registry/index
-v1_30_test_task:
- name: "Rust 1.30"
+v1_31_test_task:
+ name: "Rust 1.31"
container:
- i... | 2 | 2 | 1 | [{"id": "G0", "claim": "Keep `default-features = false` on the newly added doc-comment dependency to minimize compile time.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The backtrace crate in the new v1_31 compatibility test needs to be pinned to ... | null |
shepmaster__snafu__295 | shepmaster/snafu | 295 | defect | 42bcc3355dc77e0fc07a098e7b012a9fb308186a | 6e0411e8acd2540829f492436f8fe8344c465386 | Implement #[snafu(module)] support | Here's a rough first pass at implementing submodule support. This is my first time in proc-macro land, so apologies if anything is implemented horribly!
There are a couple points that I wanted to discuss before doing too much more work:
- Like @shepmaster mentioned in #286, `super::` is problematic; would checki... | diff --git a/snafu-derive/Cargo.toml b/snafu-derive/Cargo.toml
index 8507ecde..7cfd148e 100644
--- a/snafu-derive/Cargo.toml
+++ b/snafu-derive/Cargo.toml
@@ -20,3 +20,4 @@ proc-macro = true
syn = { version = "1.0", features = ["full"] }
quote = "1.0"
proc-macro2 = "1.0"
+heck = "0.3.3"
diff --git a/snafu-derive/src... | 12 | 5 | 1 | [{"id": "G0", "claim": "The new `heck` dependency is undesirable because SNAFU should stay low in the dependency graph, and the author suggests making it optional, with `#[snafu(module)]` available only when enabled.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
shepmaster__snafu__310 | shepmaster/snafu | 310 | defect | ad7bec5e784c0cf28fb2ee50cff63226ebc49945 | e0b6b71b564313678135ee964c7af28ee935c71f | Add shorthand formatting for snafu(display) | Closes #309 | diff --git a/snafu-derive/src/lib.rs b/snafu-derive/src/lib.rs
index 895e6087..4e0c3541 100644
--- a/snafu-derive/src/lib.rs
+++ b/snafu-derive/src/lib.rs
@@ -5,7 +5,7 @@ extern crate proc_macro;
use crate::parse::attributes_from_syn;
use proc_macro::TokenStream;
use quote::quote;
-use std::collections::VecDeque;
+u... | 1 | 1 | 0 | [{"id": "G0", "claim": "Support shorthand formatting inside documentation comments as well, e.g. `/// Person {name} with ID {id} denied` in place of `#[snafu(display(...))]`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
shepmaster__snafu__383 | shepmaster/snafu | 383 | defect | 00bba4b4243a340cdcafc7a8478f9e26b860692d | 07c3d45f33dfa79e5a50bca393ec233fcbc8c557 | Extract an iterator that cleans redundant nested error text | This allows the cleaning logic to be reused in other contexts, such as an HTML or JSON error report. | diff --git a/src/lib.rs b/src/lib.rs
index 3e3da5f1..102d139b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -272,6 +272,8 @@ mod error_chain;
pub use crate::error_chain::*;
mod report;
+#[cfg(feature = "std")]
+pub use report::CleanedErrorText;
pub use report::{Report, __InternalExtractErrorType};
doc_comment::do... | 3 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on CleanedErrorText misspells \"their\" as \"thier\" and should read \"their source text as well:\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is no test covering the case where a message contains... | null |
shepmaster__snafu__442 | shepmaster/snafu | 442 | defect | 941abc583b5c5abdf4ee690a58b66c84f3086bd1 | 44ae7efc7e651c9ca33974eb93098b34fc8ad404 | Add missing generics and trait bounds to `FromString` impl | Fixes #441
I'm still pretty ignorant when it comes to proc macros but I think this is correct. I need to write some tests tho. | diff --git a/snafu-derive/src/shared.rs b/snafu-derive/src/shared.rs
index 6e6da13d..4becd188 100644
--- a/snafu-derive/src/shared.rs
+++ b/snafu-derive/src/shared.rs
@@ -358,8 +358,10 @@ pub mod context_selector {
let parameterized_error_name = self.parameterized_error_name;
let error_constru... | 1 | 1 | 0 | [{"id": "G0", "claim": "The top-level test enum should not carry a where clause; instead add `Whatever` variants down in the `mod inline` / `mod where_clause` sections below.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.