@opengeni/config 0.20.1-canary.2 → 0.22.0
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/index.d.ts +13 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +36 -0
package/dist/index.d.ts
CHANGED
|
@@ -273,6 +273,8 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
273
273
|
variable_set_get_variable: "variable_set_get_variable";
|
|
274
274
|
variable_set_list: "variable_set_list";
|
|
275
275
|
variable_set_set_variable: "variable_set_set_variable";
|
|
276
|
+
work_claim_release: "work_claim_release";
|
|
277
|
+
work_claim_upsert: "work_claim_upsert";
|
|
276
278
|
x_accounts_list: "x_accounts_list";
|
|
277
279
|
x_mentions_live: "x_mentions_live";
|
|
278
280
|
x_post_reply: "x_post_reply";
|
|
@@ -417,6 +419,8 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
417
419
|
variable_set_get_variable: "variable_set_get_variable";
|
|
418
420
|
variable_set_list: "variable_set_list";
|
|
419
421
|
variable_set_set_variable: "variable_set_set_variable";
|
|
422
|
+
work_claim_release: "work_claim_release";
|
|
423
|
+
work_claim_upsert: "work_claim_upsert";
|
|
420
424
|
x_accounts_list: "x_accounts_list";
|
|
421
425
|
x_mentions_live: "x_mentions_live";
|
|
422
426
|
x_post_reply: "x_post_reply";
|
|
@@ -426,6 +430,10 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
426
430
|
}>>>>;
|
|
427
431
|
streamTokenSecret: z.ZodOptional<z.ZodString>;
|
|
428
432
|
streamControlEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
433
|
+
workDiscoveryEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
434
|
+
workClaimMutationsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
435
|
+
workDiscoveryHumanAdvisoriesEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
436
|
+
workDiscoveryAutomaticNudgesEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
429
437
|
ogtoolPackageSpec: z.ZodOptional<z.ZodString>;
|
|
430
438
|
environmentsEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
431
439
|
integrationsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
@@ -770,6 +778,11 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
770
778
|
betterAuthAllowedHosts: z.ZodDefault<z.ZodString>;
|
|
771
779
|
betterAuthCookieDomain: z.ZodOptional<z.ZodString>;
|
|
772
780
|
betterAuthTrustedOrigins: z.ZodDefault<z.ZodString>;
|
|
781
|
+
managedAuthSessionSetMode: z.ZodDefault<z.ZodEnum<{
|
|
782
|
+
broker: "broker";
|
|
783
|
+
dual: "dual";
|
|
784
|
+
legacy: "legacy";
|
|
785
|
+
}>>;
|
|
773
786
|
resendApiKey: z.ZodOptional<z.ZodString>;
|
|
774
787
|
emailFrom: z.ZodDefault<z.ZodString>;
|
|
775
788
|
stripeSecretKey: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -304,6 +304,21 @@ var SettingsSchema = z.object({
|
|
|
304
304
|
// holder of stream:control gets 403 until this flips. Keeps stream:control a
|
|
305
305
|
// declared-but-inert permission so later hardening is a flag flip.
|
|
306
306
|
streamControlEnabled: EnvBoolean.default(false),
|
|
307
|
+
// Provider-neutral advisory work discovery rollout. Disabling this keeps
|
|
308
|
+
// ordinary session listings available while rejecting relevance discovery
|
|
309
|
+
// and omitting claim evidence from their compact projections.
|
|
310
|
+
workDiscoveryEnabled: EnvBoolean.default(true),
|
|
311
|
+
// Exact-attempt claim mutations are independently reversible. Turning this
|
|
312
|
+
// off removes the first-party mutation tools; durable claims and lifecycle
|
|
313
|
+
// settlement evidence remain readable.
|
|
314
|
+
workClaimMutationsEnabled: EnvBoolean.default(true),
|
|
315
|
+
// Human presentation is a separate rollout stage from the read API. The
|
|
316
|
+
// topology response carries this decision so clients can hide advisory UI
|
|
317
|
+
// without inventing authorization or ownership semantics.
|
|
318
|
+
workDiscoveryHumanAdvisoriesEnabled: EnvBoolean.default(true),
|
|
319
|
+
// Automatic overlap nudges are deliberately unshipped and default OFF until
|
|
320
|
+
// an evaluated precision threshold and operator runbook approve them.
|
|
321
|
+
workDiscoveryAutomaticNudgesEnabled: EnvBoolean.default(false),
|
|
307
322
|
// Optional release-coherent bootstrap hint for custom rigs/connected machines
|
|
308
323
|
// that do not carry the stock-image ogtool binary. Exact stable versions only:
|
|
309
324
|
// the agent must never guess a tag or silently install `latest`.
|
|
@@ -1050,6 +1065,9 @@ var SettingsSchema = z.object({
|
|
|
1050
1065
|
betterAuthAllowedHosts: z.string().default(""),
|
|
1051
1066
|
betterAuthCookieDomain: z.string().optional(),
|
|
1052
1067
|
betterAuthTrustedOrigins: z.string().default(""),
|
|
1068
|
+
// Rolling browser login-slot compatibility. Repository/deployment default is
|
|
1069
|
+
// deliberately legacy; changing to broker is an operator-authorized rollout.
|
|
1070
|
+
managedAuthSessionSetMode: z.enum(["legacy", "dual", "broker"]).default("legacy"),
|
|
1053
1071
|
resendApiKey: z.string().optional(),
|
|
1054
1072
|
emailFrom: z.string().default("OpenGeni <auth@mail.opengeni.ai>"),
|
|
1055
1073
|
stripeSecretKey: z.string().optional(),
|
|
@@ -1737,6 +1755,14 @@ function getSettings() {
|
|
|
1737
1755
|
allowedFirstPartyMcpTools: optional("OPENGENI_ALLOWED_FIRST_PARTY_MCP_TOOLS"),
|
|
1738
1756
|
streamTokenSecret: optional("OPENGENI_STREAM_TOKEN_SECRET"),
|
|
1739
1757
|
streamControlEnabled: optional("OPENGENI_STREAM_CONTROL_ENABLED"),
|
|
1758
|
+
workDiscoveryEnabled: optional("OPENGENI_WORK_DISCOVERY_ENABLED"),
|
|
1759
|
+
workClaimMutationsEnabled: optional("OPENGENI_WORK_CLAIM_MUTATIONS_ENABLED"),
|
|
1760
|
+
workDiscoveryHumanAdvisoriesEnabled: optional(
|
|
1761
|
+
"OPENGENI_WORK_DISCOVERY_HUMAN_ADVISORIES_ENABLED"
|
|
1762
|
+
),
|
|
1763
|
+
workDiscoveryAutomaticNudgesEnabled: optional(
|
|
1764
|
+
"OPENGENI_WORK_DISCOVERY_AUTOMATIC_NUDGES_ENABLED"
|
|
1765
|
+
),
|
|
1740
1766
|
ogtoolPackageSpec: optional("OPENGENI_OGTOOL_PACKAGE_SPEC"),
|
|
1741
1767
|
environmentsEncryptionKey: optional("OPENGENI_ENVIRONMENTS_ENCRYPTION_KEY"),
|
|
1742
1768
|
integrationsEnabled: optional("OPENGENI_INTEGRATIONS_ENABLED"),
|
|
@@ -2056,6 +2082,7 @@ function getSettings() {
|
|
|
2056
2082
|
betterAuthAllowedHosts: optional("OPENGENI_BETTER_AUTH_ALLOWED_HOSTS"),
|
|
2057
2083
|
betterAuthCookieDomain: optional("OPENGENI_BETTER_AUTH_COOKIE_DOMAIN"),
|
|
2058
2084
|
betterAuthTrustedOrigins: optional("OPENGENI_BETTER_AUTH_TRUSTED_ORIGINS"),
|
|
2085
|
+
managedAuthSessionSetMode: optional("OPENGENI_MANAGED_AUTH_SESSION_SET_MODE"),
|
|
2059
2086
|
resendApiKey: optional("OPENGENI_RESEND_API_KEY"),
|
|
2060
2087
|
emailFrom: optional("OPENGENI_EMAIL_FROM"),
|
|
2061
2088
|
stripeSecretKey: optional("OPENGENI_STRIPE_SECRET_KEY"),
|
|
@@ -3850,6 +3877,11 @@ function validateSettings(settings) {
|
|
|
3850
3877
|
"OPENGENI_DELEGATION_SECRET is required when OPENGENI_PRODUCT_ACCESS_MODE=managed"
|
|
3851
3878
|
);
|
|
3852
3879
|
}
|
|
3880
|
+
if (settings.managedAuthSessionSetMode !== "legacy" && !["local", "test"].includes(settings.environment) && !settings.publicBaseUrl.startsWith("https://")) {
|
|
3881
|
+
throw new Error(
|
|
3882
|
+
"OPENGENI_PUBLIC_BASE_URL must use https when browser session sets are enabled outside local/test"
|
|
3883
|
+
);
|
|
3884
|
+
}
|
|
3853
3885
|
if (!["local", "test"].includes(settings.environment) && !settings.resendApiKey) {
|
|
3854
3886
|
throw new Error("OPENGENI_RESEND_API_KEY is required for managed mode outside local/test");
|
|
3855
3887
|
}
|