@bastani/atomic 0.9.35-alpha.4 → 0.9.35-alpha.5
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 +6 -0
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +12 -0
- package/dist/builtin/workflows/package.json +1 -1
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +114 -45
- package/dist/builtin/workflows/src/index.js +98 -34
- package/dist/builtin/workflows/src/shared/authoring-contract-ui.d.ts +2 -0
- package/dist/core/settings-schema.d.ts +1 -0
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +5 -0
- package/dist/core/settings-schema.js.map +1 -1
- package/docs/settings.md +3 -0
- package/docs/workflows/api-reference.md +4 -1
- package/docs/workflows/operations.md +2 -0
- package/npm-shrinkwrap.json +32 -32
- package/package.json +3 -3
- package/schemas/settings.schema.json +6 -0
|
@@ -480,6 +480,8 @@ If registration times out or reports an unavailable database while the run is pa
|
|
|
480
480
|
|
|
481
481
|
Cancellation or the deadline can leave a stored run identity without valid admission metadata, even when PostgreSQL is healthy but slow. After an unavailable-database failure, keep the original Atomic process open, restore PostgreSQL, and explicitly resume the same full run ID. Atomic can reconcile its retained pre-execution identity with the database before admission, without running workflow code during reconciliation. Missing records are repaired only for that known failed admission; conflicting, deleted, or malformed records are refused. A fresh process without valid admission metadata still cannot safely reconstruct the invocation. Keep the ID and report that failure rather than deleting or resetting records. Cancelled and explicitly nonresumable runs are not revived.
|
|
482
482
|
|
|
483
|
+
A repeated registration timeout can mean the original registration never finished. Atomic waits within the database admission deadline and does not start workflow code or publish resumable state while that registration remains unresolved. Restoring PostgreSQL alone may not complete a registration abandoned by its original request. Keep the run ID and report the repeated timeout; do not delete database records to force admission. An identity without saved admission metadata is omitted from durable history and cannot be resumed from a fresh process.
|
|
484
|
+
|
|
483
485
|
Awaited checkpoint writes also have a two-minute database deadline, including time waiting behind earlier writes for the same run. If a checkpoint fails because PostgreSQL is unavailable, the run keeps its local failure without waiting on another database write to finalize it. Restore PostgreSQL and explicitly resume the same ID; Atomic reads saved receipts before executing unfinished work. A committed checkpoint is reused even if its acknowledgement was lost. If no receipt was saved, the external operation's outcome remains unknown and its callback may run again. Reconcile external outcomes or use idempotency keys before resuming operations that must not repeat. Inspection alone never repairs records or starts execution.
|
|
484
486
|
|
|
485
487
|
If recovery reports `Workflow definition not found`, restore the matching workflow definition and run `/workflow reload`, then retry resume with the same full run ID. A failed resume preparation does not discard the recovery target or saved receipts. Do not start a new run to bypass the missing definition.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.35-alpha.
|
|
3
|
+
"version": "0.9.35-alpha.5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@bastani/atomic",
|
|
9
|
-
"version": "0.9.35-alpha.
|
|
9
|
+
"version": "0.9.35-alpha.5",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@bastani/atomic-natives": "0.9.35-alpha.
|
|
13
|
-
"@bastani/pi-ai": "0.9.35-alpha.
|
|
12
|
+
"@bastani/atomic-natives": "0.9.35-alpha.5",
|
|
13
|
+
"@bastani/pi-ai": "0.9.35-alpha.5",
|
|
14
14
|
"@dbos-inc/dbos-sdk": "4.25.14",
|
|
15
15
|
"@earendil-works/pi-agent-core": "1.2.0",
|
|
16
16
|
"@earendil-works/pi-codemode": "1.2.0",
|
|
@@ -430,18 +430,18 @@
|
|
|
430
430
|
}
|
|
431
431
|
},
|
|
432
432
|
"node_modules/@bastani/atomic-natives": {
|
|
433
|
-
"version": "0.9.35-alpha.
|
|
434
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.35-alpha.
|
|
433
|
+
"version": "0.9.35-alpha.5",
|
|
434
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.35-alpha.5.tgz",
|
|
435
435
|
"license": "MIT",
|
|
436
436
|
"optionalDependencies": {
|
|
437
|
-
"@bastani/atomic-natives-darwin-arm64": "0.9.35-alpha.
|
|
438
|
-
"@bastani/atomic-natives-darwin-x64": "0.9.35-alpha.
|
|
439
|
-
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.35-alpha.
|
|
440
|
-
"@bastani/atomic-natives-linux-arm64-musl": "0.9.35-alpha.
|
|
441
|
-
"@bastani/atomic-natives-linux-x64-gnu": "0.9.35-alpha.
|
|
442
|
-
"@bastani/atomic-natives-linux-x64-musl": "0.9.35-alpha.
|
|
443
|
-
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.35-alpha.
|
|
444
|
-
"@bastani/atomic-natives-win32-x64-msvc": "0.9.35-alpha.
|
|
437
|
+
"@bastani/atomic-natives-darwin-arm64": "0.9.35-alpha.5",
|
|
438
|
+
"@bastani/atomic-natives-darwin-x64": "0.9.35-alpha.5",
|
|
439
|
+
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.35-alpha.5",
|
|
440
|
+
"@bastani/atomic-natives-linux-arm64-musl": "0.9.35-alpha.5",
|
|
441
|
+
"@bastani/atomic-natives-linux-x64-gnu": "0.9.35-alpha.5",
|
|
442
|
+
"@bastani/atomic-natives-linux-x64-musl": "0.9.35-alpha.5",
|
|
443
|
+
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.35-alpha.5",
|
|
444
|
+
"@bastani/atomic-natives-win32-x64-msvc": "0.9.35-alpha.5"
|
|
445
445
|
},
|
|
446
446
|
"engines": {
|
|
447
447
|
"bun": ">=1.4.2",
|
|
@@ -449,8 +449,8 @@
|
|
|
449
449
|
}
|
|
450
450
|
},
|
|
451
451
|
"node_modules/@bastani/atomic-natives-darwin-arm64": {
|
|
452
|
-
"version": "0.9.35-alpha.
|
|
453
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.35-alpha.
|
|
452
|
+
"version": "0.9.35-alpha.5",
|
|
453
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.35-alpha.5.tgz",
|
|
454
454
|
"license": "MIT",
|
|
455
455
|
"os": [
|
|
456
456
|
"darwin"
|
|
@@ -461,8 +461,8 @@
|
|
|
461
461
|
"optional": true
|
|
462
462
|
},
|
|
463
463
|
"node_modules/@bastani/atomic-natives-darwin-x64": {
|
|
464
|
-
"version": "0.9.35-alpha.
|
|
465
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.35-alpha.
|
|
464
|
+
"version": "0.9.35-alpha.5",
|
|
465
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.35-alpha.5.tgz",
|
|
466
466
|
"license": "MIT",
|
|
467
467
|
"os": [
|
|
468
468
|
"darwin"
|
|
@@ -473,8 +473,8 @@
|
|
|
473
473
|
"optional": true
|
|
474
474
|
},
|
|
475
475
|
"node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
|
|
476
|
-
"version": "0.9.35-alpha.
|
|
477
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.35-alpha.
|
|
476
|
+
"version": "0.9.35-alpha.5",
|
|
477
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.35-alpha.5.tgz",
|
|
478
478
|
"license": "MIT",
|
|
479
479
|
"os": [
|
|
480
480
|
"linux"
|
|
@@ -488,8 +488,8 @@
|
|
|
488
488
|
"optional": true
|
|
489
489
|
},
|
|
490
490
|
"node_modules/@bastani/atomic-natives-linux-arm64-musl": {
|
|
491
|
-
"version": "0.9.35-alpha.
|
|
492
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.35-alpha.
|
|
491
|
+
"version": "0.9.35-alpha.5",
|
|
492
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.35-alpha.5.tgz",
|
|
493
493
|
"license": "MIT",
|
|
494
494
|
"os": [
|
|
495
495
|
"linux"
|
|
@@ -503,8 +503,8 @@
|
|
|
503
503
|
"optional": true
|
|
504
504
|
},
|
|
505
505
|
"node_modules/@bastani/atomic-natives-linux-x64-gnu": {
|
|
506
|
-
"version": "0.9.35-alpha.
|
|
507
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.35-alpha.
|
|
506
|
+
"version": "0.9.35-alpha.5",
|
|
507
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.35-alpha.5.tgz",
|
|
508
508
|
"license": "MIT",
|
|
509
509
|
"os": [
|
|
510
510
|
"linux"
|
|
@@ -518,8 +518,8 @@
|
|
|
518
518
|
"optional": true
|
|
519
519
|
},
|
|
520
520
|
"node_modules/@bastani/atomic-natives-linux-x64-musl": {
|
|
521
|
-
"version": "0.9.35-alpha.
|
|
522
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.35-alpha.
|
|
521
|
+
"version": "0.9.35-alpha.5",
|
|
522
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.35-alpha.5.tgz",
|
|
523
523
|
"license": "MIT",
|
|
524
524
|
"os": [
|
|
525
525
|
"linux"
|
|
@@ -533,8 +533,8 @@
|
|
|
533
533
|
"optional": true
|
|
534
534
|
},
|
|
535
535
|
"node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
|
|
536
|
-
"version": "0.9.35-alpha.
|
|
537
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.35-alpha.
|
|
536
|
+
"version": "0.9.35-alpha.5",
|
|
537
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.35-alpha.5.tgz",
|
|
538
538
|
"license": "MIT",
|
|
539
539
|
"os": [
|
|
540
540
|
"win32"
|
|
@@ -545,8 +545,8 @@
|
|
|
545
545
|
"optional": true
|
|
546
546
|
},
|
|
547
547
|
"node_modules/@bastani/atomic-natives-win32-x64-msvc": {
|
|
548
|
-
"version": "0.9.35-alpha.
|
|
549
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.35-alpha.
|
|
548
|
+
"version": "0.9.35-alpha.5",
|
|
549
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.35-alpha.5.tgz",
|
|
550
550
|
"license": "MIT",
|
|
551
551
|
"os": [
|
|
552
552
|
"win32"
|
|
@@ -557,8 +557,8 @@
|
|
|
557
557
|
"optional": true
|
|
558
558
|
},
|
|
559
559
|
"node_modules/@bastani/pi-ai": {
|
|
560
|
-
"version": "0.9.35-alpha.
|
|
561
|
-
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.35-alpha.
|
|
560
|
+
"version": "0.9.35-alpha.5",
|
|
561
|
+
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.35-alpha.5.tgz",
|
|
562
562
|
"license": "MIT",
|
|
563
563
|
"dependencies": {
|
|
564
564
|
"@anthropic-ai/sdk": "0.129.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.35-alpha.
|
|
3
|
+
"version": "0.9.35-alpha.5",
|
|
4
4
|
"description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"atomicConfig": {
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@bastani/atomic-natives": "0.9.35-alpha.
|
|
82
|
-
"@bastani/pi-ai": "0.9.35-alpha.
|
|
81
|
+
"@bastani/atomic-natives": "0.9.35-alpha.5",
|
|
82
|
+
"@bastani/pi-ai": "0.9.35-alpha.5",
|
|
83
83
|
"@dbos-inc/dbos-sdk": "4.25.14",
|
|
84
84
|
"@earendil-works/pi-agent-core": "1.2.0",
|
|
85
85
|
"@earendil-works/pi-codemode": "1.2.0",
|
|
@@ -501,6 +501,12 @@
|
|
|
501
501
|
"durability": {
|
|
502
502
|
"type": "object",
|
|
503
503
|
"properties": {
|
|
504
|
+
"poolSize": {
|
|
505
|
+
"type": "integer",
|
|
506
|
+
"minimum": 2,
|
|
507
|
+
"default": 10,
|
|
508
|
+
"description": "Maximum connections per workflow database pool (at least 2)."
|
|
509
|
+
},
|
|
504
510
|
"systemDatabaseUrl": {
|
|
505
511
|
"type": "string",
|
|
506
512
|
"description": "PostgreSQL URL for the workflow database."
|