@prestyj/core 5.32.1 → 5.33.0
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/{chunk-W4NHU4UL.js → chunk-DVWS2KEW.js} +4 -2
- package/dist/chunk-DVWS2KEW.js.map +1 -0
- package/dist/{chunk-XPXWXKRZ.js → chunk-G3ZS4V2K.js} +1153 -497
- package/dist/chunk-G3ZS4V2K.js.map +1 -0
- package/dist/index.cjs +1404 -480
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +268 -95
- package/dist/index.d.ts +268 -95
- package/dist/index.js +314 -28
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs +176 -43
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.d.cts +41 -3
- package/dist/model-registry.d.ts +41 -3
- package/dist/model-registry.js +12 -2
- package/dist/paths.cjs +3 -1
- package/dist/paths.cjs.map +1 -1
- package/dist/paths.d.cts +4 -0
- package/dist/paths.d.ts +4 -0
- package/dist/paths.js +1 -1
- package/package.json +16 -3
- package/dist/chunk-W4NHU4UL.js.map +0 -1
- package/dist/chunk-XPXWXKRZ.js.map +0 -1
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import { Provider, ThinkingLevel } from '@prestyj/ai';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Providers temporarily hidden from every user-facing surface: the login lists
|
|
5
|
+
* (CLI + app), the model pickers, and startup provider resolution. Their models,
|
|
6
|
+
* transports and stored credentials stay in place, so un-hiding is a one-line
|
|
7
|
+
* change here (plus `HIDDEN_PROVIDERS` in ezcoder-app/src-tauri/src/auth.rs).
|
|
8
|
+
*
|
|
9
|
+
* - `gemini`: Google stopped serving Code Assist OAuth to personal accounts on
|
|
10
|
+
* 2026-06-18, and Antigravity OAuth is off-limits to third-party clients
|
|
11
|
+
* (Google suspends accounts for it). Hidden until there is a sign-in path that
|
|
12
|
+
* works for most users.
|
|
13
|
+
*
|
|
14
|
+
* Hiding works through `AuthStorage.hasProviderAuth()`, which reports a hidden
|
|
15
|
+
* provider as not connected: every picker and the startup resolver filter on
|
|
16
|
+
* it, so a user with old Gemini credentials falls back to another provider.
|
|
17
|
+
*/
|
|
18
|
+
declare const HIDDEN_PROVIDERS: readonly string[];
|
|
19
|
+
/** True when `provider` is hidden from login lists, pickers and startup. */
|
|
20
|
+
declare function isHiddenProvider(provider: string): boolean;
|
|
21
|
+
|
|
3
22
|
interface ModelInfo {
|
|
4
23
|
id: string;
|
|
5
24
|
name: string;
|
|
@@ -42,7 +61,7 @@ interface ModelInfo {
|
|
|
42
61
|
* - OpenAI GPT-6 Astra / GPT-6.1 Sol: `ultra` (Codex orchestration preset above `max`)
|
|
43
62
|
* - OpenAI GPT-6 Luna: `max`
|
|
44
63
|
* - OpenAI Pro/Codex/old: clamped to what the model accepts
|
|
45
|
-
* - Claude Fable 5.
|
|
64
|
+
* - Claude Fable 5.2 / Fable 5.1 / Mythos 5, Opus 5.5, Sonnet 5.5 and
|
|
46
65
|
* Haiku 5.5: `max` (the Fable / Mythos line uses always-on adaptive
|
|
47
66
|
* thinking, low→max)
|
|
48
67
|
* - Kimi K3: `max` (always-on reasoning; currently the only API effort)
|
|
@@ -52,6 +71,12 @@ interface ModelInfo {
|
|
|
52
71
|
* - DeepSeek V4: `xhigh` (DeepSeek maps `xhigh` → its internal `max`)
|
|
53
72
|
*/
|
|
54
73
|
maxThinkingLevel: ThinkingLevel;
|
|
74
|
+
/**
|
|
75
|
+
* Effort rungs the endpoint itself declared (a synced gateway catalog's
|
|
76
|
+
* `reasoning.supported_efforts`). When set, the picker offers exactly these
|
|
77
|
+
* and the transport sends the chosen one unchanged. Absent on static models.
|
|
78
|
+
*/
|
|
79
|
+
thinkingLevels?: ThinkingLevel[];
|
|
55
80
|
/**
|
|
56
81
|
* Ordered preference of auth-storage keys this model resolves credentials
|
|
57
82
|
* from, for providers that split auth across multiple distinct
|
|
@@ -102,10 +127,23 @@ declare function registerRuntimeModels(models: readonly ModelInfo[]): void;
|
|
|
102
127
|
* every model from an endpoint the user just deleted.
|
|
103
128
|
*/
|
|
104
129
|
declare function clearRuntimeModels(predicate?: (model: ModelInfo) => boolean): void;
|
|
130
|
+
/**
|
|
131
|
+
* Replace (or, with undefined, restore) a provider's listed catalog. Rows whose
|
|
132
|
+
* id is already a static model of ANOTHER provider are dropped: getModel()
|
|
133
|
+
* resolves by bare id, so a collision would route to the wrong provider.
|
|
134
|
+
* Returns the rows actually installed.
|
|
135
|
+
*/
|
|
136
|
+
declare function setProviderCatalog(provider: Provider, models: readonly ModelInfo[] | undefined): ModelInfo[];
|
|
137
|
+
declare function getProviderCatalog(provider: Provider): ModelInfo[] | undefined;
|
|
105
138
|
/** Static table plus everything discovered at runtime. */
|
|
106
139
|
declare function getAllModels(): ModelInfo[];
|
|
107
140
|
declare function getModel(id: string): ModelInfo | undefined;
|
|
108
141
|
declare function getModelsForProvider(provider: Provider): ModelInfo[];
|
|
142
|
+
/**
|
|
143
|
+
* Models offered in lists that don't filter by login (Telegram `/m`, the
|
|
144
|
+
* agent's model list): everything except hidden providers' models.
|
|
145
|
+
*/
|
|
146
|
+
declare function getListedModels(): ModelInfo[];
|
|
109
147
|
/** True when running `modelId` spends real money (Claude fast mode, MiMo UltraSpeed). */
|
|
110
148
|
declare function isPaidModel(modelId: string): boolean;
|
|
111
149
|
/**
|
|
@@ -147,7 +185,7 @@ interface ContextWindowOptions {
|
|
|
147
185
|
}
|
|
148
186
|
declare function usesOpenAICodexTransport(options?: ContextWindowOptions): boolean;
|
|
149
187
|
/**
|
|
150
|
-
* Codex applies a 10K-token history cap to every tool/function output.
|
|
188
|
+
* Codex applies a 10K-token history cap to every tool/function output. EZ Coder's
|
|
151
189
|
* generic 30%-of-context allowance is far larger on 272K/372K Codex windows
|
|
152
190
|
* and can turn a few reads into 100K+ fresh input tokens. Four characters per
|
|
153
191
|
* token matches Codex's byte approximation and keeps this provider policy in
|
|
@@ -187,4 +225,4 @@ declare function getDefaultThinkingLevel(modelId: string, options?: {
|
|
|
187
225
|
*/
|
|
188
226
|
declare function getSummaryModel(provider: Provider, currentModelId: string): ModelInfo;
|
|
189
227
|
|
|
190
|
-
export { type ContextWindowOptions, DEFAULT_MAX_VIDEO_BYTES, MODELS, type ModelBilling, type ModelInfo, clearRuntimeModels, getAllModels, getAuthStorageKey, getAuthStorageKeys, getContextWindow, getDefaultModel, getDefaultThinkingLevel, getMaxThinkingLevel, getModel, getModelsForProvider, getSummaryModel, getToolResultCharLimit, getVideoByteLimit, isPaidModel, registerRuntimeModels, usesOpenAICodexTransport, withoutPaidTier };
|
|
228
|
+
export { type ContextWindowOptions, DEFAULT_MAX_VIDEO_BYTES, HIDDEN_PROVIDERS, MODELS, type ModelBilling, type ModelInfo, clearRuntimeModels, getAllModels, getAuthStorageKey, getAuthStorageKeys, getContextWindow, getDefaultModel, getDefaultThinkingLevel, getListedModels, getMaxThinkingLevel, getModel, getModelsForProvider, getProviderCatalog, getSummaryModel, getToolResultCharLimit, getVideoByteLimit, isHiddenProvider, isPaidModel, registerRuntimeModels, setProviderCatalog, usesOpenAICodexTransport, withoutPaidTier };
|
package/dist/model-registry.d.ts
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import { Provider, ThinkingLevel } from '@prestyj/ai';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Providers temporarily hidden from every user-facing surface: the login lists
|
|
5
|
+
* (CLI + app), the model pickers, and startup provider resolution. Their models,
|
|
6
|
+
* transports and stored credentials stay in place, so un-hiding is a one-line
|
|
7
|
+
* change here (plus `HIDDEN_PROVIDERS` in ezcoder-app/src-tauri/src/auth.rs).
|
|
8
|
+
*
|
|
9
|
+
* - `gemini`: Google stopped serving Code Assist OAuth to personal accounts on
|
|
10
|
+
* 2026-06-18, and Antigravity OAuth is off-limits to third-party clients
|
|
11
|
+
* (Google suspends accounts for it). Hidden until there is a sign-in path that
|
|
12
|
+
* works for most users.
|
|
13
|
+
*
|
|
14
|
+
* Hiding works through `AuthStorage.hasProviderAuth()`, which reports a hidden
|
|
15
|
+
* provider as not connected: every picker and the startup resolver filter on
|
|
16
|
+
* it, so a user with old Gemini credentials falls back to another provider.
|
|
17
|
+
*/
|
|
18
|
+
declare const HIDDEN_PROVIDERS: readonly string[];
|
|
19
|
+
/** True when `provider` is hidden from login lists, pickers and startup. */
|
|
20
|
+
declare function isHiddenProvider(provider: string): boolean;
|
|
21
|
+
|
|
3
22
|
interface ModelInfo {
|
|
4
23
|
id: string;
|
|
5
24
|
name: string;
|
|
@@ -42,7 +61,7 @@ interface ModelInfo {
|
|
|
42
61
|
* - OpenAI GPT-6 Astra / GPT-6.1 Sol: `ultra` (Codex orchestration preset above `max`)
|
|
43
62
|
* - OpenAI GPT-6 Luna: `max`
|
|
44
63
|
* - OpenAI Pro/Codex/old: clamped to what the model accepts
|
|
45
|
-
* - Claude Fable 5.
|
|
64
|
+
* - Claude Fable 5.2 / Fable 5.1 / Mythos 5, Opus 5.5, Sonnet 5.5 and
|
|
46
65
|
* Haiku 5.5: `max` (the Fable / Mythos line uses always-on adaptive
|
|
47
66
|
* thinking, low→max)
|
|
48
67
|
* - Kimi K3: `max` (always-on reasoning; currently the only API effort)
|
|
@@ -52,6 +71,12 @@ interface ModelInfo {
|
|
|
52
71
|
* - DeepSeek V4: `xhigh` (DeepSeek maps `xhigh` → its internal `max`)
|
|
53
72
|
*/
|
|
54
73
|
maxThinkingLevel: ThinkingLevel;
|
|
74
|
+
/**
|
|
75
|
+
* Effort rungs the endpoint itself declared (a synced gateway catalog's
|
|
76
|
+
* `reasoning.supported_efforts`). When set, the picker offers exactly these
|
|
77
|
+
* and the transport sends the chosen one unchanged. Absent on static models.
|
|
78
|
+
*/
|
|
79
|
+
thinkingLevels?: ThinkingLevel[];
|
|
55
80
|
/**
|
|
56
81
|
* Ordered preference of auth-storage keys this model resolves credentials
|
|
57
82
|
* from, for providers that split auth across multiple distinct
|
|
@@ -102,10 +127,23 @@ declare function registerRuntimeModels(models: readonly ModelInfo[]): void;
|
|
|
102
127
|
* every model from an endpoint the user just deleted.
|
|
103
128
|
*/
|
|
104
129
|
declare function clearRuntimeModels(predicate?: (model: ModelInfo) => boolean): void;
|
|
130
|
+
/**
|
|
131
|
+
* Replace (or, with undefined, restore) a provider's listed catalog. Rows whose
|
|
132
|
+
* id is already a static model of ANOTHER provider are dropped: getModel()
|
|
133
|
+
* resolves by bare id, so a collision would route to the wrong provider.
|
|
134
|
+
* Returns the rows actually installed.
|
|
135
|
+
*/
|
|
136
|
+
declare function setProviderCatalog(provider: Provider, models: readonly ModelInfo[] | undefined): ModelInfo[];
|
|
137
|
+
declare function getProviderCatalog(provider: Provider): ModelInfo[] | undefined;
|
|
105
138
|
/** Static table plus everything discovered at runtime. */
|
|
106
139
|
declare function getAllModels(): ModelInfo[];
|
|
107
140
|
declare function getModel(id: string): ModelInfo | undefined;
|
|
108
141
|
declare function getModelsForProvider(provider: Provider): ModelInfo[];
|
|
142
|
+
/**
|
|
143
|
+
* Models offered in lists that don't filter by login (Telegram `/m`, the
|
|
144
|
+
* agent's model list): everything except hidden providers' models.
|
|
145
|
+
*/
|
|
146
|
+
declare function getListedModels(): ModelInfo[];
|
|
109
147
|
/** True when running `modelId` spends real money (Claude fast mode, MiMo UltraSpeed). */
|
|
110
148
|
declare function isPaidModel(modelId: string): boolean;
|
|
111
149
|
/**
|
|
@@ -147,7 +185,7 @@ interface ContextWindowOptions {
|
|
|
147
185
|
}
|
|
148
186
|
declare function usesOpenAICodexTransport(options?: ContextWindowOptions): boolean;
|
|
149
187
|
/**
|
|
150
|
-
* Codex applies a 10K-token history cap to every tool/function output.
|
|
188
|
+
* Codex applies a 10K-token history cap to every tool/function output. EZ Coder's
|
|
151
189
|
* generic 30%-of-context allowance is far larger on 272K/372K Codex windows
|
|
152
190
|
* and can turn a few reads into 100K+ fresh input tokens. Four characters per
|
|
153
191
|
* token matches Codex's byte approximation and keeps this provider policy in
|
|
@@ -187,4 +225,4 @@ declare function getDefaultThinkingLevel(modelId: string, options?: {
|
|
|
187
225
|
*/
|
|
188
226
|
declare function getSummaryModel(provider: Provider, currentModelId: string): ModelInfo;
|
|
189
227
|
|
|
190
|
-
export { type ContextWindowOptions, DEFAULT_MAX_VIDEO_BYTES, MODELS, type ModelBilling, type ModelInfo, clearRuntimeModels, getAllModels, getAuthStorageKey, getAuthStorageKeys, getContextWindow, getDefaultModel, getDefaultThinkingLevel, getMaxThinkingLevel, getModel, getModelsForProvider, getSummaryModel, getToolResultCharLimit, getVideoByteLimit, isPaidModel, registerRuntimeModels, usesOpenAICodexTransport, withoutPaidTier };
|
|
228
|
+
export { type ContextWindowOptions, DEFAULT_MAX_VIDEO_BYTES, HIDDEN_PROVIDERS, MODELS, type ModelBilling, type ModelInfo, clearRuntimeModels, getAllModels, getAuthStorageKey, getAuthStorageKeys, getContextWindow, getDefaultModel, getDefaultThinkingLevel, getListedModels, getMaxThinkingLevel, getModel, getModelsForProvider, getProviderCatalog, getSummaryModel, getToolResultCharLimit, getVideoByteLimit, isHiddenProvider, isPaidModel, registerRuntimeModels, setProviderCatalog, usesOpenAICodexTransport, withoutPaidTier };
|
package/dist/model-registry.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_MAX_VIDEO_BYTES,
|
|
3
|
+
HIDDEN_PROVIDERS,
|
|
3
4
|
MODELS,
|
|
4
5
|
clearRuntimeModels,
|
|
5
6
|
getAllModels,
|
|
@@ -8,20 +9,25 @@ import {
|
|
|
8
9
|
getContextWindow,
|
|
9
10
|
getDefaultModel,
|
|
10
11
|
getDefaultThinkingLevel,
|
|
12
|
+
getListedModels,
|
|
11
13
|
getMaxThinkingLevel,
|
|
12
14
|
getModel,
|
|
13
15
|
getModelsForProvider,
|
|
16
|
+
getProviderCatalog,
|
|
14
17
|
getSummaryModel,
|
|
15
18
|
getToolResultCharLimit,
|
|
16
19
|
getVideoByteLimit,
|
|
20
|
+
isHiddenProvider,
|
|
17
21
|
isPaidModel,
|
|
18
22
|
registerRuntimeModels,
|
|
23
|
+
setProviderCatalog,
|
|
19
24
|
usesOpenAICodexTransport,
|
|
20
25
|
withoutPaidTier
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-G3ZS4V2K.js";
|
|
27
|
+
import "./chunk-DVWS2KEW.js";
|
|
23
28
|
export {
|
|
24
29
|
DEFAULT_MAX_VIDEO_BYTES,
|
|
30
|
+
HIDDEN_PROVIDERS,
|
|
25
31
|
MODELS,
|
|
26
32
|
clearRuntimeModels,
|
|
27
33
|
getAllModels,
|
|
@@ -30,14 +36,18 @@ export {
|
|
|
30
36
|
getContextWindow,
|
|
31
37
|
getDefaultModel,
|
|
32
38
|
getDefaultThinkingLevel,
|
|
39
|
+
getListedModels,
|
|
33
40
|
getMaxThinkingLevel,
|
|
34
41
|
getModel,
|
|
35
42
|
getModelsForProvider,
|
|
43
|
+
getProviderCatalog,
|
|
36
44
|
getSummaryModel,
|
|
37
45
|
getToolResultCharLimit,
|
|
38
46
|
getVideoByteLimit,
|
|
47
|
+
isHiddenProvider,
|
|
39
48
|
isPaidModel,
|
|
40
49
|
registerRuntimeModels,
|
|
50
|
+
setProviderCatalog,
|
|
41
51
|
usesOpenAICodexTransport,
|
|
42
52
|
withoutPaidTier
|
|
43
53
|
};
|
package/dist/paths.cjs
CHANGED
|
@@ -55,7 +55,9 @@ function getAppPaths() {
|
|
|
55
55
|
agentsDir: import_node_path.default.join(agentDir, "agents"),
|
|
56
56
|
progressFile: import_node_path.default.join(agentDir, "progress.json"),
|
|
57
57
|
progressBackupFile: import_node_path.default.join(agentDir, "progress.backup.json"),
|
|
58
|
-
trophiesFile: import_node_path.default.join(agentDir, "trophies.json")
|
|
58
|
+
trophiesFile: import_node_path.default.join(agentDir, "trophies.json"),
|
|
59
|
+
claudeCodeDir: import_node_path.default.join(agentDir, "claude-code"),
|
|
60
|
+
claudeCodeConfigDir: import_node_path.default.join(agentDir, "claude-code", "config")
|
|
59
61
|
};
|
|
60
62
|
}
|
|
61
63
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/paths.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/paths.ts"],"sourcesContent":["import path from \"node:path\";\nimport os from \"node:os\";\n\nexport interface AppPaths {\n agentDir: string;\n sessionsDir: string;\n subagentSessionsDir: string;\n subagentsDir: string;\n settingsFile: string;\n authFile: string;\n telegramFile: string;\n agentHomeFile: string;\n mcpFile: string;\n mcpAuthFile: string;\n /** Cached MCP tool catalog, so a cold start can answer tool_search honestly. */\n mcpCatalogFile: string;\n logFile: string;\n skillsDir: string;\n extensionsDir: string;\n agentsDir: string;\n progressFile: string;\n progressBackupFile: string;\n /** Earned trophies and the counters that unlock them. */\n trophiesFile: string;\n}\n\nexport function getAppPaths(): AppPaths {\n const agentDir = path.join(os.homedir(), \".ezcoder\");\n return {\n agentDir,\n sessionsDir: path.join(agentDir, \"sessions\"),\n subagentSessionsDir: path.join(agentDir, \"subagent-sessions\"),\n subagentsDir: path.join(agentDir, \"subagents\"),\n settingsFile: path.join(agentDir, \"settings.json\"),\n authFile: path.join(agentDir, \"auth.json\"),\n telegramFile: path.join(agentDir, \"telegram.json\"),\n agentHomeFile: path.join(agentDir, \"agent-home.json\"),\n mcpFile: path.join(agentDir, \"mcp.json\"),\n mcpAuthFile: path.join(agentDir, \"mcp-auth.json\"),\n mcpCatalogFile: path.join(agentDir, \"mcp-catalog.json\"),\n logFile: path.join(agentDir, \"debug.log\"),\n skillsDir: path.join(agentDir, \"skills\"),\n extensionsDir: path.join(agentDir, \"extensions\"),\n agentsDir: path.join(agentDir, \"agents\"),\n progressFile: path.join(agentDir, \"progress.json\"),\n progressBackupFile: path.join(agentDir, \"progress.backup.json\"),\n trophiesFile: path.join(agentDir, \"trophies.json\"),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAiB;AACjB,qBAAe;
|
|
1
|
+
{"version":3,"sources":["../src/paths.ts"],"sourcesContent":["import path from \"node:path\";\nimport os from \"node:os\";\n\nexport interface AppPaths {\n agentDir: string;\n sessionsDir: string;\n subagentSessionsDir: string;\n subagentsDir: string;\n settingsFile: string;\n authFile: string;\n telegramFile: string;\n agentHomeFile: string;\n mcpFile: string;\n mcpAuthFile: string;\n /** Cached MCP tool catalog, so a cold start can answer tool_search honestly. */\n mcpCatalogFile: string;\n logFile: string;\n skillsDir: string;\n extensionsDir: string;\n agentsDir: string;\n progressFile: string;\n progressBackupFile: string;\n /** Earned trophies and the counters that unlock them. */\n trophiesFile: string;\n /** On-demand Claude Code binaries for \"Sign in with Claude\", one dir per version. */\n claudeCodeDir: string;\n /** EZ Coder's own Claude Code login (CLAUDE_CONFIG_DIR), separate from the user's. */\n claudeCodeConfigDir: string;\n}\n\nexport function getAppPaths(): AppPaths {\n const agentDir = path.join(os.homedir(), \".ezcoder\");\n return {\n agentDir,\n sessionsDir: path.join(agentDir, \"sessions\"),\n subagentSessionsDir: path.join(agentDir, \"subagent-sessions\"),\n subagentsDir: path.join(agentDir, \"subagents\"),\n settingsFile: path.join(agentDir, \"settings.json\"),\n authFile: path.join(agentDir, \"auth.json\"),\n telegramFile: path.join(agentDir, \"telegram.json\"),\n agentHomeFile: path.join(agentDir, \"agent-home.json\"),\n mcpFile: path.join(agentDir, \"mcp.json\"),\n mcpAuthFile: path.join(agentDir, \"mcp-auth.json\"),\n mcpCatalogFile: path.join(agentDir, \"mcp-catalog.json\"),\n logFile: path.join(agentDir, \"debug.log\"),\n skillsDir: path.join(agentDir, \"skills\"),\n extensionsDir: path.join(agentDir, \"extensions\"),\n agentsDir: path.join(agentDir, \"agents\"),\n progressFile: path.join(agentDir, \"progress.json\"),\n progressBackupFile: path.join(agentDir, \"progress.backup.json\"),\n trophiesFile: path.join(agentDir, \"trophies.json\"),\n claudeCodeDir: path.join(agentDir, \"claude-code\"),\n claudeCodeConfigDir: path.join(agentDir, \"claude-code\", \"config\"),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAiB;AACjB,qBAAe;AA6BR,SAAS,cAAwB;AACtC,QAAM,WAAW,iBAAAA,QAAK,KAAK,eAAAC,QAAG,QAAQ,GAAG,UAAU;AACnD,SAAO;AAAA,IACL;AAAA,IACA,aAAa,iBAAAD,QAAK,KAAK,UAAU,UAAU;AAAA,IAC3C,qBAAqB,iBAAAA,QAAK,KAAK,UAAU,mBAAmB;AAAA,IAC5D,cAAc,iBAAAA,QAAK,KAAK,UAAU,WAAW;AAAA,IAC7C,cAAc,iBAAAA,QAAK,KAAK,UAAU,eAAe;AAAA,IACjD,UAAU,iBAAAA,QAAK,KAAK,UAAU,WAAW;AAAA,IACzC,cAAc,iBAAAA,QAAK,KAAK,UAAU,eAAe;AAAA,IACjD,eAAe,iBAAAA,QAAK,KAAK,UAAU,iBAAiB;AAAA,IACpD,SAAS,iBAAAA,QAAK,KAAK,UAAU,UAAU;AAAA,IACvC,aAAa,iBAAAA,QAAK,KAAK,UAAU,eAAe;AAAA,IAChD,gBAAgB,iBAAAA,QAAK,KAAK,UAAU,kBAAkB;AAAA,IACtD,SAAS,iBAAAA,QAAK,KAAK,UAAU,WAAW;AAAA,IACxC,WAAW,iBAAAA,QAAK,KAAK,UAAU,QAAQ;AAAA,IACvC,eAAe,iBAAAA,QAAK,KAAK,UAAU,YAAY;AAAA,IAC/C,WAAW,iBAAAA,QAAK,KAAK,UAAU,QAAQ;AAAA,IACvC,cAAc,iBAAAA,QAAK,KAAK,UAAU,eAAe;AAAA,IACjD,oBAAoB,iBAAAA,QAAK,KAAK,UAAU,sBAAsB;AAAA,IAC9D,cAAc,iBAAAA,QAAK,KAAK,UAAU,eAAe;AAAA,IACjD,eAAe,iBAAAA,QAAK,KAAK,UAAU,aAAa;AAAA,IAChD,qBAAqB,iBAAAA,QAAK,KAAK,UAAU,eAAe,QAAQ;AAAA,EAClE;AACF;","names":["path","os"]}
|
package/dist/paths.d.cts
CHANGED
|
@@ -19,6 +19,10 @@ interface AppPaths {
|
|
|
19
19
|
progressBackupFile: string;
|
|
20
20
|
/** Earned trophies and the counters that unlock them. */
|
|
21
21
|
trophiesFile: string;
|
|
22
|
+
/** On-demand Claude Code binaries for "Sign in with Claude", one dir per version. */
|
|
23
|
+
claudeCodeDir: string;
|
|
24
|
+
/** EZ Coder's own Claude Code login (CLAUDE_CONFIG_DIR), separate from the user's. */
|
|
25
|
+
claudeCodeConfigDir: string;
|
|
22
26
|
}
|
|
23
27
|
declare function getAppPaths(): AppPaths;
|
|
24
28
|
|
package/dist/paths.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ interface AppPaths {
|
|
|
19
19
|
progressBackupFile: string;
|
|
20
20
|
/** Earned trophies and the counters that unlock them. */
|
|
21
21
|
trophiesFile: string;
|
|
22
|
+
/** On-demand Claude Code binaries for "Sign in with Claude", one dir per version. */
|
|
23
|
+
claudeCodeDir: string;
|
|
24
|
+
/** EZ Coder's own Claude Code login (CLAUDE_CONFIG_DIR), separate from the user's. */
|
|
25
|
+
claudeCodeConfigDir: string;
|
|
22
26
|
}
|
|
23
27
|
declare function getAppPaths(): AppPaths;
|
|
24
28
|
|
package/dist/paths.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prestyj/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.33.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Model registry, sign-in and stored credentials, and local model discovery for apps built on @prestyj/ai. No UI, no agent loop.",
|
|
6
|
+
"author": "Nolan Grout",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"llm",
|
|
9
|
+
"ai",
|
|
10
|
+
"model-registry",
|
|
11
|
+
"oauth",
|
|
12
|
+
"ollama",
|
|
13
|
+
"local-models"
|
|
14
|
+
],
|
|
6
15
|
"license": "MIT",
|
|
7
16
|
"engines": {
|
|
8
17
|
"node": ">=22"
|
|
@@ -12,6 +21,10 @@
|
|
|
12
21
|
"url": "git+https://github.com/Gahroot/ezcoder.git",
|
|
13
22
|
"directory": "packages/core"
|
|
14
23
|
},
|
|
24
|
+
"homepage": "https://github.com/Gahroot/ezcoder/tree/main/packages/core#readme",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/Gahroot/ezcoder/issues"
|
|
27
|
+
},
|
|
15
28
|
"exports": {
|
|
16
29
|
".": {
|
|
17
30
|
"types": "./dist/index.d.ts",
|
|
@@ -36,7 +49,7 @@
|
|
|
36
49
|
"dist"
|
|
37
50
|
],
|
|
38
51
|
"dependencies": {
|
|
39
|
-
"@prestyj/ai": "5.
|
|
52
|
+
"@prestyj/ai": "5.33.0"
|
|
40
53
|
},
|
|
41
54
|
"optionalDependencies": {
|
|
42
55
|
"@huggingface/transformers": "4.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/paths.ts"],"sourcesContent":["import path from \"node:path\";\nimport os from \"node:os\";\n\nexport interface AppPaths {\n agentDir: string;\n sessionsDir: string;\n subagentSessionsDir: string;\n subagentsDir: string;\n settingsFile: string;\n authFile: string;\n telegramFile: string;\n agentHomeFile: string;\n mcpFile: string;\n mcpAuthFile: string;\n /** Cached MCP tool catalog, so a cold start can answer tool_search honestly. */\n mcpCatalogFile: string;\n logFile: string;\n skillsDir: string;\n extensionsDir: string;\n agentsDir: string;\n progressFile: string;\n progressBackupFile: string;\n /** Earned trophies and the counters that unlock them. */\n trophiesFile: string;\n}\n\nexport function getAppPaths(): AppPaths {\n const agentDir = path.join(os.homedir(), \".ezcoder\");\n return {\n agentDir,\n sessionsDir: path.join(agentDir, \"sessions\"),\n subagentSessionsDir: path.join(agentDir, \"subagent-sessions\"),\n subagentsDir: path.join(agentDir, \"subagents\"),\n settingsFile: path.join(agentDir, \"settings.json\"),\n authFile: path.join(agentDir, \"auth.json\"),\n telegramFile: path.join(agentDir, \"telegram.json\"),\n agentHomeFile: path.join(agentDir, \"agent-home.json\"),\n mcpFile: path.join(agentDir, \"mcp.json\"),\n mcpAuthFile: path.join(agentDir, \"mcp-auth.json\"),\n mcpCatalogFile: path.join(agentDir, \"mcp-catalog.json\"),\n logFile: path.join(agentDir, \"debug.log\"),\n skillsDir: path.join(agentDir, \"skills\"),\n extensionsDir: path.join(agentDir, \"extensions\"),\n agentsDir: path.join(agentDir, \"agents\"),\n progressFile: path.join(agentDir, \"progress.json\"),\n progressBackupFile: path.join(agentDir, \"progress.backup.json\"),\n trophiesFile: path.join(agentDir, \"trophies.json\"),\n };\n}\n"],"mappings":";AAAA,OAAO,UAAU;AACjB,OAAO,QAAQ;AAyBR,SAAS,cAAwB;AACtC,QAAM,WAAW,KAAK,KAAK,GAAG,QAAQ,GAAG,UAAU;AACnD,SAAO;AAAA,IACL;AAAA,IACA,aAAa,KAAK,KAAK,UAAU,UAAU;AAAA,IAC3C,qBAAqB,KAAK,KAAK,UAAU,mBAAmB;AAAA,IAC5D,cAAc,KAAK,KAAK,UAAU,WAAW;AAAA,IAC7C,cAAc,KAAK,KAAK,UAAU,eAAe;AAAA,IACjD,UAAU,KAAK,KAAK,UAAU,WAAW;AAAA,IACzC,cAAc,KAAK,KAAK,UAAU,eAAe;AAAA,IACjD,eAAe,KAAK,KAAK,UAAU,iBAAiB;AAAA,IACpD,SAAS,KAAK,KAAK,UAAU,UAAU;AAAA,IACvC,aAAa,KAAK,KAAK,UAAU,eAAe;AAAA,IAChD,gBAAgB,KAAK,KAAK,UAAU,kBAAkB;AAAA,IACtD,SAAS,KAAK,KAAK,UAAU,WAAW;AAAA,IACxC,WAAW,KAAK,KAAK,UAAU,QAAQ;AAAA,IACvC,eAAe,KAAK,KAAK,UAAU,YAAY;AAAA,IAC/C,WAAW,KAAK,KAAK,UAAU,QAAQ;AAAA,IACvC,cAAc,KAAK,KAAK,UAAU,eAAe;AAAA,IACjD,oBAAoB,KAAK,KAAK,UAAU,sBAAsB;AAAA,IAC9D,cAAc,KAAK,KAAK,UAAU,eAAe;AAAA,EACnD;AACF;","names":[]}
|