@autopilot-harness/cli 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/assets/autopilot-harness-hook.mjs +292 -39
- package/assets/vendor/runtime.mjs +397 -15
- package/dist/assets/autopilot-harness-hook.mjs +292 -39
- package/dist/assets/vendor/runtime.mjs +397 -15
- package/dist/bin.js +6 -3
- package/dist/bin.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/init/claude-settings-merge.d.ts +56 -0
- package/dist/init/claude-settings-merge.d.ts.map +1 -0
- package/dist/init/claude-settings-merge.js +347 -0
- package/dist/init/claude-settings-merge.js.map +1 -0
- package/dist/init/hooks-merge.d.ts +12 -0
- package/dist/init/hooks-merge.d.ts.map +1 -1
- package/dist/init/hooks-merge.js +55 -1
- package/dist/init/hooks-merge.js.map +1 -1
- package/dist/init/install.d.ts +4 -1
- package/dist/init/install.d.ts.map +1 -1
- package/dist/init/install.js +258 -83
- package/dist/init/install.js.map +1 -1
- package/dist/init/platforms.d.ts +5 -0
- package/dist/init/platforms.d.ts.map +1 -1
- package/dist/init/platforms.js +17 -0
- package/dist/init/platforms.js.map +1 -1
- package/dist/init/types.d.ts +1 -1
- package/dist/init/types.js +1 -1
- package/dist/init/wizard-helpers.d.ts.map +1 -1
- package/dist/init/wizard-helpers.js +21 -10
- package/dist/init/wizard-helpers.js.map +1 -1
- package/dist/status-doctor.d.ts.map +1 -1
- package/dist/status-doctor.js +132 -56
- package/dist/status-doctor.js.map +1 -1
- package/dist/uninstall.d.ts.map +1 -1
- package/dist/uninstall.js +163 -5
- package/dist/uninstall.js.map +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +100 -2
- package/dist/upgrade.js.map +1 -1
- package/dist/vendor-entry.d.ts +4 -1
- package/dist/vendor-entry.d.ts.map +1 -1
- package/dist/vendor-entry.js +6 -2
- package/dist/vendor-entry.js.map +1 -1
- package/package.json +5 -4
package/dist/vendor-entry.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ReviewEngine, StateStore, getLatestSchemaVersion, loadProjectReviewConfig } from "@autopilot-harness/core";
|
|
2
2
|
export { StateStore, ReviewEngine, getLatestSchemaVersion, loadProjectReviewConfig, };
|
|
3
|
-
export { handleBeforeSubmitPrompt, handleAfterFileEdit, handleStop, } from "@autopilot-harness/port-cursor";
|
|
3
|
+
export { handleBeforeSubmitPrompt, handleAfterFileEdit, handleStop as handleCursorStop, } from "@autopilot-harness/port-cursor";
|
|
4
|
+
export { handleUserPromptSubmit, handlePostToolUse, handleStop as handleClaudeStop, handleStopFailure, } from "@autopilot-harness/port-claude-code";
|
|
5
|
+
/** @deprecated Prefer handleCursorStop — kept for older hook.mjs copies. */
|
|
6
|
+
export { handleStop } from "@autopilot-harness/port-cursor";
|
|
4
7
|
/** Build a ReviewEngine wired to project config.yml + locale followups/lenses. */
|
|
5
8
|
export declare function createConfiguredReviewEngine(store: InstanceType<typeof StateStore>, projectRoot: string): InstanceType<typeof ReviewEngine>;
|
|
6
9
|
//# sourceMappingURL=vendor-entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendor-entry.d.ts","sourceRoot":"","sources":["../src/vendor-entry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vendor-entry.d.ts","sourceRoot":"","sources":["../src/vendor-entry.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EACZ,UAAU,EAEV,sBAAsB,EACtB,uBAAuB,EAExB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,uBAAuB,GACxB,CAAC;AAEF,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,UAAU,IAAI,gBAAgB,GAC/B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,IAAI,gBAAgB,EAC9B,iBAAiB,GAClB,MAAM,qCAAqC,CAAC;AAE7C,4EAA4E;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,kFAAkF;AAClF,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,YAAY,CAAC,OAAO,UAAU,CAAC,EACtC,WAAW,EAAE,MAAM,GAClB,YAAY,CAAC,OAAO,YAAY,CAAC,CAKnC"}
|
package/dist/vendor-entry.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Single ESM entry bundled into assets/vendor/runtime.mjs for project hooks.
|
|
3
|
-
* Consumers get core + port-cursor + i18n without
|
|
3
|
+
* Consumers get core + port-cursor + port-claude-code + i18n without
|
|
4
|
+
* installing workspace packages.
|
|
4
5
|
*/
|
|
5
6
|
import { loadLocale } from "@autopilot-harness/i18n";
|
|
6
7
|
import { ReviewEngine, StateStore, createConfiguredReviewEngine as createConfiguredReviewEngineCore, getLatestSchemaVersion, loadProjectReviewConfig, } from "@autopilot-harness/core";
|
|
7
8
|
export { StateStore, ReviewEngine, getLatestSchemaVersion, loadProjectReviewConfig, };
|
|
8
|
-
export { handleBeforeSubmitPrompt, handleAfterFileEdit, handleStop, } from "@autopilot-harness/port-cursor";
|
|
9
|
+
export { handleBeforeSubmitPrompt, handleAfterFileEdit, handleStop as handleCursorStop, } from "@autopilot-harness/port-cursor";
|
|
10
|
+
export { handleUserPromptSubmit, handlePostToolUse, handleStop as handleClaudeStop, handleStopFailure, } from "@autopilot-harness/port-claude-code";
|
|
11
|
+
/** @deprecated Prefer handleCursorStop — kept for older hook.mjs copies. */
|
|
12
|
+
export { handleStop } from "@autopilot-harness/port-cursor";
|
|
9
13
|
/** Build a ReviewEngine wired to project config.yml + locale followups/lenses. */
|
|
10
14
|
export function createConfiguredReviewEngine(store, projectRoot) {
|
|
11
15
|
// Đọc config một lần rồi truyền xuống core — tránh TOCTOU locale vs rounds.
|
package/dist/vendor-entry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendor-entry.js","sourceRoot":"","sources":["../src/vendor-entry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"vendor-entry.js","sourceRoot":"","sources":["../src/vendor-entry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,UAAU,EACV,4BAA4B,IAAI,gCAAgC,EAChE,sBAAsB,EACtB,uBAAuB,GAExB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,uBAAuB,GACxB,CAAC;AAEF,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,UAAU,IAAI,gBAAgB,GAC/B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,IAAI,gBAAgB,EAC9B,iBAAiB,GAClB,MAAM,qCAAqC,CAAC;AAE7C,4EAA4E;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,kFAAkF;AAClF,MAAM,UAAU,4BAA4B,CAC1C,KAAsC,EACtC,WAAmB;IAEnB,4EAA4E;IAC5E,MAAM,GAAG,GAAG,uBAAuB,CAAC,WAAW,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAyB,CAAC;IAC9D,OAAO,gCAAgC,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;AAC3E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autopilot-harness/cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Autopilot harness CLI (bin: autopilot-harness)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,9 +32,10 @@
|
|
|
32
32
|
"@clack/prompts": "^0.10.0",
|
|
33
33
|
"commander": "^13.1.0",
|
|
34
34
|
"yaml": "^2.7.0",
|
|
35
|
-
"@autopilot-harness/core": "0.1
|
|
36
|
-
"@autopilot-harness/
|
|
37
|
-
"@autopilot-harness/port-
|
|
35
|
+
"@autopilot-harness/core": "0.2.1",
|
|
36
|
+
"@autopilot-harness/port-cursor": "0.2.1",
|
|
37
|
+
"@autopilot-harness/port-claude-code": "0.2.1",
|
|
38
|
+
"@autopilot-harness/i18n": "0.2.1"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"esbuild": "^0.25.12",
|