prizmkit 1.0.87 → 1.0.88
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/bundled/VERSION.json +3 -3
- package/bundled/dev-pipeline/retry-bug.sh +3 -14
- package/bundled/dev-pipeline/retry-feature.sh +3 -14
- package/bundled/dev-pipeline/run-bugfix.sh +3 -12
- package/bundled/dev-pipeline/run.sh +3 -12
- package/bundled/skills/_metadata.json +1 -1
- package/package.json +1 -1
package/bundled/VERSION.json
CHANGED
|
@@ -339,20 +339,9 @@ elif [[ $EXIT_CODE -ne 0 ]]; then
|
|
|
339
339
|
SESSION_STATUS="crashed"
|
|
340
340
|
else
|
|
341
341
|
# Exit code 0 — check if the session produced commits
|
|
342
|
-
SESSION_START_ISO=$(python3 -c "
|
|
343
|
-
import os, sys
|
|
344
|
-
from datetime import datetime, timezone
|
|
345
|
-
p = sys.argv[1]
|
|
346
|
-
if os.path.isdir(p):
|
|
347
|
-
ts = os.path.getctime(p)
|
|
348
|
-
print(datetime.fromtimestamp(ts, tz=timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ'))
|
|
349
|
-
else:
|
|
350
|
-
print('')
|
|
351
|
-
" "$SESSION_DIR" 2>/dev/null) || SESSION_START_ISO=""
|
|
352
|
-
|
|
353
342
|
HAS_COMMITS=""
|
|
354
|
-
if
|
|
355
|
-
HAS_COMMITS=$(git -C "$PROJECT_ROOT" log
|
|
343
|
+
if git -C "$PROJECT_ROOT" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
344
|
+
HAS_COMMITS=$(git -C "$PROJECT_ROOT" log main..HEAD --oneline 2>/dev/null | head -1)
|
|
356
345
|
fi
|
|
357
346
|
|
|
358
347
|
if [[ -n "$HAS_COMMITS" ]]; then
|
|
@@ -376,7 +365,7 @@ if [[ "$SESSION_STATUS" == "success" ]]; then
|
|
|
376
365
|
if [[ -n "$DIRTY_FILES" ]]; then
|
|
377
366
|
log_info "Auto-committing remaining session artifacts..."
|
|
378
367
|
git -C "$PROJECT_ROOT" add -A 2>/dev/null || true
|
|
379
|
-
git -C "$PROJECT_ROOT" commit -m "chore($BUG_ID): include remaining session artifacts" 2>/dev/null || true
|
|
368
|
+
git -C "$PROJECT_ROOT" commit --no-verify -m "chore($BUG_ID): include remaining session artifacts" 2>/dev/null || true
|
|
380
369
|
fi
|
|
381
370
|
|
|
382
371
|
DIRTY_FILES=$(git -C "$PROJECT_ROOT" status --porcelain 2>/dev/null || true)
|
|
@@ -351,20 +351,9 @@ elif [[ $EXIT_CODE -ne 0 ]]; then
|
|
|
351
351
|
SESSION_STATUS="crashed"
|
|
352
352
|
else
|
|
353
353
|
# Exit code 0 — check if the session produced commits
|
|
354
|
-
SESSION_START_ISO=$(python3 -c "
|
|
355
|
-
import os, sys
|
|
356
|
-
from datetime import datetime, timezone
|
|
357
|
-
p = sys.argv[1]
|
|
358
|
-
if os.path.isdir(p):
|
|
359
|
-
ts = os.path.getctime(p)
|
|
360
|
-
print(datetime.fromtimestamp(ts, tz=timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ'))
|
|
361
|
-
else:
|
|
362
|
-
print('')
|
|
363
|
-
" "$SESSION_DIR" 2>/dev/null) || SESSION_START_ISO=""
|
|
364
|
-
|
|
365
354
|
HAS_COMMITS=""
|
|
366
|
-
if
|
|
367
|
-
HAS_COMMITS=$(git -C "$PROJECT_ROOT" log
|
|
355
|
+
if git -C "$PROJECT_ROOT" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
356
|
+
HAS_COMMITS=$(git -C "$PROJECT_ROOT" log main..HEAD --oneline 2>/dev/null | head -1)
|
|
368
357
|
fi
|
|
369
358
|
|
|
370
359
|
if [[ -n "$HAS_COMMITS" ]]; then
|
|
@@ -388,7 +377,7 @@ if [[ "$SESSION_STATUS" == "success" ]]; then
|
|
|
388
377
|
if [[ -n "$DIRTY_FILES" ]]; then
|
|
389
378
|
log_info "Auto-committing remaining session artifacts..."
|
|
390
379
|
git -C "$PROJECT_ROOT" add -A 2>/dev/null || true
|
|
391
|
-
git -C "$PROJECT_ROOT" commit -m "chore($FEATURE_ID): include remaining session artifacts" 2>/dev/null || true
|
|
380
|
+
git -C "$PROJECT_ROOT" commit --no-verify -m "chore($FEATURE_ID): include remaining session artifacts" 2>/dev/null || true
|
|
392
381
|
fi
|
|
393
382
|
|
|
394
383
|
DIRTY_FILES=$(git -C "$PROJECT_ROOT" status --porcelain 2>/dev/null || true)
|
|
@@ -177,18 +177,9 @@ spawn_and_wait_session() {
|
|
|
177
177
|
session_status="crashed"
|
|
178
178
|
else
|
|
179
179
|
# Exit code 0 — check if the session actually produced commits
|
|
180
|
-
local session_start_iso=""
|
|
181
|
-
session_start_iso=$(python3 -c "
|
|
182
|
-
import json, sys, os
|
|
183
|
-
p = os.path.join(sys.argv[1], 'current-session.json')
|
|
184
|
-
if os.path.isfile(p):
|
|
185
|
-
with open(p) as f: print(json.load(f).get('started_at', ''))
|
|
186
|
-
else: print('')
|
|
187
|
-
" "$STATE_DIR" 2>/dev/null) || session_start_iso=""
|
|
188
|
-
|
|
189
180
|
local has_commits=""
|
|
190
|
-
if
|
|
191
|
-
has_commits=$(git -C "$project_root" log
|
|
181
|
+
if git -C "$project_root" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
182
|
+
has_commits=$(git -C "$project_root" log main..HEAD --oneline 2>/dev/null | head -1)
|
|
192
183
|
fi
|
|
193
184
|
|
|
194
185
|
if [[ -n "$has_commits" ]]; then
|
|
@@ -214,7 +205,7 @@ else: print('')
|
|
|
214
205
|
if [[ -n "$dirty_files" ]]; then
|
|
215
206
|
log_info "Auto-committing remaining session artifacts..."
|
|
216
207
|
git -C "$project_root" add -A 2>/dev/null || true
|
|
217
|
-
git -C "$project_root" commit -m "chore($bug_id): include remaining session artifacts" 2>/dev/null || true
|
|
208
|
+
git -C "$project_root" commit --no-verify -m "chore($bug_id): include remaining session artifacts" 2>/dev/null || true
|
|
218
209
|
fi
|
|
219
210
|
|
|
220
211
|
dirty_files=$(git -C "$project_root" status --porcelain 2>/dev/null || true)
|
|
@@ -199,18 +199,9 @@ spawn_and_wait_session() {
|
|
|
199
199
|
session_status="crashed"
|
|
200
200
|
else
|
|
201
201
|
# Exit code 0 — check if the session actually produced commits
|
|
202
|
-
local session_start_iso=""
|
|
203
|
-
session_start_iso=$(python3 -c "
|
|
204
|
-
import json, sys, os
|
|
205
|
-
p = os.path.join(sys.argv[1], 'current-session.json')
|
|
206
|
-
if os.path.isfile(p):
|
|
207
|
-
with open(p) as f: print(json.load(f).get('started_at', ''))
|
|
208
|
-
else: print('')
|
|
209
|
-
" "$STATE_DIR" 2>/dev/null) || session_start_iso=""
|
|
210
|
-
|
|
211
202
|
local has_commits=""
|
|
212
|
-
if
|
|
213
|
-
has_commits=$(git -C "$project_root" log
|
|
203
|
+
if git -C "$project_root" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
204
|
+
has_commits=$(git -C "$project_root" log main..HEAD --oneline 2>/dev/null | head -1)
|
|
214
205
|
fi
|
|
215
206
|
|
|
216
207
|
if [[ -n "$has_commits" ]]; then
|
|
@@ -239,7 +230,7 @@ else: print('')
|
|
|
239
230
|
if [[ -n "$dirty_files" ]]; then
|
|
240
231
|
log_info "Auto-committing remaining session artifacts..."
|
|
241
232
|
git -C "$project_root" add -A 2>/dev/null || true
|
|
242
|
-
git -C "$project_root" commit -m "chore($feature_id): include remaining session artifacts" 2>/dev/null || true
|
|
233
|
+
git -C "$project_root" commit --no-verify -m "chore($feature_id): include remaining session artifacts" 2>/dev/null || true
|
|
243
234
|
fi
|
|
244
235
|
|
|
245
236
|
# Re-check: if still dirty after auto-commit, flag as commit_missing
|