@skrr-ai/cli 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/code/install.js +3 -4
- package/dist/commands/followups/remind.js +4 -0
- package/dist/commands/harnesses/install.d.ts +18 -0
- package/dist/commands/harnesses/install.js +128 -19
- package/dist/commands/skills/import-as-actions.js +6 -15
- package/dist/commands/tasks/complete.js +13 -0
- package/dist/commands/tasks/result/submit.js +10 -5
- package/dist/lib/cli-installers.d.ts +40 -0
- package/dist/lib/cli-installers.js +51 -1
- package/dist/lib/followups.d.ts +2 -0
- package/dist/lib/local-skills.d.ts +27 -0
- package/dist/lib/local-skills.js +38 -0
- package/dist/lib/task-closure.d.ts +13 -0
- package/dist/lib/task-closure.js +17 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +1780 -1769
- package/oclif.manifest.json +32199 -32192
- package/package.json +1 -1
package/dist/lib/task-closure.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.closureSnapshotLines = exports.describeAssessor = void 0;
|
|
4
4
|
exports.closureReport = closureReport;
|
|
5
|
+
exports.reopenRequiredLines = reopenRequiredLines;
|
|
5
6
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
6
7
|
function isUnavailable(closure) {
|
|
7
8
|
return Boolean(closure && closure.unavailable);
|
|
@@ -82,6 +83,22 @@ function closureReport(closure) {
|
|
|
82
83
|
: 'Closing anyway is allowed — all of this is recorded on resolution.closure.');
|
|
83
84
|
return lines;
|
|
84
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* The ways forward when a closed Task refuses a Result (`TASK_REOPEN_REQUIRED`).
|
|
88
|
+
*
|
|
89
|
+
* Both writers reach this refusal, `tasks result submit` and `tasks complete`,
|
|
90
|
+
* so both print from here. The first version sat in `result submit` alone and
|
|
91
|
+
* offered `tasks complete` as a way around it, which the same refusal stops:
|
|
92
|
+
* every step named here has to work on a closed Task (OSK-10031).
|
|
93
|
+
*/
|
|
94
|
+
function reopenRequiredLines({ bin, task, command, }) {
|
|
95
|
+
return [
|
|
96
|
+
`→ Reopen it: ${bin} tasks move ${task} --status in_progress`,
|
|
97
|
+
command === 'complete'
|
|
98
|
+
? '→ Then run this command again.'
|
|
99
|
+
: `→ Then submit again, or submit and close in one step: ${bin} tasks complete ${task} --summary "…"`,
|
|
100
|
+
];
|
|
101
|
+
}
|
|
85
102
|
/** `met (agent)` vs `met (person)` — shared with the web through data-provider. */
|
|
86
103
|
var data_provider_2 = require("@skrr-ai/data-provider");
|
|
87
104
|
Object.defineProperty(exports, "describeAssessor", { enumerable: true, get: function () { return data_provider_2.describeAssessorKind; } });
|