aptly 0.1.17 → 0.1.18

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.
@@ -8,9 +8,12 @@ const entries = [
8
8
  { profile: { id: 'codex-routine', client: 'codex', model: 'gpt-6.1-terra', reasoning_effort: 'high' }, tier: 'standard',
9
9
  task: 'Context-aware writing or translation, everyday analysis, or clearly scoped implementation.',
10
10
  fact: 'Fast and efficient for writing, visual understanding, and computer use.', source: codexSource, default: true },
11
- { profile: { id: 'codex-deep', client: 'codex', model: 'gpt-6.1-sol', reasoning_effort: 'medium' }, tier: 'deep',
11
+ { profile: { id: 'codex-deep', client: 'codex', model: 'gpt-6.2-sol', reasoning_effort: 'medium' }, tier: 'deep',
12
12
  task: 'Cross-component debugging, architectural tradeoffs, or demanding accuracy-sensitive review.',
13
- fact: 'Near-Astra capability for complex, repeated and long-running work at lower cost than Astra.', source: codexSource, default: true },
13
+ fact: 'Supports everyday coding, writing, and work across several sources.', source: codexSource, default: true },
14
+ { profile: { id: 'codex-deep-legacy', client: 'codex', model: 'gpt-6.1-sol', reasoning_effort: 'medium' }, tier: 'deep',
15
+ task: 'Cross-component debugging, architectural tradeoffs, or demanding accuracy-sensitive review.',
16
+ fact: 'Near-Astra capability for complex, repeated and long-running work at lower cost than Astra.', source: codexSource, default: false },
14
17
  { profile: { id: 'claude-simple', client: 'claude', model: 'haiku' }, tier: 'simple',
15
18
  task: 'Bounded extraction, format conversion, wording cleanup, or small mechanical edits.',
16
19
  fact: 'Fast and efficient for simple tasks.', source: claudeSource, default: true },
package/dist/src/core.js CHANGED
@@ -38,6 +38,7 @@ const supportedProfile = (p) => isSupportedProfile(p);
38
38
  // Storage compatibility only. These retired tuples may be read from an old
39
39
  // ledger, but do not enter the runtime catalog or grant Hook execution rights.
40
40
  const legacyStoredProfiles = [
41
+ { id: 'codex-deep', client: 'codex', model: 'gpt-6.1-sol', reasoning_effort: 'medium' },
41
42
  { id: 'codex-routine', client: 'codex', model: 'gpt-6.1-sol', reasoning_effort: 'low' },
42
43
  { id: 'codex-deep', client: 'codex', model: 'gpt-6-astra', reasoning_effort: 'high' },
43
44
  { id: 'claude-routine', client: 'claude', model: 'haiku' },
@@ -9,7 +9,7 @@ export const modelInfoUrls = Object.freeze([
9
9
  'https://learn.chatgpt.com/docs/models.md',
10
10
  ]);
11
11
  const aliases = ['haiku', 'sonnet', 'opus', 'fable'];
12
- const codexModels = ['gpt-6-luna', 'gpt-6.1-terra', 'gpt-6.1-sol', 'gpt-6-astra'];
12
+ const codexModels = ['gpt-6-luna', 'gpt-6.1-terra', 'gpt-6.1-sol', 'gpt-6-astra', 'gpt-6.2-sol'];
13
13
  const maximumBody = 256 * 1024, maximumSnapshot = 32 * 1024, ttl = 7 * 24 * 60 * 60 * 1000;
14
14
  const fail = (code) => Object.assign(new Error(code), { code });
15
15
  const own = (v, k) => Object.hasOwn(v, k);
@@ -25,7 +25,7 @@ function validate(value) {
25
25
  if (!exact(value, ['schema_version', 'fetched_at', 'sources', 'facts']) || value.schema_version !== 1 || typeof value.fetched_at !== 'string' ||
26
26
  !/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d{3}Z$/.test(value.fetched_at) || !Number.isFinite(Date.parse(value.fetched_at)) ||
27
27
  new Date(value.fetched_at).toISOString() !== value.fetched_at || !Array.isArray(value.sources) || value.sources.length !== 2 ||
28
- !Array.isArray(value.facts) || value.facts.length !== 8)
28
+ !Array.isArray(value.facts) || ![8, 9].includes(value.facts.length))
29
29
  throw fail('model_info_invalid');
30
30
  const sources = value.sources.map((s, i) => {
31
31
  if (!exact(s, ['url', 'sha256']) || typeof s.url !== 'string' || s.url !== modelInfoUrls[i] || typeof s.sha256 !== 'string' || !/^[a-f0-9]{64}$/.test(s.sha256))
@@ -43,6 +43,9 @@ function validate(value) {
43
43
  seen.add(key);
44
44
  return { client: f.client, model: f.model, description: f.description };
45
45
  });
46
+ // Eight-fact caches from older versions remain usable; the new model uses its bundled fact.
47
+ if (facts.length === 8 && seen.has('codex:gpt-6.2-sol'))
48
+ throw fail('model_info_invalid');
46
49
  const snapshot = { schema_version: 1, fetched_at: value.fetched_at, sources, facts };
47
50
  if (Buffer.byteLength(JSON.stringify(snapshot)) > maximumSnapshot)
48
51
  throw fail('model_info_invalid');
@@ -73,7 +76,7 @@ function parseCodex(markdown) {
73
76
  throw fail('model_info_parse_failed');
74
77
  const blocks = section.match(/<ModelDetails\b[\s\S]*?\n\s*\/>/g) ?? [];
75
78
  return codexModels.map(model => {
76
- const entries = blocks.filter(b => new RegExp('\\bname="' + model.replaceAll('.', '\\.') + '"').test(b));
79
+ const entries = blocks.filter(b => new RegExp('\\b(?:slug|name)="' + model.replaceAll('.', '\\.') + '"').test(b));
77
80
  if (entries.length !== 1)
78
81
  throw fail('model_info_parse_failed');
79
82
  const values = [...entries[0].matchAll(/\bdescription="([^"\r\n]*)"/g)];
package/dist/src/setup.js CHANGED
@@ -164,7 +164,7 @@ function removeTomlEnv(text, additions) {
164
164
  return text;
165
165
  }
166
166
  export const configurableEnvironmentKeys = Object.freeze([...budgetEnvironmentKeys, 'ROUTER_PROVIDER', 'APTLY_CLAUDE_MODELS', 'APTLY_CODEX_MODELS', 'CLAUDE_MODELS', 'CODEX_MODELS', 'APTLY_MODEL_INFO_PATH']);
167
- const defaultEnvironment = { ...budgetEnvironmentDefaults, ROUTER_PROVIDER: 'decisions', APTLY_CLAUDE_MODELS: '["haiku","sonnet","opus"]', APTLY_CODEX_MODELS: '["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]' };
167
+ const defaultEnvironment = { ...budgetEnvironmentDefaults, ROUTER_PROVIDER: 'decisions', APTLY_CLAUDE_MODELS: '["haiku","sonnet","opus"]', APTLY_CODEX_MODELS: '["gpt-6-luna","gpt-6.1-terra","gpt-6.2-sol"]' };
168
168
  function validateEnvironmentValue(key, value) {
169
169
  if (!configurableEnvironmentKeys.includes(key))
170
170
  fail(/KEY|TOKEN|SECRET|PASSWORD|CREDENTIAL/i.test(key) ? 'environment_secret_key_unsupported' : 'environment_key_unsupported');
@@ -1 +1 @@
1
- export declare const VERSION = "0.1.17";
1
+ export declare const VERSION = "0.1.18";
@@ -1 +1 @@
1
- export const VERSION = '0.1.17';
1
+ export const VERSION = '0.1.18';
@@ -83,13 +83,15 @@ node bin/aptly.ts capabilities
83
83
  |---|---|---|
84
84
  | simple | `claude-simple`: haiku | `codex-simple`: gpt-6-luna / max |
85
85
  | routine | `claude-routine`: sonnet | `codex-routine`: gpt-6.1-terra / high |
86
- | deep | `claude-deep`: opus | `codex-deep`: gpt-6.1-sol / medium |
86
+ | deep | `claude-deep`: opus | `codex-deep`: gpt-6.2-sol / medium |
87
+
88
+ `gpt-6.1-sol`은 선택 후보 `codex-deep-legacy` / medium으로 유지합니다. 기존 후보 설정은 자동으로 바꾸지 않습니다.
87
89
 
88
90
  프로세스 환경에서 후보를 좁힐 수 있어요. 모델명 배열이며 profile ID 배열은 아니에요.
89
91
 
90
92
  ```sh
91
93
  export APTLY_CLAUDE_MODELS='["haiku","sonnet","opus"]'
92
- export APTLY_CODEX_MODELS='["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]'
94
+ export APTLY_CODEX_MODELS='["gpt-6-luna","gpt-6.1-terra","gpt-6.2-sol"]'
93
95
  ```
94
96
 
95
97
  MCP 설정 JSON의 `env` 값에는 위 배열을 JSON 문자열로 넣어요. 실제 등록 형식은 [Claude 예제](../examples/claude-mcp.json)와 [Codex 예제](../examples/codex-mcp.toml)를 참고해요.
@@ -52,7 +52,7 @@ env_vars = ["OPENAI_API_KEY"]
52
52
  [mcp_servers.aptly.env]
53
53
  ROUTER_PROVIDER = "decisions"
54
54
  APTLY_CLAUDE_MODELS = '["haiku","sonnet","opus"]'
55
- APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]'
55
+ APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.2-sol"]'
56
56
  ```
57
57
 
58
58
  <a id="guide-claude-configuration"></a>
@@ -65,7 +65,7 @@ Merge these values into the existing `mcpServers.aptly.env` object:
65
65
  {
66
66
  "ROUTER_PROVIDER": "decisions",
67
67
  "APTLY_CLAUDE_MODELS": "[\"haiku\",\"sonnet\",\"opus\"]",
68
- "APTLY_CODEX_MODELS": "[\"gpt-6-luna\",\"gpt-6.1-terra\",\"gpt-6.1-sol\"]"
68
+ "APTLY_CODEX_MODELS": "[\"gpt-6-luna\",\"gpt-6.1-terra\",\"gpt-6.2-sol\"]"
69
69
  }
70
70
  ```
71
71
 
@@ -97,7 +97,9 @@ Tiers are task presets and do not imply equivalent model performance across prov
97
97
  |---|---|---|---|
98
98
  | simple | `haiku` | `gpt-6-luna` / `max` | Extraction, format conversion, small mechanical edits |
99
99
  | routine | `sonnet` | `gpt-6.1-terra` / `high` | Context-aware writing, translation, scoped implementation |
100
- | deep | `opus` | `gpt-6.1-sol` / `medium` | Complex debugging, design decisions, deep review |
100
+ | deep | `opus` | `gpt-6.2-sol` / `medium` | Complex debugging, design decisions, deep review |
101
+
102
+ The new default applies when candidate configuration is missing or fresh; existing candidate lists are preserved. `gpt-6.1-sol` remains available as the optional `codex-deep-legacy` / `medium` profile. Both models can be selected with unique IDs.
101
103
 
102
104
  MCP `env` values are strings, so pass candidate arrays as JSON strings.
103
105
 
@@ -105,7 +107,7 @@ MCP `env` values are strings, so pass candidate arrays as JSON strings.
105
107
  {
106
108
  "env": {
107
109
  "APTLY_CLAUDE_MODELS": "[\"haiku\", \"sonnet\", \"opus\"]",
108
- "APTLY_CODEX_MODELS": "[\"gpt-6-luna\", \"gpt-6.1-terra\", \"gpt-6.1-sol\"]"
110
+ "APTLY_CODEX_MODELS": "[\"gpt-6-luna\", \"gpt-6.1-terra\", \"gpt-6.2-sol\"]"
109
111
  }
110
112
  }
111
113
  ```
@@ -52,7 +52,7 @@ env_vars = ["OPENAI_API_KEY"]
52
52
  [mcp_servers.aptly.env]
53
53
  ROUTER_PROVIDER = "decisions"
54
54
  APTLY_CLAUDE_MODELS = '["haiku","sonnet","opus"]'
55
- APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]'
55
+ APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.2-sol"]'
56
56
  ```
57
57
 
58
58
  <a id="guide-claude-configuration"></a>
@@ -65,7 +65,7 @@ APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]'
65
65
  {
66
66
  "ROUTER_PROVIDER": "decisions",
67
67
  "APTLY_CLAUDE_MODELS": "[\"haiku\",\"sonnet\",\"opus\"]",
68
- "APTLY_CODEX_MODELS": "[\"gpt-6-luna\",\"gpt-6.1-terra\",\"gpt-6.1-sol\"]"
68
+ "APTLY_CODEX_MODELS": "[\"gpt-6-luna\",\"gpt-6.1-terra\",\"gpt-6.2-sol\"]"
69
69
  }
70
70
  ```
71
71
 
@@ -97,7 +97,9 @@ aptly setup --client codex --migrate-launcher --launcher stable
97
97
  |---|---|---|---|
98
98
  | simple | `haiku` | `gpt-6-luna` / `max` | 抽出・形式変換・小さな機械的修正 |
99
99
  | routine | `sonnet` | `gpt-6.1-terra` / `high` | 文脈を考慮した作成・翻訳・範囲が明確な実装 |
100
- | deep | `opus` | `gpt-6.1-sol` / `medium` | 複合的なデバッグ・設計判断・詳細レビュー |
100
+ | deep | `opus` | `gpt-6.2-sol` / `medium` | 複合的なデバッグ・設計判断・詳細レビュー |
101
+
102
+ 新しいデフォルトは候補設定がない場合や新規設定に適用され、既存の候補リストは保持されます。`gpt-6.1-sol` は任意の `codex-deep-legacy` / `medium` プロファイルとして引き続き利用できます。両モデルは異なる ID で同時に選択できます。
101
103
 
102
104
  MCP の `env` 値は文字列のため、候補配列も JSON 文字列で渡します。
103
105
 
@@ -105,7 +107,7 @@ MCP の `env` 値は文字列のため、候補配列も JSON 文字列で渡し
105
107
  {
106
108
  "env": {
107
109
  "APTLY_CLAUDE_MODELS": "[\"haiku\", \"sonnet\", \"opus\"]",
108
- "APTLY_CODEX_MODELS": "[\"gpt-6-luna\", \"gpt-6.1-terra\", \"gpt-6.1-sol\"]"
110
+ "APTLY_CODEX_MODELS": "[\"gpt-6-luna\", \"gpt-6.1-terra\", \"gpt-6.2-sol\"]"
109
111
  }
110
112
  }
111
113
  ```
@@ -52,7 +52,7 @@ env_vars = ["OPENAI_API_KEY"]
52
52
  [mcp_servers.aptly.env]
53
53
  ROUTER_PROVIDER = "decisions"
54
54
  APTLY_CLAUDE_MODELS = '["haiku","sonnet","opus"]'
55
- APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]'
55
+ APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.2-sol"]'
56
56
  ```
57
57
 
58
58
  <a id="guide-claude-configuration"></a>
@@ -65,7 +65,7 @@ APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]'
65
65
  {
66
66
  "ROUTER_PROVIDER": "decisions",
67
67
  "APTLY_CLAUDE_MODELS": "[\"haiku\",\"sonnet\",\"opus\"]",
68
- "APTLY_CODEX_MODELS": "[\"gpt-6-luna\",\"gpt-6.1-terra\",\"gpt-6.1-sol\"]"
68
+ "APTLY_CODEX_MODELS": "[\"gpt-6-luna\",\"gpt-6.1-terra\",\"gpt-6.2-sol\"]"
69
69
  }
70
70
  ```
71
71
 
@@ -97,7 +97,9 @@ aptly setup --client codex --migrate-launcher --launcher stable
97
97
  |---|---|---|---|
98
98
  | simple | `haiku` | `gpt-6-luna` / `max` | 추출·형식 변환·작은 기계적 수정 |
99
99
  | routine | `sonnet` | `gpt-6.1-terra` / `high` | 문맥을 고려한 작성·번역·범위가 명확한 구현 |
100
- | deep | `opus` | `gpt-6.1-sol` / `medium` | 복합 디버깅·설계 판단·심층 검토 |
100
+ | deep | `opus` | `gpt-6.2-sol` / `medium` | 복합 디버깅·설계 판단·심층 검토 |
101
+
102
+ 새 기본값은 후보 설정이 없거나 새로 설정할 때 적용되며, 기존 후보 목록은 유지됩니다. `gpt-6.1-sol`은 선택 후보 `codex-deep-legacy` / `medium`으로 사용할 수 있습니다. 두 모델은 서로 다른 ID로 함께 선택할 수 있습니다.
101
103
 
102
104
  MCP의 `env` 값은 문자열이므로 후보 배열도 JSON 문자열로 전달합니다.
103
105
 
@@ -105,7 +107,7 @@ MCP의 `env` 값은 문자열이므로 후보 배열도 JSON 문자열로 전달
105
107
  {
106
108
  "env": {
107
109
  "APTLY_CLAUDE_MODELS": "[\"haiku\", \"sonnet\", \"opus\"]",
108
- "APTLY_CODEX_MODELS": "[\"gpt-6-luna\", \"gpt-6.1-terra\", \"gpt-6.1-sol\"]"
110
+ "APTLY_CODEX_MODELS": "[\"gpt-6-luna\", \"gpt-6.1-terra\", \"gpt-6.2-sol\"]"
109
111
  }
110
112
  }
111
113
  ```
@@ -52,7 +52,7 @@ env_vars = ["OPENAI_API_KEY"]
52
52
  [mcp_servers.aptly.env]
53
53
  ROUTER_PROVIDER = "decisions"
54
54
  APTLY_CLAUDE_MODELS = '["haiku","sonnet","opus"]'
55
- APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]'
55
+ APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.2-sol"]'
56
56
  ```
57
57
 
58
58
  <a id="guide-claude-configuration"></a>
@@ -65,7 +65,7 @@ APTLY_CODEX_MODELS = '["gpt-6-luna","gpt-6.1-terra","gpt-6.1-sol"]'
65
65
  {
66
66
  "ROUTER_PROVIDER": "decisions",
67
67
  "APTLY_CLAUDE_MODELS": "[\"haiku\",\"sonnet\",\"opus\"]",
68
- "APTLY_CODEX_MODELS": "[\"gpt-6-luna\",\"gpt-6.1-terra\",\"gpt-6.1-sol\"]"
68
+ "APTLY_CODEX_MODELS": "[\"gpt-6-luna\",\"gpt-6.1-terra\",\"gpt-6.2-sol\"]"
69
69
  }
70
70
  ```
71
71
 
@@ -97,7 +97,9 @@ aptly setup --client codex --migrate-launcher --launcher stable
97
97
  |---|---|---|---|
98
98
  | simple | `haiku` | `gpt-6-luna` / `max` | 提取、格式转换、小型机械修改 |
99
99
  | routine | `sonnet` | `gpt-6.1-terra` / `high` | 考虑上下文的写作、翻译、范围明确的实现 |
100
- | deep | `opus` | `gpt-6.1-sol` / `medium` | 复杂调试、设计判断、深入审阅 |
100
+ | deep | `opus` | `gpt-6.2-sol` / `medium` | 复杂调试、设计判断、深入审阅 |
101
+
102
+ 新默认值适用于候选配置缺失或新建的情况;现有候选列表会保留。`gpt-6.1-sol` 仍可作为可选的 `codex-deep-legacy` / `medium` 配置使用。两个模型可使用不同的 ID 同时选择。
101
103
 
102
104
  MCP 的 `env` 值是字符串,因此候选数组也须作为 JSON 字符串传递。
103
105
 
@@ -105,7 +107,7 @@ MCP 的 `env` 值是字符串,因此候选数组也须作为 JSON 字符串传
105
107
  {
106
108
  "env": {
107
109
  "APTLY_CLAUDE_MODELS": "[\"haiku\", \"sonnet\", \"opus\"]",
108
- "APTLY_CODEX_MODELS": "[\"gpt-6-luna\", \"gpt-6.1-terra\", \"gpt-6.1-sol\"]"
110
+ "APTLY_CODEX_MODELS": "[\"gpt-6-luna\", \"gpt-6.1-terra\", \"gpt-6.2-sol\"]"
109
111
  }
110
112
  }
111
113
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptly",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {