@adecore/agents 0.40.0 → 0.40.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.
package/dist/fs.d.ts CHANGED
@@ -11,3 +11,4 @@ export declare function removeFile(path: string, remove?: (path: string, options
11
11
  force: true;
12
12
  }) => Promise<void>): Promise<void>;
13
13
  export declare function fileExists(path: string): Promise<boolean>;
14
+ export declare function entryExists(path: string): Promise<boolean>;
package/dist/fs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { renameSync, writeFileSync } from 'node:fs';
2
- import { open, rename, rm, stat, writeFile } from 'node:fs/promises';
2
+ import { lstat, open, rename, rm, stat, writeFile } from 'node:fs/promises';
3
3
  import { dirname } from 'node:path';
4
4
  import { wait } from './async.js';
5
5
  // Windows can refuse a rename while a watcher or an indexer holds the target; a few short retries cover it.
@@ -120,3 +120,13 @@ export async function fileExists(path) {
120
120
  return false;
121
121
  }
122
122
  }
123
+ /* Whether anything is at the path, a link that leads nowhere included, where `fileExists` follows the link. */
124
+ export async function entryExists(path) {
125
+ try {
126
+ await lstat(path);
127
+ return true;
128
+ }
129
+ catch {
130
+ return false;
131
+ }
132
+ }
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { wait, withTimeout } from './async.ts';
2
2
  export { CodedError } from './coded-error.ts';
3
3
  export { describeError, setErrorStacks, errorText } from './error-text.ts';
4
- export { tempNameFor, writeAtomic, replaceSync, writeAtomicSync, isNotFound, fileExists, type WriteAtomicOptions } from './fs.ts';
4
+ export { tempNameFor, writeAtomic, replaceSync, writeAtomicSync, isNotFound, fileExists, entryExists, type WriteAtomicOptions } from './fs.ts';
5
5
  export { RecordDirectory, type RecordDirectoryOptions } from './record-directory.ts';
6
6
  export { runProcess, type ProcessResult, type RunProcessOptions } from './run-process.ts';
7
7
  export { Serializer, KeyedSerializer } from './serializer.ts';
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  export { wait, withTimeout } from './async.js';
3
3
  export { CodedError } from './coded-error.js';
4
4
  export { describeError, setErrorStacks, errorText } from './error-text.js';
5
- export { tempNameFor, writeAtomic, replaceSync, writeAtomicSync, isNotFound, fileExists } from './fs.js';
5
+ export { tempNameFor, writeAtomic, replaceSync, writeAtomicSync, isNotFound, fileExists, entryExists } from './fs.js';
6
6
  export { RecordDirectory } from './record-directory.js';
7
7
  export { runProcess } from './run-process.js';
8
8
  export { Serializer, KeyedSerializer } from './serializer.js';
