@bigknoxy/hashpilot 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +777 -0
- package/docs/ADAPTER-CONTRACT.md +1260 -0
- package/docs/ARCHITECTURE.md +846 -0
- package/docs/CLI-QUICKREF.md +827 -0
- package/docs/COMPETITIVE-ANALYSIS.md +307 -0
- package/docs/INSTALL.md +403 -0
- package/docs/INTEGRATION-CLAUDE.md +126 -0
- package/docs/INTEGRATION-MCP.md +196 -0
- package/docs/INTEGRATION-OPENCODE.md +136 -0
- package/docs/INTEGRATION-PI.md +195 -0
- package/package.json +77 -0
- package/scripts/build-site.sh +39 -0
- package/scripts/doctor.sh +218 -0
- package/scripts/gen-cli-quickref.ts +232 -0
- package/scripts/install-cli.sh +60 -0
- package/scripts/install.sh +466 -0
- package/scripts/roadmap-lint.ts +200 -0
- package/scripts/uninstall.sh +202 -0
- package/src/cli-node.cjs +51 -0
- package/src/cli.ts +209 -0
- package/src/commands/ast.ts +255 -0
- package/src/commands/diff.ts +98 -0
- package/src/commands/edit.ts +93 -0
- package/src/commands/hash.ts +64 -0
- package/src/commands/intent.ts +68 -0
- package/src/commands/maintenance.ts +191 -0
- package/src/commands/mcp.ts +28 -0
- package/src/commands/provenance.ts +111 -0
- package/src/commands/read.ts +117 -0
- package/src/commands/route.ts +42 -0
- package/src/commands/shared.ts +65 -0
- package/src/commands/telemetry.ts +126 -0
- package/src/commands/verify.ts +61 -0
- package/src/core/ast-edit.ts +2357 -0
- package/src/core/batch-edit.ts +185 -0
- package/src/core/config.ts +189 -0
- package/src/core/diff-engine.ts +474 -0
- package/src/core/doctor.ts +303 -0
- package/src/core/encoding.ts +116 -0
- package/src/core/envelope.ts +163 -0
- package/src/core/exit-codes.ts +198 -0
- package/src/core/format.ts +339 -0
- package/src/core/grep.ts +180 -0
- package/src/core/hash-edit.ts +416 -0
- package/src/core/index.ts +155 -0
- package/src/core/intent.ts +584 -0
- package/src/core/locking.ts +292 -0
- package/src/core/module-system.ts +142 -0
- package/src/core/operations.ts +557 -0
- package/src/core/output.ts +122 -0
- package/src/core/path-normalize.ts +61 -0
- package/src/core/paths.ts +326 -0
- package/src/core/plan-executor.ts +437 -0
- package/src/core/platform.ts +132 -0
- package/src/core/provenance.ts +214 -0
- package/src/core/read.ts +111 -0
- package/src/core/redact.ts +98 -0
- package/src/core/resolve-content.ts +12 -0
- package/src/core/router.ts +463 -0
- package/src/core/snapshot.ts +346 -0
- package/src/core/telemetry.ts +838 -0
- package/src/core/utils.ts +7 -0
- package/src/core/verify-baseline.ts +186 -0
- package/src/core/verify-scope.ts +282 -0
- package/src/core/verify.ts +753 -0
- package/src/mcp/server.ts +325 -0
- package/templates/claude-section.md +12 -0
- package/templates/opencode-agent.md +106 -0
- package/templates/opencode-skill.md +241 -0
- package/templates/pi-extension.ts +288 -0
- package/templates/pi-skill.md +123 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export { readMany, readHash, computeHash, computeLineHash } from "./read";
|
|
2
|
+
export type { ReadResult, ReadHashResult } from "./read";
|
|
3
|
+
export { grepMany, symbolLookupMany } from "./grep";
|
|
4
|
+
export type { GrepResult, GrepManyResult, SymbolLookupResult } from "./grep";
|
|
5
|
+
export { replaceHash } from "./hash-edit";
|
|
6
|
+
export type { ReplaceHashResult, ReplaceHashOptions } from "./hash-edit";
|
|
7
|
+
export {
|
|
8
|
+
findSymbols,
|
|
9
|
+
findSymbolsDetailed,
|
|
10
|
+
MAX_AST_DEPTH,
|
|
11
|
+
renameSymbol,
|
|
12
|
+
replaceBody,
|
|
13
|
+
addImport,
|
|
14
|
+
removeImport,
|
|
15
|
+
insertBeforeSymbol,
|
|
16
|
+
insertAfterSymbol,
|
|
17
|
+
insertParameter,
|
|
18
|
+
insertCallArg,
|
|
19
|
+
detectLanguage,
|
|
20
|
+
isLanguageSupported,
|
|
21
|
+
supportedLanguages,
|
|
22
|
+
astCapabilities,
|
|
23
|
+
parseSource,
|
|
24
|
+
firstParseError,
|
|
25
|
+
setAllowParseErrors,
|
|
26
|
+
getAllowParseErrors,
|
|
27
|
+
probeParsers,
|
|
28
|
+
AST_LANGUAGES,
|
|
29
|
+
} from "./ast-edit";
|
|
30
|
+
export type { ParseIssue, ParserProbe } from "./ast-edit";
|
|
31
|
+
export type { ASTEditResult, SymbolInfo, LanguageCapability } from "./ast-edit";
|
|
32
|
+
export { detectModuleSystem, nearestPackageType } from "./module-system";
|
|
33
|
+
export type { ModuleSystem, ModuleSystemSignal, ModuleSystemVerdict } from "./module-system";
|
|
34
|
+
export { verifyChanges, recordVerifyBaseline } from "./verify";
|
|
35
|
+
export type { VerifyResult, VerifyOptions, ToolRun, RecordBaselineResult } from "./verify";
|
|
36
|
+
export { buildTestInvocation, parseFailures } from "./verify-scope";
|
|
37
|
+
export type { TestInvocation } from "./verify-scope";
|
|
38
|
+
export { compareToBaseline, currentCommit, readBaseline, writeBaseline, scopeSignature } from "./verify-baseline";
|
|
39
|
+
export type { Baseline, BaselineReport, BaselineSource } from "./verify-baseline";
|
|
40
|
+
export {
|
|
41
|
+
recordEvent,
|
|
42
|
+
readEvents,
|
|
43
|
+
lastReadSkipped,
|
|
44
|
+
TelemetryReadError,
|
|
45
|
+
clearEvents,
|
|
46
|
+
summary,
|
|
47
|
+
health,
|
|
48
|
+
healthTrend,
|
|
49
|
+
ErrorCode,
|
|
50
|
+
listSessions,
|
|
51
|
+
exportEvents,
|
|
52
|
+
pruneEvents,
|
|
53
|
+
prunePayloads,
|
|
54
|
+
diskUsage,
|
|
55
|
+
DISK_WARN_BYTES,
|
|
56
|
+
configureTelemetry,
|
|
57
|
+
enableTelemetry,
|
|
58
|
+
resolveTelemetryEnabled,
|
|
59
|
+
getSessionId,
|
|
60
|
+
newSession,
|
|
61
|
+
setSessionId,
|
|
62
|
+
MAX_FILE_SIZE,
|
|
63
|
+
MAX_ROTATED_FILES,
|
|
64
|
+
RETENTION_DAYS,
|
|
65
|
+
MAX_RECORD_BYTES,
|
|
66
|
+
} from "./telemetry";
|
|
67
|
+
export type { TelemetryEvent, HealthReport, HealthTrend, SessionSummary } from "./telemetry";
|
|
68
|
+
export { generateUnifiedDiff, toPreview, parsePatch, applyPatchToSource, applyPatch } from "./diff-engine";
|
|
69
|
+
export type { Hunk, PatchResult } from "./diff-engine";
|
|
70
|
+
export { chooseRoute, routeEdit } from "./router";
|
|
71
|
+
export type { EditRoute, RouterResult, RouteExplanation } from "./router";
|
|
72
|
+
export { editMany, editManySerial } from "./batch-edit";
|
|
73
|
+
export type { BatchParams, BatchResult, BatchSummary, BatchEditOptions } from "./batch-edit";
|
|
74
|
+
export {
|
|
75
|
+
acquireLock,
|
|
76
|
+
acquireSortedLocks,
|
|
77
|
+
LOCK_TIMEOUT_MS,
|
|
78
|
+
lockPathFor,
|
|
79
|
+
LockAcquireError,
|
|
80
|
+
pruneStaleLocks,
|
|
81
|
+
} from "./locking";
|
|
82
|
+
export { parseIntent, findSymbolDefinition, findReferences, generatePlan } from "./intent";
|
|
83
|
+
export type {
|
|
84
|
+
IntentOperation,
|
|
85
|
+
StructuredIntent,
|
|
86
|
+
AddParameterIntent,
|
|
87
|
+
RemoveParameterIntent,
|
|
88
|
+
RenameExportedSymbolIntent,
|
|
89
|
+
ReferenceLocation,
|
|
90
|
+
SymbolDefinition,
|
|
91
|
+
EditStep,
|
|
92
|
+
EditPlan,
|
|
93
|
+
UnresolvedItem,
|
|
94
|
+
} from "./intent";
|
|
95
|
+
export { executeIntent, executePlan } from "./plan-executor";
|
|
96
|
+
export type { StepResult, PlanResult, IntentResult } from "./plan-executor";
|
|
97
|
+
export { loadConfig, policyForce } from "./config";
|
|
98
|
+
export type { HashPilotConfig, RoutePolicy, TelemetryConfig, ProvenanceConfig, SnapshotConfig } from "./config";
|
|
99
|
+
export {
|
|
100
|
+
recordSnapshot,
|
|
101
|
+
listChangeSets,
|
|
102
|
+
lastChangeSetId,
|
|
103
|
+
undoChangeSet,
|
|
104
|
+
pruneSnapshots,
|
|
105
|
+
cleanOrphanTempFiles,
|
|
106
|
+
configureSnapshots,
|
|
107
|
+
resetSnapshots,
|
|
108
|
+
setCurrentChangeSet,
|
|
109
|
+
getCurrentChangeSet,
|
|
110
|
+
snapshotRoot,
|
|
111
|
+
DEFAULT_RETENTION,
|
|
112
|
+
} from "./snapshot";
|
|
113
|
+
export type { SnapshotRecord, ChangeSetSummary, UndoResult, UndoFileResult, SnapshotRetention } from "./snapshot";
|
|
114
|
+
export { createChangeSet, buildProvenanceFields, provenanceQuery, changeSetQuery, formatProvenanceHuman } from "./provenance";
|
|
115
|
+
export type { ProvenanceInput, ProvenanceEntry, ChangeSetResult } from "./provenance";
|
|
116
|
+
export { doctor, detectInstallMode } from "./doctor";
|
|
117
|
+
export type { DoctorReport, DoctorCheck, InstallMode } from "./doctor";
|
|
118
|
+
export { escapeRegex } from "./utils";
|
|
119
|
+
export {
|
|
120
|
+
assertWritable,
|
|
121
|
+
assertAllWritable,
|
|
122
|
+
safeWrite,
|
|
123
|
+
atomicWrite,
|
|
124
|
+
simulateCrashAfterTempWrite,
|
|
125
|
+
findProjectRoot,
|
|
126
|
+
configureWriteBoundary,
|
|
127
|
+
resetWriteBoundary,
|
|
128
|
+
PathDeniedError,
|
|
129
|
+
} from "./paths";
|
|
130
|
+
export type { AssertWritableOptions } from "./paths";
|
|
131
|
+
export { ExitCode, exitCodeFor, finish, usageError, setOutputFormat, getOutputFormat, resolveFormat, renderText } from "./exit-codes";
|
|
132
|
+
export type { OutputFormat } from "./format";
|
|
133
|
+
export { wrap, wrapResult, addWarning, takeWarnings, setCommand, currentCommandName, API_VERSION } from "./envelope";
|
|
134
|
+
export type { Envelope, EnvelopeError, EnvelopeWarning } from "./envelope";
|
|
135
|
+
export type { ResultLike } from "./exit-codes";
|
|
136
|
+
export type { RecoveryMode } from "./hash-edit";
|
|
137
|
+
export { UnsupportedIntentError } from "./intent";
|
|
138
|
+
export { redactSecrets, redactEvent, isSensitiveFile } from "./redact";
|
|
139
|
+
export { normalizePath, pathsEqual } from "./path-normalize";
|
|
140
|
+
export { decodeText, encodeText, readDecoded } from "./encoding";
|
|
141
|
+
export type { FileEncoding } from "./encoding";
|
|
142
|
+
export { resolveContent } from "./resolve-content";
|
|
143
|
+
export {
|
|
144
|
+
configureOutput,
|
|
145
|
+
resetOutput,
|
|
146
|
+
resolveColor,
|
|
147
|
+
resolveVerbosity,
|
|
148
|
+
getVerbosity,
|
|
149
|
+
isQuiet,
|
|
150
|
+
isVerbose,
|
|
151
|
+
colorEnabled,
|
|
152
|
+
verboseLog,
|
|
153
|
+
colorizeGlyphs,
|
|
154
|
+
} from "./output";
|
|
155
|
+
export type { Verbosity, OutputOptions } from "./output";
|