robisie 0.5.5 → 0.5.7
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/CHANGELOG.md +15 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/engine/build-id.json +1 -1
- package/dist/engine/bundle-report.json +167 -167
- package/dist/engine/tick.cjs +64 -36
- package/dist/roles.d.ts +1 -1
- package/docs/README.en.md +1 -1
- package/docs/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Historia zmian klienta / Client changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.7](https://github.com/chuppa12/robisie-app/compare/client-v0.5.6...client-v0.5.7) (2026-11-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **maszynista:** zamknięty dziennik dostawy nie blokuje taktu po zmianie komendy testu ([78957f6](https://github.com/chuppa12/robisie-app/commit/78957f690f70ec4dbc8a9b153ef705ba60ec1356))
|
|
9
|
+
* **maszynista:** zamknięty dziennik dostawy nie blokuje taktu po zmianie komendy testu ([0b86c8f](https://github.com/chuppa12/robisie-app/commit/0b86c8ffc81c405d036c2dfae060aa10529ab638))
|
|
10
|
+
|
|
11
|
+
## [0.5.6](https://github.com/chuppa12/robisie-app/compare/client-v0.5.5...client-v0.5.6) (2026-11-12)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Factory Cards
|
|
15
|
+
|
|
16
|
+
* praca workera task-mwctxfra-jn6quu (auto-commit) ([7286f66](https://github.com/chuppa12/robisie-app/commit/7286f665fefeb4a9e3cf7b2930dfb9bf86b6c098))
|
|
17
|
+
|
|
3
18
|
## [0.5.5](https://github.com/chuppa12/robisie-app/compare/client-v0.5.4...client-v0.5.5) (2026-11-12)
|
|
4
19
|
|
|
5
20
|
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Package identity and the server contract it speaks. */
|
|
2
2
|
export declare const PACKAGE_NAME = "robisie";
|
|
3
|
-
export declare const PACKAGE_VERSION = "0.5.
|
|
3
|
+
export declare const PACKAGE_VERSION = "0.5.7";
|
|
4
4
|
/**
|
|
5
5
|
* MAJOR of the agent-API contract this package understands.
|
|
6
6
|
* PARITY: src/lib/mcp/contract-version.ts (AGENT_API_CONTRACT_VERSION) on the server.
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Package identity and the server contract it speaks. */
|
|
2
2
|
export const PACKAGE_NAME = "robisie";
|
|
3
|
-
export const PACKAGE_VERSION = "0.5.
|
|
3
|
+
export const PACKAGE_VERSION = "0.5.7"; // x-release-please-version
|
|
4
4
|
/**
|
|
5
5
|
* MAJOR of the agent-API contract this package understands.
|
|
6
6
|
* PARITY: src/lib/mcp/contract-version.ts (AGENT_API_CONTRACT_VERSION) on the server.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":1,"sha":"
|
|
1
|
+
{"schema":1,"sha":"9a1d0dfcf535fdd98fc75d7af83ec34848737bdd","dirty":false}
|
|
@@ -332,548 +332,548 @@
|
|
|
332
332
|
"category": "builtin"
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
|
-
"module": "
|
|
336
|
-
"path": "node:
|
|
335
|
+
"module": "packages/client/src/local-usage.ts",
|
|
336
|
+
"path": "node:child_process",
|
|
337
337
|
"kind": "import-statement",
|
|
338
338
|
"category": "builtin"
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
|
-
"module": "
|
|
341
|
+
"module": "packages/client/src/local-usage.ts",
|
|
342
|
+
"path": "node:crypto",
|
|
343
|
+
"kind": "import-statement",
|
|
344
|
+
"category": "builtin"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"module": "packages/client/src/local-usage.ts",
|
|
348
|
+
"path": "node:fs",
|
|
349
|
+
"kind": "import-statement",
|
|
350
|
+
"category": "builtin"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"module": "packages/client/src/local-usage.ts",
|
|
342
354
|
"path": "node:path",
|
|
343
355
|
"kind": "import-statement",
|
|
344
356
|
"category": "builtin"
|
|
345
357
|
},
|
|
346
358
|
{
|
|
347
|
-
"module": "maszynista/
|
|
359
|
+
"module": "maszynista/client-pair.ts",
|
|
348
360
|
"path": "node:crypto",
|
|
349
361
|
"kind": "import-statement",
|
|
350
362
|
"category": "builtin"
|
|
351
363
|
},
|
|
352
364
|
{
|
|
353
|
-
"module": "maszynista/
|
|
365
|
+
"module": "maszynista/client-pair.ts",
|
|
354
366
|
"path": "node:fs",
|
|
355
367
|
"kind": "import-statement",
|
|
356
368
|
"category": "builtin"
|
|
357
369
|
},
|
|
358
370
|
{
|
|
359
|
-
"module": "maszynista/
|
|
360
|
-
"path": "node:
|
|
371
|
+
"module": "maszynista/client-pair.ts",
|
|
372
|
+
"path": "node:path",
|
|
361
373
|
"kind": "import-statement",
|
|
362
374
|
"category": "builtin"
|
|
363
375
|
},
|
|
364
376
|
{
|
|
365
|
-
"module": "maszynista/
|
|
366
|
-
"path": "node:
|
|
377
|
+
"module": "maszynista/client-pair.ts",
|
|
378
|
+
"path": "node:util",
|
|
367
379
|
"kind": "import-statement",
|
|
368
380
|
"category": "builtin"
|
|
369
381
|
},
|
|
370
382
|
{
|
|
371
|
-
"module": "maszynista/
|
|
372
|
-
"path": "node:
|
|
383
|
+
"module": "maszynista/local-delivery.ts",
|
|
384
|
+
"path": "node:crypto",
|
|
373
385
|
"kind": "import-statement",
|
|
374
386
|
"category": "builtin"
|
|
375
387
|
},
|
|
376
388
|
{
|
|
377
|
-
"module": "maszynista/
|
|
378
|
-
"path": "node:
|
|
389
|
+
"module": "maszynista/local-delivery.ts",
|
|
390
|
+
"path": "node:fs",
|
|
379
391
|
"kind": "import-statement",
|
|
380
392
|
"category": "builtin"
|
|
381
393
|
},
|
|
382
394
|
{
|
|
383
|
-
"module": "maszynista/
|
|
395
|
+
"module": "maszynista/local-delivery.ts",
|
|
384
396
|
"path": "node:path",
|
|
385
397
|
"kind": "import-statement",
|
|
386
398
|
"category": "builtin"
|
|
387
399
|
},
|
|
388
400
|
{
|
|
389
|
-
"module": "maszynista/
|
|
401
|
+
"module": "maszynista/local-tester.ts",
|
|
390
402
|
"path": "node:crypto",
|
|
391
403
|
"kind": "import-statement",
|
|
392
404
|
"category": "builtin"
|
|
393
405
|
},
|
|
394
406
|
{
|
|
395
|
-
"module": "maszynista/
|
|
407
|
+
"module": "maszynista/local-tester.ts",
|
|
396
408
|
"path": "node:fs",
|
|
397
409
|
"kind": "import-statement",
|
|
398
410
|
"category": "builtin"
|
|
399
411
|
},
|
|
400
412
|
{
|
|
401
|
-
"module": "maszynista/
|
|
413
|
+
"module": "maszynista/local-tester.ts",
|
|
402
414
|
"path": "node:path",
|
|
403
415
|
"kind": "import-statement",
|
|
404
416
|
"category": "builtin"
|
|
405
417
|
},
|
|
406
418
|
{
|
|
407
|
-
"module": "maszynista/
|
|
408
|
-
"path": "node:
|
|
419
|
+
"module": "maszynista/local-tester.ts",
|
|
420
|
+
"path": "node:util",
|
|
409
421
|
"kind": "import-statement",
|
|
410
422
|
"category": "builtin"
|
|
411
423
|
},
|
|
412
424
|
{
|
|
413
|
-
"module": "maszynista/
|
|
425
|
+
"module": "maszynista/service-reload.ts",
|
|
414
426
|
"path": "node:child_process",
|
|
415
427
|
"kind": "import-statement",
|
|
416
428
|
"category": "builtin"
|
|
417
429
|
},
|
|
418
430
|
{
|
|
419
|
-
"module": "maszynista/
|
|
431
|
+
"module": "maszynista/service-reload.ts",
|
|
420
432
|
"path": "node:fs",
|
|
421
433
|
"kind": "import-statement",
|
|
422
434
|
"category": "builtin"
|
|
423
435
|
},
|
|
424
436
|
{
|
|
425
|
-
"module": "maszynista/
|
|
426
|
-
"path": "node:
|
|
437
|
+
"module": "maszynista/service-reload.ts",
|
|
438
|
+
"path": "node:path",
|
|
427
439
|
"kind": "import-statement",
|
|
428
440
|
"category": "builtin"
|
|
429
441
|
},
|
|
430
442
|
{
|
|
431
|
-
"module": "maszynista/
|
|
432
|
-
"path": "node:
|
|
443
|
+
"module": "maszynista/host-activation.ts",
|
|
444
|
+
"path": "node:child_process",
|
|
433
445
|
"kind": "import-statement",
|
|
434
446
|
"category": "builtin"
|
|
435
447
|
},
|
|
436
448
|
{
|
|
437
|
-
"module": "maszynista/
|
|
438
|
-
"path": "node:
|
|
449
|
+
"module": "maszynista/host-activation.ts",
|
|
450
|
+
"path": "node:crypto",
|
|
439
451
|
"kind": "import-statement",
|
|
440
452
|
"category": "builtin"
|
|
441
453
|
},
|
|
442
454
|
{
|
|
443
|
-
"module": "maszynista/
|
|
444
|
-
"path": "node:
|
|
455
|
+
"module": "maszynista/host-activation.ts",
|
|
456
|
+
"path": "node:fs",
|
|
445
457
|
"kind": "import-statement",
|
|
446
458
|
"category": "builtin"
|
|
447
459
|
},
|
|
448
460
|
{
|
|
449
|
-
"module": "maszynista/
|
|
450
|
-
"path": "node:
|
|
461
|
+
"module": "maszynista/host-activation.ts",
|
|
462
|
+
"path": "node:path",
|
|
451
463
|
"kind": "import-statement",
|
|
452
464
|
"category": "builtin"
|
|
453
465
|
},
|
|
454
466
|
{
|
|
455
|
-
"module": "maszynista/
|
|
467
|
+
"module": "maszynista/receiver-job.ts",
|
|
456
468
|
"path": "node:fs",
|
|
457
469
|
"kind": "import-statement",
|
|
458
470
|
"category": "builtin"
|
|
459
471
|
},
|
|
460
472
|
{
|
|
461
|
-
"module": "maszynista/
|
|
462
|
-
"path": "node:
|
|
473
|
+
"module": "maszynista/receiver-job.ts",
|
|
474
|
+
"path": "node:crypto",
|
|
463
475
|
"kind": "import-statement",
|
|
464
476
|
"category": "builtin"
|
|
465
477
|
},
|
|
466
478
|
{
|
|
467
|
-
"module": "maszynista/
|
|
468
|
-
"path": "node:
|
|
479
|
+
"module": "maszynista/receiver-job.ts",
|
|
480
|
+
"path": "node:child_process",
|
|
469
481
|
"kind": "import-statement",
|
|
470
482
|
"category": "builtin"
|
|
471
483
|
},
|
|
472
484
|
{
|
|
473
|
-
"module": "maszynista/
|
|
474
|
-
"path": "node:
|
|
485
|
+
"module": "maszynista/receiver-job.ts",
|
|
486
|
+
"path": "node:string_decoder",
|
|
475
487
|
"kind": "import-statement",
|
|
476
488
|
"category": "builtin"
|
|
477
489
|
},
|
|
478
490
|
{
|
|
479
|
-
"module": "maszynista/
|
|
491
|
+
"module": "maszynista/receiver-job.ts",
|
|
492
|
+
"path": "node:path",
|
|
493
|
+
"kind": "import-statement",
|
|
494
|
+
"category": "builtin"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"module": "maszynista/local-receiver.ts",
|
|
480
498
|
"path": "node:crypto",
|
|
481
499
|
"kind": "import-statement",
|
|
482
500
|
"category": "builtin"
|
|
483
501
|
},
|
|
484
502
|
{
|
|
485
|
-
"module": "maszynista/
|
|
503
|
+
"module": "maszynista/local-receiver.ts",
|
|
486
504
|
"path": "node:fs",
|
|
487
505
|
"kind": "import-statement",
|
|
488
506
|
"category": "builtin"
|
|
489
507
|
},
|
|
490
508
|
{
|
|
491
|
-
"module": "maszynista/
|
|
509
|
+
"module": "maszynista/local-receiver.ts",
|
|
492
510
|
"path": "node:path",
|
|
493
511
|
"kind": "import-statement",
|
|
494
512
|
"category": "builtin"
|
|
495
513
|
},
|
|
496
514
|
{
|
|
497
|
-
"module": "maszynista/
|
|
498
|
-
"path": "node:
|
|
515
|
+
"module": "maszynista/local-receiver.ts",
|
|
516
|
+
"path": "node:util",
|
|
499
517
|
"kind": "import-statement",
|
|
500
518
|
"category": "builtin"
|
|
501
519
|
},
|
|
502
520
|
{
|
|
503
|
-
"module": "maszynista/
|
|
504
|
-
"path": "node:
|
|
521
|
+
"module": "maszynista/lib.ts",
|
|
522
|
+
"path": "node:path",
|
|
505
523
|
"kind": "import-statement",
|
|
506
524
|
"category": "builtin"
|
|
507
525
|
},
|
|
508
526
|
{
|
|
509
|
-
"module": "maszynista/
|
|
527
|
+
"module": "maszynista/lib.ts",
|
|
510
528
|
"path": "node:path",
|
|
511
529
|
"kind": "import-statement",
|
|
512
530
|
"category": "builtin"
|
|
513
531
|
},
|
|
514
532
|
{
|
|
515
|
-
"module": "maszynista/
|
|
516
|
-
"path": "node:
|
|
533
|
+
"module": "maszynista/lib.ts",
|
|
534
|
+
"path": "node:crypto",
|
|
517
535
|
"kind": "import-statement",
|
|
518
536
|
"category": "builtin"
|
|
519
537
|
},
|
|
520
538
|
{
|
|
521
|
-
"module": "maszynista/
|
|
522
|
-
"path": "node:
|
|
539
|
+
"module": "maszynista/factory-judgment-incidents.ts",
|
|
540
|
+
"path": "node:fs",
|
|
523
541
|
"kind": "import-statement",
|
|
524
542
|
"category": "builtin"
|
|
525
543
|
},
|
|
526
544
|
{
|
|
527
|
-
"module": "maszynista/
|
|
545
|
+
"module": "maszynista/factory-judgment-memory.ts",
|
|
528
546
|
"path": "node:fs",
|
|
529
547
|
"kind": "import-statement",
|
|
530
548
|
"category": "builtin"
|
|
531
549
|
},
|
|
532
550
|
{
|
|
533
|
-
"module": "maszynista/
|
|
551
|
+
"module": "maszynista/factory-judgment-memory.ts",
|
|
534
552
|
"path": "node:path",
|
|
535
553
|
"kind": "import-statement",
|
|
536
554
|
"category": "builtin"
|
|
537
555
|
},
|
|
538
556
|
{
|
|
539
|
-
"module": "maszynista/
|
|
540
|
-
"path": "node:
|
|
557
|
+
"module": "maszynista/env.ts",
|
|
558
|
+
"path": "node:fs",
|
|
541
559
|
"kind": "import-statement",
|
|
542
560
|
"category": "builtin"
|
|
543
561
|
},
|
|
544
562
|
{
|
|
545
|
-
"module": "maszynista/
|
|
546
|
-
"path": "node:
|
|
563
|
+
"module": "maszynista/env.ts",
|
|
564
|
+
"path": "node:child_process",
|
|
547
565
|
"kind": "import-statement",
|
|
548
566
|
"category": "builtin"
|
|
549
567
|
},
|
|
550
568
|
{
|
|
551
|
-
"module": "maszynista/
|
|
552
|
-
"path": "node:
|
|
569
|
+
"module": "maszynista/env.ts",
|
|
570
|
+
"path": "node:path",
|
|
553
571
|
"kind": "import-statement",
|
|
554
572
|
"category": "builtin"
|
|
555
573
|
},
|
|
556
574
|
{
|
|
557
|
-
"module": "maszynista/
|
|
558
|
-
"path": "node:
|
|
575
|
+
"module": "maszynista/board.ts",
|
|
576
|
+
"path": "node:crypto",
|
|
559
577
|
"kind": "import-statement",
|
|
560
578
|
"category": "builtin"
|
|
561
579
|
},
|
|
562
580
|
{
|
|
563
|
-
"module": "maszynista/
|
|
564
|
-
"path": "node:
|
|
581
|
+
"module": "maszynista/board.ts",
|
|
582
|
+
"path": "node:fs",
|
|
565
583
|
"kind": "import-statement",
|
|
566
584
|
"category": "builtin"
|
|
567
585
|
},
|
|
568
586
|
{
|
|
569
|
-
"module": "maszynista/
|
|
570
|
-
"path": "node:
|
|
587
|
+
"module": "maszynista/board.ts",
|
|
588
|
+
"path": "node:path",
|
|
571
589
|
"kind": "import-statement",
|
|
572
590
|
"category": "builtin"
|
|
573
591
|
},
|
|
574
592
|
{
|
|
575
|
-
"module": "maszynista/
|
|
593
|
+
"module": "maszynista/board.ts",
|
|
576
594
|
"path": "node:os",
|
|
577
595
|
"kind": "import-statement",
|
|
578
596
|
"category": "builtin"
|
|
579
597
|
},
|
|
580
598
|
{
|
|
581
|
-
"module": "maszynista/
|
|
582
|
-
"path": "node:
|
|
599
|
+
"module": "maszynista/opencode-session-export.ts",
|
|
600
|
+
"path": "node:child_process",
|
|
583
601
|
"kind": "import-statement",
|
|
584
602
|
"category": "builtin"
|
|
585
603
|
},
|
|
586
604
|
{
|
|
587
|
-
"module": "maszynista/
|
|
605
|
+
"module": "maszynista/opencode-session-export.ts",
|
|
588
606
|
"path": "node:fs",
|
|
589
607
|
"kind": "import-statement",
|
|
590
608
|
"category": "builtin"
|
|
591
609
|
},
|
|
592
610
|
{
|
|
593
|
-
"module": "maszynista/
|
|
611
|
+
"module": "maszynista/opencode-session-export.ts",
|
|
612
|
+
"path": "node:os",
|
|
613
|
+
"kind": "import-statement",
|
|
614
|
+
"category": "builtin"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"module": "maszynista/opencode-session-export.ts",
|
|
594
618
|
"path": "node:path",
|
|
595
619
|
"kind": "import-statement",
|
|
596
620
|
"category": "builtin"
|
|
597
621
|
},
|
|
598
622
|
{
|
|
599
|
-
"module": "maszynista/
|
|
623
|
+
"module": "maszynista/factory-judgment-dry.ts",
|
|
600
624
|
"path": "node:path",
|
|
601
625
|
"kind": "import-statement",
|
|
602
626
|
"category": "builtin"
|
|
603
627
|
},
|
|
604
628
|
{
|
|
605
|
-
"module": "maszynista/
|
|
606
|
-
"path": "node:
|
|
629
|
+
"module": "maszynista/factory-judgment-dry.ts",
|
|
630
|
+
"path": "node:child_process",
|
|
607
631
|
"kind": "import-statement",
|
|
608
632
|
"category": "builtin"
|
|
609
633
|
},
|
|
610
634
|
{
|
|
611
|
-
"module": "maszynista/
|
|
612
|
-
"path": "node:
|
|
635
|
+
"module": "maszynista/factory-judgment-dry.ts",
|
|
636
|
+
"path": "node:crypto",
|
|
613
637
|
"kind": "import-statement",
|
|
614
638
|
"category": "builtin"
|
|
615
639
|
},
|
|
616
640
|
{
|
|
617
|
-
"module": "maszynista/
|
|
618
|
-
"path": "node:fs
|
|
641
|
+
"module": "maszynista/factory-judgment-dry.ts",
|
|
642
|
+
"path": "node:fs",
|
|
619
643
|
"kind": "import-statement",
|
|
620
644
|
"category": "builtin"
|
|
621
645
|
},
|
|
622
646
|
{
|
|
623
|
-
"module": "maszynista/
|
|
624
|
-
"path": "node:
|
|
647
|
+
"module": "maszynista/factory-judgment-dry.ts",
|
|
648
|
+
"path": "node:os",
|
|
625
649
|
"kind": "import-statement",
|
|
626
650
|
"category": "builtin"
|
|
627
651
|
},
|
|
628
652
|
{
|
|
629
|
-
"module": "maszynista/
|
|
630
|
-
"path": "node:
|
|
653
|
+
"module": "maszynista/factory-judgment-dry.ts",
|
|
654
|
+
"path": "node:url",
|
|
631
655
|
"kind": "import-statement",
|
|
632
656
|
"category": "builtin"
|
|
633
657
|
},
|
|
634
658
|
{
|
|
635
|
-
"module": "maszynista/
|
|
636
|
-
"path": "node:
|
|
659
|
+
"module": "maszynista/factory-judgment-dry.ts",
|
|
660
|
+
"path": "node:util",
|
|
637
661
|
"kind": "import-statement",
|
|
638
662
|
"category": "builtin"
|
|
639
663
|
},
|
|
640
664
|
{
|
|
641
|
-
"module": "
|
|
665
|
+
"module": "maszynista/factory-judgment-write.ts",
|
|
642
666
|
"path": "node:crypto",
|
|
643
|
-
"kind": "
|
|
667
|
+
"kind": "import-statement",
|
|
644
668
|
"category": "builtin"
|
|
645
669
|
},
|
|
646
670
|
{
|
|
647
|
-
"module": "maszynista/
|
|
671
|
+
"module": "maszynista/factory-judgment-write.ts",
|
|
648
672
|
"path": "node:fs",
|
|
649
673
|
"kind": "import-statement",
|
|
650
674
|
"category": "builtin"
|
|
651
675
|
},
|
|
652
676
|
{
|
|
653
|
-
"module": "maszynista/
|
|
677
|
+
"module": "maszynista/factory-judgment-write.ts",
|
|
654
678
|
"path": "node:path",
|
|
655
679
|
"kind": "import-statement",
|
|
656
680
|
"category": "builtin"
|
|
657
681
|
},
|
|
658
682
|
{
|
|
659
|
-
"module": "
|
|
683
|
+
"module": "maszynista/factory-judgment-run.ts",
|
|
660
684
|
"path": "node:child_process",
|
|
661
685
|
"kind": "import-statement",
|
|
662
686
|
"category": "builtin"
|
|
663
687
|
},
|
|
664
688
|
{
|
|
665
|
-
"module": "
|
|
666
|
-
"path": "node:
|
|
689
|
+
"module": "maszynista/factory-judgment-run.ts",
|
|
690
|
+
"path": "node:crypto",
|
|
667
691
|
"kind": "import-statement",
|
|
668
692
|
"category": "builtin"
|
|
669
693
|
},
|
|
670
694
|
{
|
|
671
|
-
"module": "
|
|
695
|
+
"module": "maszynista/factory-judgment-run.ts",
|
|
672
696
|
"path": "node:fs",
|
|
673
697
|
"kind": "import-statement",
|
|
674
698
|
"category": "builtin"
|
|
675
699
|
},
|
|
676
700
|
{
|
|
677
|
-
"module": "
|
|
678
|
-
"path": "node:
|
|
701
|
+
"module": "maszynista/factory-judgment-run.ts",
|
|
702
|
+
"path": "node:fs/promises",
|
|
679
703
|
"kind": "import-statement",
|
|
680
704
|
"category": "builtin"
|
|
681
705
|
},
|
|
682
706
|
{
|
|
683
|
-
"module": "
|
|
707
|
+
"module": "maszynista/factory-judgment-run.ts",
|
|
684
708
|
"path": "node:path",
|
|
685
709
|
"kind": "import-statement",
|
|
686
710
|
"category": "builtin"
|
|
687
711
|
},
|
|
688
712
|
{
|
|
689
|
-
"module": "
|
|
713
|
+
"module": "maszynista/engine-resolve.ts",
|
|
690
714
|
"path": "node:fs",
|
|
691
715
|
"kind": "import-statement",
|
|
692
716
|
"category": "builtin"
|
|
693
717
|
},
|
|
694
718
|
{
|
|
695
|
-
"module": "maszynista/engine-
|
|
696
|
-
"path": "node:
|
|
719
|
+
"module": "maszynista/engine-resolve.ts",
|
|
720
|
+
"path": "node:os",
|
|
697
721
|
"kind": "import-statement",
|
|
698
722
|
"category": "builtin"
|
|
699
723
|
},
|
|
700
724
|
{
|
|
701
|
-
"module": "maszynista/engine-
|
|
725
|
+
"module": "maszynista/engine-resolve.ts",
|
|
702
726
|
"path": "node:path",
|
|
703
727
|
"kind": "import-statement",
|
|
704
728
|
"category": "builtin"
|
|
705
729
|
},
|
|
706
730
|
{
|
|
707
|
-
"module": "maszynista/
|
|
708
|
-
"path": "node:crypto",
|
|
709
|
-
"kind": "import-statement",
|
|
710
|
-
"category": "builtin"
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
"module": "maszynista/local-delivery.ts",
|
|
731
|
+
"module": "maszynista/engine-config-env.ts",
|
|
714
732
|
"path": "node:fs",
|
|
715
733
|
"kind": "import-statement",
|
|
716
734
|
"category": "builtin"
|
|
717
735
|
},
|
|
718
736
|
{
|
|
719
|
-
"module": "maszynista/
|
|
737
|
+
"module": "maszynista/engine-config-env.ts",
|
|
720
738
|
"path": "node:path",
|
|
721
739
|
"kind": "import-statement",
|
|
722
740
|
"category": "builtin"
|
|
723
741
|
},
|
|
724
742
|
{
|
|
725
|
-
"module": "maszynista/
|
|
726
|
-
"path": "node:
|
|
743
|
+
"module": "maszynista/engine-consumer.ts",
|
|
744
|
+
"path": "node:path",
|
|
727
745
|
"kind": "import-statement",
|
|
728
746
|
"category": "builtin"
|
|
729
747
|
},
|
|
730
748
|
{
|
|
731
|
-
"module": "maszynista/
|
|
749
|
+
"module": "maszynista/planner-incremental.ts",
|
|
732
750
|
"path": "node:crypto",
|
|
733
751
|
"kind": "import-statement",
|
|
734
752
|
"category": "builtin"
|
|
735
753
|
},
|
|
736
754
|
{
|
|
737
|
-
"module": "maszynista/
|
|
755
|
+
"module": "maszynista/planner-incremental.ts",
|
|
738
756
|
"path": "node:fs",
|
|
739
757
|
"kind": "import-statement",
|
|
740
758
|
"category": "builtin"
|
|
741
759
|
},
|
|
742
760
|
{
|
|
743
|
-
"module": "maszynista/
|
|
744
|
-
"path": "node:
|
|
745
|
-
"kind": "import-statement",
|
|
746
|
-
"category": "builtin"
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
"module": "maszynista/seed-bridge.ts",
|
|
750
|
-
"path": "node:util",
|
|
751
|
-
"kind": "import-statement",
|
|
752
|
-
"category": "builtin"
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
"module": "packages/client/src/local-usage.ts",
|
|
756
|
-
"path": "node:child_process",
|
|
761
|
+
"module": "maszynista/planner-incremental.ts",
|
|
762
|
+
"path": "node:fs/promises",
|
|
757
763
|
"kind": "import-statement",
|
|
758
764
|
"category": "builtin"
|
|
759
765
|
},
|
|
760
766
|
{
|
|
761
|
-
"module": "
|
|
762
|
-
"path": "node:
|
|
767
|
+
"module": "maszynista/planner-incremental.ts",
|
|
768
|
+
"path": "node:path",
|
|
763
769
|
"kind": "import-statement",
|
|
764
770
|
"category": "builtin"
|
|
765
771
|
},
|
|
766
772
|
{
|
|
767
|
-
"module": "
|
|
768
|
-
"path": "node:
|
|
773
|
+
"module": "maszynista/planner-incremental.ts",
|
|
774
|
+
"path": "node:util",
|
|
769
775
|
"kind": "import-statement",
|
|
770
776
|
"category": "builtin"
|
|
771
777
|
},
|
|
772
778
|
{
|
|
773
|
-
"module": "
|
|
774
|
-
"path": "node:
|
|
779
|
+
"module": "maszynista/planner-incremental.ts",
|
|
780
|
+
"path": "node:v8",
|
|
775
781
|
"kind": "import-statement",
|
|
776
782
|
"category": "builtin"
|
|
777
783
|
},
|
|
778
784
|
{
|
|
779
|
-
"module": "
|
|
785
|
+
"module": "node_modules/pkce-challenge/dist/index.node.js",
|
|
780
786
|
"path": "node:crypto",
|
|
781
|
-
"kind": "import
|
|
787
|
+
"kind": "dynamic-import",
|
|
782
788
|
"category": "builtin"
|
|
783
789
|
},
|
|
784
790
|
{
|
|
785
|
-
"module": "maszynista/
|
|
791
|
+
"module": "maszynista/q-planner.ts",
|
|
786
792
|
"path": "node:fs",
|
|
787
793
|
"kind": "import-statement",
|
|
788
794
|
"category": "builtin"
|
|
789
795
|
},
|
|
790
796
|
{
|
|
791
|
-
"module": "maszynista/
|
|
797
|
+
"module": "maszynista/q-planner.ts",
|
|
792
798
|
"path": "node:path",
|
|
793
799
|
"kind": "import-statement",
|
|
794
800
|
"category": "builtin"
|
|
795
801
|
},
|
|
796
802
|
{
|
|
797
|
-
"module": "
|
|
798
|
-
"path": "node:
|
|
803
|
+
"module": "packages/client/src/git-commit.ts",
|
|
804
|
+
"path": "node:child_process",
|
|
799
805
|
"kind": "import-statement",
|
|
800
806
|
"category": "builtin"
|
|
801
807
|
},
|
|
802
808
|
{
|
|
803
|
-
"module": "
|
|
804
|
-
"path": "node:
|
|
809
|
+
"module": "packages/client/src/delivery-local.ts",
|
|
810
|
+
"path": "node:child_process",
|
|
805
811
|
"kind": "import-statement",
|
|
806
812
|
"category": "builtin"
|
|
807
813
|
},
|
|
808
814
|
{
|
|
809
|
-
"module": "
|
|
815
|
+
"module": "packages/client/src/delivery-local.ts",
|
|
810
816
|
"path": "node:fs",
|
|
811
817
|
"kind": "import-statement",
|
|
812
818
|
"category": "builtin"
|
|
813
819
|
},
|
|
814
820
|
{
|
|
815
|
-
"module": "
|
|
816
|
-
"path": "node:
|
|
821
|
+
"module": "packages/client/src/delivery-local.ts",
|
|
822
|
+
"path": "node:os",
|
|
817
823
|
"kind": "import-statement",
|
|
818
824
|
"category": "builtin"
|
|
819
825
|
},
|
|
820
826
|
{
|
|
821
|
-
"module": "
|
|
822
|
-
"path": "node:
|
|
827
|
+
"module": "packages/client/src/delivery-local.ts",
|
|
828
|
+
"path": "node:path",
|
|
823
829
|
"kind": "import-statement",
|
|
824
830
|
"category": "builtin"
|
|
825
831
|
},
|
|
826
832
|
{
|
|
827
|
-
"module": "
|
|
828
|
-
"path": "node:
|
|
833
|
+
"module": "packages/client/src/disk-guard.ts",
|
|
834
|
+
"path": "node:fs",
|
|
829
835
|
"kind": "import-statement",
|
|
830
836
|
"category": "builtin"
|
|
831
837
|
},
|
|
832
838
|
{
|
|
833
|
-
"module": "maszynista/
|
|
839
|
+
"module": "maszynista/engine-context.ts",
|
|
834
840
|
"path": "node:fs",
|
|
835
841
|
"kind": "import-statement",
|
|
836
842
|
"category": "builtin"
|
|
837
843
|
},
|
|
838
844
|
{
|
|
839
|
-
"module": "maszynista/
|
|
845
|
+
"module": "maszynista/engine-context.ts",
|
|
840
846
|
"path": "node:path",
|
|
841
847
|
"kind": "import-statement",
|
|
842
848
|
"category": "builtin"
|
|
843
849
|
},
|
|
844
850
|
{
|
|
845
|
-
"module": "maszynista/
|
|
846
|
-
"path": "node:
|
|
847
|
-
"kind": "import-statement",
|
|
848
|
-
"category": "builtin"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"module": "maszynista/receiver-job.ts",
|
|
852
|
-
"path": "node:fs",
|
|
851
|
+
"module": "maszynista/done-when-roles.ts",
|
|
852
|
+
"path": "node:crypto",
|
|
853
853
|
"kind": "import-statement",
|
|
854
854
|
"category": "builtin"
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
|
-
"module": "maszynista/
|
|
857
|
+
"module": "maszynista/seed-bridge.ts",
|
|
858
858
|
"path": "node:crypto",
|
|
859
859
|
"kind": "import-statement",
|
|
860
860
|
"category": "builtin"
|
|
861
861
|
},
|
|
862
862
|
{
|
|
863
|
-
"module": "maszynista/
|
|
864
|
-
"path": "node:
|
|
863
|
+
"module": "maszynista/seed-bridge.ts",
|
|
864
|
+
"path": "node:fs",
|
|
865
865
|
"kind": "import-statement",
|
|
866
866
|
"category": "builtin"
|
|
867
867
|
},
|
|
868
868
|
{
|
|
869
|
-
"module": "maszynista/
|
|
870
|
-
"path": "node:
|
|
869
|
+
"module": "maszynista/seed-bridge.ts",
|
|
870
|
+
"path": "node:path",
|
|
871
871
|
"kind": "import-statement",
|
|
872
872
|
"category": "builtin"
|
|
873
873
|
},
|
|
874
874
|
{
|
|
875
|
-
"module": "maszynista/
|
|
876
|
-
"path": "node:
|
|
875
|
+
"module": "maszynista/seed-bridge.ts",
|
|
876
|
+
"path": "node:util",
|
|
877
877
|
"kind": "import-statement",
|
|
878
878
|
"category": "builtin"
|
|
879
879
|
},
|
|
@@ -1655,14 +1655,14 @@
|
|
|
1655
1655
|
"staticOperations": {
|
|
1656
1656
|
"beforePreflight": {
|
|
1657
1657
|
"module": "maszynista/tick.ts",
|
|
1658
|
-
"startLine":
|
|
1659
|
-
"endLine":
|
|
1660
|
-
"text": "export async function main(): Promise<number> {\n const start = standaloneStartCheck({ filename: __filename, env: process.env });\n if (start.standalone && !start.ok) {\n console.error(start.message);\n process.exitCode = 78;\n return 78;\n }\n let installation: EngineContext;\n try { installation = createEngineContext(currentEngine(), {\n loadEnvironment: loadEnvFiles, preflight, baseRef: engineBaseRef, refreshBase: fetchMain,\n disk: defaultDiskPressureDependencies, workerContext: loadNorthStar,\n controlEnv: hostEnv, workerEnv: executionEnv, prepareWorktree: prepareHostWorktree, workerArtifacts: createWorkerTmpdir,\n notify: async (card, reason) => { decisionForReksio(card, reason, \"Rozstrzygnij na karcie\", \"\", \"\"); return { outcome: \"recorded\", ref: DECISIONS_REKSIO }; },\n hostOperations: hostOperationsPhase,\n activation: { confirmLoaded, finishHostActivation, readActivationState, recoverTickTimeout, runEnabledAuto },\n }, git, log); }\n catch (error) {\n if (!engineClient()) throw error;\n console.error(`HOLD kontekst klienta: ${clientTickFailure(error)}`);\n process.exitCode = 78;\n return 78;\n }\n const previousInstallation = tickInstallation;\n const hostErrorText = errorText;\n const client = engineClient();\n const result: { outcome: \"ok\" | \"retry\" | \"stop\"; reason: string; cleanup: boolean } = { outcome: \"ok\", reason: \"\", cleanup: false };\n const stopClient = (reason = clientTickFailure()): void => {\n if (client && result.outcome !== \"stop\") { result.outcome = \"stop\"; result.reason = reason; }\n };\n let code = 2;\n try { code = await q.withPlannerQueries(installation.planner, async () => {\n tickInstallation = installation;\n const errorText = client ? clientTickFailure : hostErrorText;\n const loadEnvFiles = installation.loadEnvironment;\n const preflight = () => {\n const actor = installation.preflight();\n return { uid: actor.kind === \"db\" ? actor.uid : API_ACTOR };\n };\n const { confirmLoaded, finishHostActivation, readActivationState, recoverTickTimeout, runEnabledAuto } = installation.activation;\n const smokeOnly = DRY && process.env.MASZYNISTA_SMOKE === \"1\";\n if (!DRY) {\n const acquire = (): boolean => tryCreateTickLock(LOCK);\n if (!acquire()) {\n const raw = readFileSync(LOCK, \"utf8\"), pid = Number(raw);\n if (!Number.isSafeInteger(pid) || pid <= 0) { console.log(\"tick lock bez poprawnego PID — HOLD\"); return 0; }\n try { process.kill(pid, 0); console.log(`tick już trwa (pid ${pid})`); return 0; }\n catch (error) { if ((error as NodeJS.ErrnoException).code !== \"ESRCH\") throw error; }\n if (readFileSync(LOCK, \"utf8\") === raw) unlinkSync(LOCK);\n if (!acquire()) { console.log(\"tick już trwa\"); return 0; }\n }\n }\n skippedCardEvents.clear();\n let s = parseState(null).state;\n // Internal smoke handoff: the child cannot outlive the parent's reserved budget.\n const smokeLimit = DRY ? Number(process.env.MASZYNISTA_SMOKE_TIMEOUT_MS) : NaN;\n let stateLoaded = false;\n let tickStarted: string | undefined;\n let outcome: \"ok\" | \"failed\" = \"ok\";\n let runtimeFailed = false;\n let observedLoaded = \"UNKNOWN\";\n let tickPhase = \"startup\";\n const deadlineAlarm = armTickDeadline(() => s, Number.isSafeInteger(smokeLimit) && smokeLimit > 0\n ? Math.min(TICK_LIMIT_MS, smokeLimit) : TICK_LIMIT_MS, () => ({ phase: tickPhase, observedLoaded }));\n let hostReady = false;\n let hostBoard: { uid: string; projectId: string } | undefined;\n let activationCards: CardLike[] = [];\n let activationCardsKnown = false;\n let blockedBefore = 0;\n const clientStopped = (): boolean => {\n if (client && (outcome === \"failed\" || (!DRY && s.blocked > blockedBefore))) stopClient();\n if (client && result.outcome === \"stop\") outcome = \"failed\";\n return client && result.outcome === \"stop\";\n };\n let hostPhaseStarted = false;\n const hostPhase = async (): Promise<boolean> => {\n if (smokeOnly || !hostReady || hostPhaseStarted) return false;\n hostPhaseStarted = true;\n tickPhase = \"host\";\n if (hostBoard) {\n const { uid: boardUid, projectId: boardProject } = hostBoard;\n try {\n await runEnabledAuto({ state: s, loadedSha: observedLoaded, repo: REPO, logPath: LOG, tick: s.tick, stateDir: hostStateDir(),\n now: new Date().toISOString(), activation: readActivationState(hostStateDir()), dryRun: DRY }, {\n listCards: async () => scanTasks(boardUid, boardProject, { full: true, statuses: [\"delivered\"],\n detailsKeys: ENABLED_SCAN_DETAILS_KEYS }),\n getTask: id => q.getTask(boardUid, id),\n appendDetail: async (id, patch) => { await appendBoundedDetail(boardUid, id, patch); },\n saveState: writeState,\n alarm: hostActivationAlarm,\n log,\n });\n } catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL ENABLED auto: ${errorText(error)}`); }\n } else log(\"ENABLED auto: UNKNOWN — brak odczytu projektu; dowód karty czeka na dostęp do tablicy\");\n try {\n const result = await engineRunHostActivation({ repo: REPO, stateDir: hostStateDir(), cards: activationCards, cardsKnown: activationCardsKnown, tick: s.tick, dryRun: DRY }, {\n git, remainingTickMs, alarm: hostActivationAlarm, infrastructureChecks, infrastructurePullRequest, log: line => log(`host-activation: ${line}`),\n });\n log(`host-activation: code=${result.code} target=${result.target ?? \"UNKNOWN\"}${result.detail ? ` reason=${result.detail}` : \"\"}`);\n if (result.code === \"activate\" && result.target) {\n lastTick(s, \"activation\", `aktywacja ${result.target}; ogon odroczony`, outcome === \"ok\");\n return true;\n }\n } catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL aktywacja: ${errorText(error)}`); }\n return false;\n };\n try {\n observedLoaded = loadedSha = readLoadedSha(REPO);\n s = readState((await engineFjConfig()).enabled);\n stateLoaded = true; blockedBefore = s.blocked;\n s.tick++; tickStarted = new Date().toISOString(); s.lastTickAt = tickStarted;\n log(`tick_started tick=${s.tick} at=${tickStarted} duration=UNKNOWN loaded=${loadedSha}`);\n loadEnvFiles();\n const { uid } = preflight();"
|
|
1658
|
+
"startLine": 9323,
|
|
1659
|
+
"endLine": 9436,
|
|
1660
|
+
"text": "export async function main(): Promise<number> {\n const start = standaloneStartCheck({ filename: __filename, env: process.env });\n if (start.standalone && !start.ok) {\n console.error(start.message);\n process.exitCode = 78;\n return 78;\n }\n let installation: EngineContext;\n try { installation = createEngineContext(currentEngine(), {\n loadEnvironment: loadEnvFiles, preflight, baseRef: engineBaseRef, refreshBase: fetchMain,\n disk: defaultDiskPressureDependencies, workerContext: loadNorthStar,\n controlEnv: hostEnv, workerEnv: executionEnv, prepareWorktree: prepareHostWorktree, workerArtifacts: createWorkerTmpdir,\n notify: async (card, reason) => { decisionForReksio(card, reason, \"Rozstrzygnij na karcie\", \"\", \"\"); return { outcome: \"recorded\", ref: DECISIONS_REKSIO }; },\n hostOperations: hostOperationsPhase,\n activation: { confirmLoaded, finishHostActivation, readActivationState, recoverTickTimeout, runEnabledAuto },\n }, git, log); }\n catch (error) {\n if (!engineClient()) throw error;\n console.error(`HOLD kontekst klienta: ${clientTickFailure(error)}`);\n process.exitCode = 78;\n return 78;\n }\n const previousInstallation = tickInstallation;\n const hostErrorText = errorText;\n const client = engineClient();\n const result: { outcome: \"ok\" | \"retry\" | \"stop\"; reason: string; cleanup: boolean } = { outcome: \"ok\", reason: \"\", cleanup: false };\n const stopClient = (reason = clientTickFailure()): void => {\n if (client && result.outcome !== \"stop\") { result.outcome = \"stop\"; result.reason = reason; }\n };\n let code = 2;\n try { code = await q.withPlannerQueries(installation.planner, async () => {\n tickInstallation = installation;\n const seedGateSettings = installationSeedGateSettings();\n const errorText = client ? clientTickFailure : hostErrorText;\n const loadEnvFiles = installation.loadEnvironment;\n const preflight = () => {\n const actor = installation.preflight();\n return { uid: actor.kind === \"db\" ? actor.uid : API_ACTOR };\n };\n const { confirmLoaded, finishHostActivation, readActivationState, recoverTickTimeout, runEnabledAuto } = installation.activation;\n const smokeOnly = DRY && process.env.MASZYNISTA_SMOKE === \"1\";\n if (!DRY) {\n const acquire = (): boolean => tryCreateTickLock(LOCK);\n if (!acquire()) {\n const raw = readFileSync(LOCK, \"utf8\"), pid = Number(raw);\n if (!Number.isSafeInteger(pid) || pid <= 0) { console.log(\"tick lock bez poprawnego PID — HOLD\"); return 0; }\n try { process.kill(pid, 0); console.log(`tick już trwa (pid ${pid})`); return 0; }\n catch (error) { if ((error as NodeJS.ErrnoException).code !== \"ESRCH\") throw error; }\n if (readFileSync(LOCK, \"utf8\") === raw) unlinkSync(LOCK);\n if (!acquire()) { console.log(\"tick już trwa\"); return 0; }\n }\n }\n skippedCardEvents.clear();\n let s = parseState(null).state;\n // Internal smoke handoff: the child cannot outlive the parent's reserved budget.\n const smokeLimit = DRY ? Number(process.env.MASZYNISTA_SMOKE_TIMEOUT_MS) : NaN;\n let stateLoaded = false;\n let tickStarted: string | undefined;\n let outcome: \"ok\" | \"failed\" = \"ok\";\n let runtimeFailed = false;\n let observedLoaded = \"UNKNOWN\";\n let tickPhase = \"startup\";\n const deadlineAlarm = armTickDeadline(() => s, Number.isSafeInteger(smokeLimit) && smokeLimit > 0\n ? Math.min(TICK_LIMIT_MS, smokeLimit) : TICK_LIMIT_MS, () => ({ phase: tickPhase, observedLoaded }));\n let hostReady = false;\n let hostBoard: { uid: string; projectId: string } | undefined;\n let activationCards: CardLike[] = [];\n let activationCardsKnown = false;\n let blockedBefore = 0;\n const clientStopped = (): boolean => {\n if (client && (outcome === \"failed\" || (!DRY && s.blocked > blockedBefore))) stopClient();\n if (client && result.outcome === \"stop\") outcome = \"failed\";\n return client && result.outcome === \"stop\";\n };\n let hostPhaseStarted = false;\n const hostPhase = async (): Promise<boolean> => {\n if (smokeOnly || !hostReady || hostPhaseStarted) return false;\n hostPhaseStarted = true;\n tickPhase = \"host\";\n if (hostBoard) {\n const { uid: boardUid, projectId: boardProject } = hostBoard;\n try {\n await runEnabledAuto({ state: s, loadedSha: observedLoaded, repo: REPO, logPath: LOG, tick: s.tick, stateDir: hostStateDir(),\n now: new Date().toISOString(), activation: readActivationState(hostStateDir()), dryRun: DRY }, {\n listCards: async () => scanTasks(boardUid, boardProject, { full: true, statuses: [\"delivered\"],\n detailsKeys: ENABLED_SCAN_DETAILS_KEYS }),\n getTask: id => q.getTask(boardUid, id),\n appendDetail: async (id, patch) => { await appendBoundedDetail(boardUid, id, patch); },\n saveState: writeState,\n alarm: hostActivationAlarm,\n log,\n });\n } catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL ENABLED auto: ${errorText(error)}`); }\n } else log(\"ENABLED auto: UNKNOWN — brak odczytu projektu; dowód karty czeka na dostęp do tablicy\");\n try {\n const result = await engineRunHostActivation({ repo: REPO, stateDir: hostStateDir(), cards: activationCards, cardsKnown: activationCardsKnown, tick: s.tick, dryRun: DRY }, {\n git, remainingTickMs, alarm: hostActivationAlarm, infrastructureChecks, infrastructurePullRequest, log: line => log(`host-activation: ${line}`),\n });\n log(`host-activation: code=${result.code} target=${result.target ?? \"UNKNOWN\"}${result.detail ? ` reason=${result.detail}` : \"\"}`);\n if (result.code === \"activate\" && result.target) {\n lastTick(s, \"activation\", `aktywacja ${result.target}; ogon odroczony`, outcome === \"ok\");\n return true;\n }\n } catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL aktywacja: ${errorText(error)}`); }\n return false;\n };\n try {\n observedLoaded = loadedSha = readLoadedSha(REPO);\n s = readState((await engineFjConfig()).enabled);\n stateLoaded = true; blockedBefore = s.blocked;\n s.tick++; tickStarted = new Date().toISOString(); s.lastTickAt = tickStarted;\n log(`tick_started tick=${s.tick} at=${tickStarted} duration=UNKNOWN loaded=${loadedSha}`);\n loadEnvFiles();\n const { uid } = preflight();"
|
|
1661
1661
|
},
|
|
1662
1662
|
"finalization": {
|
|
1663
1663
|
"module": "maszynista/tick.ts",
|
|
1664
|
-
"startLine":
|
|
1665
|
-
"endLine":
|
|
1664
|
+
"startLine": 9725,
|
|
1665
|
+
"endLine": 9777,
|
|
1666
1666
|
"text": " } finally {\n // A persisted terminal FAIL is a card result; every unexpected exception above\n // remains a runtime failure, including DB errors inside card handling.\n if (!DRY && s.blocked > blockedBefore) {\n outcome = \"failed\";\n try { log(`FAIL: licznik blocked wzrósł ${blockedBefore} → ${s.blocked}; outcome=failed`); }\n catch (error) { console.error(`zapis licznika blocked: ${errorText(error)}`); }\n }\n clientStopped();\n // Early board failure still reaches the same host phase, at most once per tick.\n await hostPhase();\n tickPhase = \"finalizing\";\n try { if (!DRY) await finishHostActivation({ stateDir: hostStateDir(), outcome, tick: s.tick, runtimeFailed, observedLoaded }, { alarm: hostActivationAlarm, log }); }\n catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL breaker aktywacji: ${errorText(error)}`); }\n clientStopped();\n try { if (stateLoaded) writeState(s); }\n catch (error) { runtimeFailed = true; outcome = \"failed\"; if (!client) throw error; stopClient(); result.cleanup = true; }\n finally {\n if (!DRY) {\n try { if (readFileSync(LOCK, \"utf8\") === String(process.pid)) unlinkSync(LOCK); }\n catch (error) { if ((error as NodeJS.ErrnoException).code !== \"ENOENT\") { if (!client) throw error; stopClient(); result.cleanup = true; } }\n }\n const at = new Date().toISOString();\n const duration = tickStarted ? `${(Date.parse(at) - Date.parse(tickStarted)) / 1000}s` : \"UNKNOWN\";\n try {\n const { total, ops } = drainEgressCounters();\n const sorted = Object.entries(ops).sort(([, a], [, b]) => b.bytes - a.bytes);\n const summary = sorted.filter(([op]) => !op.includes(\":\")).slice(0, 12)\n .map(([op, counter]) => `${op}:${counter.calls}:${counter.bytes}`).join(\",\");\n const variants = sorted.filter(([op]) => op.includes(\":\")).slice(0, 6)\n .map(([op, counter]) => `${op}:${counter.calls}:${counter.bytes}`).join(\",\");\n log(`egress tick=${s.tick} total=${total} ops=${summary} variants=${variants}`);\n } catch { /* Optional metrics must never interrupt tick cleanup. */ }\n try { refreshTickReport(observedLoaded); log(`tick_finished tick=${s.tick} at=${at} outcome=${client && result.outcome === \"retry\" ? \"retry\" : outcome} duration=${duration} loaded=${loadedSha}`); }\n finally { clearTimeout(deadlineAlarm); tickDeadline = Number.POSITIVE_INFINITY; }\n }\n }\n }); } catch (error) {\n if (!client) throw error;\n stopClient(); result.cleanup = true;\n } finally {\n tickInstallation = previousInstallation;\n try { await installation.close(); }\n catch (error) {\n if (client) { stopClient(); result.cleanup = true; }\n else safeLog(`Zamknięcie instalacji nieudane: ${String(error)}`);\n }\n }\n if (client && result.outcome !== \"ok\") console.error(`Fabryka ${result.outcome === \"stop\" ? \"zatrzymana\" : \"retry\"}: ${result.reason}${result.cleanup ? \"; finalizacja niepotwierdzona — sprawdź stan i blokadę\" : \"\"}`);\n return client && result.outcome === \"stop\" ? 2 : code;\n}\n\nif (require.main === module && process.argv[2] !== \"--opencode-runner\") {"
|
|
1667
1667
|
},
|
|
1668
1668
|
"refreshTickReport": {
|
|
@@ -1688,6 +1688,6 @@
|
|
|
1688
1688
|
"status": 0,
|
|
1689
1689
|
"signal": null,
|
|
1690
1690
|
"stdout": "v24.3.0\n",
|
|
1691
|
-
"stderr": "(node:
|
|
1691
|
+
"stderr": "(node:15980) ExperimentalWarning: SQLite is an experimental feature and might change at any time\n(Use `node --trace-warnings ...` to show where the warning was created)\n"
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
package/dist/engine/tick.cjs
CHANGED
|
@@ -37628,7 +37628,7 @@ var init_constants = __esm({
|
|
|
37628
37628
|
"packages/client/src/constants.ts"() {
|
|
37629
37629
|
"use strict";
|
|
37630
37630
|
PACKAGE_NAME = "robisie";
|
|
37631
|
-
PACKAGE_VERSION = "0.5.
|
|
37631
|
+
PACKAGE_VERSION = "0.5.7";
|
|
37632
37632
|
SUPPORTED_CONTRACT_MAJOR = 1;
|
|
37633
37633
|
DEFAULT_ORIGIN = "https://robisie.app";
|
|
37634
37634
|
MCP_SERVER_NAME = "robisie";
|
|
@@ -47811,22 +47811,18 @@ function servesNsFrom(details2) {
|
|
|
47811
47811
|
const id2 = value.trim().toUpperCase();
|
|
47812
47812
|
return NS_CANON.includes(id2) ? id2 : null;
|
|
47813
47813
|
}
|
|
47814
|
-
function
|
|
47815
|
-
|
|
47816
|
-
if (
|
|
47814
|
+
function promotionCandidate(card, settings) {
|
|
47815
|
+
const candidate = clientPromotionCandidate(card);
|
|
47816
|
+
if (!candidate.promowalny) return candidate;
|
|
47817
47817
|
const details2 = card.details ?? {};
|
|
47818
|
-
if (
|
|
47819
|
-
return { promowalny: false, powod: "
|
|
47818
|
+
if (settings.hostRequirements) {
|
|
47819
|
+
if (servesNsFrom(details2) === null) return { promowalny: false, powod: "brak details.servesNS z kanonu N1\u2013N4" };
|
|
47820
|
+
if (!nonempty(details2.ns_proof)) return { promowalny: false, powod: "brak details.ns_proof" };
|
|
47821
|
+
if (briefSha(details2, card.seedBriefDigest) === null) return { promowalny: false, powod: "brak details.seed_brief" };
|
|
47822
|
+
if (!nonempty(card.specRef)) return { promowalny: false, powod: "brak specRef wskazuj\u0105cego brief" };
|
|
47823
|
+
if (!nonempty(details2.card_class)) return { promowalny: false, powod: "brak details.card_class" };
|
|
47820
47824
|
}
|
|
47821
|
-
|
|
47822
|
-
const admissionHold = admissionPromotionHold(details2);
|
|
47823
|
-
if (admissionHold) return { promowalny: false, powod: admissionHold };
|
|
47824
|
-
if (servesNsFrom(details2) === null) return { promowalny: false, powod: "brak details.servesNS z kanonu N1\u2013N4" };
|
|
47825
|
-
if (!nonempty(details2.ns_proof)) return { promowalny: false, powod: "brak details.ns_proof" };
|
|
47826
|
-
if (briefSha(details2, card.seedBriefDigest) === null) return { promowalny: false, powod: "brak details.seed_brief" };
|
|
47827
|
-
if (!nonempty(card.specRef)) return { promowalny: false, powod: "brak specRef wskazuj\u0105cego brief" };
|
|
47828
|
-
if (!nonempty(details2.card_class)) return { promowalny: false, powod: "brak details.card_class" };
|
|
47829
|
-
return { promowalny: true, powod: "kompletny pakiet zasiewu" };
|
|
47825
|
+
return { promowalny: true, powod: settings.hostRequirements ? "kompletny pakiet zasiewu" : "draft klienta" };
|
|
47830
47826
|
}
|
|
47831
47827
|
function clientPromotionCandidate(card) {
|
|
47832
47828
|
if (card.detailsReadError) return { promowalny: false, powod: card.detailsReadError };
|
|
@@ -47837,19 +47833,38 @@ function clientPromotionCandidate(card) {
|
|
|
47837
47833
|
const admissionHold = admissionPromotionHold(details2);
|
|
47838
47834
|
return admissionHold ? { promowalny: false, powod: admissionHold } : { promowalny: true, powod: "draft klienta" };
|
|
47839
47835
|
}
|
|
47840
|
-
function
|
|
47841
|
-
const candidate =
|
|
47836
|
+
function czyPromowalny(card, settings = HOST_SEED_GATE) {
|
|
47837
|
+
const candidate = promotionCandidate(card, settings);
|
|
47842
47838
|
if (!candidate.promowalny) return candidate;
|
|
47843
47839
|
const details2 = card.details ?? {};
|
|
47844
47840
|
const strings2 = (value) => Array.isArray(value) && value.length > 0 && value.every((item) => typeof item === "string" && item !== "");
|
|
47845
47841
|
if (!(typeof details2.done_when === "string" && details2.done_when !== "") && !strings2(details2.done_when)) {
|
|
47846
|
-
return { promowalny: false, powod:
|
|
47842
|
+
return { promowalny: false, powod: 'niepoprawne details.done_when: wymagany niepusty string lub tablica niepustych string\xF3w; wz\xF3r ["Mierzalny efekt"]' };
|
|
47847
47843
|
}
|
|
47848
47844
|
if (details2.card_class !== "executable" && details2.card_class !== "non_executable") {
|
|
47849
47845
|
return { promowalny: false, powod: "niepoprawne details.card_class: wymagane executable lub non_executable" };
|
|
47850
47846
|
}
|
|
47851
|
-
if (!strings2(details2.scope)) return { promowalny: false, powod:
|
|
47852
|
-
|
|
47847
|
+
if (!strings2(details2.scope)) return { promowalny: false, powod: 'niepoprawne details.scope: wymagana niepusta tablica niepustych string\xF3w; wz\xF3r ["produkt.cjs"]' };
|
|
47848
|
+
if (settings.template) {
|
|
47849
|
+
if (!strings2(details2.done_when) || details2.done_when.some((item) => !item.trim())) {
|
|
47850
|
+
return { promowalny: false, powod: 'niepoprawne details.done_when: wz\xF3r ["Mierzalny efekt"] \u2014 tablica tre\u015Bci po trim' };
|
|
47851
|
+
}
|
|
47852
|
+
try {
|
|
47853
|
+
localEffectCheck(card);
|
|
47854
|
+
} catch {
|
|
47855
|
+
return { promowalny: false, powod: 'niepoprawne details.effect_check: wz\xF3r string JSON {"v":1,"source":"produkt/usage.jsonl","criteria":[0],"min":3,"deadline":"2099-12-31T23:59:59Z"}' };
|
|
47856
|
+
}
|
|
47857
|
+
const provenance = details2.seed_provenance;
|
|
47858
|
+
const providers = record2(provenance) ? provenance.authoring_providers : null;
|
|
47859
|
+
if (!record2(providers) || ["by", "proposal_by", "packager_by"].some((key) => {
|
|
47860
|
+
const value = providers[key];
|
|
47861
|
+
return typeof value !== "string" || !["openai", "anthropic", "google", "moonshot", "deepseek", "alibaba", "minimax", "zhipu"].includes(value.trim().toLowerCase().split("/")[0]);
|
|
47862
|
+
})) return { promowalny: false, powod: 'niepoprawne details.seed_provenance.authoring_providers: wz\xF3r {"by":"<faktyczny dostawca autora>","proposal_by":"<faktyczny dostawca propozycji>","packager_by":"<faktyczny dostawca pakietu>"}; dostawcy: openai/anthropic/google/moonshot/deepseek/alibaba/minimax/zhipu' };
|
|
47863
|
+
}
|
|
47864
|
+
return { promowalny: true, powod: settings.hostRequirements ? "kompletny pakiet zasiewu" : "kompletny przeno\u015Bny kontrakt klienta" };
|
|
47865
|
+
}
|
|
47866
|
+
function czyPromowalnyKlienta(card) {
|
|
47867
|
+
return czyPromowalny(card, CLIENT_SEED_GATE);
|
|
47853
47868
|
}
|
|
47854
47869
|
function podazSzkicow(cards, selectOrigin) {
|
|
47855
47870
|
return cards.filter((card) => card.status === "draft" && !draftHeld(card.details, card.seedBriefDigest) && !admissionPromotionHold(card.details ?? {}) && (czyPromowalny(card).promowalny || card.details?.origin === selectOrigin && servesNsFrom(card.details) !== null)).length;
|
|
@@ -50112,7 +50127,7 @@ function irreversibleCleared(details2, sha5) {
|
|
|
50112
50127
|
const m = details2?.["maszynista"];
|
|
50113
50128
|
return !!m && typeof m === "object" && m["irreversible_cleared_sha"] === sha5;
|
|
50114
50129
|
}
|
|
50115
|
-
var import_node_path5, import_node_path6, import_node_crypto2, import_gray_matter, NS_CANON, PROPOSAL_ORIGIN, HOLD_DETAILS_KEYS, PROMOTION_GATE_SCAN_DETAILS_KEYS, CLIENT_PROMOTION_DETAILS_KEYS, PROMOTION_GATE_DETAILS_KEYS, AUTHORITY_ACTION_DETAILS_KEYS, AUTHORITY_DETAILS_KEYS, SCOPE_DETAILS_KEYS, WORKER_ENGINE_DETAILS_KEYS, BENCH_DETAILS_KEYS, DUTY_NOTE_DETAILS_KEYS, DECISION_DETAILS_KEYS, READY_CONSUMER_DETAILS_KEYS, FACTORY_DEPENDENCY_KEYS, OBLIGATION_CONSUMER_DETAILS_KEYS, SUPPLY_DETAILS_KEYS, TESTER_SELECTION_DETAILS_KEYS, ACTIVE_RECOVERY_DETAILS_KEYS, SCOPE_RESERVATION_DETAILS_KEYS, DECISION_ROUTING_RULES, DECISION_HEADER, DEFAULT_PROPOSAL_TRACK, HUMAN_PATTERNS, MAX_REVIEW_ROUNDS, LOW_SHELF_MIN_READY, LOW_SHELF_CONFIRM_TICKS, LOW_SHELF_REPEAT_MS, UNKNOWN_BOARD_FACTS, EMPTY_SHELF_IGNORED_STATUSES, SIGNED_ZERO_PREFIX, STRICT_ISO_Z, RUCHB_EVIDENCE_WINDOW_MS, RUCHB_HOLD_MAX_MS, RUCHB_BUZZ_MIN_TEXT, CEO_MOVE_ID, CEO_MOVE_REASON_PREFIX, EMPTY_SHELF_ID, EMPTY_SHELF_RENUDGE_MS, EMPTY_SHELF_JARVIS_REPEAT_MS, CR_LIVENESS_ID, CR_LIVENESS_GRACE_MS, CR_LIVENESS_RENUDGE_MS, BLINDNESS_CARD_ID, MISSING_CONDITION_CARD_ID, RESPONSE_GUARD_ID, RESPONSE_GUARD_WATCHED_ROLES, RESPONSE_GUARD_DIRECTIVE_SENDERS, RESPONSE_GUARD_THRESHOLD_MS, KNOWN_DECISION_KINDS, BENCH_DECISION_MINUTES, DEFAULT_TRACK_KEY, AUTOMATIC_TESTER_RETEST_DECISION, HISTORICAL_TESTER_RECOVERY, TESTER_VITEST_TIMEOUTS, ISOLATED_DB_RUNNERS, PROJECT_ARCHIVE_DB, STALL_SIGNAL_AFTER_MS, STALL_ACTIVE_FLOW_MS, STALL_DIAGNOSTIC_FRESH_MS, STALL_SHADOW_MAX, STALL_DIAGNOSTIC_REPEAT_MS, STALL_EXCLUDED_STATUSES, RULING_VERDICTS, RULING_TEXT_FIELDS, CODEX_DEFAULT_MODEL, CODEX_DEFAULT_EFFORT, CODEX_STRATEGIC_MODEL, EFFORTS, MODEL_RE, CI_DISK_HOLD_STEP, CI_DISK_HOLD_JOBS;
|
|
50130
|
+
var import_node_path5, import_node_path6, import_node_crypto2, import_gray_matter, NS_CANON, PROPOSAL_ORIGIN, HOLD_DETAILS_KEYS, PROMOTION_GATE_SCAN_DETAILS_KEYS, CLIENT_PROMOTION_DETAILS_KEYS, PROMOTION_GATE_DETAILS_KEYS, AUTHORITY_ACTION_DETAILS_KEYS, AUTHORITY_DETAILS_KEYS, SCOPE_DETAILS_KEYS, WORKER_ENGINE_DETAILS_KEYS, BENCH_DETAILS_KEYS, DUTY_NOTE_DETAILS_KEYS, DECISION_DETAILS_KEYS, READY_CONSUMER_DETAILS_KEYS, FACTORY_DEPENDENCY_KEYS, OBLIGATION_CONSUMER_DETAILS_KEYS, SUPPLY_DETAILS_KEYS, TESTER_SELECTION_DETAILS_KEYS, ACTIVE_RECOVERY_DETAILS_KEYS, SCOPE_RESERVATION_DETAILS_KEYS, HOST_SEED_GATE, CLIENT_SEED_GATE, DECISION_ROUTING_RULES, DECISION_HEADER, DEFAULT_PROPOSAL_TRACK, HUMAN_PATTERNS, MAX_REVIEW_ROUNDS, LOW_SHELF_MIN_READY, LOW_SHELF_CONFIRM_TICKS, LOW_SHELF_REPEAT_MS, UNKNOWN_BOARD_FACTS, EMPTY_SHELF_IGNORED_STATUSES, SIGNED_ZERO_PREFIX, STRICT_ISO_Z, RUCHB_EVIDENCE_WINDOW_MS, RUCHB_HOLD_MAX_MS, RUCHB_BUZZ_MIN_TEXT, CEO_MOVE_ID, CEO_MOVE_REASON_PREFIX, EMPTY_SHELF_ID, EMPTY_SHELF_RENUDGE_MS, EMPTY_SHELF_JARVIS_REPEAT_MS, CR_LIVENESS_ID, CR_LIVENESS_GRACE_MS, CR_LIVENESS_RENUDGE_MS, BLINDNESS_CARD_ID, MISSING_CONDITION_CARD_ID, RESPONSE_GUARD_ID, RESPONSE_GUARD_WATCHED_ROLES, RESPONSE_GUARD_DIRECTIVE_SENDERS, RESPONSE_GUARD_THRESHOLD_MS, KNOWN_DECISION_KINDS, BENCH_DECISION_MINUTES, DEFAULT_TRACK_KEY, AUTOMATIC_TESTER_RETEST_DECISION, HISTORICAL_TESTER_RECOVERY, TESTER_VITEST_TIMEOUTS, ISOLATED_DB_RUNNERS, PROJECT_ARCHIVE_DB, STALL_SIGNAL_AFTER_MS, STALL_ACTIVE_FLOW_MS, STALL_DIAGNOSTIC_FRESH_MS, STALL_SHADOW_MAX, STALL_DIAGNOSTIC_REPEAT_MS, STALL_EXCLUDED_STATUSES, RULING_VERDICTS, RULING_TEXT_FIELDS, CODEX_DEFAULT_MODEL, CODEX_DEFAULT_EFFORT, CODEX_STRATEGIC_MODEL, EFFORTS, MODEL_RE, CI_DISK_HOLD_STEP, CI_DISK_HOLD_JOBS;
|
|
50116
50131
|
var init_lib = __esm({
|
|
50117
50132
|
"maszynista/lib.ts"() {
|
|
50118
50133
|
"use strict";
|
|
@@ -50124,12 +50139,13 @@ var init_lib = __esm({
|
|
|
50124
50139
|
import_node_crypto2 = require("node:crypto");
|
|
50125
50140
|
import_gray_matter = __toESM(require_gray_matter());
|
|
50126
50141
|
init_worker_env();
|
|
50142
|
+
init_local_receiver();
|
|
50127
50143
|
init_done_gate();
|
|
50128
50144
|
NS_CANON = ["N1", "N2", "N3", "N4"];
|
|
50129
50145
|
PROPOSAL_ORIGIN = "reksio/propozycja";
|
|
50130
50146
|
HOLD_DETAILS_KEYS = ["reksio_withheld", "hold", "seed_obligation", "seed_brief"];
|
|
50131
|
-
PROMOTION_GATE_SCAN_DETAILS_KEYS = ["reksio_withheld", "hold", "seed_obligation", "admission", "servesNS", "ns_proof", "card_class"];
|
|
50132
|
-
CLIENT_PROMOTION_DETAILS_KEYS = [...PROMOTION_GATE_SCAN_DETAILS_KEYS
|
|
50147
|
+
PROMOTION_GATE_SCAN_DETAILS_KEYS = ["reksio_withheld", "hold", "seed_obligation", "admission", "servesNS", "ns_proof", "card_class", "done_when", "scope", "effect_check", "seed_provenance"];
|
|
50148
|
+
CLIENT_PROMOTION_DETAILS_KEYS = [...PROMOTION_GATE_SCAN_DETAILS_KEYS];
|
|
50133
50149
|
PROMOTION_GATE_DETAILS_KEYS = [...PROMOTION_GATE_SCAN_DETAILS_KEYS, "seed_brief"];
|
|
50134
50150
|
AUTHORITY_ACTION_DETAILS_KEYS = ["done_when", "doneWhen", "acceptance", "outcome", "boundaries", "first_deliverable_value"];
|
|
50135
50151
|
AUTHORITY_DETAILS_KEYS = ["authority", "repo_write", "execution_owner", ...AUTHORITY_ACTION_DETAILS_KEYS];
|
|
@@ -50145,6 +50161,8 @@ var init_lib = __esm({
|
|
|
50145
50161
|
TESTER_SELECTION_DETAILS_KEYS = ["landed", "test", "retest", "enabled_evidence", "real_use_evidence", "done_when", "seed_provenance", "acceptance"];
|
|
50146
50162
|
ACTIVE_RECOVERY_DETAILS_KEYS = ["maszynista", "review", "reksio_withheld"];
|
|
50147
50163
|
SCOPE_RESERVATION_DETAILS_KEYS = [...SCOPE_DETAILS_KEYS, "scope_blocked_at", "maszynista"];
|
|
50164
|
+
HOST_SEED_GATE = { hostRequirements: true, documentHook: true, template: false };
|
|
50165
|
+
CLIENT_SEED_GATE = { hostRequirements: false, documentHook: false, template: true };
|
|
50148
50166
|
DECISION_ROUTING_RULES = Object.freeze({
|
|
50149
50167
|
version: 1,
|
|
50150
50168
|
owner: "reksio",
|
|
@@ -76942,7 +76960,7 @@ function readLocalDeliveries(context, diagnostic = console.error) {
|
|
|
76942
76960
|
}
|
|
76943
76961
|
function validateJournal(context, input, journal) {
|
|
76944
76962
|
const p = journal.prepared;
|
|
76945
|
-
if (journal.attemptId !== attemptFor(input) || journal.repo !== context.repo || journal.target !== context.target || !same(journal.input, inputSchema.parse(input)) || !same(journal.commands, commandsFor(context)) || p.mode !== "fast-forward" || p.target !== context.target || p.ref !== `refs/heads/${context.target}` || p.taskSha !== input.sha || p.targetSha === input.sha) {
|
|
76963
|
+
if (journal.attemptId !== attemptFor(input) || journal.repo !== context.repo || journal.target !== context.target || !same(journal.input, inputSchema.parse(input)) || !["acknowledged", "failed", "abandoned"].includes(journal.phase) && !same(journal.commands, commandsFor(context)) || p.mode !== "fast-forward" || p.target !== context.target || p.ref !== `refs/heads/${context.target}` || p.taskSha !== input.sha || p.targetSha === input.sha) {
|
|
76946
76964
|
throw new Error("Obcy dziennik lub zmieniony kontrakt pr\xF3by");
|
|
76947
76965
|
}
|
|
76948
76966
|
if (["checked", "delivering", "ref-moved", "evidenced", "acknowledged"].includes(journal.phase) || journal.phase === "abandoned" && journal.receipt) {
|
|
@@ -322627,11 +322645,20 @@ function promotionSnapshot(card) {
|
|
|
322627
322645
|
}
|
|
322628
322646
|
};
|
|
322629
322647
|
}
|
|
322630
|
-
function
|
|
322631
|
-
|
|
322632
|
-
|
|
322633
|
-
|
|
322648
|
+
function installationSeedGateSettings() {
|
|
322649
|
+
return engineClient() ? CLIENT_SEED_GATE : HOST_SEED_GATE;
|
|
322650
|
+
}
|
|
322651
|
+
function runSeedGate(card, settings = installationSeedGateSettings()) {
|
|
322652
|
+
const candidate = promotionCandidate(card, settings);
|
|
322653
|
+
if (!candidate.promowalny) return { allowed: false, reason: candidate.powod };
|
|
322654
|
+
if (settings.documentHook) {
|
|
322655
|
+
const hook = runSeedDocumentHook(card);
|
|
322656
|
+
if (!hook.allowed) return hook;
|
|
322634
322657
|
}
|
|
322658
|
+
const verdict = czyPromowalny(card, settings);
|
|
322659
|
+
return { allowed: verdict.promowalny, reason: verdict.powod, ...!verdict.promowalny ? { fieldRefusal: true } : {} };
|
|
322660
|
+
}
|
|
322661
|
+
function runSeedDocumentHook(card) {
|
|
322635
322662
|
const gatePath = import_node_path52.default.join(REPO, ".claude/reksio/hooks/seed-gate.sh");
|
|
322636
322663
|
const payload = JSON.stringify({
|
|
322637
322664
|
tool_name: "mcp__robisie-planer__update_task",
|
|
@@ -322684,8 +322711,8 @@ async function seedBridgePhase(uid, projectId2, dry = DRY2) {
|
|
|
322684
322711
|
}
|
|
322685
322712
|
async function promotionPhase(uid, projectId2, options2 = {}) {
|
|
322686
322713
|
const phaseLog = options2.log ?? log2;
|
|
322687
|
-
const
|
|
322688
|
-
const eligibility =
|
|
322714
|
+
const settings = options2.settings ?? installationSeedGateSettings();
|
|
322715
|
+
const eligibility = (card) => czyPromowalny(card, settings);
|
|
322689
322716
|
const reservationState = options2.state ?? parseState(null).state;
|
|
322690
322717
|
const reservationReader = createScopeReader(reservationState, uid, projectId2);
|
|
322691
322718
|
const rawThreshold = options2.threshold ?? process.env.MASZYNISTA_PROMOTION_READY_THRESHOLD ?? 6;
|
|
@@ -322778,7 +322805,7 @@ async function promotionPhase(uid, projectId2, options2 = {}) {
|
|
|
322778
322805
|
for (const card of drafts) {
|
|
322779
322806
|
if (seen.has(card.id)) continue;
|
|
322780
322807
|
seen.add(card.id);
|
|
322781
|
-
const verdict =
|
|
322808
|
+
const verdict = promotionCandidate(card, settings);
|
|
322782
322809
|
if (!verdict.promowalny) continue;
|
|
322783
322810
|
complete++;
|
|
322784
322811
|
if (card.dependsOn?.length && !factoryDependenciesReady(card, predecessors)) {
|
|
@@ -322818,7 +322845,7 @@ async function promotionPhase(uid, projectId2, options2 = {}) {
|
|
|
322818
322845
|
slotTries += 1;
|
|
322819
322846
|
let gate;
|
|
322820
322847
|
try {
|
|
322821
|
-
gate =
|
|
322848
|
+
gate = options2.gate ? options2.gate(candidate) : runSeedGate(candidate, settings);
|
|
322822
322849
|
} catch (error48) {
|
|
322823
322850
|
const detail2 = `nie umiem odczyta\u0107 bramy: ${errorText5(error48)}`;
|
|
322824
322851
|
phaseLog(`promocja: ${candidate.id} ${detail2} \u2014 ko\u0144cz\u0119 batch`);
|
|
@@ -322830,7 +322857,7 @@ async function promotionPhase(uid, projectId2, options2 = {}) {
|
|
|
322830
322857
|
return finish("unreadable", detail2, candidate.id);
|
|
322831
322858
|
}
|
|
322832
322859
|
if (!gate.allowed) {
|
|
322833
|
-
if (
|
|
322860
|
+
if (gate.fieldRefusal) slotTries--;
|
|
322834
322861
|
phaseLog(`promocja: ${candidate.id} brama odm\xF3wi\u0142a: ${gate.reason} \u2014 pozostaje draft`);
|
|
322835
322862
|
refused.push({ id: candidate.id, reason: gate.reason });
|
|
322836
322863
|
continue;
|
|
@@ -324224,6 +324251,7 @@ async function main2() {
|
|
|
324224
324251
|
try {
|
|
324225
324252
|
code = await withPlannerQueries(installation.planner, async () => {
|
|
324226
324253
|
tickInstallation = installation;
|
|
324254
|
+
const seedGateSettings = installationSeedGateSettings();
|
|
324227
324255
|
const errorText6 = client ? clientTickFailure : hostErrorText;
|
|
324228
324256
|
const loadEnvFiles3 = installation.loadEnvironment;
|
|
324229
324257
|
const preflight2 = () => {
|
|
@@ -324600,7 +324628,7 @@ async function main2() {
|
|
|
324600
324628
|
detailsKeys: DRAFT_SUPPLY_DETAILS_KEYS
|
|
324601
324629
|
});
|
|
324602
324630
|
ringDraftChanges(draftRows);
|
|
324603
|
-
const states = podazTrzyStany(draftRows, [SELECT_ORIGIN, PROPOSAL_ORIGIN], process.env.MASZYNISTA_ZASIEW_LIVE === "1", Date.now(),
|
|
324631
|
+
const states = podazTrzyStany(draftRows, [SELECT_ORIGIN, PROPOSAL_ORIGIN], process.env.MASZYNISTA_ZASIEW_LIVE === "1", Date.now(), (card) => czyPromowalny(card, seedGateSettings));
|
|
324604
324632
|
waitingPacketIds = states.czekajaNaPakietIds;
|
|
324605
324633
|
activeProposalIds = states.activeProposalIds;
|
|
324606
324634
|
overdueProposalIds = states.overdueProposalIds;
|
|
@@ -324614,7 +324642,7 @@ async function main2() {
|
|
|
324614
324642
|
await refillPhase(s, supply);
|
|
324615
324643
|
throw draftReadError;
|
|
324616
324644
|
}
|
|
324617
|
-
const promotion = await promotionPhase(uid, projectId2, { state: s, onBoard: (rows) => {
|
|
324645
|
+
const promotion = await promotionPhase(uid, projectId2, { state: s, settings: seedGateSettings, onBoard: (rows) => {
|
|
324618
324646
|
if (!decisionCards) return;
|
|
324619
324647
|
const previous = new Map(queueCards.map((card) => [card.id, card]));
|
|
324620
324648
|
refreshBoardSnapshot(rows.map((card) => ({
|
|
@@ -324939,7 +324967,7 @@ var init_tick = __esm({
|
|
|
324939
324967
|
"out"
|
|
324940
324968
|
];
|
|
324941
324969
|
RECOVERY_DETAILS_KEYS = [...ACTIVE_RECOVERY_DETAILS_KEYS, ...REVIEW_RECOVERY_IDENTITY_KEYS, ...LANDING_RECOVERY_DETAILS_KEYS, ...SCOPE_DETAILS_KEYS, ...CARD_OWNER_DETAILS_KEYS, "reksio_withheld"];
|
|
324942
|
-
PROMOTION_BOARD_DETAILS_KEYS = [...READY_DETAILS_KEYS, ...FACTORY_DEPENDENCY_KEYS];
|
|
324970
|
+
PROMOTION_BOARD_DETAILS_KEYS = [...READY_DETAILS_KEYS, ...FACTORY_DEPENDENCY_KEYS, ...CLIENT_PROMOTION_DETAILS_KEYS];
|
|
324943
324971
|
PROMOTION_DRAFT_DETAILS_KEYS = [...CLIENT_PROMOTION_DETAILS_KEYS];
|
|
324944
324972
|
DRAFT_SUPPLY_DETAILS_KEYS = [...PROMOTION_DRAFT_DETAILS_KEYS, ...SUPPLY_DETAILS_KEYS];
|
|
324945
324973
|
SCAN_OPTIONS = { briefDigest: true, detailsFields: {
|
package/dist/roles.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface Role {
|
|
|
17
17
|
export declare function rolesDir(): string;
|
|
18
18
|
export declare function parseRole(file: Role["file"], text: string): Role;
|
|
19
19
|
export declare function loadRoles(dir?: string): Role[];
|
|
20
|
-
export declare const MANAGED_LINE = "<!-- robisie:managed 0.5.
|
|
20
|
+
export declare const MANAGED_LINE = "<!-- robisie:managed 0.5.7 \u2014 plik zarz\u0105dzany przez `npx robisie`; `npx robisie uninstall` go usunie -->";
|
|
21
21
|
export type AgentFlavor = "claude" | "codex" | "opencode";
|
|
22
22
|
/** How the operator starts the Builder for one card in its own session (the card id is not a secret). */
|
|
23
23
|
export declare function builderStartCommand(flavor: AgentFlavor, codexRolePath?: string): string;
|
package/docs/README.en.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# robisie — from account to accepted card (package 0.5.
|
|
1
|
+
# robisie — from account to accepted card (package 0.5.7) <!-- x-release-please-version -->
|
|
2
2
|
|
|
3
3
|
In the project directory with its engine configuration, run `npx robisie init`, then `npx robisie doctor`: init prepares the project goal and tester protection list, and doctor checks both inputs.
|
|
4
4
|
|
package/docs/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# robisie — od konta do odebranej karty (paczka 0.5.
|
|
1
|
+
# robisie — od konta do odebranej karty (paczka 0.5.7) <!-- x-release-please-version -->
|
|
2
2
|
|
|
3
3
|
W katalogu projektu z konfiguracją silnika uruchom `npx robisie init`, potem `npx robisie doctor`: init przygotuje cel projektu i listę ochrony testera, a doctor sprawdzi oba wejścia.
|
|
4
4
|
|
package/package.json
CHANGED