instar 1.3.2026 → 1.3.2027
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/dashboard/console/accounts-model.js +10 -4
- package/dashboard/console/accounts.js +6 -7
- package/dashboard/console/console.css +9 -0
- 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/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
- package/dist/native/instar-desktop-host +0 -0
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- 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/upgrades/1.3.2027.md +20 -0
- package/upgrades/eli16/accounts-single-weekly-list.md +9 -0
- package/upgrades/side-effects/accounts-single-weekly-list.md +49 -0
|
@@ -82,6 +82,12 @@ export function usageWindows(q, now = Date.now()) {
|
|
|
82
82
|
return out;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/** Future weekly reset only; short-window and specialist limits do not reorder the account list. */
|
|
86
|
+
export function nextWeeklyReset(q, now = Date.now()) {
|
|
87
|
+
const times = usageWindows(q, now).filter((w) => w.key === 'weekly').map((w) => Date.parse(w.resetsAt)).filter((t) => Number.isFinite(t) && t > now);
|
|
88
|
+
return times.length ? Math.min(...times) : null;
|
|
89
|
+
}
|
|
90
|
+
|
|
85
91
|
/** The tightest usage window on a reading: { pct, label, resetsAt, second }. */
|
|
86
92
|
export function tightest(q, now = Date.now()) {
|
|
87
93
|
const wins = usageWindows(q, now).filter((w) => !w.rolledOver).map(({ pct, label, resetsAt }) => ({ pct, label, resetsAt }));
|
|
@@ -277,7 +283,7 @@ export function buildAccountsPage(res, now = Date.now(), { episodes = [], blocke
|
|
|
277
283
|
const windows = usageWindows(g.reading, now).map((w) => windowRow(w, now));
|
|
278
284
|
const stale = g.readingAt && now - g.readingAt > READING_STALE_MS;
|
|
279
285
|
return {
|
|
280
|
-
...g, tight: t, stale, windows,
|
|
286
|
+
...g, tight: t, stale, windows, weeklyResetAt: nextWeeklyReset(g.reading, now),
|
|
281
287
|
inUse: Boolean(inUse && inUse.activeAccountId === g.id),
|
|
282
288
|
readingAge: g.readingAt ? ago(g.readingAt, now) : null,
|
|
283
289
|
line: !t ? (g.framework === 'grok-build' ? "Usage isn't readable for this kind of account." : 'No reading yet.')
|
|
@@ -288,9 +294,9 @@ export function buildAccountsPage(res, now = Date.now(), { episodes = [], blocke
|
|
|
288
294
|
// warning-path: row
|
|
289
295
|
tone: t ? usageTone(t.pct) : null,
|
|
290
296
|
};
|
|
291
|
-
}).sort((a, b) => (
|
|
292
|
-
//
|
|
293
|
-
|| String(a.name || '').localeCompare(String(b.name || '')));
|
|
297
|
+
}).sort((a, b) => (a.weeklyResetAt ?? Infinity) - (b.weeklyResetAt ?? Infinity)
|
|
298
|
+
// Stable ties keep equally timed or unknown accounts from moving between refreshes.
|
|
299
|
+
|| String(a.name || '').localeCompare(String(b.name || '')) || String(a.id).localeCompare(String(b.id)));
|
|
294
300
|
|
|
295
301
|
const accountKeys = accounts.map((a) => verifiedDisplayName(a.name, a.id)
|
|
296
302
|
? `${a.name.toLocaleLowerCase()}\u0000${(a.email || '').toLocaleLowerCase()}` : null);
|
|
@@ -39,6 +39,7 @@ async function getJson(path) {
|
|
|
39
39
|
|
|
40
40
|
export async function renderAccounts(main, ctx) {
|
|
41
41
|
const { get } = ctx;
|
|
42
|
+
main.classList.add('accounts-page');
|
|
42
43
|
firstPaint(main, el('section', { class: 'hero page-hero' }, el('div', { class: 'eyebrow', text: 'Capacity · Accounts' }), el('h1', { class: 'page-title skeleton', text: 'Loading accounts' })));
|
|
43
44
|
const [pool, relogin, inUse, machines] = await Promise.all([get('/subscription-pool?scope=pool', 8000), get('/subscription-relogin?scope=pool', 8000), get('/subscription-pool/in-use'), get('/pool')]);
|
|
44
45
|
const names = machines.ok && Array.isArray(machines.data && machines.data.machines) ? Object.fromEntries(machines.data.machines.map((m) => [m.machineId, m.nickname])) : {};
|
|
@@ -61,11 +62,9 @@ export async function renderAccounts(main, ctx) {
|
|
|
61
62
|
el('span', { class: 'row-main' }, el('span', { class: 'row-title', text: n.label }), el('span', { class: 'row-sub', text: n.sub })),
|
|
62
63
|
el('span', { class: 'row-end' }, n.actionable ? el('button', { class: 'btn-quiet btn-small', type: 'button', text: n.action === 'start' ? 'Sign in' : n.action === 'retry' ? 'Try again' : 'Repair', onclick: () => startNeed(n, refresh) }) : null))))))) : null;
|
|
63
64
|
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
el('div', { class: 'list-head' }, el('h2', { class: 'eyebrow', text: name }), el('span', { class: 'list-count', text: String(accts.length) })),
|
|
68
|
-
el('div', { class: 'list-rows' }, accts.map((a) => {
|
|
65
|
+
const list = el('div', { class: 'page-sections acct-list' }, el('section', { class: 'list-section' },
|
|
66
|
+
el('div', { class: 'list-head' }, el('h2', { class: 'eyebrow', text: 'Weekly reset, soonest first' }), el('span', { class: 'list-count', text: String(page.accounts.length) })),
|
|
67
|
+
el('div', { class: 'list-rows' }, page.accounts.map((a) => {
|
|
69
68
|
const pct = a.tight ? Math.round(a.tight.pct) : null;
|
|
70
69
|
// One labelled line per limit that applies (5-hour only when the account has one), each with
|
|
71
70
|
// its own bar and its own reset, so a full 5-hour window never reads as the weekly one.
|
|
@@ -79,14 +78,14 @@ export async function renderAccounts(main, ctx) {
|
|
|
79
78
|
el('span', { class: 'acct-win-reset', text: w.reset || '' }));
|
|
80
79
|
})) : null;
|
|
81
80
|
const row = el('button', { class: 'acct-row', type: 'button', 'data-focus-key': `a:${a.id}` },
|
|
82
|
-
el('span', { class: 'acct-name' }, document.createTextNode(a.name), a.inUse ? el('span', { class: 'acct-tag', text: 'in use here' }) : null),
|
|
81
|
+
el('span', { class: 'acct-name' }, document.createTextNode(a.name), el('span', { class: 'acct-kind', text: frameworkName(a.framework) }), a.inUse ? el('span', { class: 'acct-tag', text: 'in use here' }) : null),
|
|
83
82
|
el('span', { class: `acct-pct${a.tone ? ' ' + a.tone : ''}`, text: pct === null ? '—' : `${pct}%` }),
|
|
84
83
|
wins,
|
|
85
84
|
!wins || a.stale ? el('span', { class: 'acct-line', text: [!wins ? a.line : null, a.stale ? `reading from ${a.readingAge}` : null].filter(Boolean).join(' · ') }) : null,
|
|
86
85
|
el('span', { class: 'chips' }, a.cells.map((c) => el('span', { class: `mchip ${c.state}`, text: c.machine }))));
|
|
87
86
|
row.addEventListener('click', () => openAccount(a, refresh));
|
|
88
87
|
return row;
|
|
89
|
-
}))))
|
|
88
|
+
}))));
|
|
90
89
|
|
|
91
90
|
// The notice spot: nothing unless something needs the person; each notice carries its action.
|
|
92
91
|
const notices = page.notices.length ? el('section', { class: 'page-sections', id: 'sec-notices' },
|
|
@@ -1792,3 +1792,12 @@ a.needs-row:hover { background: var(--surface-raised); }
|
|
|
1792
1792
|
.needs-groups .needs-rows { border: 0; }
|
|
1793
1793
|
.needs-group + .needs-group { border-top: 1px solid var(--hairline); }
|
|
1794
1794
|
.needs-groups:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
1795
|
+
|
|
1796
|
+
/* Accounts remain a single reset-ordered list, including with full-width detail-page layouts. */
|
|
1797
|
+
.main.accounts-page { max-width: none; min-width: 0; }
|
|
1798
|
+
.accounts-page .acct-list,
|
|
1799
|
+
.accounts-page .acct-list > .list-section,
|
|
1800
|
+
.accounts-page .acct-list .list-rows { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
|
|
1801
|
+
.accounts-page .acct-list .list-rows { gap: 0; }
|
|
1802
|
+
.accounts-page .acct-name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
|
|
1803
|
+
.acct-kind { display: block; color: var(--text-muted); font-size: 12px; font-weight: 400; }
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"generatedFrom": "source-tree",
|
|
4
4
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
5
|
-
"packageVersion": "1.3.
|
|
5
|
+
"packageVersion": "1.3.2027",
|
|
6
6
|
"guards": [
|
|
7
7
|
{
|
|
8
8
|
"ref": "docs/audits/phase-b/f10-triage.md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sha256": "
|
|
2
|
+
"sha256": "6097dbd00e59ca3442232179c308bff2a3c944b27dadcb0b1548694edf8ac8b9",
|
|
3
3
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
4
|
-
"packageVersion": "1.3.
|
|
4
|
+
"packageVersion": "1.3.2027"
|
|
5
5
|
}
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./builtin-manifest.schema.json",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"generatedAt": "2026-11-25T04:
|
|
5
|
-
"instarVersion": "1.3.
|
|
4
|
+
"generatedAt": "2026-11-25T04:46:09.897Z",
|
|
5
|
+
"instarVersion": "1.3.2027",
|
|
6
6
|
"entryCount": 210,
|
|
7
7
|
"entries": {
|
|
8
8
|
"hook:session-start": {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"generatedFrom": "source-tree",
|
|
4
4
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
5
|
-
"packageVersion": "1.3.
|
|
5
|
+
"packageVersion": "1.3.2027",
|
|
6
6
|
"guards": [
|
|
7
7
|
{
|
|
8
8
|
"ref": "docs/audits/phase-b/f10-triage.md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sha256": "
|
|
2
|
+
"sha256": "6097dbd00e59ca3442232179c308bff2a3c944b27dadcb0b1548694edf8ac8b9",
|
|
3
3
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
4
|
-
"packageVersion": "1.3.
|
|
4
|
+
"packageVersion": "1.3.2027"
|
|
5
5
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
The web Accounts page shows one continuous full-width column across services, with each row labelled by service. Known future weekly resets sort soonest first; missing or expired weekly resets follow, with stable name ties. Five-hour limits remain visible without controlling order. The scoped list layout remains single-column alongside the pending full-width dashboard styles. Account selection, sign-in actions, warnings and quota measurements are unchanged.
|
|
9
|
+
|
|
10
|
+
## What to Tell Your User
|
|
11
|
+
|
|
12
|
+
Accounts is now one list, with the account whose weekly allowance resets soonest at the top. Each account still shows its service, five-hour and weekly usage, and the machines where it is available.
|
|
13
|
+
|
|
14
|
+
## Summary of New Capabilities
|
|
15
|
+
|
|
16
|
+
None — this changes the layout and default ordering of the existing Accounts page.
|
|
17
|
+
|
|
18
|
+
## Evidence
|
|
19
|
+
|
|
20
|
+
Fifty focused unit tests, four HTTP integration tests, three production lifecycle tests, the build and sixteen normalChrome sample-data preview cases pass. The previews cover phone/laptop/wide, both themes, pending full-width CSS and measured25%largertext. The old source fails14of15newcases;all15passwiththerepair. Independentreviewconcurs. Complete shared verification and released live checks remain required.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Accounts In One Reset-Ordered List
|
|
2
|
+
|
|
3
|
+
The Accounts page currently separates services into groups and puts heavier usage first. A pending wider-page change can also lay accounts out as several cards across the window. Justin asked for a calmer presentation: one list, with the account whose weekly allowance resets soonest at the top. That makes the order easier to follow and helps identify the weekly allowance that will renew next.
|
|
4
|
+
|
|
5
|
+
The repair makes one continuous column across all services. Each row says which service it belongs to, so a Claude or Codex account remains easy to identify without separate groups. The weekly reset controls the order. A five-hour limit remains visible with its own usage bar and reset time, but it does not move the account around. Accounts with an unknown or expired weekly reset come after accounts with a known future weekly reset. Equal times use the account name; a stable identifier resolves otherwise identical names without being shown as a label.
|
|
6
|
+
|
|
7
|
+
The page still uses its freshest account reading from the machines that answered. Machine chips, usage warnings, sign-in actions, partial-data explanations and the account detail sheet stay available. The list uses the available width, including when the wider dashboard change is installed, and stays in one column on a phone, laptop or wide window. Other dashboard pages keep their existing layout.
|
|
8
|
+
|
|
9
|
+
This changes presentation only. It does not choose which account a session runs on, alter quota measurements, sign into accounts or change permissions. A code revert fully restores the previous display; no data migration or account repair is needed. The web and Mac implementations use the same weekly-reset rule. Focused ordering and rendered-page tests, browser geometry with the pending wider-page styles, independent review, normal commit gates and complete shared verification are required before release. Source work is not evidence that the installed dashboard has changed.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Side-Effects Review — Accounts Single Weekly Reset List
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
Tier 1 SMALL. Three runtime assets, one ordering/rendered-DOM test file, overview, side-effects and release fragment. Accounts become one full-width column across services, sorted by future weekly reset. Five-hour windows remain visible and do not reorder accounts. Revert fully undoes this display change.
|
|
5
|
+
|
|
6
|
+
## Decision-point Inventory
|
|
7
|
+
Only display order and layout change. nextWeeklyReset reads existing visible weekly windows from the freshest deduplicated account reading. No account selection, session placement, quota tracking, sign-in or permission authority changes.
|
|
8
|
+
|
|
9
|
+
## 1. Over-block
|
|
10
|
+
No action, account or window is rejected. Missing/expired weekly resets remain listed after known future resets. Names and details remain available; service groups become a quiet service label on every row.
|
|
11
|
+
|
|
12
|
+
## 2. Under-block
|
|
13
|
+
No new validation or permission gate. The existing model still owns identity-safe actions, partial responses, rolled-over readings and warnings. A stale but future weekly estimate remains visibly marked with its reading age. Unknown data does not become a fabricated reset.
|
|
14
|
+
|
|
15
|
+
## 3. Level-of-abstraction Fit
|
|
16
|
+
The Accounts model owns deduplication and display order. The renderer maps that sorted account list once, without framework grouping that would destroy global order. Scoped Accounts CSS overrides generic multi-column detail grids, leaving other pages unchanged.
|
|
17
|
+
|
|
18
|
+
## 4. Signal Vs Authority Compliance
|
|
19
|
+
Complies with docs/signal-vs-authority.md. No block/allow surface or semantic intent detector. Weekly timestamp comparison is a deterministic presentation rule, not authority to select or deny an account.
|
|
20
|
+
|
|
21
|
+
## 4b. Judgment-point Check
|
|
22
|
+
No new static heuristic at a competing-signals judgment point. The owner explicitly chose weekly-reset order. Future versus unknown/expired and equal names are enumerable display boundaries; account selection and pacing policies remain outside this code path.
|
|
23
|
+
|
|
24
|
+
## 5. Interactions
|
|
25
|
+
Existing freshest reading, machine cells, warnings, sign-in actions and detail sheet are retained. Header counts and needs-you items use the same accounts. Sorting can update their order but does not remove an item. Known pending PR3669 adds a detail-page class and multi-column account grid: this repair intentionally replaces framework groups with one list and supplies more specific single-column CSS. Integration must preserve this renderer and retain3669full-width/other-page improvements. No new timer, polling or retry. Stable name/id ties avoid reshuffling when deadlines agree.
|
|
26
|
+
|
|
27
|
+
## 6. External Surfaces
|
|
28
|
+
Only web Accounts presentation changes. No route, payload, credential, durable state, URL, notice or channel changes. Existing account details and sign-in forms stay reachable from phone rows. No new operator action or approval is introduced.
|
|
29
|
+
|
|
30
|
+
## 6b. Operator-surface Quality
|
|
31
|
+
1. Accounts remain visible directly in one continuous list; no collapse or extra navigation.
|
|
32
|
+
2. Each row shows a human account name and quiet service label. No raw id is added as primary text.
|
|
33
|
+
3. Destructive controls are unchanged; account rows open existing details.
|
|
34
|
+
4. Sixteen normalChrome fixed-frame cases pass:390/1280/1600pixels,both themes,currentand3669CSS,plus1280with25%largertext. Actual row font15to18.75pxandwindowlabel13to16.25pxaremeasured. Onecolumnfillsavailablewidth,norootsidewaysoverflow,correctdetailsheet,anddefault1280bars52.7%ofrow. ThefirstcombinedCSSpreviewcaughtalign-items:startshrink;scopedstretchfixandrerunproveclosure. Sampledataonly,noliveaccountorrealphoneclaim.
|
|
35
|
+
|
|
36
|
+
## 7. Multi-machine Posture
|
|
37
|
+
Replicated as normal packaged dashboard assets. Existing pooled account reads and their partial-data explanations remain unchanged. The freshest reading per account still drives visible windows. No new user notice needing one-voice gating, durable state that could strand on transfer, or generated URL. No status/health/capabilities/channels answer changes.
|
|
38
|
+
|
|
39
|
+
## 8. Rollback
|
|
40
|
+
Revert code and publish a patch. No state migration or credential repair. Display order reverts while saved accounts and measurements remain intact.
|
|
41
|
+
|
|
42
|
+
## Verification And Proportion
|
|
43
|
+
Finalsource50focusedunitcases,4HTTPintegrationcases,3productionpoolscopelifecyclecases,productionbuildand16normalChromecasespass. SourceRED14of15newcasesfailonoldcode;all15passwithrepair. IndependentSMALLreviewconcurred.No runtime concernfound. Normalcommitgatesandcompletesharedverificationremainpending;notreleasedorlive. Tier1display-only change; no duplicate full suite in this lane. Source artifacts and evidence live in the topic's private accounts-single-list directory until committed.
|
|
44
|
+
|
|
45
|
+
## Class-Closure Declaration
|
|
46
|
+
No agent-authored-artifact defect — not applicable. No self-triggered controller added or modified.
|
|
47
|
+
|
|
48
|
+
## Independent Review
|
|
49
|
+
Reviewer review_accounts_list concurred with final model, renderer, identity/actions and scoped stretch correction. Source/content hashes are bound to the final private browser receipt. No raw account data or secrets are included.
|