@adecore/agents 0.46.0 → 0.46.2

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.
@@ -42,11 +42,11 @@ export function usageRootsOf(service) {
42
42
  return folder === null || folder === '' ? [] : [{ id, kind, folder }];
43
43
  }));
44
44
  }
45
- /* The plans the limits monitor reads: the default account of every CLI, and every other one that is on and signed in. */
45
+ /* The plans the limits monitor reads, of the accounts that are on: the default account of every CLI, and every other one that is signed in. */
46
46
  export function limitAccountsOf(service, nameOf, baseEnv) {
47
47
  return {
48
48
  list: () => machineAccounts(service.snapshot(), nameOf)
49
- .filter((account) => account.isDefault || (account.enabled && account.signedIn))
49
+ .filter((account) => account.enabled && (account.isDefault || account.signedIn))
50
50
  .map((account) => ({ ...usageAccount(account), isDefault: account.isDefault })),
51
51
  // A plan read is no start: the default account goes unnamed, so turning it off does not fail its read.
52
52
  envFor: (kind, id) => definedEnv(service.envFor(kind, storedAccount(kind, id), baseEnv)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agents",
3
- "version": "0.46.0",
3
+ "version": "0.46.2",
4
4
  "description": "Node-compatible agent chat hosts, providers, accounts, usage and durable task coordination.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -93,8 +93,8 @@
93
93
  "test": "bun --conditions=source test"
94
94
  },
95
95
  "dependencies": {
96
- "@adecore/agent-contracts": "0.46.0",
97
- "@adecore/intelligent-ui": "0.46.0",
96
+ "@adecore/agent-contracts": "0.46.2",
97
+ "@adecore/intelligent-ui": "0.46.2",
98
98
  "zod": "^4.6.7"
99
99
  },
100
100
  "devDependencies": {
@@ -62,7 +62,7 @@ export function usageRootsOf(service: ProviderAccountsService): UsageRootPath[]
62
62
  );
63
63
  }
64
64
 
65
- /* The plans the limits monitor reads: the default account of every CLI, and every other one that is on and signed in. */
65
+ /* The plans the limits monitor reads, of the accounts that are on: the default account of every CLI, and every other one that is signed in. */
66
66
  export function limitAccountsOf(
67
67
  service: ProviderAccountsService,
68
68
  nameOf: (kind: UsageProvider) => string,
@@ -71,7 +71,7 @@ export function limitAccountsOf(
71
71
  return {
72
72
  list: () =>
73
73
  machineAccounts(service.snapshot(), nameOf)
74
- .filter((account) => account.isDefault || (account.enabled && account.signedIn))
74
+ .filter((account) => account.enabled && (account.isDefault || account.signedIn))
75
75
  .map((account): LimitAccount => ({ ...usageAccount(account), isDefault: account.isDefault })),
76
76
  // A plan read is no start: the default account goes unnamed, so turning it off does not fail its read.
77
77
  envFor: (kind, id) => definedEnv(service.envFor(kind, storedAccount(kind, id), baseEnv)),