@popoverai/dotrequirements 0.38.4 → 0.39.0
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.
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
* images and demo scripts `next` saves in the checkout (SIGHT-9.3, 13.1).
|
|
13
13
|
*/
|
|
14
14
|
export type Brief = {
|
|
15
|
-
|
|
15
|
+
/** `request`: what the solution's agent asked it, which it answers (CONVO-11). */
|
|
16
|
+
kind: "step" | "review" | "request";
|
|
16
17
|
/** The outcome the agent took; `label` is its name too. */
|
|
17
18
|
step: {
|
|
18
19
|
label: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type WhereOptions } from "./run-file.js";
|
|
2
|
+
/**
|
|
3
|
+
* `dotreq solution change --comment "<what changed and why>"`: a made
|
|
4
|
+
* outcome's drafter, asked by the solution's agent to change it, records
|
|
5
|
+
* the change in place (VERB-8). Its commits are pushed first, as before any
|
|
6
|
+
* record (VERB-8.1, SOLBRANCH-3); the outcome stays made, and its history
|
|
7
|
+
* says what changed and why, at the solution's agent's request.
|
|
8
|
+
*/
|
|
9
|
+
export declare function changeCommand(options: WhereOptions & {
|
|
10
|
+
comment?: string;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=change.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { api } from "../../convex.js";
|
|
2
|
+
import { solutionClient } from "./client.js";
|
|
3
|
+
import { pushBeforeRecord } from "./pushing.js";
|
|
4
|
+
import { requireWhere } from "./run-file.js";
|
|
5
|
+
/**
|
|
6
|
+
* `dotreq solution change --comment "<what changed and why>"`: a made
|
|
7
|
+
* outcome's drafter, asked by the solution's agent to change it, records
|
|
8
|
+
* the change in place (VERB-8). Its commits are pushed first, as before any
|
|
9
|
+
* record (VERB-8.1, SOLBRANCH-3); the outcome stays made, and its history
|
|
10
|
+
* says what changed and why, at the solution's agent's request.
|
|
11
|
+
*/
|
|
12
|
+
export async function changeCommand(options) {
|
|
13
|
+
const comment = options.comment?.trim();
|
|
14
|
+
// VERB-8.3: what it says is all the history shows of the change.
|
|
15
|
+
if (!comment) {
|
|
16
|
+
throw new Error("Say what changed and why with --comment: what you say is what the outcome's history shows of the change.");
|
|
17
|
+
}
|
|
18
|
+
const where = requireWhere(options);
|
|
19
|
+
const client = solutionClient();
|
|
20
|
+
await pushBeforeRecord(client, where);
|
|
21
|
+
const { done } = await client.mutation(api.solutions.mutations.changeInPlace, {
|
|
22
|
+
solutionId: where.solutionId,
|
|
23
|
+
agent: where.agent,
|
|
24
|
+
...(where.outcome ? { outcome: where.outcome } : {}),
|
|
25
|
+
comment,
|
|
26
|
+
});
|
|
27
|
+
console.log(done);
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=change.js.map
|
|
@@ -2,6 +2,7 @@ import { Option } from "commander";
|
|
|
2
2
|
import { approvalCompleteCommand } from "./approval.js";
|
|
3
3
|
import { askCommand } from "./ask.js";
|
|
4
4
|
import { authorCommand } from "./author.js";
|
|
5
|
+
import { changeCommand } from "./change.js";
|
|
5
6
|
import { checkoutCommand, pushCommand } from "./checkout.js";
|
|
6
7
|
import { REQUEST_CONTRACT } from "./contract.js";
|
|
7
8
|
import { createCommand } from "./create.js";
|
|
@@ -269,6 +270,11 @@ export function registerSolution(program) {
|
|
|
269
270
|
whereOptions(solution
|
|
270
271
|
.command("things <name>", HIDDEN)
|
|
271
272
|
.description("What an outcome or an input holds now, or the outcomes a checkpoint presents: one reference a line")).action(wrap(thingsCommand));
|
|
273
|
+
whereOptions(solution
|
|
274
|
+
.command("change", HIDDEN)
|
|
275
|
+
.description("Record a change you made in place to a made outcome, as the solution's agent asked: what changed and why. The outcome stays made"))
|
|
276
|
+
.option("--comment <text>", "What changed and why: what the outcome's history shows of the change (required)")
|
|
277
|
+
.action(wrap(changeCommand));
|
|
272
278
|
whereOptions(solution
|
|
273
279
|
.command("stall <reason>", HIDDEN)
|
|
274
280
|
.description("Your work cannot go on, and no decision would fix that: what has to change before it can be started again"))
|
package/dist/convex.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export declare const api: {
|
|
|
101
101
|
ask: import("convex/server").FunctionReference<"mutation", "public", any, any, string | undefined>;
|
|
102
102
|
completeApproval: import("convex/server").FunctionReference<"mutation", "public", any, any, string | undefined>;
|
|
103
103
|
stall: import("convex/server").FunctionReference<"mutation", "public", any, any, string | undefined>;
|
|
104
|
+
changeInPlace: import("convex/server").FunctionReference<"mutation", "public", any, any, string | undefined>;
|
|
104
105
|
answer: import("convex/server").FunctionReference<"mutation", "public", any, any, string | undefined>;
|
|
105
106
|
approveCheckpoint: import("convex/server").FunctionReference<"mutation", "public", any, any, string | undefined>;
|
|
106
107
|
removeRehearsal: import("convex/server").FunctionReference<"mutation", "public", any, any, string | undefined>;
|
package/dist/convex.js
CHANGED
|
@@ -115,6 +115,8 @@ export const api = {
|
|
|
115
115
|
// DECIDE-4: the action on the option the owner chose, taken once.
|
|
116
116
|
completeApproval: mutation("solutions/mutations:completeApproval"),
|
|
117
117
|
stall: mutation("solutions/mutations:stall"),
|
|
118
|
+
// VERB-8: a made outcome's drafter's change in place.
|
|
119
|
+
changeInPlace: mutation("solutions/mutations:changeInPlace"),
|
|
118
120
|
answer: mutation("solutions/mutations:answer"),
|
|
119
121
|
// A rehearsal's scripted approval of a checkpoint (CHECKPOINT-1.1).
|
|
120
122
|
approveCheckpoint: mutation("solutions/mutations:approveCheckpoint"),
|
package/package.json
CHANGED