@@ -1,5 +1,5 @@
1
1
  {
2
- "updatedAt": "2026-09-29T17:26:43Z",
2
+ "updatedAt": "2026-10-26T22:10:00Z",
3
3
  "defaultModel": "gpt-6-astra",
4
4
  "profiles": {
5
5
  "ultra": {
@@ -124,10 +124,11 @@
124
124
  "models": [
125
125
  { "slug": "gpt-6-astra", "name": "GPT-6 Astra", "profile": "ultra", "aliases": ["astra", "gpt-6"] },
126
126
  { "slug": "gpt-6.1-sol", "name": "GPT-6.1 Sol", "badge": "new", "profile": "max", "aliases": ["sol"] },
127
+ { "slug": "gpt-6.1-terra", "name": "GPT-6.1 Terra", "badge": "new", "profile": "ultra-low", "aliases": ["terra"] },
127
128
  { "slug": "gpt-6-sol", "name": "GPT-6 Sol", "profile": "max" },
128
129
  { "slug": "gpt-6-luna", "name": "GPT-6 Luna", "badge": "new", "profile": "max", "aliases": ["luna"] },
129
130
  { "slug": "gpt-5.6-sol", "name": "GPT-5.6 Sol", "profile": "ultra-low", "legacy": true },
130
- { "slug": "gpt-5.6-terra", "name": "GPT-5.6 Terra", "profile": "ultra", "aliases": ["terra"], "badge": "retiring", "legacy": true },
131
+ { "slug": "gpt-5.6-terra", "name": "GPT-5.6 Terra", "profile": "ultra", "badge": "retiring", "legacy": true },
131
132
  { "slug": "gpt-5.6-luna", "name": "GPT-5.6 Luna", "profile": "max", "legacy": true },
132
133
  { "slug": "gpt-5.5", "name": "GPT-5.5", "profile": "xhigh", "legacy": true },
133
134
  { "slug": "gpt-5.3-codex-spark", "name": "GPT-5.3 Codex Spark", "profile": "spark", "aliases": ["spark"], "legacy": true }
@@ -648,6 +648,14 @@
648
648
  "cache_read_input_token_cost": 1e-7,
649
649
  "cache_creation_input_token_cost": 0.0000025
650
650
  },
651
+ "gpt-6.1-terra": {
652
+ "litellm_provider": "openai",
653
+ "mode": "chat",
654
+ "input_cost_per_token": 0.000001,
655
+ "output_cost_per_token": 0.000005,
656
+ "cache_read_input_token_cost": 5e-8,
657
+ "cache_creation_input_token_cost": 0.00000125
658
+ },
651
659
  "gpt-6-luna": {
652
660
  "litellm_provider": "openai",
653
661
  "mode": "responses",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agents",
3
- "version": "0.40.0",
3
+ "version": "0.40.2",
4
4
  "description": "Node-compatible agent chat hosts, providers, accounts, usage and durable task coordination.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -81,8 +81,8 @@
81
81
  "test": "bun --conditions=source test"
82
82
  },
83
83
  "dependencies": {
84
- "@adecore/agent-contracts": "0.40.0",
85
- "@adecore/intelligent-ui": "0.40.0",
84
+ "@adecore/agent-contracts": "0.40.2",
85
+ "@adecore/intelligent-ui": "0.40.2",
86
86
  "zod": "^4.6.7"
87
87
  },
88
88
  "devDependencies": {
package/src/fs.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { renameSync, writeFileSync } from 'node:fs';
2
- import { open, rename, rm, stat, writeFile } from 'node:fs/promises';
2
+ import { lstat, open, rename, rm, stat, writeFile } from 'node:fs/promises';
3
3
  import { dirname } from 'node:path';
4
4
  import { wait } from './async.ts';
5
5
 
@@ -143,3 +143,14 @@ export async function fileExists(path: string): Promise<boolean> {
143
143
  return false;
144
144
  }
145
145
  }
146
+
147
+ /* Whether anything is at the path, a link that leads nowhere included, where `fileExists` follows the link. */
148
+ export async function entryExists(path: string): Promise<boolean> {
149
+ try {
150
+ await lstat(path);
151
+
152
+ return true;
153
+ } catch {
154
+ return false;
155
+ }
156
+ }
package/src/index.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  export { wait, withTimeout } from './async.ts';
3
3
  export { CodedError } from './coded-error.ts';
4
4
  export { describeError, setErrorStacks, errorText } from './error-text.ts';
5
- export { tempNameFor, writeAtomic, replaceSync, writeAtomicSync, isNotFound, fileExists, type WriteAtomicOptions } from './fs.ts';
5
+ export { tempNameFor, writeAtomic, replaceSync, writeAtomicSync, isNotFound, fileExists, entryExists, type WriteAtomicOptions } from './fs.ts';
6
6
  export { RecordDirectory, type RecordDirectoryOptions } from './record-directory.ts';
7
7
  export { runProcess, type ProcessResult, type RunProcessOptions } from './run-process.ts';
8
8
  export { Serializer, KeyedSerializer } from './serializer.ts';
@@ -1,5 +1,5 @@
1
1
  {
2
- "updatedAt": "2026-09-29T17:26:43Z",
2
+ "updatedAt": "2026-10-26T22:10:00Z",
3
3
  "defaultModel": "gpt-6-astra",
4
4
  "profiles": {
5
5
  "ultra": {
@@ -124,10 +124,11 @@
124
124
  "models": [
125
125
  { "slug": "gpt-6-astra", "name": "GPT-6 Astra", "profile": "ultra", "aliases": ["astra", "gpt-6"] },
126
126
  { "slug": "gpt-6.1-sol", "name": "GPT-6.1 Sol", "badge": "new", "profile": "max", "aliases": ["sol"] },
127
+ { "slug": "gpt-6.1-terra", "name": "GPT-6.1 Terra", "badge": "new", "profile": "ultra-low", "aliases": ["terra"] },
127
128
  { "slug": "gpt-6-sol", "name": "GPT-6 Sol", "profile": "max" },
128
129
  { "slug": "gpt-6-luna", "name": "GPT-6 Luna", "badge": "new", "profile": "max", "aliases": ["luna"] },
129
130
  { "slug": "gpt-5.6-sol", "name": "GPT-5.6 Sol", "profile": "ultra-low", "legacy": true },
130
- { "slug": "gpt-5.6-terra", "name": "GPT-5.6 Terra", "profile": "ultra", "aliases": ["terra"], "badge": "retiring", "legacy": true },
131
+ { "slug": "gpt-5.6-terra", "name": "GPT-5.6 Terra", "profile": "ultra", "badge": "retiring", "legacy": true },
131
132
  { "slug": "gpt-5.6-luna", "name": "GPT-5.6 Luna", "profile": "max", "legacy": true },
132
133
  { "slug": "gpt-5.5", "name": "GPT-5.5", "profile": "xhigh", "legacy": true },
133
134
  { "slug": "gpt-5.3-codex-spark", "name": "GPT-5.3 Codex Spark", "profile": "spark", "aliases": ["spark"], "legacy": true }
@@ -648,6 +648,14 @@
648
648
  "cache_read_input_token_cost": 1e-7,
649
649
  "cache_creation_input_token_cost": 0.0000025
650
650
  },
651
+ "gpt-6.1-terra": {
652
+ "litellm_provider": "openai",
653
+ "mode": "chat",
654
+ "input_cost_per_token": 0.000001,
655
+ "output_cost_per_token": 0.000005,
656
+ "cache_read_input_token_cost": 5e-8,
657
+ "cache_creation_input_token_cost": 0.00000125
658
+ },
651
659
  "gpt-6-luna": {
652
660
  "litellm_provider": "openai",
653
661
  "mode": "responses",