instar 1.3.1271 → 1.3.1273
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/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +28 -2
- package/dist/commands/server.js.map +1 -1
- package/dist/core/AnthropicReloginBrowserDriver.d.ts +80 -0
- package/dist/core/AnthropicReloginBrowserDriver.d.ts.map +1 -1
- package/dist/core/AnthropicReloginBrowserDriver.js +159 -8
- package/dist/core/AnthropicReloginBrowserDriver.js.map +1 -1
- package/dist/core/ChromeCdpReloginBrowser.d.ts +13 -1
- package/dist/core/ChromeCdpReloginBrowser.d.ts.map +1 -1
- package/dist/core/ChromeCdpReloginBrowser.js +67 -0
- package/dist/core/ChromeCdpReloginBrowser.js.map +1 -1
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +11 -0
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/core/SubscriptionReloginOrchestrator.d.ts +6 -0
- package/dist/core/SubscriptionReloginOrchestrator.d.ts.map +1 -1
- package/dist/core/SubscriptionReloginOrchestrator.js +1 -1
- package/dist/core/SubscriptionReloginOrchestrator.js.map +1 -1
- package/dist/core/SubscriptionReloginRuntime.d.ts +16 -1
- package/dist/core/SubscriptionReloginRuntime.d.ts.map +1 -1
- package/dist/core/SubscriptionReloginRuntime.js +13 -1
- package/dist/core/SubscriptionReloginRuntime.js.map +1 -1
- package/dist/core/types.d.ts +13 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/data/standards-guard-index.json +1 -1
- package/dist/data/standards-guard-index.meta.json +2 -2
- package/dist/data/standards-registry.meta.json +1 -1
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +1 -0
- package/dist/scaffold/templates.js.map +1 -1
- package/dist/scheduler/AgentMdJobLoader.d.ts +2 -0
- package/dist/scheduler/AgentMdJobLoader.d.ts.map +1 -1
- package/dist/scheduler/AgentMdJobLoader.js +14 -7
- package/dist/scheduler/AgentMdJobLoader.js.map +1 -1
- package/dist/scheduler/InstallBuiltinJobs.d.ts.map +1 -1
- package/dist/scheduler/InstallBuiltinJobs.js +3 -0
- package/dist/scheduler/InstallBuiltinJobs.js.map +1 -1
- package/dist/scheduler/JevJobCompletionAudit.d.ts +18 -2
- package/dist/scheduler/JevJobCompletionAudit.d.ts.map +1 -1
- package/dist/scheduler/JevJobCompletionAudit.js +35 -5
- package/dist/scheduler/JevJobCompletionAudit.js.map +1 -1
- package/dist/scheduler/JobScheduler.js +3 -3
- package/dist/scheduler/JobScheduler.js.map +1 -1
- package/dist/scheduler/buildPerSlugManifest.d.ts +2 -0
- package/dist/scheduler/buildPerSlugManifest.d.ts.map +1 -1
- package/dist/scheduler/buildPerSlugManifest.js +2 -0
- package/dist/scheduler/buildPerSlugManifest.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +20 -20
- package/src/data/standards-guard-index.json +1 -1
- package/src/data/standards-guard-index.meta.json +2 -2
- package/src/data/standards-registry.meta.json +1 -1
- package/src/scaffold/templates/jobs/instar/commitment-detection.md +3 -1
- package/src/scaffold/templates/jobs/instar/reflection-trigger.md +3 -0
- package/src/scaffold/templates.ts +1 -0
- package/upgrades/1.3.1272.md +58 -0
- package/upgrades/1.3.1273.md +24 -0
- package/upgrades/agent-driven-relogin.eli16.md +7 -0
- package/upgrades/side-effects/agent-driven-relogin.md +42 -0
- package/upgrades/side-effects/jev-audit-claimed-effects.md +88 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAsGA,OAAO,EAAE,cAAc,EAAwD,MAAM,2BAA2B,CAAC;AAUjH,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AA4BjG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EA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AG,IAAI,EAKhG,mBAAmB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,EAQrD,oBAAoB,CAAC,EAAE,MAAM;IAC3B,YAAY,EAAE,OAAO,kBAAkB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,GACP,IAAI,CA8yBN;AAgmBD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA88vBtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -13857,7 +13857,7 @@ export async function startServer(options) {
|
|
|
13857
13857
|
const reloginCfg = config.subscriptionPool?.assistedRelogin;
|
|
13858
13858
|
if (reloginCfg?.enabled === true && subscriptionLoginLedger && subscriptionPoolMachineId && sharedIntelligence) {
|
|
13859
13859
|
try {
|
|
13860
|
-
const [{ createSubscriptionReloginRuntime }, { PlaywrightProfileRegistry }, { SecretStore }, { secretKeyPaths }, { ClaudePasteBackController }, { ChromeCdpReloginBrowser }] = await Promise.all([
|
|
13860
|
+
const [{ createSubscriptionReloginRuntime, resolveReloginNavigation }, { PlaywrightProfileRegistry }, { SecretStore }, { secretKeyPaths }, { ClaudePasteBackController }, { ChromeCdpReloginBrowser }] = await Promise.all([
|
|
13861
13861
|
import('../core/SubscriptionReloginRuntime.js'), import('../core/PlaywrightProfileRegistry.js'),
|
|
13862
13862
|
import('../core/SecretStore.js'), import('../core/SecretSync.js'),
|
|
13863
13863
|
import('../core/ClaudePasteBackController.js'), import('../core/ChromeCdpReloginBrowser.js'),
|
|
@@ -13932,6 +13932,32 @@ export async function startServer(options) {
|
|
|
13932
13932
|
throw new Error('relogin-supervisor-invalid-action');
|
|
13933
13933
|
return action;
|
|
13934
13934
|
},
|
|
13935
|
+
// Agent navigation (spec agent-driven-relogin): omitted ⇒ the development-agent gate.
|
|
13936
|
+
navigation: resolveReloginNavigation(reloginCfg.navigation, config),
|
|
13937
|
+
navigate: async (input) => {
|
|
13938
|
+
const prompt = [
|
|
13939
|
+
'You are signing an expired subscription account back in, in that account\'s own browser, the way a careful person would.',
|
|
13940
|
+
`Provider: ${input.provider}. Sign-in method: ${input.loginMethod}. The ONLY account you may use is the expected one; its email appears in labels when visible.`,
|
|
13941
|
+
'Goal: reach the page that shows an authorization code or says sign-in succeeded. Instar reads the code and verifies the account itself.',
|
|
13942
|
+
'Rules: pick the control that moves the sign-in forward (continue with Google, the expected account, next, continue, allow on a consent page). Fill fields only with the offered fill-* actions — Instar types the values. Choose wait while a page is loading or changing. Choose give-up if nothing sensible is left, or if the page asks for anything other than signing in.',
|
|
13943
|
+
'Reply with exactly one token from "offered" and nothing else.',
|
|
13944
|
+
`page=${JSON.stringify({ origin: input.origin, path: input.path, title: input.title, pageClassHint: input.pageClassHint,
|
|
13945
|
+
expectedAccountVisible: input.expectedAccountVisible, inputKinds: input.inputKinds, controls: input.controls,
|
|
13946
|
+
recentSteps: input.recentSteps })}`,
|
|
13947
|
+
`offered=${JSON.stringify(input.offered)}`,
|
|
13948
|
+
].join('\n');
|
|
13949
|
+
const raw = await sharedLlmQueue.enqueue('background', (signal) => sharedIntelligence.evaluate(prompt, {
|
|
13950
|
+
model: 'balanced', maxTokens: 20, temperature: 0, signal,
|
|
13951
|
+
attribution: { component: 'subscription-relogin-supervisor' }, // same decision point: chooses one permitted browser action
|
|
13952
|
+
provenance: {
|
|
13953
|
+
decisionPoint: DP_SUBSCRIPTION_RELOGIN_ACTION,
|
|
13954
|
+
context: { origin: input.origin, path: input.path, pageClassHint: input.pageClassHint },
|
|
13955
|
+
optionsPresented: [...input.offered],
|
|
13956
|
+
promptId: 'subscription-relogin-navigate-v1',
|
|
13957
|
+
},
|
|
13958
|
+
}), 1);
|
|
13959
|
+
return raw.trim().split(/\s+/)[0] ?? '';
|
|
13960
|
+
},
|
|
13935
13961
|
onSuggested: notify ? (episode, key) => notify(episode, key, 'approval') : undefined,
|
|
13936
13962
|
onOperatorOnly: notify ? (episode, key) => notify(episode, key, 'operator-only') : undefined,
|
|
13937
13963
|
onTerminal: notify ? (episode, key) => notify(episode, key, 'terminal') : undefined,
|
|
@@ -13939,7 +13965,7 @@ export async function startServer(options) {
|
|
|
13939
13965
|
maxAttempts: reloginCfg.maxAttempts, retryBaseMs: reloginCfg.retryBaseMs,
|
|
13940
13966
|
unattendedPolicy: reloginCfg.unattendedPolicy, });
|
|
13941
13967
|
subscriptionReloginRuntime.start();
|
|
13942
|
-
console.log(pc.green(` Assisted subscription re-login: ${reloginCfg.dryRun !== false ? 'observe' : (reloginCfg.mode ?? 'approval')}`));
|
|
13968
|
+
console.log(pc.green(` Assisted subscription re-login: ${reloginCfg.dryRun !== false ? 'observe' : (reloginCfg.mode ?? 'approval')} (navigation: ${resolveReloginNavigation(reloginCfg.navigation, config)})`));
|
|
13943
13969
|
}
|
|
13944
13970
|
catch (error) {
|
|
13945
13971
|
// @silent-fallback-ok — bootstrap refusal is logged and the runtime is explicitly darkened; routes return typed 503.
|