atris 3.15.50 → 3.15.51
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/commands/radar.js +3 -1
- package/lib/task-db.js +0 -1
- package/package.json +1 -1
package/commands/radar.js
CHANGED
|
@@ -332,6 +332,8 @@ function loadBusinessCollaboration(root, deps, team = {}) {
|
|
|
332
332
|
const episodes = countJsonLines(path.join(root, '.atris', 'state', 'episodes.jsonl'), deps);
|
|
333
333
|
const scorecards = countJsonLines(path.join(root, '.atris', 'state', 'scorecards.jsonl'), deps);
|
|
334
334
|
const computerDirs = countDirectoryEntries(path.join(root, 'atris', 'computers'), deps, name => !name.startsWith('.'));
|
|
335
|
+
const runtimeComputer = runtime && (runtime.workspace_id || runtime.business_id || runtime.scope === 'local-business-computer') ? 1 : 0;
|
|
336
|
+
const computers = Math.max(computerDirs, runtimeComputer);
|
|
335
337
|
const hasOnboarding = ingestPacks > 0 || starterBriefs > 0 || onePagers > 0;
|
|
336
338
|
const hasProofLoop = events > 0 || episodes > 0 || scorecards > 0 || localReceipts > 0;
|
|
337
339
|
const hasTeam = Number(team.total || 0) > 0;
|
|
@@ -360,7 +362,7 @@ function loadBusinessCollaboration(root, deps, team = {}) {
|
|
|
360
362
|
} : null,
|
|
361
363
|
onboarding: { packs: ingestPacks, starter_briefs: starterBriefs, first_loops: firstLoops, one_pagers: onePagers, reports },
|
|
362
364
|
proof: { events, episodes, scorecards, receipts: localReceipts },
|
|
363
|
-
computers
|
|
365
|
+
computers,
|
|
364
366
|
team_members: Number(team.total || 0),
|
|
365
367
|
active_goal_members: Number(team.active_goal_members || 0),
|
|
366
368
|
share_ready: missing.length === 0,
|
package/lib/task-db.js
CHANGED
|
@@ -572,7 +572,6 @@ function reviewTask(db, { id, actor, reward, lesson, nextTask, proof, careerXpEl
|
|
|
572
572
|
const metadata = row.metadata && typeof row.metadata === 'object' ? { ...row.metadata } : {};
|
|
573
573
|
const reviewingPendingProof = row.status === 'review'
|
|
574
574
|
&& metadata.approval_status === 'pending'
|
|
575
|
-
&& numericReward <= 0
|
|
576
575
|
&& metadata.agent_certified !== true;
|
|
577
576
|
let reviewPassCount = Number(metadata.agent_review_pass_count || 0);
|
|
578
577
|
if (reviewingPendingProof) {
|