@yadsh/dsh-git-readonly 0.2.2 → 0.2.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/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/tools/shared.d.ts +1 -1
- package/lib/tools/shared.d.ts.map +1 -1
- package/package.json +3 -2
- package/lib/logging.d.ts +0 -16
- package/lib/logging.d.ts.map +0 -1
- package/lib/logging.js +0 -17
- package/lib/logging.js.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* this plugin, hardened against repo-controlled config and ambient
|
|
9
9
|
* environment, byte-capped and time-boxed (SPEC §1, §6).
|
|
10
10
|
*/
|
|
11
|
+
import { silentPluginLogger, type PluginLoggerLike } from "@yadsh/dsh-plugin-log";
|
|
11
12
|
import { type GitReadonlyConfig } from "./config.js";
|
|
12
13
|
export { GIT_READONLY_DEFAULTS, GitReadonlyConfigSchema, resolveGitReadonlyConfig, type GitReadonlyConfig, type ResolvedGitReadonlyConfig, } from "./config.js";
|
|
13
14
|
export { GitToolError, type GitToolErrorCode } from "./errors.js";
|
|
@@ -16,7 +17,7 @@ export { parseDecorations, parseFormatRecord, parseNumstat, parsePorcelainBlame,
|
|
|
16
17
|
export { runGit, GIT_HARDENING_PREFIX, type GitRunOptions, type GitRunResult, } from "./git/runner.js";
|
|
17
18
|
export { canonicalizeCommit, requireSessionCwd, resolveRepositoryRoot, resolveToolRepository, type ToolExec, } from "./git/repo.js";
|
|
18
19
|
export { clampLineRange, escapeRegExpLiteral, validateCommitOid, validateRepoRelativePath, validateSearchLiteral, } from "./git/validate.js";
|
|
19
|
-
export { silentPluginLogger, type PluginLoggerLike }
|
|
20
|
+
export { silentPluginLogger, type PluginLoggerLike };
|
|
20
21
|
export { createGitBlameTool, type GitBlameResult } from "./tools/blame.js";
|
|
21
22
|
export { createGitContextTool, type GitContextResult, } from "./tools/context.js";
|
|
22
23
|
export { createGitHistoryTool, type GitHistoryResult, } from "./tools/history.js";
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAEL,kBAAkB,EAClB,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AAOrB,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,KAAK,SAAS,EACd,KAAK,WAAW,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,oBAAoB,EACpB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,KAAK,QAAQ,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EACL,oBAAoB,EACpB,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACxE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,0BAA0B;AAC1B,eAAO,MAAM,IAAI,qBAAqB,CAAC;AAEvC,2DAA2D;AAC3D,eAAO,MAAM,MAAM,YAAI,OAAO,CAAU,CAAC;AAEzC,2EAA2E;AAC3E,eAAO,MAAM,MAAM,+DAA0B,CAAC;AAE9C,4DAA4D;AAC5D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE;QAAE,QAAQ,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,IAAI,CAAA;KAAE,CAAC;CACtD;AAED,+EAA+E;AAC/E,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAK3C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,YAAY,EAAE,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAa5E"}
|
package/lib/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* this plugin, hardened against repo-controlled config and ambient
|
|
9
9
|
* environment, byte-capped and time-boxed (SPEC §1, §6).
|
|
10
10
|
*/
|
|
11
|
-
import { getPluginLogger } from "@yadsh/dsh-plugin-log";
|
|
11
|
+
import { getPluginLogger, silentPluginLogger, } from "@yadsh/dsh-plugin-log";
|
|
12
12
|
import { GitReadonlyConfigSchema, resolveGitReadonlyConfig, } from "./config.js";
|
|
13
13
|
import { createGitBlameTool } from "./tools/blame.js";
|
|
14
14
|
import { createGitContextTool } from "./tools/context.js";
|
|
@@ -21,7 +21,7 @@ export { parseDecorations, parseFormatRecord, parseNumstat, parsePorcelainBlame,
|
|
|
21
21
|
export { runGit, GIT_HARDENING_PREFIX, } from "./git/runner.js";
|
|
22
22
|
export { canonicalizeCommit, requireSessionCwd, resolveRepositoryRoot, resolveToolRepository, } from "./git/repo.js";
|
|
23
23
|
export { clampLineRange, escapeRegExpLiteral, validateCommitOid, validateRepoRelativePath, validateSearchLiteral, } from "./git/validate.js";
|
|
24
|
-
export { silentPluginLogger }
|
|
24
|
+
export { silentPluginLogger };
|
|
25
25
|
export { createGitBlameTool } from "./tools/blame.js";
|
|
26
26
|
export { createGitContextTool, } from "./tools/context.js";
|
|
27
27
|
export { createGitHistoryTool, } from "./tools/history.js";
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,eAAe,EACf,kBAAkB,GAEnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GAEzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,GAGzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAyB,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,EAC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QAC/B,OAAO;IACT,CAAC;IACD,MAAM,IAAI,GAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC7C,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5C,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;AAChE,CAAC;AAED,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC"}
|
package/lib/tools/shared.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ResolvedGitReadonlyConfig } from "../config.js";
|
|
7
7
|
import type { GitRunner } from "../git/repo.js";
|
|
8
8
|
import { runGit } from "../git/runner.js";
|
|
9
|
-
import type { PluginLoggerLike } from "
|
|
9
|
+
import type { PluginLoggerLike } from "@yadsh/dsh-plugin-log";
|
|
10
10
|
export interface GitToolDeps {
|
|
11
11
|
readonly config: ResolvedGitReadonlyConfig;
|
|
12
12
|
readonly logger: PluginLoggerLike;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/tools/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/tools/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,sEAAsE;IACtE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAChD;AAED,qFAAqF;AACrF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB;IAMjE,IAAI,EAAE,QAAQ;IACd,WAAW;EAOd;AAED,4DAA4D;AAC5D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,CAe9D;AAQD;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,EAC1C,OAAO,EAAE,MAAM,GACd,IAAI,CAcN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yadsh/dsh-git-readonly",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Read-only git provenance tools for DeepSeek Harness agents",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@yadsh/dsh-plugin-log": "^0.
|
|
38
|
+
"@yadsh/dsh-plugin-log": "^0.4.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@deepseek-ai/dsh-tools": ">=0.1.5-rc.2 <0.2.0",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"typescript": "^7.0.2",
|
|
50
50
|
"vitest": "^4.1.11",
|
|
51
51
|
"@yadsh/dsh-config": "^0.0.0",
|
|
52
|
+
"@yadsh/dsh-plugin-scripts": "^0.0.0",
|
|
52
53
|
"@yadsh/dsh-test-kit": "^0.1.0"
|
|
53
54
|
},
|
|
54
55
|
"publishConfig": {
|
package/lib/logging.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Structural logging contract consumed inside the plugin.
|
|
3
|
-
*
|
|
4
|
-
* The entrypoint binds the shared `@yadsh/dsh-plugin-log` logger to this
|
|
5
|
-
* surface; tool factories and tests inject a stub. Log records carry tool
|
|
6
|
-
* names, exit codes, durations and truncation flags only — never git output
|
|
7
|
-
* content, commit messages or repository paths beyond the resolved root.
|
|
8
|
-
*/
|
|
9
|
-
export interface PluginLoggerLike {
|
|
10
|
-
debug(event: string, fields?: Record<string, unknown>): void;
|
|
11
|
-
info(event: string, fields?: Record<string, unknown>): void;
|
|
12
|
-
warn(event: string, fields?: Record<string, unknown>): void;
|
|
13
|
-
error(event: string, fields?: Record<string, unknown>): void;
|
|
14
|
-
}
|
|
15
|
-
export declare function silentPluginLogger(): PluginLoggerLike;
|
|
16
|
-
//# sourceMappingURL=logging.d.ts.map
|
package/lib/logging.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../src/logging.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC5D,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC5D,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC9D;AAED,wBAAgB,kBAAkB,IAAI,gBAAgB,CAOrD"}
|
package/lib/logging.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Structural logging contract consumed inside the plugin.
|
|
3
|
-
*
|
|
4
|
-
* The entrypoint binds the shared `@yadsh/dsh-plugin-log` logger to this
|
|
5
|
-
* surface; tool factories and tests inject a stub. Log records carry tool
|
|
6
|
-
* names, exit codes, durations and truncation flags only — never git output
|
|
7
|
-
* content, commit messages or repository paths beyond the resolved root.
|
|
8
|
-
*/
|
|
9
|
-
export function silentPluginLogger() {
|
|
10
|
-
return {
|
|
11
|
-
debug() { },
|
|
12
|
-
info() { },
|
|
13
|
-
warn() { },
|
|
14
|
-
error() { },
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=logging.js.map
|
package/lib/logging.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../src/logging.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,KAAK,KAAI,CAAC;QACV,IAAI,KAAI,CAAC;QACT,IAAI,KAAI,CAAC;QACT,KAAK,KAAI,CAAC;KACX,CAAC;AACJ,CAAC"}
|