@integrity-labs/agt-cli 0.28.1245 → 0.28.1247
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/dist/bin/agt.js +6 -6
- package/dist/{chunk-RVZDFWIX.js → chunk-5RS4R43T.js} +5 -5
- package/dist/{chunk-EGMQVUAO.js → chunk-DXP7JXKR.js} +3 -3
- package/dist/{chunk-OSXVD3YF.js → chunk-ETLHVYWG.js} +10 -1
- package/dist/{chunk-OSXVD3YF.js.map → chunk-ETLHVYWG.js.map} +1 -1
- package/dist/{chunk-22GBHBJZ.js → chunk-JEIS2UOM.js} +2 -2
- package/dist/{chunk-JEC3BUC6.js → chunk-MM3OF6UT.js} +1 -1
- package/dist/chunk-MM3OF6UT.js.map +1 -0
- package/dist/{chunk-V47ZQJ3Y.js → chunk-W4HCSKZD.js} +2 -2
- package/dist/{claude-code-updater-6QVV5JHB.js → claude-code-updater-HCB6O4EB.js} +3 -3
- package/dist/{claude-pair-runtime-EBDJ7JJV.js → claude-pair-runtime-QRSPPPER.js} +4 -4
- package/dist/lib/manager-worker.js +290 -119
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +9 -0
- package/dist/mcp/index.js +9 -0
- package/dist/mcp/origami.js +9 -0
- package/dist/mcp/slack-channel.js +9 -0
- package/dist/mcp/telegram-channel.js +9 -0
- package/dist/{persistent-session-4HI235XH.js → persistent-session-W7AXIJPR.js} +4 -4
- package/dist/{responsiveness-probe-AD6WIPDA.js → responsiveness-probe-F6AUG6K2.js} +4 -4
- package/dist/{session-auth-dead-6FSKTBLA.js → session-auth-dead-IW36EKQV.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-JEC3BUC6.js.map +0 -1
- /package/dist/{chunk-RVZDFWIX.js.map → chunk-5RS4R43T.js.map} +0 -0
- /package/dist/{chunk-EGMQVUAO.js.map → chunk-DXP7JXKR.js.map} +0 -0
- /package/dist/{chunk-22GBHBJZ.js.map → chunk-JEIS2UOM.js.map} +0 -0
- /package/dist/{chunk-V47ZQJ3Y.js.map → chunk-W4HCSKZD.js.map} +0 -0
- /package/dist/{claude-code-updater-6QVV5JHB.js.map → claude-code-updater-HCB6O4EB.js.map} +0 -0
- /package/dist/{claude-pair-runtime-EBDJ7JJV.js.map → claude-pair-runtime-QRSPPPER.js.map} +0 -0
- /package/dist/{persistent-session-4HI235XH.js.map → persistent-session-W7AXIJPR.js.map} +0 -0
- /package/dist/{responsiveness-probe-AD6WIPDA.js.map → responsiveness-probe-F6AUG6K2.js.map} +0 -0
- /package/dist/{session-auth-dead-6FSKTBLA.js.map → session-auth-dead-IW36EKQV.js.map} +0 -0
|
@@ -47107,6 +47107,15 @@ var FLAG_REGISTRY = [
|
|
|
47107
47107
|
// §4 reserves for deliberate, audited flips.
|
|
47108
47108
|
sensitive: true
|
|
47109
47109
|
},
|
|
47110
|
+
{
|
|
47111
|
+
key: "org-two-factor-enforcement",
|
|
47112
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware API-ONLY: host routes (hostAuthMiddleware) and the webapp (server components, /api handlers) are NOT covered until ENG-12023 lands, so DO NOT turn this on before then, whatever a customer asks for. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
47113
|
+
flagType: "boolean",
|
|
47114
|
+
defaultValue: false,
|
|
47115
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
47116
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
47117
|
+
sensitive: true
|
|
47118
|
+
},
|
|
47110
47119
|
{
|
|
47111
47120
|
key: "first-party-token-refusal",
|
|
47112
47121
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
package/dist/mcp/index.js
CHANGED
|
@@ -32789,6 +32789,15 @@ var FLAG_REGISTRY = [
|
|
|
32789
32789
|
// §4 reserves for deliberate, audited flips.
|
|
32790
32790
|
sensitive: true
|
|
32791
32791
|
},
|
|
32792
|
+
{
|
|
32793
|
+
key: "org-two-factor-enforcement",
|
|
32794
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware API-ONLY: host routes (hostAuthMiddleware) and the webapp (server components, /api handlers) are NOT covered until ENG-12023 lands, so DO NOT turn this on before then, whatever a customer asks for. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
32795
|
+
flagType: "boolean",
|
|
32796
|
+
defaultValue: false,
|
|
32797
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
32798
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
32799
|
+
sensitive: true
|
|
32800
|
+
},
|
|
32792
32801
|
{
|
|
32793
32802
|
key: "first-party-token-refusal",
|
|
32794
32803
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
package/dist/mcp/origami.js
CHANGED
|
@@ -46591,6 +46591,15 @@ var FLAG_REGISTRY = [
|
|
|
46591
46591
|
// §4 reserves for deliberate, audited flips.
|
|
46592
46592
|
sensitive: true
|
|
46593
46593
|
},
|
|
46594
|
+
{
|
|
46595
|
+
key: "org-two-factor-enforcement",
|
|
46596
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware API-ONLY: host routes (hostAuthMiddleware) and the webapp (server components, /api handlers) are NOT covered until ENG-12023 lands, so DO NOT turn this on before then, whatever a customer asks for. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
46597
|
+
flagType: "boolean",
|
|
46598
|
+
defaultValue: false,
|
|
46599
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
46600
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
46601
|
+
sensitive: true
|
|
46602
|
+
},
|
|
46594
46603
|
{
|
|
46595
46604
|
key: "first-party-token-refusal",
|
|
46596
46605
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
|
@@ -41446,6 +41446,15 @@ var FLAG_REGISTRY = [
|
|
|
41446
41446
|
// §4 reserves for deliberate, audited flips.
|
|
41447
41447
|
sensitive: true
|
|
41448
41448
|
},
|
|
41449
|
+
{
|
|
41450
|
+
key: "org-two-factor-enforcement",
|
|
41451
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware API-ONLY: host routes (hostAuthMiddleware) and the webapp (server components, /api handlers) are NOT covered until ENG-12023 lands, so DO NOT turn this on before then, whatever a customer asks for. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
41452
|
+
flagType: "boolean",
|
|
41453
|
+
defaultValue: false,
|
|
41454
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
41455
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
41456
|
+
sensitive: true
|
|
41457
|
+
},
|
|
41449
41458
|
{
|
|
41450
41459
|
key: "first-party-token-refusal",
|
|
41451
41460
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
|
@@ -41637,6 +41637,15 @@ var FLAG_REGISTRY = [
|
|
|
41637
41637
|
// §4 reserves for deliberate, audited flips.
|
|
41638
41638
|
sensitive: true
|
|
41639
41639
|
},
|
|
41640
|
+
{
|
|
41641
|
+
key: "org-two-factor-enforcement",
|
|
41642
|
+
description: "ENG-11881: the global off switch for refusing single-factor sessions in authMiddleware API-ONLY: host routes (hostAuthMiddleware) and the webapp (server components, /api handlers) are NOT covered until ENG-12023 lands, so DO NOT turn this on before then, whatever a customer asks for. (packages/api/src/lib/org-two-factor-enforcement.ts). When on, a person in any organization with the `require_two_factor` setting gets a 403 with code two_factor_required on every authMiddleware route until their session is aal2, apart from POST /auth/sign-out, DELETE /devices and the routes a person needs before they can have a second factor (GET /auth/me, GET /auth/pending-invitations, POST /auth/complete-invite, POST /auth/link-identity, POST /auth/ensure-person; each acts only on the identity of the caller), and the two reads the authenticator-setup screen needs (GET /flags, GET /me/onboarding). The credential-adding routes and those two reads are reachable single-factor ONLY for a person with no verified factor yet; see SINGLE_FACTOR_ROUTES. SSO accounts are exempt; impersonation and admin-onboarding are exempt with an audit row, and refused if the row cannot be written. First-party tokens (host-exchange and the rest) are out of scope. MUST STAY OFF until a human confirms the iOS two-factor code screen has shipped: with it on, an aal1 phone session in a requiring org can do nothing but sign out. It is evaluated with no org in context, so it is stage-wide and a per-org override would be inert. A flag-read failure degrades to off. Deliberately NO envVar (the API Lambda environment is at the AWS 4KB cap, ENG-7972, and an envVar would pin every stage). Flipping it back takes effect within the ~60s evaluation cache, with no deploy.",
|
|
41643
|
+
flagType: "boolean",
|
|
41644
|
+
defaultValue: false,
|
|
41645
|
+
// Turning it on changes the admission rule for people on the platform's
|
|
41646
|
+
// front door, so it gets the deliberate, audited flip ADR-0022 reserves.
|
|
41647
|
+
sensitive: true
|
|
41648
|
+
},
|
|
41640
41649
|
{
|
|
41641
41650
|
key: "first-party-token-refusal",
|
|
41642
41651
|
description: "ENG-8972 AC4 / ADR-0076 decision 2 \u2014 whether `resolveUserId` (packages/api/src/middleware/auth.ts) REFUSES a bearer token carrying a first-party marker that is foreign to the host-exchange lane. SUPABASE_JWT_SECRET is symmetric and signs twelve distinct token families; the generic Bearer door has always admitted any of them that mints a uuid-shaped `sub`, so a token minted for one purpose authenticates as a user for every purpose. off = the capture never runs (no log, no refusal). shadow = record the population an enforcement flip would change, on BOTH admitting lanes (lane=gotrue, lane=sub-claim), and refuse nothing \u2014 this is exactly the behaviour compiled into prod today. enforce = return null with reason=foreign-first-party-marker, above the strategy split, so the token reaches neither GoTrue nor the sub-claim lane. DEFAULT IS `shadow`, NOT `off`, and the divergence is deliberate \u2014 the shadow lines have been live in prod since 68863974b, and they are the soak instrument. Defaulting to `off` would silently switch off the measurement this flag exists to act on: the channel-quarantine-mode landmine (ENG-6252) in its exact shape. A flag-read failure degrades to `shadow` for the same reason it fails open elsewhere on this path: this is the platform front door, and a `feature_flags` blip must not start refusing the fleet. Deliberately NO envVar. The consumer is the API Lambda, whose environment block is at the AWS 4KB cap (ENG-7972), and an envVar is highest-precedence per ADR-0022 \u2014 a literal in sst.config.ts would pin every stage and make the admin control do nothing (ENG-8303). The flag value IS the kill switch: a flip back to shadow takes effect within the ~60s evaluation cache, with no deploy.",
|
|
@@ -68,12 +68,12 @@ import {
|
|
|
68
68
|
writeDirectChatSessionState,
|
|
69
69
|
writeEgressAllowlist,
|
|
70
70
|
writePersistentClaudeWrapper
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
71
|
+
} from "./chunk-DXP7JXKR.js";
|
|
72
|
+
import "./chunk-W4HCSKZD.js";
|
|
73
73
|
import "./chunk-HYQ7VOC3.js";
|
|
74
74
|
import "./chunk-6HBXEJHO.js";
|
|
75
75
|
import "./chunk-XWVM4KPK.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-ETLHVYWG.js";
|
|
77
77
|
import "./chunk-AIUIMEUS.js";
|
|
78
78
|
import "./chunk-DGUM43GV.js";
|
|
79
79
|
export {
|
|
@@ -147,4 +147,4 @@ export {
|
|
|
147
147
|
writeEgressAllowlist,
|
|
148
148
|
writePersistentClaudeWrapper
|
|
149
149
|
};
|
|
150
|
-
//# sourceMappingURL=persistent-session-
|
|
150
|
+
//# sourceMappingURL=persistent-session-W7AXIJPR.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-DXP7JXKR.js";
|
|
4
|
+
import "./chunk-W4HCSKZD.js";
|
|
5
5
|
import "./chunk-HYQ7VOC3.js";
|
|
6
6
|
import "./chunk-6HBXEJHO.js";
|
|
7
7
|
import "./chunk-XWVM4KPK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-ETLHVYWG.js";
|
|
9
9
|
import "./chunk-AIUIMEUS.js";
|
|
10
10
|
import "./chunk-DGUM43GV.js";
|
|
11
11
|
|
|
@@ -804,4 +804,4 @@ export {
|
|
|
804
804
|
readAndResetSlackReplyBindingClassifications,
|
|
805
805
|
readAndResetSlackReplyTargetClassifications
|
|
806
806
|
};
|
|
807
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
807
|
+
//# sourceMappingURL=responsiveness-probe-F6AUG6K2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sessionTranscriptDir
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-W4HCSKZD.js";
|
|
4
|
+
import "./chunk-ETLHVYWG.js";
|
|
5
5
|
import "./chunk-DGUM43GV.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/session-auth-dead.ts
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
decideSessionAuthState,
|
|
206
206
|
probeSessionAuth
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=session-auth-dead-
|
|
208
|
+
//# sourceMappingURL=session-auth-dead-IW36EKQV.js.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/claude-host-args.ts"],"sourcesContent":["/**\n * ENG-11277 — the arguments every manager-run, host-side `claude -p` one-shot\n * shares (conversation eval, the runtime auth probe, the host usage poll).\n *\n * These run on the HOST against the shared `~/.claude`. On Pedders v8\n * (2026-10-02) Claude Code's retention sweep removed live transcript bind\n * sources (`.last-cleanup` 04:24:12Z, mask dir gone, the container's projects\n * dir at nlink 0) and three agents failed every transcript write and\n * compaction; see transcript-mount-health.ts.\n *\n * `-p` one-shots DO run that sweep: measured 5 Oct on 2.1.285 (Koda, ENG-11279),\n * a print-mode run removed old and empty project trees from its config dir. The\n * `--settings` flag below loads flag-level settings, which outrank user settings\n * (user < project < local < flag < policy), and a 3650-day `cleanupPeriodDays`\n * (Claude Code's own suggestion for long retention; 0 is rejected by its schema)\n * means the sweep ages nothing out. It does NOT stop the empty-dir rmdirs, which\n * have no age check, so it is defence in depth, not the guard.\n *\n * The guard is the sentinel kept in every bind source\n * (ensureTranscriptBindSources in persistent-session.ts) plus the manager's mount\n * probe. ENG-11279 additionally runs two of the three one-shots in a PRIVATE\n * config dir on api_key hosts (applyClaudeAuthToEnv's `isolateApiKeyConfigDir`),\n * so they are not sweepers of the shared tree at all:\n * - conversation eval and the host usage poll: isolated on api_key hosts.\n * Subscription hosts stay on the shared dir - a second copy of the OAuth\n * credential could refresh and rotate the refresh token out from under every\n * other session; isolating those is an open decision on the ticket.\n * - the runtime auth probe: DELIBERATELY on the shared dir in every mode. It\n * exists to prove the host's real credential round-trips (ENG-8623); in a\n * private dir it would report a host with a dead shared credential as healthy.\n */\nexport const HOST_CLAUDE_RETENTION_SETTINGS = JSON.stringify({ cleanupPeriodDays: 3650 });\n\n/** The isolation + retention tail shared by every manager host-side `claude -p`. */\nexport function hostClaudeOneShotArgs(emptyMcpConfigPath: string): string[] {\n return [\n // No project config, no MCP, no tools: these exercise the model or auth only.\n '--mcp-config', emptyMcpConfigPath,\n '--strict-mcp-config',\n '--permission-mode', 'auto',\n '--allowedTools', '',\n // ENG-11277: never age anything out of the shared ~/.claude from here.\n '--settings', HOST_CLAUDE_RETENTION_SETTINGS,\n ];\n}\n\n/** POSIX single-quote one argument: `'` -> `'\\''`. */\nfunction posixSingleQuote(value: string): string {\n return `'${value.replace(/'/g, `'\\\\''`)}'`;\n}\n\n/**\n * ENG-11279 (4): the pair/login runtime's `claude` command, with the same\n * retention flag as the one-shots, for parity.\n *\n * NOT load-bearing: the pair runtime must write the SHARED config dir (it is the\n * login), so it cannot be isolated, and the flag does not stop the empty-dir\n * rmdirs. It only stops this process ageing transcripts out at the 30-day default.\n *\n * A single shell-command STRING, quoted here, because that is what tmux\n * `new-session` is given (it runs one argument through `sh -c`; splitting it into\n * several argv entries changes that to a direct exec on some tmux versions, which\n * is a behaviour change this ticket has no business making).\n */\nexport function hostClaudePairCommand(claudeBin: string): string {\n return `${posixSingleQuote(claudeBin)} --settings ${posixSingleQuote(HOST_CLAUDE_RETENTION_SETTINGS)}`;\n}\n"],"mappings":";AA+BO,IAAM,iCAAiC,KAAK,UAAU,EAAE,mBAAmB,KAAK,CAAC;AAGjF,SAAS,sBAAsB,oBAAsC;AAC1E,SAAO;AAAA;AAAA,IAEL;AAAA,IAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IAAqB;AAAA,IACrB;AAAA,IAAkB;AAAA;AAAA,IAElB;AAAA,IAAc;AAAA,EAChB;AACF;AAGA,SAAS,iBAAiB,OAAuB;AAC/C,SAAO,IAAI,MAAM,QAAQ,MAAM,OAAO,CAAC;AACzC;AAeO,SAAS,sBAAsB,WAA2B;AAC/D,SAAO,GAAG,iBAAiB,SAAS,CAAC,eAAe,iBAAiB,8BAA8B,CAAC;AACtG;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|