@quantiya/codevibe-claude-plugin 2.0.44 → 2.0.45

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.
Files changed (25) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +124 -3
  3. package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +6 -0
  4. package/node_modules/@quantiya/codevibe-core/dist/index.js +578 -461
  5. package/node_modules/@quantiya/codevibe-core/dist/local-executor/class-b-consumer.d.ts +10 -1
  6. package/node_modules/@quantiya/codevibe-core/dist/local-executor/descendant-reaper.d.ts +81 -0
  7. package/node_modules/@quantiya/codevibe-core/dist/local-executor/local-executor-impl.d.ts +15 -1
  8. package/node_modules/@quantiya/codevibe-core/dist/local-executor/process-tree.d.ts +6 -0
  9. package/node_modules/@quantiya/codevibe-core/dist/local-executor/snapshot-merge.d.ts +10 -0
  10. package/node_modules/@quantiya/codevibe-core/dist/local-executor/spawn.d.ts +1 -1
  11. package/node_modules/@quantiya/codevibe-core/dist/local-executor/types.d.ts +16 -0
  12. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +2246 -809
  13. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/components/LiveProgressLine.d.ts +4 -0
  14. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/components/OrchestrationApp.d.ts +13 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/index.d.ts +77 -18
  16. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/prompt-reply-router.d.ts +53 -0
  17. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/quorum-loop.d.ts +138 -7
  18. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/task-lifecycle-lines.d.ts +29 -0
  19. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/task-progress.d.ts +1 -0
  20. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/types.d.ts +48 -1
  21. package/node_modules/@quantiya/codevibe-core/dist/substrate/command-runner.d.ts +2 -0
  22. package/node_modules/@quantiya/codevibe-core/dist/substrate/types.d.ts +5 -0
  23. package/node_modules/@quantiya/codevibe-core/dist/substrate-launch/engage-substrate.d.ts +2 -0
  24. package/node_modules/@quantiya/codevibe-core/package.json +1 -1
  25. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevibe-claude",
3
- "version": "2.0.44",
3
+ "version": "2.0.45",
4
4
  "description": "Sync Claude Code sessions with iOS mobile app via AWS backend. Control Claude Code from your phone with real-time bidirectional synchronization.",
5
5
  "author": {
6
6
  "name": "CodeVibe Team"
@@ -104,6 +104,80 @@ export interface TaskGroupStatusResult {
104
104
  status: string;
105
105
  haltReason?: string;
106
106
  }
107
+ /**
108
+ * P46b §3.3 — the `startTask` answer. `workflowState` is the resulting state
109
+ * label (`gate_plan_in_flight`, `queued`, …) or a replay outcome
110
+ * (`already_finished` / `cancelled`); the three counts are present when queued.
111
+ */
112
+ export interface StartTaskResult {
113
+ workflowState: string;
114
+ queuePosition?: number;
115
+ runningTracks?: number;
116
+ trackBudget?: number;
117
+ }
118
+ /** P46b §3.5 — `cancelQueuedWork`: `cancelled` | `not_queued` | `partly_running`. */
119
+ export interface CancelQueuedWorkResult {
120
+ outcome: 'cancelled' | 'not_queued' | 'partly_running';
121
+ /** The never-started halt reason when a single task was cancelled. */
122
+ reason?: string;
123
+ }
124
+ /** P46b §3.6 — `releaseSessionWork` (clean session end). */
125
+ export interface ReleaseSessionWorkResult {
126
+ haltedGroups: number;
127
+ endedTasks: number;
128
+ }
129
+ /** One live holder of the account's running-track budget (P46b §3.7). */
130
+ export interface TrackBudgetHolder {
131
+ kind: 'task' | 'track';
132
+ state: 'queued' | 'running';
133
+ /** False for another session's work, which carries no ids. */
134
+ sameSession: boolean;
135
+ taskId?: string;
136
+ taskGroupId?: string;
137
+ trackIndex?: number;
138
+ queuePosition?: number;
139
+ ordinal?: number;
140
+ }
141
+ /** One of this session's holders that ended in the last seven days. */
142
+ export interface TrackBudgetEndedHolder {
143
+ kind: 'task' | 'track';
144
+ taskId?: string;
145
+ taskGroupId?: string;
146
+ trackIndex?: number;
147
+ state: 'done' | 'cancelled';
148
+ endReason?: string;
149
+ /** Present only when ending the holder halted a task that never started. */
150
+ taskEnded?: string;
151
+ endedAt?: number;
152
+ }
153
+ /** P46b §3.7 — `getTrackBudgetStatus`. */
154
+ export interface TrackBudgetStatusResult {
155
+ running: number;
156
+ queued: number;
157
+ budget: number;
158
+ holders: TrackBudgetHolder[];
159
+ ended: TrackBudgetEndedHolder[];
160
+ }
161
+ /** P46b §3.9 — why an approved change could not be applied (counts only). */
162
+ export interface ApplyRetryCounts {
163
+ sessionTask: number;
164
+ external: number;
165
+ writeErrors: number;
166
+ }
167
+ /** P46b §3.9 — `openApplyRetryOffer`. */
168
+ export interface OpenApplyRetryOfferResult {
169
+ gateId: string;
170
+ taskId: string;
171
+ sessionId: string;
172
+ }
173
+ export type ApplyRetryChoice = 'RETRY_AS_NEW_TASK' | 'DISCARD';
174
+ /** P46b §3.9 — `resolveApplyRetryOffer`. */
175
+ export interface ResolveApplyRetryOfferResult {
176
+ sessionId: string;
177
+ taskId: string;
178
+ gateId: string;
179
+ choice: ApplyRetryChoice;
180
+ }
107
181
  export type GroupTerminalOperationKind = 'PROMOTE' | 'KEEP' | 'REVERT';
108
182
  export type GroupOperationState = 'PROVISIONAL' | 'AUTHORIZED' | 'PROMOTING' | 'REVERTING' | 'READY_TO_COMMIT' | 'COMMITTED' | 'OUTCOME_RECORDED' | 'CANCELLED';
109
183
  export type GroupOperationCallStatus = 'APPLIED' | 'ALREADY_APPLIED' | 'PENDING_RECOVERY' | 'CANCELLED' | 'REJECTED';
@@ -1075,9 +1149,9 @@ export declare class AppSyncClient {
1075
1149
  decision: PlannerDecision;
1076
1150
  availableAgents?: string[];
1077
1151
  implementorAgent?: string;
1078
- }): Promise<{
1079
- workflowState: string;
1080
- }>;
1152
+ /** P46b §3.6 — `1` = this desktop sends a task lease heartbeat every 2 minutes. */
1153
+ slotLeaseProtocol?: number;
1154
+ }): Promise<StartTaskResult>;
1081
1155
  /**
1082
1156
  * §3.A.3 / §3.C.20 / §3.C.23 — submit the E2E-encrypted implementor proposal
1083
1157
  * for the in-flight gate (round-0 startTask gate OR a round-N+1 revise gate).
@@ -1191,6 +1265,53 @@ export declare class AppSyncClient {
1191
1265
  * `taskGroupId` arg; returns the bare AWSJSON object).
1192
1266
  */
