@brainervirus/workit-core 1.3.1 → 1.3.2
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/package.json
CHANGED
package/src/core/branch.ts
CHANGED
|
@@ -711,7 +711,7 @@ export const branchSetup = ({
|
|
|
711
711
|
if (classifyBranchDirt(cwd) === "stash-required" && stash !== "yes") {
|
|
712
712
|
return {
|
|
713
713
|
error:
|
|
714
|
-
"dirty working tree —
|
|
714
|
+
"dirty working tree — obtain native host approval before stashing and setting up the branch",
|
|
715
715
|
phase: "preflight",
|
|
716
716
|
};
|
|
717
717
|
}
|
package/src/core/methods.ts
CHANGED
|
@@ -125,6 +125,11 @@ Preserve uncertain external outcomes and reconcile repository/provider state
|
|
|
125
125
|
before retrying. Internal reservations prevent duplicate or ambiguous effects;
|
|
126
126
|
they are not permission tickets for every edit.
|
|
127
127
|
|
|
128
|
+
On OpenCode V1 and V2, use native host tools for external mutations. Workit
|
|
129
|
+
provides read-only workit_context; it has no managed external-action executor.
|
|
130
|
+
Do not create proposals or request Workit approvals merely to invoke native
|
|
131
|
+
tools. Old uncertain managed effects still require evidence before any retry.
|
|
132
|
+
|
|
128
133
|
Use host-native authorization through the host's supported path. A native
|
|
129
134
|
question receipt records an actual question interaction; it is not automatic
|
|
130
135
|
host permission. Record a meaningful user choice once with provenance when
|
package/src/core/repo-context.ts
CHANGED
|
@@ -363,7 +363,7 @@ const CHANGELOG_RULES = `- Use an [Unreleased] section.
|
|
|
363
363
|
- Entries should be human-readable and user-facing.
|
|
364
364
|
- Do not use raw commit messages as changelog bullets.
|
|
365
365
|
- MERGE into existing ### Category under [Unreleased] — never append a second ### Added / ### Fixed block.
|
|
366
|
-
- Apply with the native
|
|
366
|
+
- Apply with the host-native editor, preserving the repository changelog conventions.
|
|
367
367
|
- If Unreleased already has duplicate category headings, normalize_only first.`;
|
|
368
368
|
|
|
369
369
|
/** Port of changelog-context.sh — changelog update context. */
|
|
@@ -103,7 +103,7 @@ type PostData = {
|
|
|
103
103
|
loggedMinutes: number;
|
|
104
104
|
outcome?: "unknown" | "not_applied";
|
|
105
105
|
instructions?: string;
|
|
106
|
-
retry?: "
|
|
106
|
+
retry?: "youtrack.update" | "youtrack.time";
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
const notApplied = (value: LegacyValue): value is NotApplied =>
|
|
@@ -130,7 +130,7 @@ export async function postUpdate(
|
|
|
130
130
|
postedComment: false,
|
|
131
131
|
loggedMinutes: 0,
|
|
132
132
|
outcome: "not_applied",
|
|
133
|
-
retry: "
|
|
133
|
+
retry: "youtrack.update",
|
|
134
134
|
});
|
|
135
135
|
unwrap(comment);
|
|
136
136
|
} catch (error) {
|
|
@@ -158,7 +158,7 @@ export async function postUpdate(
|
|
|
158
158
|
postedComment: true,
|
|
159
159
|
loggedMinutes: 0,
|
|
160
160
|
outcome: "not_applied",
|
|
161
|
-
retry: "
|
|
161
|
+
retry: "youtrack.time",
|
|
162
162
|
});
|
|
163
163
|
unwrap(time);
|
|
164
164
|
} catch (error) {
|
|
@@ -191,7 +191,7 @@ export async function logTimeUpdate(
|
|
|
191
191
|
issueId: input.issueId,
|
|
192
192
|
loggedMinutes: 0,
|
|
193
193
|
outcome: "not_applied",
|
|
194
|
-
retry: "
|
|
194
|
+
retry: "youtrack.time",
|
|
195
195
|
});
|
|
196
196
|
return ok(unwrap(value));
|
|
197
197
|
} catch (error) {
|
package/src/core/youtrack.ts
CHANGED
|
@@ -846,7 +846,7 @@ export async function postUpdate(
|
|
|
846
846
|
postedComment: true,
|
|
847
847
|
loggedMinutes: 0,
|
|
848
848
|
error: time.error,
|
|
849
|
-
retry: "
|
|
849
|
+
retry: "youtrack.time",
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
return { ok: true, issueId, postedComment: true, loggedMinutes: minutes };
|