clawspec 1.0.12 → 1.0.13
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
|
@@ -961,6 +961,7 @@ export class ClawSpecService {
|
|
|
961
961
|
const planningProject = await this.findPlanningProjectBySessionKey(ctx.sessionKey)
|
|
962
962
|
?? await this.findPlanningProjectByContext(ctx);
|
|
963
963
|
if (planningProject) {
|
|
964
|
+
this.logger.info(`[clawspec] agent_end: found planning project ${planningProject.changeName}, calling finalizePlanningTurn`);
|
|
964
965
|
await this.finalizePlanningTurn(planningProject, event);
|
|
965
966
|
return;
|
|
966
967
|
}
|
|
@@ -2408,7 +2409,9 @@ export class ClawSpecService {
|
|
|
2408
2409
|
}
|
|
2409
2410
|
|
|
2410
2411
|
private async finalizePlanningTurn(project: ProjectState, event: AgentEndEvent): Promise<void> {
|
|
2412
|
+
this.logger.info(`[clawspec] finalizePlanningTurn called for ${project.changeName}, success=${event.success}`);
|
|
2411
2413
|
if (!project.repoPath || !project.changeName) {
|
|
2414
|
+
this.logger.warn(`[clawspec] finalizePlanningTurn skipped: missing repoPath or changeName`);
|
|
2412
2415
|
return;
|
|
2413
2416
|
}
|
|
2414
2417
|
|
|
@@ -2469,6 +2472,7 @@ export class ClawSpecService {
|
|
|
2469
2472
|
|
|
2470
2473
|
const snapshot = await journalStore.writeSnapshot(repoStatePaths.planningJournalSnapshotFile, project.changeName, timestamp);
|
|
2471
2474
|
this.logger.info(`[clawspec] Planning snapshot written for ${project.changeName}: entryCount=${snapshot.entryCount}, lastEntryAt=${snapshot.lastEntryAt}`);
|
|
2475
|
+
this.logger.info(`[clawspec] Updating project state: status=${status}, phase=${phase}, dirty=${journalDirty}`);
|
|
2472
2476
|
await this.writeLatestSummary(repoStatePaths, latestSummary);
|
|
2473
2477
|
|
|
2474
2478
|
const finalized = await this.stateStore.updateProject(project.channelKey, (current) => ({
|