1193
1267
  getTaskGroupStatus(taskGroupId: string): Promise<TaskGroupStatusResult>;
1268
+ /**
1269
+ * P46b §3.5 — cancel a queued single task (`taskId`) or a team whose tracks
1270
+ * are all still waiting (`taskGroupId`). Exactly one id.
1271
+ */
1272
+ cancelQueuedWork(input: {
1273
+ taskId?: string;
1274
+ taskGroupId?: string;
1275
+ }): Promise<CancelQueuedWorkResult>;
1276
+ /**
1277
+ * P46b §3.6 — end this session's queued and running work before the session
1278
+ * goes INACTIVE: halts its teams, ends its task holders and admits waiting work.
1279
+ */
1280
+ releaseSessionWork(sessionId: string, options?: {
1281
+ signal?: AbortSignal;
1282
+ }): Promise<ReleaseSessionWorkResult>;
1283
+ /**
1284
+ * P46b §3.8 — record a task's (or team's) in-session number so engine
1285
+ * prompts can say `Task #n`. The first confirmed number wins.
1286
+ */
1287
+ setTaskOrdinal(input: {
1288
+ taskId?: string;
1289
+ taskGroupId?: string;
1290
+ ordinal: number;
1291
+ }): Promise<{
1292
+ ordinal: number;
1293
+ }>;
1294
+ /**
1295
+ * P46b §3.7 — the account's running-track budget view for `/status`.
1296
+ */
1297
+ getTrackBudgetStatus(sessionId: string): Promise<TrackBudgetStatusResult>;
1298
+ /**
1299
+ * P46b §3.9 / §3.10 — record that an approved change could not be applied
1300
+ * and raise the engine's `orchestration_apply_retry` prompt (counts only).
1301
+ */
1302
+ openApplyRetryOffer(input: {
1303
+ taskId?: string;
1304
+ taskGroupId?: string;
1305
+ counts: ApplyRetryCounts;
1306
+ }): Promise<OpenApplyRetryOfferResult>;
1307
+ /**
1308
+ * P46b §3.9 — record the answer to a retry prompt (the first answer wins) and
1309
+ * write its standard resolution record.
1310
+ */
1311
+ resolveApplyRetryOffer(input: {
1312
+ gateId: string;
1313
+ choice: ApplyRetryChoice;
1314
+ }): Promise<ResolveApplyRetryOfferResult>;
1194
1315
  /**
1195
1316
  * CP-6 LOCK #C6-A-10.4.10.2 — record an LE-written continuation
1196
1317
  * packet's authoritative hash on the backend audit table. Called
@@ -25,6 +25,7 @@ export declare const queries: {
25
25
  getTaskGroupTracks: string;
26
26
  getInFlightTeamTracks: string;
27
27
  getTaskGroupStatus: string;
28
+ getTrackBudgetStatus: string;
28
29
  getTaskReviewSummary: string;
29
30
  };
30
31
  export declare const mutations: {
@@ -58,6 +59,11 @@ export declare const mutations: {
58
59
  submitMergeGateVerdict: string;
59
60
  submitTrackVerificationOutcome: string;
60
61
  claimGroupDecision: string;
62
+ cancelQueuedWork: string;
63
+ releaseSessionWork: string;
64
+ setTaskOrdinal: string;
65
+ openApplyRetryOffer: string;
66
+ resolveApplyRetryOffer: string;
61
67
  startTask: string;
62
68
  submitImplementorOutput: string;
63
69
  submitReviewerVerdict: string;