elanous 0.2.47 → 0.3.1
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/apps/pwa/out/404/index.html +1 -1
- package/apps/pwa/out/404.html +1 -1
- package/apps/pwa/out/_next/static/{fMFwB4C7VwMRiuFGZdGVs → 98VlBaYvL-VVnCq93_lFS}/_buildManifest.js +1 -1
- package/apps/pwa/out/_next/static/chunks/1388-1eb6df003f29bb9c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1434-a2c279f005d9c501.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1464.14588e93d2ab3190.js +24 -0
- package/apps/pwa/out/_next/static/chunks/1465.85f9a1708f17853a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/156.389be47355dc94c7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/162.c03cf23572cb4136.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1831.25868bc1e2cc0dae.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1896.b6c635d0c8f65727.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1939.3fa2506ad8e585bc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1972.a8d37aadbc59ac43.js +34 -0
- package/apps/pwa/out/_next/static/chunks/1997-f22e6f9510520182.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2242-6edf27c6c0ae7589.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{9748.2866a5c59dbe980c.js → 234.f25f5b0d65f89af8.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/2344.795de26da3261060.js +23 -0
- package/apps/pwa/out/_next/static/chunks/2491.9ac5bd2f48bcd60c.js +226 -0
- package/apps/pwa/out/_next/static/chunks/2513.e03f6479c0079b6e.js +79 -0
- package/apps/pwa/out/_next/static/chunks/2551-43782d8812989ae7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2799.12b1a3e7090e27ef.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2806.f04d7923f2adadb1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2862.b8ea08cbc69a63d4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/295-1ff35d6a06be8400.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3161.b9eb612f66d5ff04.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6293.4e33bcd25fa7fe80.js → 3233.46021e4acc520c03.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/325.3cfd5b7571a9f740.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3384.d91656787bec7922.js +104 -0
- package/apps/pwa/out/_next/static/chunks/{81a72ea7-19d3ed13dbaabf14.js → 3414f5fa-46ae45073dca64f0.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{6329.cfe619f9146ddb60.js → 3589.a9094c2bc034055c.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/367.1ffe524fe1ee7803.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3777.1450df79d987816d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3877-871ea505d778a6a7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4021.28d034c7fb0a6732.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{17673afb.ba8b2d0410a4be97.js → 4069a63b.a074c39997560438.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/4212.873105c37a871421.js +1 -0
- package/apps/pwa/out/_next/static/chunks/423-6be27163a1bce5d7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4231.644cd1e23974f1f6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4362.1adc1412509b7bb8.js +94 -0
- package/apps/pwa/out/_next/static/chunks/4431.83a630154376636a.js +41 -0
- package/apps/pwa/out/_next/static/chunks/{6166-b2fc7231dee53e86.js → 4506-f8439f6fbd0a8483.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/4540-993e2e4e1d485a9a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4719-1d04b01d4d6166fc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4754-bfd5e1ad9016e176.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5001.b39bf6d792509317.js +64 -0
- package/apps/pwa/out/_next/static/chunks/5021.7234ae147ab0a3e1.js +77 -0
- package/apps/pwa/out/_next/static/chunks/5230.3e562ed2a69cbc7b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5279.f75fafa19de6e131.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6c31d3a0.7f6d7568c2b7f9cc.js → 52bafb67.054ec9d048116d83.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/5325-b9c1258cc7e579f9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5495-37306015ec740354.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7756.ba59333b9f5eb5b1.js → 5536.bbb17703f46e52e7.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/{9695.d086738c907a0c2c.js → 5571.a062963c309338b4.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/5658.d1e61315cb865f82.js +32 -0
- package/apps/pwa/out/_next/static/chunks/5709.867a5086d782dd97.js +286 -0
- package/apps/pwa/out/_next/static/chunks/5765.5949ec61cec63eac.js +1 -0
- package/apps/pwa/out/_next/static/chunks/587.e6b35bcbd947c58e.js +8 -0
- package/apps/pwa/out/_next/static/chunks/5951-f25e14d03e72135a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5962-1ab68b213684716b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6006.3dcd594182d0cedb.js → 5998.d426273cdd00305a.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/6352.20c708245475cf50.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7340-55af4d0198f3c218.js → 6548-a160aa580fb9a8ff.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/673-40c924b2095a05eb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6731-c9308c2f71a1b8e3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7327.5bc587cdfbb7468b.js → 6747.365eefdf3b4a0226.js} +17 -17
- package/apps/pwa/out/_next/static/chunks/{919.c8775745cc88225f.js → 691.6ff56b5f4b6ec918.js} +4 -4
- package/apps/pwa/out/_next/static/chunks/6932.f80f616260b74131.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6950-5d5edab502cc208b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6982.e8fecbf7feb3aba5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7051-0dbbb2c1ce4f519e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1575.33a2d7d2be3d23f9.js → 7087.99662912e4db6255.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/709.bd9939dbb991de9f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7197.7b19aa948048e19a.js +93 -0
- package/apps/pwa/out/_next/static/chunks/7230-6527ac6be205c096.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7233-d93f8ce1475f730c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7292-a4d5c8d2fe255e06.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7304-dae57d61a8ccccf0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7382.bf53ab097670a235.js +27 -0
- package/apps/pwa/out/_next/static/chunks/7434.99c31fb661085b6a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7457-9ceddd4301467503.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{3131.e7063655797e9743.js → 7479.d00f44fde98cf34e.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7494.d8b8d01d8dcbafe8.js +2 -0
- package/apps/pwa/out/_next/static/chunks/{5987.3693cba0f39fc644.js → 751.95d127a92f7817e3.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7554-d9cec4ac2e6d556d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7631-673b883cfbbcaed1.js → 7733-6f0d8da7a3f3ce91.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7757-6f4b6363cc651de5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{9270078e.402279bc985895b9.js → 77a1aef7.ba1c04f78a1493d9.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/787-4d1d55b1311a5019.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7915-a755af5ea69cfcfe.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8029-2963385667511b16.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8090.bc2349b6133b2cd5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8136.8ff2113530c27083.js +1 -0
- package/apps/pwa/out/_next/static/chunks/819.632a2a50f814f98e.js +74 -0
- package/apps/pwa/out/_next/static/chunks/8328.72a79ba9b81971ad.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8448.4e25153e035786b0.js +62 -0
- package/apps/pwa/out/_next/static/chunks/8469.f67afe44a0fa8af0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8613.76dfc054055f06ba.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8649-fe9165a8879fad56.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8840-53feb140de04dcfe.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8873.ef8a37057644f876.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8917-46eb4e608f44bf74.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8954.e749ad9e9c5ca512.js +115 -0
- package/apps/pwa/out/_next/static/chunks/9065.8134b756614cf83f.js +36 -0
- package/apps/pwa/out/_next/static/chunks/9089.087fcd352568af49.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2791.6620db26a28b4ad4.js → 9103.bd34694d18c05083.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/9140-bfcc4075cac3c387.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9272.787cb6d987824708.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9361-5b10273d3f34b21d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9396.097c14dd4df77c43.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9468.370ef15c86f7b141.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2767.71eaafcf158c9e24.js → 9531.ffbcd1e59e2c32fc.js} +17 -17
- package/apps/pwa/out/_next/static/chunks/963-66d3a6d98e977ae5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9644.a615f56876ed37b8.js +90 -0
- package/apps/pwa/out/_next/static/chunks/{1395-be70dd3408dec106.js → 9693-ab5bc28704a66601.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/9705-bbcd00db4ffd3484.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9786.2d8c3b7368f18f1b.js +148 -0
- package/apps/pwa/out/_next/static/chunks/9805.e17f9c6e3811e48b.js +24 -0
- package/apps/pwa/out/_next/static/chunks/9876-49a1e08c0dfe7b8c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9891.5995e75a99b53d4e.js +149 -0
- package/apps/pwa/out/_next/static/chunks/9912-2be6b6ea0321c365.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-c0543429ffa9cdfb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-39f04d88df12b3e9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-e4f014aa82483cae.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/board/page-e86f9273877eab46.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/botlab/{page-fb3631f9f3a50179.js → page-dbc30fbf2e8933d9.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-d83a916672a8cfd3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-22f27eaa5e6e68c7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/chat/page-66477bf22d33b56e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/consult/page-913f2a86ea109c65.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/control/page-ac51dc349381d564.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-cd09fc74dca72511.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-6c357f5b58598b67.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/editor/page-ab83de8c73bd2e4f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/exec/page-6402ad2273b6f7b5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/field/page-50d9b8d13b33f785.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-c0543429ffa9cdfb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/inside/page-ffca50fc1f13759c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/intake/page-3316bfc28a901722.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/layout-aef93e049341011e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live/page-8e67bb49fa81d4e5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-8b8c8ac4a3edf0eb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/loops/page-b5b994c9ea03f6d7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/market/page-1a06f6f510439341.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-d9720f6a03f31fa7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/morning/{page-895823d15c5776c7.js → page-d7c891d78672d771.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-e915872b37ca7dcf.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-43c2ec7c00978377.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-c2537aa89b121637.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/release/{page-f0d6a675eb513720.js → page-3264666f6ef99431.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-efe9dd7bc58d4fc6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-153277343c9956b8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-c1457829d1506ad7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/page-9622573651a4b6ce.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-5aeba1aa69ec67ad.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-29cf1ba9ae2fdb92.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-99a060c6edd4726c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/{page-3835d43c61fa1af6.js → page-decfacd2237da403.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-3650eed85a5c5c93.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-14077f0eddcae22f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-c0543429ffa9cdfb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/page-364ee29f223bdc6b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/share/page-905fb1f67c2665a7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-79907fc36e3113f4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-8f01867ee2a701b6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/term/page-310b734167671ba8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/today/page-cb1ca7ae52803603.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/trace/page-5491f2fb8e9376b5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/vault/page-7e98befd36460b21.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-220923eefd5149b5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-afdef54bb570da39.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-19f8acddbff16091.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-d327a7647a075184.js +1 -0
- package/apps/pwa/out/_next/static/chunks/bc1f8ef9.b79035bd0f565c66.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{c0a97b40.42e62d6352afa9df.js → c58bec24.d208786405e23259.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/cf9ff424.b702f4a2ac70d836.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{8f44ce90-05842a3e94de7716.js → d90ea774-d492ff408af303c1.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{607d4dc1.a4c4988d2c164d64.js → e7a93f74.aa8572069f848f17.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/ec9064d2.691021d974525713.js +122 -0
- package/apps/pwa/out/_next/static/chunks/ef9d715f.186b83d00befb229.js +1 -0
- package/apps/pwa/out/_next/static/chunks/framework-f01b715c1ec2fb74.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-3267c2e627901292.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-app-a690bcbeac3c465d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_app-124f11699738fd43.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_error-754b7bd073a36a5f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/webpack-8ded1efe8121eba0.js +1 -0
- package/apps/pwa/out/_next/static/css/32b8e1b8996dbf5e.css +1 -0
- package/apps/pwa/out/_next/static/css/{62c858ad53854f47.css → 9e19f9d740cf4dcb.css} +1 -1
- package/apps/pwa/out/approvals/index.html +1 -1
- package/apps/pwa/out/approvals/index.txt +23 -23
- package/apps/pwa/out/autopilot/index.html +1 -1
- package/apps/pwa/out/autopilot/index.txt +23 -23
- package/apps/pwa/out/board/index.html +1 -1
- package/apps/pwa/out/board/index.txt +23 -23
- package/apps/pwa/out/botlab/index.html +1 -1
- package/apps/pwa/out/botlab/index.txt +22 -22
- package/apps/pwa/out/bots/index.html +1 -1
- package/apps/pwa/out/bots/index.txt +22 -22
- package/apps/pwa/out/ceo/index.html +1 -1
- package/apps/pwa/out/ceo/index.txt +23 -23
- package/apps/pwa/out/chat/index.html +1 -1
- package/apps/pwa/out/chat/index.txt +22 -22
- package/apps/pwa/out/consult/index.html +1 -1
- package/apps/pwa/out/consult/index.txt +23 -23
- package/apps/pwa/out/control/index.html +1 -1
- package/apps/pwa/out/control/index.txt +23 -23
- package/apps/pwa/out/decisions/index.html +1 -1
- package/apps/pwa/out/decisions/index.txt +22 -22
- package/apps/pwa/out/design-check/index.html +1 -1
- package/apps/pwa/out/design-check/index.txt +23 -23
- package/apps/pwa/out/editor/index.html +1 -1
- package/apps/pwa/out/editor/index.txt +24 -24
- package/apps/pwa/out/exec/index.html +1 -1
- package/apps/pwa/out/exec/index.txt +23 -23
- package/apps/pwa/out/field/index.html +1 -1
- package/apps/pwa/out/field/index.txt +23 -23
- package/apps/pwa/out/healthz +1 -1
- package/apps/pwa/out/index.html +1 -1
- package/apps/pwa/out/index.txt +22 -22
- package/apps/pwa/out/inside/index.html +1 -1
- package/apps/pwa/out/inside/index.txt +23 -23
- package/apps/pwa/out/intake/index.html +1 -1
- package/apps/pwa/out/intake/index.txt +23 -23
- package/apps/pwa/out/live/index.html +1 -1
- package/apps/pwa/out/live/index.txt +24 -24
- package/apps/pwa/out/live-run/index.html +1 -1
- package/apps/pwa/out/live-run/index.txt +24 -24
- package/apps/pwa/out/loops/index.html +1 -1
- package/apps/pwa/out/loops/index.txt +22 -22
- package/apps/pwa/out/market/index.html +1 -1
- package/apps/pwa/out/market/index.txt +22 -22
- package/apps/pwa/out/missions/placeholder/index.html +1 -1
- package/apps/pwa/out/missions/placeholder/index.txt +22 -22
- package/apps/pwa/out/morning/index.html +1 -1
- package/apps/pwa/out/morning/index.txt +23 -23
- package/apps/pwa/out/observatory/index.html +1 -1
- package/apps/pwa/out/observatory/index.txt +23 -23
- package/apps/pwa/out/ops/checklist/index.html +1 -1
- package/apps/pwa/out/ops/checklist/index.txt +22 -22
- package/apps/pwa/out/ops/release/index.html +1 -1
- package/apps/pwa/out/ops/release/index.txt +22 -22
- package/apps/pwa/out/ops/resources/index.html +1 -1
- package/apps/pwa/out/ops/resources/index.txt +22 -22
- package/apps/pwa/out/ops/seats/index.html +1 -1
- package/apps/pwa/out/ops/seats/index.txt +22 -22
- package/apps/pwa/out/outputs/index.html +1 -1
- package/apps/pwa/out/outputs/index.txt +22 -22
- package/apps/pwa/out/reflection/index.html +1 -1
- package/apps/pwa/out/reflection/index.txt +23 -23
- package/apps/pwa/out/scheduler/index.html +1 -1
- package/apps/pwa/out/scheduler/index.txt +23 -23
- package/apps/pwa/out/sessions/index.html +1 -1
- package/apps/pwa/out/sessions/index.txt +22 -22
- package/apps/pwa/out/settings/devices/index.html +1 -1
- package/apps/pwa/out/settings/devices/index.txt +23 -23
- package/apps/pwa/out/settings/index.html +1 -1
- package/apps/pwa/out/settings/index.txt +23 -23
- package/apps/pwa/out/setup/done/index.html +1 -1
- package/apps/pwa/out/setup/done/index.txt +23 -23
- package/apps/pwa/out/setup/index.html +1 -1
- package/apps/pwa/out/setup/index.txt +23 -23
- package/apps/pwa/out/share/index.html +1 -1
- package/apps/pwa/out/share/index.txt +23 -23
- package/apps/pwa/out/showroom/index.html +1 -1
- package/apps/pwa/out/showroom/index.txt +22 -22
- package/apps/pwa/out/tasks/index.html +1 -1
- package/apps/pwa/out/tasks/index.txt +23 -23
- package/apps/pwa/out/term/index.html +1 -1
- package/apps/pwa/out/term/index.txt +23 -23
- package/apps/pwa/out/today/index.html +1 -1
- package/apps/pwa/out/today/index.txt +23 -23
- package/apps/pwa/out/trace/index.html +1 -1
- package/apps/pwa/out/trace/index.txt +23 -23
- package/apps/pwa/out/vault/index.html +1 -1
- package/apps/pwa/out/vault/index.txt +23 -23
- package/apps/pwa/out/workflows/chat-ui/index.html +1 -1
- package/apps/pwa/out/workflows/chat-ui/index.txt +23 -23
- package/apps/pwa/out/workflows/index.html +1 -1
- package/apps/pwa/out/workflows/index.txt +23 -23
- package/apps/pwa/out/workspace/index.html +1 -1
- package/apps/pwa/out/workspace/index.txt +23 -23
- package/apps/pwa/out/worktrees/index.html +1 -1
- package/apps/pwa/out/worktrees/index.txt +23 -23
- package/graphs/intake/intake-daily.yaml +5 -1
- package/graphs/overlays/examples/demo1104-research-arg-runtime.yaml +28 -0
- package/package.json +3 -1
- package/packs/b2b-sales-public/content/example-answer.md +5 -0
- package/packs/b2b-sales-public/content/playbook.md +11 -0
- package/packs/b2b-sales-public/content/proposal-template.md +13 -0
- package/packs/b2b-sales-public/content/questions.md +10 -0
- package/packs/b2b-sales-public/knowledge-pack.json +31 -0
- package/packs/elanous-basics/.codex-plugin/plugin.json +12 -0
- package/packs/elanous-basics/plugin.json +20 -0
- package/packs/elanous-essentials/plugin.json +24 -0
- package/packs/elanous-hwp/.codex-plugin/plugin.json +12 -0
- package/packs/elanous-hwp/NOTICE.md +13 -0
- package/packs/elanous-hwp/README.md +21 -0
- package/packs/elanous-hwp/nodes/from-md.yaml +16 -0
- package/packs/elanous-hwp/nodes/to-md.yaml +15 -0
- package/packs/elanous-hwp/plugin.json +18 -0
- package/packs/elanous-hwp/scripts/hwp.py +405 -0
- package/packs/elanous-hwp/skills/hwp-fill/SKILL.md +8 -0
- package/packs/elanous-hwp/skills/hwp-read/SKILL.md +8 -0
- package/packs/elanous-hwp/skills/hwp-write/SKILL.md +8 -0
- package/packs/elanous-hwp/templates/official-letter.yaml +6 -0
- package/packs/elanous-hwp/templates/report.yaml +6 -0
- package/packs/elanous-hwp/test/consumer.py +24 -0
- package/packs/elanous-hwp/test/verify-python-hwpx.py +12 -0
- package/packs/elanous-media/.codex-plugin/plugin.json +12 -0
- package/packs/elanous-media/plugin.json +16 -0
- package/packs/image-first-shorts/.codex-plugin/plugin.json +12 -0
- package/packs/image-first-shorts/LICENSE +76 -0
- package/packs/image-first-shorts/README.md +45 -0
- package/packs/image-first-shorts/SOURCE.md +43 -0
- package/packs/image-first-shorts/examples/input.json +9 -0
- package/packs/image-first-shorts/examples/storyboard.json +31 -0
- package/packs/image-first-shorts/graphs/image-first-shorts.yaml +121 -0
- package/packs/image-first-shorts/graphs/recipes.yaml +56 -0
- package/packs/image-first-shorts/graphs/run-step.ts +270 -0
- package/packs/image-first-shorts/plugin.json +38 -0
- package/packs/image-first-shorts/skills/image-first-shorts/SKILL.md +115 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/examples/image_example.vars.json +7 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/examples/video_example.vars.json +6 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/image_blocks.json +30 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/image_runner_wrapper.txt +6 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/image_template.txt +1 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/music_plan_template.json +13 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/pricing.json +7 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/tts_request_template.json +8 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/tts_template.txt +1 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/video_blocks.json +13 -0
- package/packs/image-first-shorts/skills/image-first-shorts/templates/video_template.txt +1 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/analyze_music.py +41 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/asr_pick.py +50 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/fill.py +61 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/heavy.sh +25 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/imagegen_runner.py +128 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/ip_guard.py +54 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/keyer.py +199 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/matte.sh +65 -0
- package/packs/image-first-shorts/skills/image-first-shorts/tools/matte_queue.sh +34 -0
- package/packs/release-ops/README.md +18 -0
- package/packs/release-ops/policy.yaml +26 -0
- package/packs/semiconductor-process-public/content/glossary.md +8 -0
- package/packs/semiconductor-process-public/content/process-overview.md +15 -0
- package/packs/semiconductor-process-public/content/public-source-check.md +8 -0
- package/packs/semiconductor-process-public/content/questions.md +5 -0
- package/packs/semiconductor-process-public/knowledge-pack.json +31 -0
- package/packs/video-broll/.codex-plugin/plugin.json +12 -0
- package/packs/video-broll/plugin.json +18 -0
- package/packs/video-explainer/.codex-plugin/plugin.json +12 -0
- package/packs/video-explainer/README.md +37 -0
- package/packs/video-explainer/nodes/explainer.yaml +17 -0
- package/packs/video-explainer/nodes/field-reel.yaml +17 -0
- package/packs/video-explainer/plugin.json +21 -0
- package/packs/web-publish/.codex-plugin/plugin.json +12 -0
- package/packs/web-publish/LICENSE +24 -0
- package/packs/web-publish/README.md +77 -0
- package/packs/web-publish/SOURCE.md +70 -0
- package/packs/web-publish/examples/input.json +9 -0
- package/packs/web-publish/graphs/recipes.yaml +72 -0
- package/packs/web-publish/graphs/run-step.ts +618 -0
- package/packs/web-publish/graphs/web-publish.yaml +157 -0
- package/packs/web-publish/nodes/web-publish.yaml +18 -0
- package/packs/web-publish/plugin.json +42 -0
- package/packs/web-publish/skills/business-motion-websites/SKILL.md +104 -0
- package/packs/web-publish/skills/business-motion-websites/agents/openai.yaml +5 -0
- package/packs/web-publish/skills/business-motion-websites/assets/project-brief.md +70 -0
- package/packs/web-publish/skills/business-motion-websites/examples/evas.md +17 -0
- package/packs/web-publish/skills/business-motion-websites/references/art-direction.md +59 -0
- package/packs/web-publish/skills/business-motion-websites/references/business-content.md +77 -0
- package/packs/web-publish/skills/business-motion-websites/references/media-production.md +130 -0
- package/packs/web-publish/skills/business-motion-websites/references/scroll-and-mobile.md +80 -0
- package/packs/web-publish/skills/business-motion-websites/references/verification-and-release.md +73 -0
- package/packs/web-publish/skills/business-motion-websites/scripts/audit-media.mjs +181 -0
- package/plugins/cloud-burst/README.md +7 -0
- package/plugins/cloud-burst/mock-runtime.ts +62 -0
- package/plugins/cloud-burst/plugin.json +17 -0
- package/plugins/cloud-burst/plugin.ts +103 -0
- package/plugins/cloud-burst/runtime-types.ts +7 -0
- package/plugins/cloud-burst/service.ts +147 -0
- package/scripts/install-doctor-result.ts +25 -0
- package/scripts/install.sh +144 -75
- package/scripts/land-enqueue.test.sh +60 -0
- package/scripts/release-loop/auto-approve-node.ts +7 -3
- package/scripts/release-loop/fixtures/gate-verdict-0.2.46.json +148 -0
- package/scripts/release-loop/gate-node.ts +74 -7
- package/scripts/release-loop/gate-shard-dispatch.ts +3 -2
- package/scripts/release-loop/gate-shard-receipts.ts +4 -0
- package/scripts/release-loop/known-issues-node.ts +31 -13
- package/scripts/release-loop/publish-node.ts +7 -1
- package/scripts/release-loop/resume-release.ts +32 -6
- package/scripts/release-loop/resume.ts +22 -3
- package/scripts/ux/demo-rehearsal.ts +45 -12
- package/scripts/ux-sim-merge-driver.mjs +187 -0
- package/scripts/warm-pool-provider-config.ts +76 -6
- package/scripts/zero-sim-world.sh +81 -0
- package/src/acp/core-turn-bridge.ts +4 -10
- package/src/agent/agent-output-tool.ts +33 -10
- package/src/agent/terminal-surface.ts +248 -3
- package/src/agent-mission/driver.ts +18 -7
- package/src/agent-substrate/pr-reviewer.ts +55 -1
- package/src/agent-substrate/self-review-cli.ts +246 -23
- package/src/cli/codex-device-login-wait.ts +103 -0
- package/src/cli/control-cli.ts +3 -0
- package/src/cli/doctor-cli.ts +14 -4
- package/src/cli/doctor-fix.ts +76 -13
- package/src/cli/fleet-cli.ts +18 -0
- package/src/cli/ingest-token-cli.ts +1 -1
- package/src/cli/intake-cli.ts +28 -4
- package/src/cli/intake-source-cli.ts +20 -4
- package/src/cli/log-federation-cli.ts +29 -0
- package/src/cli/logs-cli.ts +12 -3
- package/src/cli/plugin-cli.ts +82 -0
- package/src/cli/pr-land-overlap-evidence.ts +82 -22
- package/src/cli/release-cli.ts +13 -5
- package/src/cli/remote-eln-pty.ts +15 -1
- package/src/cli/secret-cli.test-helpers.ts +25 -0
- package/src/cli/secret-cli.ts +172 -0
- package/src/cli/self-update.ts +1 -1
- package/src/cli/setup-cli.ts +3 -14
- package/src/cli/sim-cli.ts +30 -3
- package/src/cli/train-throughput.ts +71 -0
- package/src/context-bus/context-day.ts +60 -11
- package/src/context-bus/external-events.ts +2 -2
- package/src/control-plane/ledger.ts +1 -1
- package/src/core-turn/run-goal-loop.ts +77 -35
- package/src/core-turn/seat-turn-cap.ts +8 -8
- package/src/core-turn/short-question.ts +27 -4
- package/src/dashboard/classic-sidetab-mission-job.ts +47 -5
- package/src/dashboard/classic-sidetab-mission-pair.ts +20 -7
- package/src/dashboard/classic-sidetab-mission-reconcile.ts +212 -0
- package/src/dashboard/classic-sidetab-mission.ts +61 -10
- package/src/dashboard/first-screen-band.ts +2 -2
- package/src/dashboard/input/chat-main-plain-turn-runtime.ts +5 -4
- package/src/dashboard/input/goal-continue.ts +10 -0
- package/src/domains/schedule-manage-tool.ts +1 -1
- package/src/ensure-bin-path.ts +5 -1
- package/src/fleet/burst-auto-wire-ladder.ts +34 -0
- package/src/fleet/burst-auto-within-budget.ts +108 -0
- package/src/fleet/burst-ready-ladder.ts +64 -0
- package/src/fleet/host-doctor.ts +74 -3
- package/src/fleet/resource-inventory.ts +154 -0
- package/src/git-fs/worktree.ts +40 -16
- package/src/graph-runner/runner.ts +7 -6
- package/src/harness/dispatch-backpressure.ts +74 -6
- package/src/harness/harness-cli-command.ts +35 -10
- package/src/index.ts +64 -38
- package/src/intake-plane/actions.ts +19 -7
- package/src/intake-plane/digest.ts +30 -7
- package/src/intake-plane/intake-sources.ts +92 -3
- package/src/intake-plane/items.ts +13 -0
- package/src/intake-plane/linear-wish.ts +24 -1
- package/src/machines/machine-ledger.ts +7 -1
- package/src/maturity/feature-maturity.ts +2 -2
- package/src/mss/logging/log-federation.ts +334 -0
- package/src/mss/logging/log-store.ts +16 -7
- package/src/nexus/api/harness-api.ts +16 -6
- package/src/nexus/api/harness-traversal.ts +78 -5
- package/src/nexus/api/http-server.ts +22 -0
- package/src/nexus/api/ops-api.ts +63 -1
- package/src/nexus/api/public-routes.ts +14 -0
- package/src/nexus/api/resource-ledger.ts +25 -2
- package/src/nexus/api/train-throughput.ts +228 -0
- package/src/nexus/api/ux-sim-devices.ts +35 -4
- package/src/nexus/index.ts +2 -0
- package/src/onboarding/summary.ts +2 -0
- package/src/onboarding/web-first.ts +66 -33
- package/src/plugins/install/plugin-grounding.ts +233 -0
- package/src/release-loop/gate-host-reservation.ts +14 -8
- package/src/repl/index.ts +8 -1
- package/src/resource-ledger/machine-pool-inventory.ts +81 -0
- package/src/resource-ledger/resource-ledger.ts +64 -7
- package/src/self-dev/dev-pipeline.ts +31 -4
- package/src/self-dev/launch-preflight.ts +10 -4
- package/src/self-dev/orchestrate-cli.ts +7 -0
- package/src/self-dev/run-supervisor.ts +26 -9
- package/src/self-implement/fixtures/structural-red-default-reexport.fixture.mjs +3 -0
- package/src/self-implement/fixtures/structural-red-export-star.fixture.mjs +3 -0
- package/src/self-implement/fixtures/structural-red-named-export.fixture.mjs +3 -0
- package/src/self-implement/gate-remote.ts +63 -10
- package/src/self-implement/merge-train.ts +12 -1
- package/src/self-implement/off-diff-evidence.ts +223 -3
- package/src/self-implement/orchestrator.ts +33 -2
- package/src/self-implement/run-step-projection.ts +18 -4
- package/src/session/chat.ts +29 -2
- package/src/session/session-start.ts +17 -2
- package/src/session-runtime/index.ts +1 -1
- package/src/sim-world-device-catalogs.json +182 -0
- package/src/task-orchestrator/surfaces/gate-pod-pool-policy.ts +169 -21
- package/src/task-orchestrator/surfaces/pod-ledger-events.ts +194 -12
- package/src/task-orchestrator/surfaces/pod-pool.ts +55 -4
- package/src/task-orchestrator/surfaces/pod-warm-worker-provider.ts +21 -6
- package/src/task-orchestrator/surfaces/self-implement-pod.ts +40 -5
- package/src/tool-runtime/agent-output-runtime.ts +1 -1
- package/src/tui/entry.ts +46 -23
- package/src/tui-client/local-chat-turn.ts +9 -2
- package/src/user-config.ts +4 -0
- package/src/ux-sim/aside-feedback-loop.ts +181 -0
- package/src/ux-sim/burst-ready-ladder-sim.ts +225 -0
- package/src/ux-sim/fake-cloud-vm.ts +15 -1
- package/src/ux-sim/graph-runtime-overlay-event-path-worker.ts +33 -8
- package/src/ux-sim/graph-runtime-overlay-event-path.ts +27 -5
- package/src/ux-sim/grid-chaos-driver.ts +15 -8
- package/src/ux-sim/in-process-cli.ts +1 -1
- package/src/ux-sim/mock-device-requests.ts +189 -0
- package/src/ux-sim/mock-scenario-catalog.json +2932 -97
- package/src/ux-sim/mock-scenario-catalog.ts +82 -0
- package/src/ux-sim/next-tui-seat-scenarios.ts +52 -4
- package/src/ux-sim/release-sim-rig.ts +298 -7
- package/src/ux-sim/scenario.ts +33 -7
- package/src/ux-sim/service-key-setup.ts +37 -2
- package/src/ux-sim/warm-pool-reuse-sim.ts +80 -7
- package/src/ux-sim/world-store.ts +99 -6
- package/src/version/packed-revision.json +1 -1
- package/src/workflow-runtime/triggers/scheduler.ts +4 -4
- package/apps/pwa/out/_next/static/chunks/05181998.4f8efaf00572ba3b.js +0 -122
- package/apps/pwa/out/_next/static/chunks/1100-c0c1d80f649e121b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/113.80a933f7c75c98f4.js +0 -24
- package/apps/pwa/out/_next/static/chunks/1170.2b91e0702fae25c2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/120-0c4a26e7eedc1bb9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1279.d5c20b1a56b736bf.js +0 -149
- package/apps/pwa/out/_next/static/chunks/1372.9db49566ed0e4c02.js +0 -104
- package/apps/pwa/out/_next/static/chunks/1449-4665277ec241284f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1473.ac3cee48c1d82bc6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1510.7b4ce4032d06097c.js +0 -148
- package/apps/pwa/out/_next/static/chunks/1728-d9808a0d6be6aa40.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2021.7d4dfac25daed3bc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2128.368c63f8816ffc35.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2272-2179b64be6512dcf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2282-7f396efa367b707d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2313.444bed0db65aadb0.js +0 -77
- package/apps/pwa/out/_next/static/chunks/2408-017e04049c99038f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2433.1108dd9eb7f009c0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2474-ce5b82a664d581f2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2532.376ea6de59f7c4f0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/256.2a8e008d30947074.js +0 -1
- package/apps/pwa/out/_next/static/chunks/27.a383feedd4b99367.js +0 -74
- package/apps/pwa/out/_next/static/chunks/279-9a8b620470792271.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2831-6d9d315a32b98961.js +0 -1
- package/apps/pwa/out/_next/static/chunks/292.06ca375a02c7830b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2955-056d5f1facf64dd7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2979-9c9f85d058367133.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2993.e25197cd7fb4e2e5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/29a68040.431a2da0564d7724.js +0 -1
- package/apps/pwa/out/_next/static/chunks/314-db68d7268a1f99aa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/316.76984e210cf33c21.js +0 -62
- package/apps/pwa/out/_next/static/chunks/3255-80f60feecd5db880.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3271.938bf60213f6cd17.js +0 -8
- package/apps/pwa/out/_next/static/chunks/3325-9699faf5a5294830.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3418-f1ea6c6c710d5b94.js +0 -1
- package/apps/pwa/out/_next/static/chunks/342.050ac4b1738dfa5c.js +0 -94
- package/apps/pwa/out/_next/static/chunks/3545-5642d5df0667bcac.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3615-322e67bfc3b6907e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3805-5c39a4bf5012fe86.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3892.b8cde90082048d8c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3900.b581090764d62bfb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3907.097fcec8956b021d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4110.8f14b59381558d7d.js +0 -32
- package/apps/pwa/out/_next/static/chunks/422.33fde3dd808ec96d.js +0 -115
- package/apps/pwa/out/_next/static/chunks/4512-11a489cb5444ef52.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4537-2c8089e830054a19.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4548-afc498c924849db3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4588.3b7994fe28615549.js +0 -23
- package/apps/pwa/out/_next/static/chunks/4621-dcc3be02b7262bbe.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4680-53705a02f53bd359.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4705-16e4a3603923253d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4731.460c7a05f812951a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4818.6fdc817b8b12788a.js +0 -64
- package/apps/pwa/out/_next/static/chunks/4875-dbc3d55494aa15bb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4890-100ef7fd2852528a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/497.e875b212a877dc91.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5106-1d9854b2e07d263b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5136.062e5b4ac043384f.js +0 -90
- package/apps/pwa/out/_next/static/chunks/5190.7cb2cf1274606639.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5290.80a8cd7d37adf0b4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/543.67803b0449dc628e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5464-f8193c7ae973d9d1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5501.43770a36d11760e4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5672.2616c24baee6bb2f.js +0 -34
- package/apps/pwa/out/_next/static/chunks/5745-8a56d7701139e416.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5757.eae58c9553985765.js +0 -79
- package/apps/pwa/out/_next/static/chunks/5848-9c1a3b9533bd0031.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6250.7667f92b4d4465fb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6312.11884f8b6fc01317.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6610-f0510f329e6c15e8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6840.046ad6790da728d9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6851.700470acf99ed58b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7134.373f7059f13a9ea9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7216.dc82684f78870505.js +0 -2
- package/apps/pwa/out/_next/static/chunks/7385.23cc541c89c2fa98.js +0 -286
- package/apps/pwa/out/_next/static/chunks/7746.17ee8fc1f87b774f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7763.a7579952c4e6f1b4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8045.a714469921e805dd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8073.57b55743909e9013.js +0 -93
- package/apps/pwa/out/_next/static/chunks/8126.e5237d43a372cf65.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8269-782b63932e10a2ae.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8385-931a72cc6864b91f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8541-6801e6237710c920.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8572.c425a14dcf1ffeb0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/867-2d1e981b0167c29a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8723.ca926aacbbf3ac7f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8747.eeb006b94dad5759.js +0 -41
- package/apps/pwa/out/_next/static/chunks/895.5f73e50705fe1830.js +0 -226
- package/apps/pwa/out/_next/static/chunks/8993.bbf6810d7afa70bf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9066.629ebf156fcd2ab1.js +0 -27
- package/apps/pwa/out/_next/static/chunks/9133-06cf65777241d447.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9160.83b3cab34166c934.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9397.b3fbfb372280934a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9605.c828819da413e8e0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9635.f8d12ec73885ac29.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9828.e6e68b558c521de6.js +0 -24
- package/apps/pwa/out/_next/static/chunks/9893.7a7b6edae64e8ead.js +0 -36
- package/apps/pwa/out/_next/static/chunks/9a51175e.fccb3ff43e50adbc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-bedb21eab48baf18.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-07762315735dd0b2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-03f85a9f0a258ea8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-e845d6c10f91d76b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-00f6e3c7a80a9bce.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-971a0c0861b98018.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-651d5b7636a46cf6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-d02ad543024d8341.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-bb376bd8355baae6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-28c4bec75794d1bd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-2123da599d50838a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-2955f93723dcc402.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/exec/page-9223ba698a2a0188.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-e81094cf3567e2f2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-bedb21eab48baf18.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/inside/page-7d654302ac3b3a4e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-2bc02d4bee167db4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-617df2f350b6d863.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-499ad36f9c8d105c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-09acff44586be1c2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-5c18c95a9bd1c524.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/market/page-b7e45df4c89eda9d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-9bd9e634f324e2d8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-76d702791c75b6f5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-89cdfe958d836563.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-65718fff9f43051d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-a0d5bffbf9203c00.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-9890ca9c1b120cf1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-bb9cf5e9622532a0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/page-44dfa774fa7c5533.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-93c8c51d77053d35.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-716bdba6d2ad3fcd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-0f04eeda9894b67d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-41e8ba9c4feab48e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-eedf8d31ba99ca9f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-bedb21eab48baf18.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-241ed1c971bfa1ac.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/share/page-93e2ce2a6e871642.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-561cf4fce14c622c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-b71cab2d1ba15c2c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/term/page-f86e352129f64ac6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-5b0bd68768085bdb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-a6003c82802c5e93.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-122887bd22818e86.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-a5e2267da13cac6d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-abac2741a74c7e0f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-cc3091a30e35cbde.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-1b5ef5aad6c1eefc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/e866a15a.97493b74d66f48b3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/framework-52efbeade0c028ac.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-365b194cc7ba42f7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-dc781b21621cd6de.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-c69e53f764eae97b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-bd8106d7e595dfc3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-e3f77df212a70fcb.js +0 -1
- package/apps/pwa/out/_next/static/css/700f225938e9488f.css +0 -1
- /package/apps/pwa/out/_next/static/{fMFwB4C7VwMRiuFGZdGVs → 98VlBaYvL-VVnCq93_lFS}/_ssgManifest.js +0 -0
package/src/ensure-bin-path.ts
CHANGED
|
@@ -57,4 +57,8 @@ export function ensureBinPath(
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// import 시점 즉시 보강 — 어떤 CLI 커맨드/subprocess 호출보다 먼저.
|
|
60
|
-
|
|
60
|
+
// Isolated CLI integration tests can supply the candidate list without inheriting host tools.
|
|
61
|
+
const testCandidateOverride = process.env.NODE_ENV === 'test'
|
|
62
|
+
? process.env.ELANOUS_TEST_BIN_PATH_CANDIDATES
|
|
63
|
+
: undefined;
|
|
64
|
+
ensureBinPath(process.env, testCandidateOverride === undefined ? CANDIDATE_BIN_DIRS : testCandidateOverride.split(':'));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
decideBurstWithinBudget,
|
|
3
|
+
type BurstBudgetDecision,
|
|
4
|
+
type BurstBudgetInput,
|
|
5
|
+
type BurstPlanLedger,
|
|
6
|
+
} from './burst-auto-within-budget.js';
|
|
7
|
+
import { planBurstReadyLadder, type BurstReadyLadderPlan } from './burst-ready-ladder.js';
|
|
8
|
+
|
|
9
|
+
export interface BurstAutoWireResult<T> {
|
|
10
|
+
readonly decision: BurstBudgetDecision;
|
|
11
|
+
/** Validated plans for the preparation stage; this function never creates VMs. */
|
|
12
|
+
readonly ladderPlans: readonly BurstReadyLadderPlan[];
|
|
13
|
+
readonly prepared: readonly T[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Apply budget, validate every ladder plan, then hand approved plans to the preparation adapter. */
|
|
17
|
+
export function prepareBudgetedBurstReadyLadders<T>(
|
|
18
|
+
input: BurstBudgetInput,
|
|
19
|
+
dependencies: { ledger?: BurstPlanLedger; prepare: (plan: BurstReadyLadderPlan) => T },
|
|
20
|
+
): BurstAutoWireResult<T> {
|
|
21
|
+
const ladderPlans: BurstReadyLadderPlan[] = [];
|
|
22
|
+
const decision = decideBurstWithinBudget(input, {
|
|
23
|
+
...(dependencies.ledger ? { ledger: dependencies.ledger } : {}),
|
|
24
|
+
planLadder: (requests) => {
|
|
25
|
+
const validated = requests.map((request) => planBurstReadyLadder(request));
|
|
26
|
+
ladderPlans.push(...validated);
|
|
27
|
+
return validated;
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
// decideBurstWithinBudget validates the full batch before it records a decision. Only then
|
|
31
|
+
// may the preparation adapter be called; a denial therefore cannot occupy a pool slot.
|
|
32
|
+
const prepared = decision.status === 'planned' ? ladderPlans.map(dependencies.prepare) : [];
|
|
33
|
+
return { decision, ladderPlans, prepared };
|
|
34
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ResourceLedger, type ResourceRecord } from '../control-plane/ledger.js';
|
|
2
|
+
import { debug } from '../debug/log.js';
|
|
3
|
+
import { mkdirSync } from 'node:fs';
|
|
4
|
+
import { dirname } from 'node:path';
|
|
5
|
+
import { withFileLockSync } from '../storage/file-lock.js';
|
|
6
|
+
|
|
7
|
+
export const CLOUD_MONTHLY_BUDGET_KRW = 2_000_000;
|
|
8
|
+
export const BURST_PURPOSES = ['gate', 'implementation', 'execution'] as const;
|
|
9
|
+
export type BurstPurpose = typeof BURST_PURPOSES[number];
|
|
10
|
+
export type BurstTtlHours = 2 | 4;
|
|
11
|
+
|
|
12
|
+
export interface BurstPressure { readonly queued: number; readonly blocked: number }
|
|
13
|
+
export interface BurstBudgetInput {
|
|
14
|
+
readonly requestId: string;
|
|
15
|
+
readonly owner: string;
|
|
16
|
+
readonly now: number;
|
|
17
|
+
readonly imageDigest: string;
|
|
18
|
+
readonly pressures: Readonly<Record<BurstPurpose, BurstPressure>>;
|
|
19
|
+
readonly hourlyCostKrw: Readonly<Record<BurstPurpose, number>>;
|
|
20
|
+
readonly ttlHours: BurstTtlHours;
|
|
21
|
+
readonly maxMachinesPerPurpose: number;
|
|
22
|
+
}
|
|
23
|
+
export interface BurstPlan { readonly requestId: string; readonly purpose: BurstPurpose; readonly count: number; readonly ttlHours: BurstTtlHours; readonly estimatedCostKrw: number }
|
|
24
|
+
export interface BurstBudgetDecision { readonly status: 'planned' | 'budget-blocked' | 'no-demand'; readonly spentThisMonthKrw: number; readonly remainingKrw: number; readonly plans: readonly BurstPlan[]; readonly reason?: string }
|
|
25
|
+
export interface BurstPlanLedger {
|
|
26
|
+
readonly path: string;
|
|
27
|
+
list(filter?: { kind?: string }, now?: number): readonly ResourceRecord[];
|
|
28
|
+
register(record: ResourceRecord, owner: string): ResourceRecord;
|
|
29
|
+
}
|
|
30
|
+
/** Pure planner batch; it must not provision or persist before the budget decision is committed. */
|
|
31
|
+
export type BurstLadderPlanner = (requests: readonly { requestId: string; purpose: BurstPurpose; imageDigest: string; admissionAt: number; ttlHours: BurstTtlHours }[]) => readonly unknown[];
|
|
32
|
+
|
|
33
|
+
function monthSpend(rows: readonly ResourceRecord[], from: number, to: number): number {
|
|
34
|
+
return rows.reduce((sum, row) => {
|
|
35
|
+
if (!(row.attrs.inventory === true || row.attrs.inventory === 'archived')) return sum;
|
|
36
|
+
const rate = row.attrs.hourlyCost;
|
|
37
|
+
if (typeof rate !== 'number' || !Number.isFinite(rate) || rate < 0) return sum;
|
|
38
|
+
const started = Number(row.attrs.startSignedAt) || row.observedAt;
|
|
39
|
+
const ended = row.attrs.inventory === 'archived' ? Number(row.attrs.stoppedAt) || to : to;
|
|
40
|
+
return sum + Math.max(0, Math.min(to, ended) - Math.max(from, started)) / 3_600_000 * rate;
|
|
41
|
+
}, 0);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Budget gate and NEXUS decision record only. It never provisions resources. */
|
|
45
|
+
export function decideBurstWithinBudget(
|
|
46
|
+
input: BurstBudgetInput,
|
|
47
|
+
dependencies: { ledger?: BurstPlanLedger; planLadder: BurstLadderPlanner },
|
|
48
|
+
): BurstBudgetDecision {
|
|
49
|
+
if (!/^[A-Za-z0-9._-]{1,32}$/.test(input.requestId)) throw new Error('requestId must be a safe identifier of at most 32 characters');
|
|
50
|
+
if (!input.owner.trim()) throw new Error('owner is required');
|
|
51
|
+
if (!/^sha256:[a-f0-9]{64}$/.test(input.imageDigest)) throw new Error('a pinned sha256 imageDigest is required');
|
|
52
|
+
if (!Number.isFinite(input.now) || input.now <= 0) throw new Error('now must be a positive epoch timestamp');
|
|
53
|
+
if (input.ttlHours !== 2 && input.ttlHours !== 4) throw new Error('ttlHours must be 2 or 4');
|
|
54
|
+
if (!Number.isInteger(input.maxMachinesPerPurpose) || input.maxMachinesPerPurpose < 1) throw new Error('maxMachinesPerPurpose must be a positive integer');
|
|
55
|
+
|
|
56
|
+
const demandByPurpose = new Map<BurstPurpose, number>();
|
|
57
|
+
for (const purpose of BURST_PURPOSES) {
|
|
58
|
+
const pressure = input.pressures[purpose]; const rate = input.hourlyCostKrw[purpose];
|
|
59
|
+
if (!Number.isInteger(pressure.queued) || pressure.queued < 0 || !Number.isInteger(pressure.blocked) || pressure.blocked < 0) throw new Error(`invalid pressure: ${purpose}`);
|
|
60
|
+
if (!Number.isFinite(rate) || rate <= 0) throw new Error(`hourly cost must be positive: ${purpose}`);
|
|
61
|
+
demandByPurpose.set(purpose, Math.min(input.maxMachinesPerPurpose, Math.max(pressure.queued, pressure.blocked)));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const ledger = dependencies.ledger ?? new ResourceLedger();
|
|
65
|
+
mkdirSync(dirname(ledger.path), { recursive: true, mode: 0o700 });
|
|
66
|
+
return withFileLockSync(`${ledger.path}.burst-budget.lock`, () => {
|
|
67
|
+
const recordId = `fleet-burst-decision:${input.requestId}`;
|
|
68
|
+
const prior = ledger.list({ kind: 'universe' }, input.now).find(row => row.id === recordId);
|
|
69
|
+
if (prior) {
|
|
70
|
+
if (prior.owner !== input.owner) throw new Error('burst request id is owned by another seat');
|
|
71
|
+
return prior.attrs.decision as BurstBudgetDecision;
|
|
72
|
+
}
|
|
73
|
+
const monthStart = Date.UTC(new Date(input.now).getUTCFullYear(), new Date(input.now).getUTCMonth(), 1);
|
|
74
|
+
const rows = ledger.list({}, input.now);
|
|
75
|
+
const spentThisMonthKrw = monthSpend(rows.filter(row => row.kind === 'fleet-resource'), monthStart, input.now);
|
|
76
|
+
const pendingReservationsKrw = rows
|
|
77
|
+
.filter(row => row.kind === 'universe' && row.attrs.type === 'burst-auto-budget-decision' && row.attrs.status === 'planned' && row.observedAt >= monthStart)
|
|
78
|
+
.reduce((sum, row) => sum + Math.max(0, Number(row.attrs.reservedKrw) || 0), 0);
|
|
79
|
+
const remainingKrw = Math.max(0, CLOUD_MONTHLY_BUDGET_KRW - spentThisMonthKrw - pendingReservationsKrw);
|
|
80
|
+
const plans: BurstPlan[] = []; let committed = 0;
|
|
81
|
+
for (const purpose of BURST_PURPOSES) {
|
|
82
|
+
const demand = demandByPurpose.get(purpose)!; if (!demand) continue;
|
|
83
|
+
const perMachine = input.hourlyCostKrw[purpose] * input.ttlHours;
|
|
84
|
+
const count = Math.min(demand, Math.floor((remainingKrw - committed) / perMachine));
|
|
85
|
+
if (count < 1) continue;
|
|
86
|
+
plans.push({ requestId: input.requestId, purpose, count, ttlHours: input.ttlHours, estimatedCostKrw: count * perMachine });
|
|
87
|
+
committed += count * perMachine;
|
|
88
|
+
}
|
|
89
|
+
const ladderRequests = plans.flatMap(plan => Array.from({ length: plan.count }, (_, index) => ({
|
|
90
|
+
requestId: `${input.requestId}-${plan.purpose}-${index + 1}`, purpose: plan.purpose, imageDigest: input.imageDigest,
|
|
91
|
+
ttlHours: input.ttlHours, admissionAt: input.now + 60 * 60 * 1000,
|
|
92
|
+
})));
|
|
93
|
+
// Validate/build every ladder plan before publishing the reservation decision.
|
|
94
|
+
dependencies.planLadder(ladderRequests);
|
|
95
|
+
const hasDemand = [...demandByPurpose.values()].some(Boolean);
|
|
96
|
+
const status = plans.length ? 'planned' : hasDemand ? 'budget-blocked' : 'no-demand';
|
|
97
|
+
const decision: BurstBudgetDecision = { status, spentThisMonthKrw, remainingKrw, plans,
|
|
98
|
+
...(status === 'budget-blocked' ? { reason: 'monthly budget exhausted or next machine exceeds remaining budget' } : {}) };
|
|
99
|
+
const record: ResourceRecord = {
|
|
100
|
+
id: recordId, kind: 'universe', machine: 'nexus', name: 'burst-auto-budget-decision', owner: input.owner,
|
|
101
|
+
attrs: { type: 'burst-auto-budget-decision', requestId: input.requestId, status, monthlyBudgetKrw: CLOUD_MONTHLY_BUDGET_KRW, spentThisMonthKrw, pendingReservationsKrw, reservedKrw: committed, remainingKrw, decision, realResourcesCreated: 0 },
|
|
102
|
+
observedAt: input.now, ttlMs: 90 * 24 * 60 * 60 * 1000,
|
|
103
|
+
};
|
|
104
|
+
ledger.register(record, input.owner);
|
|
105
|
+
debug.log('fleet.burst', 'budget-decision', { requestId: input.requestId, status, spentThisMonthKrw, plans: plans.length, realResourcesCreated: 0 });
|
|
106
|
+
return decision;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const HOUR_MS = 60 * 60 * 1000;
|
|
2
|
+
|
|
3
|
+
export const BURST_READY_PURPOSES = ['gate', 'implementation', 'execution'] as const;
|
|
4
|
+
export type BurstReadyPurpose = typeof BURST_READY_PURPOSES[number];
|
|
5
|
+
export type BurstReadyTtlHours = 2 | 4;
|
|
6
|
+
|
|
7
|
+
export interface BurstReadyLadderRequest {
|
|
8
|
+
readonly requestId: string;
|
|
9
|
+
readonly purpose: BurstReadyPurpose;
|
|
10
|
+
readonly imageDigest: string;
|
|
11
|
+
/** Requested work admission time, in Unix milliseconds. */
|
|
12
|
+
readonly admissionAt: number;
|
|
13
|
+
readonly ttlHours: BurstReadyTtlHours;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface BurstReadyLadderPlan extends BurstReadyLadderRequest {
|
|
17
|
+
readonly prepareAt: number;
|
|
18
|
+
readonly ttlMs: number;
|
|
19
|
+
readonly stopAfterAt: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Refuse admission until the scheduled start and at/after TTL expiry. */
|
|
23
|
+
export function assertBurstAdmissionWindow(plan: BurstReadyLadderPlan, now: number): void {
|
|
24
|
+
if (!Number.isFinite(now)) throw new Error('burst-ready-ladder: now must be a finite epoch');
|
|
25
|
+
if (now < plan.admissionAt) {
|
|
26
|
+
throw new Error(`burst-ready-ladder: admission refused before scheduled time ${plan.admissionAt}`);
|
|
27
|
+
}
|
|
28
|
+
if (now >= plan.stopAfterAt) {
|
|
29
|
+
throw new Error(`burst-ready-ladder: admission refused at or after TTL expiry ${plan.stopAfterAt}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Put the time-window check directly around the lease-opening operation. */
|
|
34
|
+
export function openBurstReadyLease<T>(plan: BurstReadyLadderPlan, now: number, openLease: () => T): T {
|
|
35
|
+
assertBurstAdmissionWindow(plan, now);
|
|
36
|
+
return openLease();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Plan the warm-up boundary and a TTL that starts at admission, not at preparation. */
|
|
40
|
+
export function planBurstReadyLadder(request: BurstReadyLadderRequest): BurstReadyLadderPlan {
|
|
41
|
+
if (!/^[A-Za-z0-9._-]{1,64}$/.test(request.requestId)) {
|
|
42
|
+
throw new Error('burst-ready-ladder: requestId must be 1-64 safe identifier characters');
|
|
43
|
+
}
|
|
44
|
+
if (!(BURST_READY_PURPOSES as readonly string[]).includes(request.purpose)) {
|
|
45
|
+
throw new Error('burst-ready-ladder: purpose must be gate, implementation, or execution');
|
|
46
|
+
}
|
|
47
|
+
if (!/^sha256:[a-f0-9]{64}$/.test(request.imageDigest)) {
|
|
48
|
+
throw new Error('burst-ready-ladder: pinned sha256 imageDigest is required');
|
|
49
|
+
}
|
|
50
|
+
if (!Number.isFinite(request.admissionAt) || request.admissionAt <= HOUR_MS) {
|
|
51
|
+
throw new Error('burst-ready-ladder: admissionAt must be a positive Unix-millisecond epoch');
|
|
52
|
+
}
|
|
53
|
+
if (request.ttlHours !== 2 && request.ttlHours !== 4) {
|
|
54
|
+
throw new Error('burst-ready-ladder: ttlHours must be 2 or 4');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const ttlMs = request.ttlHours * HOUR_MS;
|
|
58
|
+
const prepareAt = request.admissionAt - HOUR_MS;
|
|
59
|
+
const stopAfterAt = request.admissionAt + ttlMs;
|
|
60
|
+
if (!Number.isFinite(stopAfterAt) || stopAfterAt <= request.admissionAt) {
|
|
61
|
+
throw new Error('burst-ready-ladder: stopAfterAt is outside the supported epoch range');
|
|
62
|
+
}
|
|
63
|
+
return { ...request, prepareAt, ttlMs, stopAfterAt };
|
|
64
|
+
}
|
package/src/fleet/host-doctor.ts
CHANGED
|
@@ -103,7 +103,67 @@ export function normalizeArch(arch: string): string {
|
|
|
103
103
|
return lower;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
/**
|
|
106
|
+
/** Parse the ASCII-only PowerShell task observation emitted by the read-only WSL probe. */
|
|
107
|
+
export function parseWslKeepaliveObservation(stdout: string): HostDoctorExpectResult {
|
|
108
|
+
const observed = line(stdout);
|
|
109
|
+
const expected = 'enabled current-user logon task runs this distro keepalive indefinitely without idle or battery stop conditions';
|
|
110
|
+
if (observed === 'no-windows-interop') {
|
|
111
|
+
return { status: 'unmeasured', observed: 'powershell.exe is unavailable through WSL interop', expected };
|
|
112
|
+
}
|
|
113
|
+
if (observed === 'unsupported-distro') {
|
|
114
|
+
return { status: 'unmeasured', observed: 'WSL_DISTRO_NAME is missing or is not a supported managed distro', expected };
|
|
115
|
+
}
|
|
116
|
+
if (observed === 'no-script-encoder') {
|
|
117
|
+
return { status: 'unmeasured', observed: 'iconv or base64 is unavailable for safe PowerShell command encoding', expected };
|
|
118
|
+
}
|
|
119
|
+
const fields = observed.split('|');
|
|
120
|
+
if (fields.length === 18 && fields[0] === 'task' && (fields[1] === 'ElangramWslKeepalive' || fields[1] === 'ElanainucWslKeepalive')) {
|
|
121
|
+
const [, name = '', state = '', triggerType = '', triggerEnabled = '', triggerUser = '', principalUser = '', currentUser = '', logonType = '', stopOnIdleEnd = '', idleDuration = '', disallowStartOnBattery = '', stopOnBattery = '', executionTimeLimit = '', triggerExecutionTimeLimit = '', actionCount = '', execute = '', args = ''] = fields;
|
|
122
|
+
const distro = name === 'ElangramWslKeepalive' ? 'elangram-wsl' : 'host-e-wsl';
|
|
123
|
+
const argsNormalized = args.trim().replace(/\s+/g, ' ').toLowerCase();
|
|
124
|
+
const actionMatches = /(?:^|\\|\/)wsl\.exe$/i.test(execute) && argsNormalized === `-d ${distro} --exec /usr/bin/sleep infinity`;
|
|
125
|
+
const known = (value: string) => value !== '' && value !== '<unknown>';
|
|
126
|
+
if (triggerUser === '<unknown>') {
|
|
127
|
+
return { status: 'unmeasured', observed: `${name} trigger user SID could not be resolved`, expected };
|
|
128
|
+
}
|
|
129
|
+
const principalMatches = known(principalUser) && known(currentUser)
|
|
130
|
+
&& principalUser.toLowerCase() === currentUser.toLowerCase();
|
|
131
|
+
const triggerUserMatches = triggerUser === '<not-set>'
|
|
132
|
+
|| (known(triggerUser) && known(currentUser) && triggerUser.toLowerCase() === currentUser.toLowerCase());
|
|
133
|
+
const userMatches = principalMatches && triggerUserMatches;
|
|
134
|
+
const seconds = (value: string): number => {
|
|
135
|
+
const match = /^P(?:(\d+(?:\.\d+)?)D)?(?:T(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?)?$/i.exec(value);
|
|
136
|
+
if (!match || !match.slice(1).some((part) => part !== undefined)) return Number.NaN;
|
|
137
|
+
return Number(match[1] ?? 0) * 86400 + Number(match[2] ?? 0) * 3600 + Number(match[3] ?? 0) * 60 + Number(match[4] ?? 0);
|
|
138
|
+
};
|
|
139
|
+
const taskLimitSeconds = seconds(executionTimeLimit);
|
|
140
|
+
const triggerLimitSeconds = triggerExecutionTimeLimit === '<not-set>' ? 0 : seconds(triggerExecutionTimeLimit);
|
|
141
|
+
const bool = (value: string) => value.toLowerCase();
|
|
142
|
+
const finiteTaskLimit = known(executionTimeLimit) && Number.isFinite(taskLimitSeconds) && taskLimitSeconds > 0;
|
|
143
|
+
const finiteTriggerLimit = known(triggerExecutionTimeLimit) && Number.isFinite(triggerLimitSeconds) && triggerLimitSeconds > 0;
|
|
144
|
+
const failed = state === 'Disabled' || triggerType !== 'MSFT_TaskLogonTrigger' || bool(triggerEnabled) === 'false'
|
|
145
|
+
|| logonType !== 'InteractiveToken' || actionCount !== '1' || !actionMatches
|
|
146
|
+
|| (known(principalUser) && known(currentUser) && !userMatches)
|
|
147
|
+
|| bool(stopOnIdleEnd) === 'true' || bool(disallowStartOnBattery) === 'true' || bool(stopOnBattery) === 'true'
|
|
148
|
+
|| finiteTaskLimit || finiteTriggerLimit;
|
|
149
|
+
const fullyMeasured = [state, triggerType, triggerEnabled, triggerUser, principalUser, currentUser, logonType,
|
|
150
|
+
stopOnIdleEnd, disallowStartOnBattery, stopOnBattery, executionTimeLimit, triggerExecutionTimeLimit, actionCount, execute, args].every(known);
|
|
151
|
+
const booleansKnown = [triggerEnabled, stopOnIdleEnd, disallowStartOnBattery, stopOnBattery].every((value) => ['true', 'false'].includes(bool(value)));
|
|
152
|
+
const limitsKnown = known(executionTimeLimit) && Number.isFinite(taskLimitSeconds)
|
|
153
|
+
&& known(triggerExecutionTimeLimit) && Number.isFinite(triggerLimitSeconds);
|
|
154
|
+
const passes = !failed && fullyMeasured && booleansKnown && limitsKnown && userMatches
|
|
155
|
+
&& bool(triggerEnabled) === 'true' && bool(stopOnIdleEnd) === 'false'
|
|
156
|
+
&& bool(disallowStartOnBattery) === 'false' && bool(stopOnBattery) === 'false'
|
|
157
|
+
&& taskLimitSeconds === 0 && triggerLimitSeconds === 0;
|
|
158
|
+
const status = passes ? 'pass' : failed ? 'fail' : 'unmeasured';
|
|
159
|
+
const detail = `${name} state=${state || 'unknown'} trigger=${triggerType || 'unknown'} triggerEnabled=${triggerEnabled || 'unknown'} triggerUser=${triggerUser || 'unknown'} principal=${principalUser || 'unknown'} currentUser=${currentUser || 'unknown'} logonType=${logonType || 'unknown'} actions=${actionCount || 'unknown'} action=${execute || 'none'} ${args || '(no arguments)'} idleStop=${stopOnIdleEnd || 'unknown'} idleDuration=${idleDuration || 'none'} disallowStartOnBattery=${disallowStartOnBattery || 'unknown'} stopOnBattery=${stopOnBattery || 'unknown'} executionTimeLimit=${executionTimeLimit || 'unknown'} triggerExecutionTimeLimit=${triggerExecutionTimeLimit || 'unknown'}`;
|
|
160
|
+
return { status, observed: detail, expected };
|
|
161
|
+
}
|
|
162
|
+
if (observed === 'missing') return { status: 'fail', observed: 'no matching per-user logon task registered', expected };
|
|
163
|
+
return { status: 'unmeasured', observed: observed || 'task query returned no readable result', expected };
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
107
167
|
export const HOST_DOCTOR_CHECKS: readonly HostDoctorCheckSpec[] = [
|
|
108
168
|
// ── 접근 ──
|
|
109
169
|
{
|
|
@@ -256,6 +316,16 @@ export const HOST_DOCTOR_CHECKS: readonly HostDoctorCheckSpec[] = [
|
|
|
256
316
|
fixKind: 'auto',
|
|
257
317
|
fix: 'pull the image pinned to this host architecture',
|
|
258
318
|
},
|
|
319
|
+
{
|
|
320
|
+
id: 'wsl.keepalive-logon-task',
|
|
321
|
+
bundle: 'platform',
|
|
322
|
+
platforms: ['wsl'],
|
|
323
|
+
roles: ALL_ROLES,
|
|
324
|
+
probe: `command -v powershell.exe >/dev/null 2>&1 || { echo no-windows-interop; exit 0; }; case "\${WSL_DISTRO_NAME:-}" in elangram-wsl) taskName=ElangramWslKeepalive ;; host-e-wsl) taskName=ElanainucWslKeepalive ;; *) echo unsupported-distro; exit 0 ;; esac; command -v iconv >/dev/null 2>&1 && command -v base64 >/dev/null 2>&1 || { echo no-script-encoder; exit 0; }; psScript='$ErrorActionPreference="Stop";$name="TASKNAME";$task=Get-ScheduledTask -TaskName $name -ErrorAction SilentlyContinue;if($null -eq $task){Write-Output "missing";exit 0};$trigger=@($task.Triggers|Where-Object{$_.CimClass.CimClassName -eq "MSFT_TaskLogonTrigger"}|Select-Object -First 1);$triggerType=if($trigger.Count -gt 0){"MSFT_TaskLogonTrigger"}else{"none"};$triggerUserRaw=if($trigger.Count -gt 0){$trigger[0].UserId}else{$null};$triggerUser=if([string]::IsNullOrWhiteSpace([string]$triggerUserRaw)){"<not-set>"}else{$triggerUserRaw};if($triggerUser -ne "<not-set>" -and $triggerUser -notmatch "^S-1-"){try{$triggerUser=[Security.Principal.NTAccount]::new($triggerUser).Translate([Security.Principal.SecurityIdentifier]).Value}catch{$triggerUser="<unknown>"}};$triggerEnabled=if($trigger.Count -gt 0){$trigger[0].Enabled}else{$null};$triggerExecutionTimeLimit=if($trigger.Count -gt 0){if($null -eq $trigger[0].ExecutionTimeLimit){"<not-set>"}else{$trigger[0].ExecutionTimeLimit}}else{$null};$action=$task.Actions|Select-Object -First 1;$principalUser=$task.Principal.UserId;if($principalUser -and $principalUser -notmatch "^S-1-"){try{$principalUser=[Security.Principal.NTAccount]::new($principalUser).Translate([Security.Principal.SecurityIdentifier]).Value}catch{$principalUser="<unknown>"}};$current=[Security.Principal.WindowsIdentity]::GetCurrent().User.Value;$values=@("task",$name,$task.State,$triggerType,$triggerEnabled,$triggerUser,$principalUser,$current,$task.Principal.LogonType,$task.Settings.IdleSettings.StopOnIdleEnd,$task.Settings.IdleSettings.IdleDuration,$task.Settings.DisallowStartIfOnBatteries,$task.Settings.StopIfGoingOnBatteries,$task.Settings.ExecutionTimeLimit,$triggerExecutionTimeLimit,@($task.Actions).Count,$action.Execute,$action.Arguments);Write-Output (($values|ForEach-Object{if($null -eq $_){"<unknown>"}elseif($_ -is [bool]){$_.ToString()}elseif([string]$_ -eq ""){"<unknown>"}else{$_}}) -join "|")'; psScript="\${psScript/TASKNAME/$taskName}"; encoded=$(printf '%s' "$psScript" | iconv -f UTF-8 -t UTF-16LE | base64 | tr -d '\n') || { echo no-script-encoder; exit 0; }; powershell.exe -NoProfile -NonInteractive -EncodedCommand "$encoded"`,
|
|
325
|
+
expect: (run) => parseWslKeepaliveObservation(run.stdout),
|
|
326
|
+
fixKind: 'human',
|
|
327
|
+
fix: 'Windows 작업 스케줄러에서 per-user 로그온 작업을 등록/활성화한다: ElangramWslKeepalive는 InteractiveToken 로그온 트리거와 `wsl.exe -d elangram-wsl --exec /usr/bin/sleep infinity`, ElanainucWslKeepalive는 InteractiveToken 로그온 트리거와 `wsl.exe -d host-e-wsl --exec /usr/bin/sleep infinity`를 쓴다. 작업과 로그온 트리거의 실행 시간 제한을 무제한(PT0S)으로 두고, Idle 종료를 끄며 배터리 사용 중 시작·유지를 허용한 뒤 doctor를 다시 실행한다.',
|
|
328
|
+
},
|
|
259
329
|
{
|
|
260
330
|
id: 'node.present',
|
|
261
331
|
bundle: 'platform',
|
|
@@ -405,7 +475,7 @@ export async function runHostDoctor(options: HostDoctorOptions): Promise<HostDoc
|
|
|
405
475
|
const reached = await remote(host, 'uname -s') !== null;
|
|
406
476
|
const platform = reached ? await detectHostDoctorPlatform(remote, host) : null;
|
|
407
477
|
const arch = reached ? await detectHostDoctorArch(remote, host) : null;
|
|
408
|
-
const specs = HOST_DOCTOR_CHECKS.filter((spec) => spec.roles.includes(role));
|
|
478
|
+
const specs = HOST_DOCTOR_CHECKS.filter((spec) => spec.roles.includes(role) && (spec.id !== 'wsl.keepalive-logon-task' || platform === 'wsl'));
|
|
409
479
|
const remoteChecks = reached
|
|
410
480
|
? await Promise.all(specs.map((spec) => runCheck(spec, { host, remote, role, platform, arch, expected })))
|
|
411
481
|
: specs.map((spec) => unmeasuredBecauseUnreached(spec, { platform, arch, expected }));
|
|
@@ -441,6 +511,7 @@ export function formatHostDoctorLines(report: HostDoctorReport): string[] {
|
|
|
441
511
|
}
|
|
442
512
|
const mark = check.status === 'pass' ? '✓' : check.status === 'fail' ? '✗' : '→';
|
|
443
513
|
const detail = check.status === 'fail' ? `${check.observed} (expected: ${check.expected})` : check.observed;
|
|
444
|
-
|
|
514
|
+
const remedy = check.id === 'wsl.keepalive-logon-task' && check.status !== 'pass' && check.fix ? ` · 수동 조치: ${check.fix}` : '';
|
|
515
|
+
return `${mark} ${check.id} ${detail}${remedy}`;
|
|
445
516
|
});
|
|
446
517
|
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { ResourceLedger, type ResourceRecord, type ResourceView } from '../control-plane/ledger.js';
|
|
2
|
+
import { debug } from '../debug/log.js';
|
|
3
|
+
|
|
4
|
+
export type InventoryRole = 'ta-parent' | 'train' | 'gate' | 'control' | 'map-reduce' | 'implementation';
|
|
5
|
+
export interface InventoryResourceInput {
|
|
6
|
+
id: string; machine: string; name: string; provider: 'local' | 'aws' | 'gcp' | 'azure' | 'oci' | 'container' | 'orbstack';
|
|
7
|
+
purpose?: string; ownerSeat: string; role: InventoryRole; account?: string; region?: string; instanceType?: string;
|
|
8
|
+
hourlyCost?: number; startSignedAt: number; firstWorkAt?: number; expiresAt?: number; lastActivityAt?: number;
|
|
9
|
+
state?: Record<string, unknown>; releaseConditions?: { expiresAt?: number; idleMinutes?: number };
|
|
10
|
+
}
|
|
11
|
+
export interface DiscoveredInventoryResource { id: string; machine: string; provider: string; name?: string }
|
|
12
|
+
export interface InventoryAlert { id: string; reason: 'unregistered' | 'expired' | 'missing-purpose' | 'idle-over-7-days'; message: string }
|
|
13
|
+
export interface InventorySnapshot { resources: ResourceView[]; alerts: InventoryAlert[]; estimatedCostToday: number; estimatedCumulativeCost: number; unpricedResources: number }
|
|
14
|
+
const NEVER_EXPIRES_MS = 100 * 365 * 24 * 60 * 60 * 1000;
|
|
15
|
+
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
16
|
+
|
|
17
|
+
function inventoryAttrs(input: InventoryResourceInput): Record<string, unknown> {
|
|
18
|
+
if (!input.id.trim() || !input.machine.trim() || !input.name.trim() || !input.ownerSeat.trim()) throw new Error('inventory id, machine, name, ownerSeat are required');
|
|
19
|
+
if (!Number.isFinite(input.startSignedAt) || (input.expiresAt !== undefined && !Number.isFinite(input.expiresAt))) throw new Error('inventory timestamps must be finite');
|
|
20
|
+
const hourlyCost = input.hourlyCost ?? 0;
|
|
21
|
+
if (!Number.isFinite(hourlyCost) || hourlyCost < 0) throw new Error('hourlyCost must be a nonnegative finite number');
|
|
22
|
+
const expiryAt = [input.expiresAt, input.releaseConditions?.expiresAt]
|
|
23
|
+
.filter((value): value is number => value !== undefined).sort((a, b) => a - b)[0];
|
|
24
|
+
return {
|
|
25
|
+
inventory: true, provider: input.provider, purpose: input.purpose?.trim() || '', ownerSeat: input.ownerSeat,
|
|
26
|
+
role: input.role, ...(input.account ? { account: input.account } : {}), ...(input.region ? { region: input.region } : {}),
|
|
27
|
+
...(input.instanceType ? { instanceType: input.instanceType } : {}), hourlyCost: input.hourlyCost === undefined ? null : hourlyCost, startSignedAt: input.startSignedAt,
|
|
28
|
+
...(input.firstWorkAt === undefined ? {} : { firstWorkAt: input.firstWorkAt }),
|
|
29
|
+
...(input.lastActivityAt === undefined ? {} : { lastActivityAt: input.lastActivityAt }),
|
|
30
|
+
...(expiryAt === undefined ? {} : { expiresAt: expiryAt }),
|
|
31
|
+
state: input.state ?? {}, releaseConditions: { ...(expiryAt === undefined ? {} : { expiresAt: expiryAt }), ...(input.releaseConditions?.idleMinutes === undefined ? {} : { idleMinutes: input.releaseConditions.idleMinutes }) },
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function registerInventoryResource(input: InventoryResourceInput, ledger = new ResourceLedger(), now = Date.now()): ResourceRecord {
|
|
35
|
+
const attrs = inventoryAttrs(input);
|
|
36
|
+
const expiryAt = typeof attrs.expiresAt === 'number' ? attrs.expiresAt : undefined;
|
|
37
|
+
const ttlMs = expiryAt === undefined ? NEVER_EXPIRES_MS : Math.max(0, expiryAt - now);
|
|
38
|
+
const row = ledger.register({ id: 'fleet:' + input.id, kind: 'fleet-resource', machine: input.machine, name: input.name,
|
|
39
|
+
owner: input.ownerSeat, attrs, observedAt: now, ttlMs }, input.ownerSeat);
|
|
40
|
+
debug.log('fleet.inventory', 'registered', { id: input.id, provider: input.provider, role: input.role });
|
|
41
|
+
return row;
|
|
42
|
+
}
|
|
43
|
+
/** Create first, then persist to the Nexus ledger; registration failure invokes a safe stop cleanup. */
|
|
44
|
+
export async function createRegisteredInventoryResource<T>(
|
|
45
|
+
input: InventoryResourceInput,
|
|
46
|
+
create: () => Promise<T>,
|
|
47
|
+
stopOnRegistrationFailure: () => Promise<void>,
|
|
48
|
+
ledger = new ResourceLedger(),
|
|
49
|
+
now = Date.now(),
|
|
50
|
+
): Promise<{ resource: T; record: ResourceRecord }> {
|
|
51
|
+
const resource = await create();
|
|
52
|
+
try {
|
|
53
|
+
return { resource, record: registerInventoryResource(input, ledger, now) };
|
|
54
|
+
} catch (error) {
|
|
55
|
+
try { await stopOnRegistrationFailure(); }
|
|
56
|
+
catch (cleanupError) {
|
|
57
|
+
debug.log('fleet.inventory', 'registration-cleanup-failed', {
|
|
58
|
+
id: input.id, error: cleanupError instanceof Error ? cleanupError.message : String(cleanupError),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function unregisterInventoryResource(id: string, ownerSeat: string, ledger = new ResourceLedger(), stoppedAt = Date.now()): void {
|
|
66
|
+
archiveInventoryResource(id, ownerSeat, ledger, stoppedAt);
|
|
67
|
+
debug.log('fleet.inventory', 'unregistered', { id });
|
|
68
|
+
}
|
|
69
|
+
export function archiveInventoryResource(id: string, ownerSeat: string, ledger = new ResourceLedger(), stoppedAt = Date.now()): ResourceRecord {
|
|
70
|
+
const recordId = id.startsWith('fleet:') ? id : 'fleet:' + id;
|
|
71
|
+
const row = [...ledger.list({ kind: 'fleet-resource' }), ...ledger.list({ kind: 'machine' })]
|
|
72
|
+
.find(candidate => candidate.id === recordId && (candidate.attrs.inventory === true || candidate.attrs.inventory === 'archived'));
|
|
73
|
+
if (!row) throw new Error('inventory resource not found: ' + recordId);
|
|
74
|
+
const hourlyCost = row.attrs.hourlyCost;
|
|
75
|
+
const start = Number(row.attrs.startSignedAt) || row.observedAt;
|
|
76
|
+
const cumulativeCost = typeof hourlyCost === 'number' && Number.isFinite(hourlyCost)
|
|
77
|
+
? Math.max(0, stoppedAt - start) / 3_600_000 * hourlyCost : null;
|
|
78
|
+
return ledger.heartbeat(recordId, ownerSeat, { inventory: 'archived', stoppedAt, cumulativeCost });
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function inspectInventory(ledger = new ResourceLedger(), discovered: readonly DiscoveredInventoryResource[] = [], now = Date.now()): InventorySnapshot {
|
|
82
|
+
const ledgerRows = [
|
|
83
|
+
...ledger.list({ kind: 'fleet-resource' }, now),
|
|
84
|
+
...ledger.list({ kind: 'machine' }, now).filter(row => row.attrs.inventory === true || row.attrs.inventory === 'archived'),
|
|
85
|
+
];
|
|
86
|
+
const resources = ledgerRows.filter(row => row.attrs.inventory === true);
|
|
87
|
+
const costRows = ledgerRows.filter(row => row.attrs.inventory === true || row.attrs.inventory === 'archived');
|
|
88
|
+
const unpricedResources = costRows.filter(row => typeof row.attrs.hourlyCost !== 'number' || !Number.isFinite(row.attrs.hourlyCost)).length;
|
|
89
|
+
const registered = new Set(resources.map(row => row.id.slice('fleet:'.length)));
|
|
90
|
+
const alerts: InventoryAlert[] = [];
|
|
91
|
+
for (const row of resources) {
|
|
92
|
+
const id = row.id.slice('fleet:'.length);
|
|
93
|
+
if (row.expired) alerts.push({ id, reason: 'expired', message: id + ' release deadline passed' });
|
|
94
|
+
if (typeof row.attrs.purpose !== 'string' || !row.attrs.purpose.trim()) alerts.push({ id, reason: 'missing-purpose', message: id + ' has no purpose' });
|
|
95
|
+
const lastActivityAt = typeof row.attrs.lastActivityAt === 'number' ? row.attrs.lastActivityAt : row.observedAt;
|
|
96
|
+
if (now - lastActivityAt > 7 * DAY_MS) alerts.push({ id, reason: 'idle-over-7-days', message: id + ' idle for more than 7 days' });
|
|
97
|
+
}
|
|
98
|
+
for (const item of discovered) if (!registered.has(item.id)) alerts.push({ id: item.id, reason: 'unregistered', message: item.provider + ' resource ' + item.id + ' is outside the inventory' });
|
|
99
|
+
const estimatedCumulativeCost = costRows.reduce((sum, row) => {
|
|
100
|
+
if (row.attrs.inventory === 'archived') {
|
|
101
|
+
const stoppedAt = Number(row.attrs.stoppedAt) || now;
|
|
102
|
+
if (stoppedAt <= now) return sum + (Number(row.attrs.cumulativeCost) || 0);
|
|
103
|
+
const rate = typeof row.attrs.hourlyCost === 'number' ? row.attrs.hourlyCost : 0;
|
|
104
|
+
const start = Number(row.attrs.startSignedAt) || row.observedAt;
|
|
105
|
+
return sum + Math.max(0, now - start) / 3_600_000 * rate;
|
|
106
|
+
}
|
|
107
|
+
const rate = typeof row.attrs.hourlyCost === 'number' ? row.attrs.hourlyCost : 0;
|
|
108
|
+
const start = Number(row.attrs.startSignedAt) || row.observedAt;
|
|
109
|
+
return sum + Math.max(0, now - start) / 3_600_000 * rate;
|
|
110
|
+
}, 0);
|
|
111
|
+
const todayStart = new Date(now); todayStart.setUTCHours(0, 0, 0, 0);
|
|
112
|
+
const estimatedCostToday = costRows.reduce((sum, row) => {
|
|
113
|
+
const rate = typeof row.attrs.hourlyCost === 'number' ? row.attrs.hourlyCost : undefined;
|
|
114
|
+
if (rate === undefined) return sum;
|
|
115
|
+
const from = Math.max(todayStart.getTime(), Number(row.attrs.startSignedAt) || row.observedAt);
|
|
116
|
+
const end = row.attrs.inventory === 'archived' ? Math.min(Number(row.attrs.stoppedAt) || now, now) : now;
|
|
117
|
+
return sum + Math.max(0, end - from) / 3_600_000 * rate;
|
|
118
|
+
}, 0);
|
|
119
|
+
debug.log('fleet.inventory', 'inspected', { resources: resources.length, alerts: alerts.length, estimatedCostToday });
|
|
120
|
+
return { resources, alerts, estimatedCostToday, estimatedCumulativeCost, unpricedResources };
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** Stop adapter is injected so tests use fake-cloud-vm and production providers can be added independently. */
|
|
124
|
+
export async function stopReleasedInventoryResources(
|
|
125
|
+
snapshot: InventorySnapshot,
|
|
126
|
+
stop: (resource: ResourceRecord) => Promise<void>,
|
|
127
|
+
notifyOwner: (message: string) => Promise<void>,
|
|
128
|
+
now = Date.now(),
|
|
129
|
+
ledger = new ResourceLedger(),
|
|
130
|
+
clock: () => number = Date.now,
|
|
131
|
+
): Promise<string[]> {
|
|
132
|
+
const stopped: string[] = [];
|
|
133
|
+
for (const row of snapshot.resources) {
|
|
134
|
+
const conditions = row.attrs.releaseConditions as { expiresAt?: number; idleMinutes?: number };
|
|
135
|
+
const lastActivityAt = Number(row.attrs.lastActivityAt) || row.observedAt;
|
|
136
|
+
const storedExpiry = typeof row.attrs.expiresAt === 'number' ? row.attrs.expiresAt : undefined;
|
|
137
|
+
const expiryAt = [conditions.expiresAt, storedExpiry].filter((value): value is number => value !== undefined).sort((a, b) => a - b)[0];
|
|
138
|
+
const releaseDue = (expiryAt !== undefined && now >= expiryAt)
|
|
139
|
+
|| (conditions.idleMinutes !== undefined && now - lastActivityAt >= conditions.idleMinutes * 60_000);
|
|
140
|
+
if (!releaseDue || row.attrs.provider === 'local' || row.attrs.provider === 'container' || row.attrs.provider === 'orbstack') continue;
|
|
141
|
+
try {
|
|
142
|
+
await stop(row);
|
|
143
|
+
const stoppedAt = Math.max(now, clock());
|
|
144
|
+
archiveInventoryResource(row.id, String(row.attrs.ownerSeat || row.owner), ledger, stoppedAt);
|
|
145
|
+
stopped.push(row.id); debug.log('fleet.inventory', 'stopped', { id: row.id, action: 'stop' });
|
|
146
|
+
} catch (error) {
|
|
147
|
+
const message = 'fleet inventory stop failed for ' + row.id + ': ' + (error instanceof Error ? error.message : String(error));
|
|
148
|
+
debug.log('fleet.inventory', 'stop-failed', { id: row.id, message });
|
|
149
|
+
await notifyOwner(message);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return stopped;
|
|
153
|
+
}
|
|
154
|
+
|
package/src/git-fs/worktree.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// the pattern; we trim the hook-based fallback (sandboxed envs)
|
|
10
10
|
// because elanous's primary surface runs native git.
|
|
11
11
|
|
|
12
|
-
import { spawnSync,
|
|
12
|
+
import { spawnSync, type SpawnSyncReturns } from 'node:child_process';
|
|
13
13
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, writeFileSync, rmSync, symlinkSync, lstatSync, unlinkSync } from 'node:fs';
|
|
14
14
|
import { homedir } from 'node:os';
|
|
15
15
|
import { basename, dirname, join, resolve } from 'node:path';
|
|
@@ -1173,24 +1173,48 @@ export function cleanupStaleWorktreeSessions(): StaleCleanupResult {
|
|
|
1173
1173
|
return { scanned, removed, kept };
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
1176
|
-
/** Resolve the main repo root
|
|
1177
|
-
*
|
|
1178
|
-
*
|
|
1179
|
-
|
|
1180
|
-
|
|
1176
|
+
/** Resolve the main repo root when the common Git directory belongs to a
|
|
1177
|
+
* conventional checkout. Bare shared stores have no main working tree, so
|
|
1178
|
+
* the current linked worktree is the only valid root to return. */
|
|
1179
|
+
export function resolveMainRepoRoot(
|
|
1180
|
+
cwd: string,
|
|
1181
|
+
run: (cwd: string, args: string[]) => { status: number | null; stdout: string } = (directory, args) => {
|
|
1182
|
+
const result = spawnSync('git', args, { cwd: directory, encoding: 'utf8', timeout: GIT_TIMEOUT_MS, stdio: ['ignore', 'pipe', 'pipe'] });
|
|
1183
|
+
return { status: result.status, stdout: result.stdout ?? '' };
|
|
1184
|
+
},
|
|
1185
|
+
): string | null {
|
|
1181
1186
|
const located = findGitDir(cwd);
|
|
1182
1187
|
if (!located) return null;
|
|
1183
1188
|
if (!located.isWorktree) return located.root;
|
|
1184
|
-
// commonGitDir is <main>/.git — strip the trailing /.git.
|
|
1185
1189
|
const common = located.commonGitDir;
|
|
1190
|
+
// Ask Git through the valid working tree, but inspect the shared store's
|
|
1191
|
+
// bare flag. A bare store can itself be named `.git` (or `repo.git`).
|
|
1192
|
+
const bareArgs = ['--git-dir', common, 'rev-parse', '--is-bare-repository'];
|
|
1193
|
+
const bare = run(located.root, bareArgs);
|
|
1194
|
+
debug.log('git-fs', 'resolve-main-repo-root-probe', {
|
|
1195
|
+
cwd: located.root,
|
|
1196
|
+
args: bareArgs,
|
|
1197
|
+
outcome: bare.status === 0 ? 'ok' : 'failed',
|
|
1198
|
+
status: bare.status,
|
|
1199
|
+
stdout: bare.stdout.trim(),
|
|
1200
|
+
});
|
|
1201
|
+
if (bare.status !== 0 || bare.stdout.trim() === 'true') return located.root;
|
|
1202
|
+
// commonGitDir is <main>/.git — strip the trailing /.git only after
|
|
1203
|
+
// proving this is a non-bare repository.
|
|
1186
1204
|
if (common.endsWith('/.git')) return common.slice(0, -'/.git'.length);
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1205
|
+
// Preserve the separate-git-dir fallback only when its parent is itself a
|
|
1206
|
+
// known checkout. Never run rev-parse from an arbitrary workspace container.
|
|
1207
|
+
const commonParent = dirname(common);
|
|
1208
|
+
if (!findGitDir(commonParent)) return located.root;
|
|
1209
|
+
const worktreeArgs = ['rev-parse', '--show-toplevel'];
|
|
1210
|
+
const worktrees = run(commonParent, worktreeArgs);
|
|
1211
|
+
debug.log('git-fs', 'resolve-main-repo-root-probe', {
|
|
1212
|
+
cwd: commonParent,
|
|
1213
|
+
args: worktreeArgs,
|
|
1214
|
+
outcome: worktrees.status === 0 ? 'ok' : 'failed',
|
|
1215
|
+
status: worktrees.status,
|
|
1216
|
+
stdout: worktrees.stdout,
|
|
1217
|
+
});
|
|
1218
|
+
if (worktrees.status === 0 && worktrees.stdout.trim()) return worktrees.stdout.trim();
|
|
1219
|
+
return located.root;
|
|
1196
1220
|
}
|
|
@@ -170,7 +170,7 @@ export interface GraphRunState {
|
|
|
170
170
|
nodes: Array<{ nodeId: string; ok: boolean; exit: number | null; executed: boolean; output?: unknown; error?: string; reason?: string;
|
|
171
171
|
failure?: { errorCode: string; message: string; stage: string }; decidedBy?: string; decidedAt?: string;
|
|
172
172
|
startedAt?: string; endedAt?: string; seconds?: number;
|
|
173
|
-
waiver?: { reason: string; at: string; /** RELEASE-WAIVE-UNMEASURED — why the waived gate had no verdict. */ unmeasured?: string; original: { exit: number | null; output?: unknown; error?: string } } }>;
|
|
173
|
+
waiver?: { reason: string; at: string; approvedBy?: string; introducedIds?: string[]; ownerWaived?: boolean; /** RELEASE-WAIVE-UNMEASURED — why the waived gate had no verdict. */ unmeasured?: string; original: { exit: number | null; output?: unknown; error?: string } } }>;
|
|
174
174
|
/** The node now running and when it started; cleared when its record is written. */
|
|
175
175
|
currentNode?: { nodeId: string; startedAt: string };
|
|
176
176
|
input?: unknown;
|
|
@@ -268,7 +268,7 @@ export interface GraphRunOptions {
|
|
|
268
268
|
/** Embedded runs (a classify verdict inside self-implement) keep the per-node `[graph]` stderr lines off the caller's terminal; debug.log still records every node. */
|
|
269
269
|
quiet?: boolean;
|
|
270
270
|
/** Release-only: accept the recorded failed node without executing it, and expose its regression to known-issues. */
|
|
271
|
-
releaseWaiver?: { nodeId: string; reason: string; requestedRegressions: AcceptedRegression[]; acceptedRegressions: AcceptedRegression[]; unmeasured?: string };
|
|
271
|
+
releaseWaiver?: { nodeId: string; reason: string; requestedRegressions: AcceptedRegression[]; acceptedRegressions: AcceptedRegression[]; approvedBy?: string; introducedIds?: string[]; ownerWaived?: boolean; unmeasured?: string };
|
|
272
272
|
/** Release-only: add accepted issues independently of a waiver at a restart boundary. */
|
|
273
273
|
releaseAcceptedRegressions?: { requested: AcceptedRegression[]; acceptedRegressions: AcceptedRegression[] };
|
|
274
274
|
/** Release-only (GATE-HOST-EXECUTOR): run the restarted gate on this executor — recorded in `inputOverrides`, never a waiver. */
|
|
@@ -977,9 +977,10 @@ export async function runGraph(path: string, options: GraphRunOptions = {}): Pro
|
|
|
977
977
|
}
|
|
978
978
|
if (options.releaseWaiver) {
|
|
979
979
|
if (graphId !== 'release-loop') throw new Error('release waiver requires the release-loop graph');
|
|
980
|
-
const checked = releaseResumeWaiver(state, { from: options.fromNodeId, waive: options.releaseWaiver.nodeId, reason: options.releaseWaiver.reason, acceptedRegressions: options.releaseWaiver.requestedRegressions });
|
|
980
|
+
const checked = releaseResumeWaiver(state, { from: options.fromNodeId, waive: options.releaseWaiver.ownerWaived ? undefined : options.releaseWaiver.nodeId, ownerWaive: options.releaseWaiver.ownerWaived ? options.releaseWaiver.nodeId : undefined, reason: options.releaseWaiver.reason, acceptedRegressions: options.releaseWaiver.requestedRegressions, approvedBy: options.releaseWaiver.approvedBy });
|
|
981
981
|
if (!checked || JSON.stringify(checked.acceptedRegressions) !== JSON.stringify(options.releaseWaiver.acceptedRegressions) ||
|
|
982
|
-
checked.unmeasured !== options.releaseWaiver.unmeasured
|
|
982
|
+
checked.unmeasured !== options.releaseWaiver.unmeasured || checked.approvedBy !== options.releaseWaiver.approvedBy ||
|
|
983
|
+
JSON.stringify(checked.introducedIds ?? []) !== JSON.stringify(options.releaseWaiver.introducedIds ?? []) || checked.ownerWaived !== options.releaseWaiver.ownerWaived) throw new Error('release waiver input changed before restart');
|
|
983
984
|
if (!releaseRouteReachesKnownIssues(graph.edges, nextNode(graph.edges, options.fromNodeId, 'ok', 'ok') ?? '')) {
|
|
984
985
|
throw new Error('waived node must reach known-issues before publication');
|
|
985
986
|
}
|
|
@@ -1522,7 +1523,7 @@ export async function runGraph(path: string, options: GraphRunOptions = {}): Pro
|
|
|
1522
1523
|
const nodeEndedAt = new Date(Math.max(Date.now(), Date.parse(nodeStartedAt))).toISOString();
|
|
1523
1524
|
delete state.currentNode;
|
|
1524
1525
|
if (waiving) {
|
|
1525
|
-
output = JSON.stringify({ outcome: 'ok', verdict: 'waived', summary: `waived ${current}`, reason: options.releaseWaiver!.reason });
|
|
1526
|
+
output = JSON.stringify(options.releaseWaiver!.ownerWaived ? { outcome: 'pass(owner-waived)', verdict: 'owner-waived', summary: `owner waived ${current}`, reason: options.releaseWaiver!.reason, approvedBy: options.releaseWaiver!.approvedBy } : { outcome: 'ok', verdict: 'waived', summary: `waived ${current}`, reason: options.releaseWaiver!.reason });
|
|
1526
1527
|
ok = true;
|
|
1527
1528
|
exit = 0;
|
|
1528
1529
|
}
|
|
@@ -1548,7 +1549,7 @@ export async function runGraph(path: string, options: GraphRunOptions = {}): Pro
|
|
|
1548
1549
|
};
|
|
1549
1550
|
state.nodes.push({ nodeId: current, ok, exit, executed: !waiving && (handlerExecuted || (!!command && (!state.dryRun || !!command.dry_run_command)) || (!!prompt && !state.dryRun) || (node.kind === 'classify' && !state.dryRun) || unitExecuted), ...((waiving || harnessLoopRoute || units.has(current) || handlerExecuted || ((command || prompt || approval || node.kind === 'classify') && (!state.dryRun || !!command?.dry_run_command))) && output !== undefined ? { output } : {}), ...(error ? { error } : {}),
|
|
1550
1551
|
...(failure ? { reason: failure.message, failure } : {}), ...(commandFailureReason && !failure ? { reason: commandFailureReason } : {}),
|
|
1551
|
-
...(waiving ? { waiver: { reason: options.releaseWaiver!.reason, at: nodeEndedAt, ...(options.releaseWaiver!.unmeasured === undefined ? {} : { unmeasured: options.releaseWaiver!.unmeasured }), original: { exit: waivedRecord!.exit, ...(waivedRecord!.output === undefined ? {} : { output: waivedRecord!.output }), ...(waivedRecord!.error === undefined ? {} : { error: waivedRecord!.error }) } } } : {}),
|
|
1552
|
+
...(waiving ? { waiver: { reason: options.releaseWaiver!.reason, at: nodeEndedAt, ...(options.releaseWaiver!.approvedBy === undefined ? {} : { approvedBy: options.releaseWaiver!.approvedBy }), ...(options.releaseWaiver!.ownerWaived ? { ownerWaived: true } : {}), ...(options.releaseWaiver!.introducedIds === undefined ? {} : { introducedIds: options.releaseWaiver!.introducedIds }), ...(options.releaseWaiver!.unmeasured === undefined ? {} : { unmeasured: options.releaseWaiver!.unmeasured }), original: { exit: waivedRecord!.exit, ...(waivedRecord!.output === undefined ? {} : { output: waivedRecord!.output }), ...(waivedRecord!.error === undefined ? {} : { error: waivedRecord!.error }) } } } : {}),
|
|
1552
1553
|
...(approval && state.pending ? { ...(state.pending.decidedBy === undefined ? {} : { decidedBy: state.pending.decidedBy }), decidedAt: state.pending.decidedAt } : {}),
|
|
1553
1554
|
startedAt: nodeStartedAt, endedAt: nodeEndedAt, seconds });
|
|
1554
1555
|
}
|