@gnsx/genesys.agent.cli 1.0.10 → 1.0.12

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.
@@ -0,0 +1,335 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Pi Coding Agent Theme",
4
+ "description": "Theme schema for Pi coding agent",
5
+ "type": "object",
6
+ "required": ["name", "colors"],
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string",
10
+ "description": "JSON schema reference"
11
+ },
12
+ "name": {
13
+ "type": "string",
14
+ "description": "Theme name"
15
+ },
16
+ "vars": {
17
+ "type": "object",
18
+ "description": "Reusable color variables",
19
+ "additionalProperties": {
20
+ "oneOf": [
21
+ {
22
+ "type": "string",
23
+ "description": "Hex color (#RRGGBB), variable reference, or empty string for terminal default"
24
+ },
25
+ {
26
+ "type": "integer",
27
+ "minimum": 0,
28
+ "maximum": 255,
29
+ "description": "256-color palette index (0-255)"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ "colors": {
35
+ "type": "object",
36
+ "description": "Theme color definitions (all required)",
37
+ "required": [
38
+ "accent",
39
+ "border",
40
+ "borderAccent",
41
+ "borderMuted",
42
+ "success",
43
+ "error",
44
+ "warning",
45
+ "muted",
46
+ "dim",
47
+ "text",
48
+ "thinkingText",
49
+ "selectedBg",
50
+ "userMessageBg",
51
+ "userMessageText",
52
+ "customMessageBg",
53
+ "customMessageText",
54
+ "customMessageLabel",
55
+ "toolPendingBg",
56
+ "toolSuccessBg",
57
+ "toolErrorBg",
58
+ "toolTitle",
59
+ "toolOutput",
60
+ "mdHeading",
61
+ "mdLink",
62
+ "mdLinkUrl",
63
+ "mdCode",
64
+ "mdCodeBlock",
65
+ "mdCodeBlockBorder",
66
+ "mdQuote",
67
+ "mdQuoteBorder",
68
+ "mdHr",
69
+ "mdListBullet",
70
+ "toolDiffAdded",
71
+ "toolDiffRemoved",
72
+ "toolDiffContext",
73
+ "syntaxComment",
74
+ "syntaxKeyword",
75
+ "syntaxFunction",
76
+ "syntaxVariable",
77
+ "syntaxString",
78
+ "syntaxNumber",
79
+ "syntaxType",
80
+ "syntaxOperator",
81
+ "syntaxPunctuation",
82
+ "thinkingOff",
83
+ "thinkingMinimal",
84
+ "thinkingLow",
85
+ "thinkingMedium",
86
+ "thinkingHigh",
87
+ "thinkingXhigh",
88
+ "bashMode"
89
+ ],
90
+ "properties": {
91
+ "accent": {
92
+ "$ref": "#/$defs/colorValue",
93
+ "description": "Primary accent color (logo, selected items, cursor)"
94
+ },
95
+ "border": {
96
+ "$ref": "#/$defs/colorValue",
97
+ "description": "Normal borders"
98
+ },
99
+ "borderAccent": {
100
+ "$ref": "#/$defs/colorValue",
101
+ "description": "Highlighted borders"
102
+ },
103
+ "borderMuted": {
104
+ "$ref": "#/$defs/colorValue",
105
+ "description": "Subtle borders"
106
+ },
107
+ "success": {
108
+ "$ref": "#/$defs/colorValue",
109
+ "description": "Success states"
110
+ },
111
+ "error": {
112
+ "$ref": "#/$defs/colorValue",
113
+ "description": "Error states"
114
+ },
115
+ "warning": {
116
+ "$ref": "#/$defs/colorValue",
117
+ "description": "Warning states"
118
+ },
119
+ "muted": {
120
+ "$ref": "#/$defs/colorValue",
121
+ "description": "Secondary/dimmed text"
122
+ },
123
+ "dim": {
124
+ "$ref": "#/$defs/colorValue",
125
+ "description": "Very dimmed text (more subtle than muted)"
126
+ },
127
+ "text": {
128
+ "$ref": "#/$defs/colorValue",
129
+ "description": "Default text color (usually empty string)"
130
+ },
131
+ "thinkingText": {
132
+ "$ref": "#/$defs/colorValue",
133
+ "description": "Thinking block text color"
134
+ },
135
+ "selectedBg": {
136
+ "$ref": "#/$defs/colorValue",
137
+ "description": "Selected item background"
138
+ },
139
+ "userMessageBg": {
140
+ "$ref": "#/$defs/colorValue",
141
+ "description": "User message background"
142
+ },
143
+ "userMessageText": {
144
+ "$ref": "#/$defs/colorValue",
145
+ "description": "User message text color"
146
+ },
147
+ "customMessageBg": {
148
+ "$ref": "#/$defs/colorValue",
149
+ "description": "Custom message background (hook-injected messages)"
150
+ },
151
+ "customMessageText": {
152
+ "$ref": "#/$defs/colorValue",
153
+ "description": "Custom message text color"
154
+ },
155
+ "customMessageLabel": {
156
+ "$ref": "#/$defs/colorValue",
157
+ "description": "Custom message type label color"
158
+ },
159
+ "toolPendingBg": {
160
+ "$ref": "#/$defs/colorValue",
161
+ "description": "Tool execution box (pending state)"
162
+ },
163
+ "toolSuccessBg": {
164
+ "$ref": "#/$defs/colorValue",
165
+ "description": "Tool execution box (success state)"
166
+ },
167
+ "toolErrorBg": {
168
+ "$ref": "#/$defs/colorValue",
169
+ "description": "Tool execution box (error state)"
170
+ },
171
+ "toolTitle": {
172
+ "$ref": "#/$defs/colorValue",
173
+ "description": "Tool execution box title color"
174
+ },
175
+ "toolOutput": {
176
+ "$ref": "#/$defs/colorValue",
177
+ "description": "Tool execution box output text color"
178
+ },
179
+ "mdHeading": {
180
+ "$ref": "#/$defs/colorValue",
181
+ "description": "Markdown heading text"
182
+ },
183
+ "mdLink": {
184
+ "$ref": "#/$defs/colorValue",
185
+ "description": "Markdown link text"
186
+ },
187
+ "mdLinkUrl": {
188
+ "$ref": "#/$defs/colorValue",
189
+ "description": "Markdown link URL"
190
+ },
191
+ "mdCode": {
192
+ "$ref": "#/$defs/colorValue",
193
+ "description": "Markdown inline code"
194
+ },
195
+ "mdCodeBlock": {
196
+ "$ref": "#/$defs/colorValue",
197
+ "description": "Markdown code block content"
198
+ },
199
+ "mdCodeBlockBorder": {
200
+ "$ref": "#/$defs/colorValue",
201
+ "description": "Markdown code block fences"
202
+ },
203
+ "mdQuote": {
204
+ "$ref": "#/$defs/colorValue",
205
+ "description": "Markdown blockquote text"
206
+ },
207
+ "mdQuoteBorder": {
208
+ "$ref": "#/$defs/colorValue",
209
+ "description": "Markdown blockquote border"
210
+ },
211
+ "mdHr": {
212
+ "$ref": "#/$defs/colorValue",
213
+ "description": "Markdown horizontal rule"
214
+ },
215
+ "mdListBullet": {
216
+ "$ref": "#/$defs/colorValue",
217
+ "description": "Markdown list bullets/numbers"
218
+ },
219
+ "toolDiffAdded": {
220
+ "$ref": "#/$defs/colorValue",
221
+ "description": "Added lines in tool diffs"
222
+ },
223
+ "toolDiffRemoved": {
224
+ "$ref": "#/$defs/colorValue",
225
+ "description": "Removed lines in tool diffs"
226
+ },
227
+ "toolDiffContext": {
228
+ "$ref": "#/$defs/colorValue",
229
+ "description": "Context lines in tool diffs"
230
+ },
231
+ "syntaxComment": {
232
+ "$ref": "#/$defs/colorValue",
233
+ "description": "Syntax highlighting: comments"
234
+ },
235
+ "syntaxKeyword": {
236
+ "$ref": "#/$defs/colorValue",
237
+ "description": "Syntax highlighting: keywords"
238
+ },
239
+ "syntaxFunction": {
240
+ "$ref": "#/$defs/colorValue",
241
+ "description": "Syntax highlighting: function names"
242
+ },
243
+ "syntaxVariable": {
244
+ "$ref": "#/$defs/colorValue",
245
+ "description": "Syntax highlighting: variable names"
246
+ },
247
+ "syntaxString": {
248
+ "$ref": "#/$defs/colorValue",
249
+ "description": "Syntax highlighting: string literals"
250
+ },
251
+ "syntaxNumber": {
252
+ "$ref": "#/$defs/colorValue",
253
+ "description": "Syntax highlighting: number literals"
254
+ },
255
+ "syntaxType": {
256
+ "$ref": "#/$defs/colorValue",
257
+ "description": "Syntax highlighting: type names"
258
+ },
259
+ "syntaxOperator": {
260
+ "$ref": "#/$defs/colorValue",
261
+ "description": "Syntax highlighting: operators"
262
+ },
263
+ "syntaxPunctuation": {
264
+ "$ref": "#/$defs/colorValue",
265
+ "description": "Syntax highlighting: punctuation"
266
+ },
267
+ "thinkingOff": {
268
+ "$ref": "#/$defs/colorValue",
269
+ "description": "Thinking level border: off"
270
+ },
271
+ "thinkingMinimal": {
272
+ "$ref": "#/$defs/colorValue",
273
+ "description": "Thinking level border: minimal"
274
+ },
275
+ "thinkingLow": {
276
+ "$ref": "#/$defs/colorValue",
277
+ "description": "Thinking level border: low"
278
+ },
279
+ "thinkingMedium": {
280
+ "$ref": "#/$defs/colorValue",
281
+ "description": "Thinking level border: medium"
282
+ },
283
+ "thinkingHigh": {
284
+ "$ref": "#/$defs/colorValue",
285
+ "description": "Thinking level border: high"
286
+ },
287
+ "thinkingXhigh": {
288
+ "$ref": "#/$defs/colorValue",
289
+ "description": "Thinking level border: xhigh (OpenAI codex-max only)"
290
+ },
291
+ "bashMode": {
292
+ "$ref": "#/$defs/colorValue",
293
+ "description": "Editor border color in bash mode"
294
+ }
295
+ },
296
+ "additionalProperties": false
297
+ },
298
+ "export": {
299
+ "type": "object",
300
+ "description": "Optional colors for HTML export (defaults derived from userMessageBg if not specified)",
301
+ "properties": {
302
+ "pageBg": {
303
+ "$ref": "#/$defs/colorValue",
304
+ "description": "Page background color"
305
+ },
306
+ "cardBg": {
307
+ "$ref": "#/$defs/colorValue",
308
+ "description": "Card/container background color"
309
+ },
310
+ "infoBg": {
311
+ "$ref": "#/$defs/colorValue",
312
+ "description": "Info sections background (system prompt, notices)"
313
+ }
314
+ },
315
+ "additionalProperties": false
316
+ }
317
+ },
318
+ "additionalProperties": false,
319
+ "$defs": {
320
+ "colorValue": {
321
+ "oneOf": [
322
+ {
323
+ "type": "string",
324
+ "description": "Hex color (#RRGGBB), variable reference, or empty string for terminal default"
325
+ },
326
+ {
327
+ "type": "integer",
328
+ "minimum": 0,
329
+ "maximum": 255,
330
+ "description": "256-color palette index (0-255)"
331
+ }
332
+ ]
333
+ }
334
+ }
335
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=postbuild.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postbuild.d.ts","sourceRoot":"","sources":["../../scripts/postbuild.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ import { fileURLToPath } from 'url';
4
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
5
+ const projectRoot = path.resolve(__dirname, '..');
6
+ const srcDir = path.join(projectRoot, 'src', 'modes');
7
+ const destDir = path.join(projectRoot, 'dist', 'modes');
8
+ function copyDir(src, dest) {
9
+ fs.mkdirSync(dest, { recursive: true });
10
+ const items = fs.readdirSync(src);
11
+ for (const item of items) {
12
+ const srcPath = path.join(src, item);
13
+ const destPath = path.join(dest, item);
14
+ const stat = fs.statSync(srcPath);
15
+ if (stat.isDirectory()) {
16
+ copyDir(srcPath, destPath);
17
+ }
18
+ else {
19
+ fs.copyFileSync(srcPath, destPath);
20
+ }
21
+ }
22
+ }
23
+ if (fs.existsSync(srcDir)) {
24
+ copyDir(srcDir, destDir);
25
+ console.log(`Copied ${srcDir} to ${destDir}`);
26
+ }
27
+ //# sourceMappingURL=postbuild.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postbuild.js","sourceRoot":"","sources":["../../scripts/postbuild.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAClD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAExD,SAAS,OAAO,CAAC,GAAW,EAAE,IAAY;IACxC,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACxC,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAElC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACrC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAElC,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACvB,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;IAC1B,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzB,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,OAAO,OAAO,EAAE,CAAC,CAAC;AAChD,CAAC"}
package/dist/src/cli.js CHANGED
@@ -6,14 +6,14 @@
6
6
  * All session persistence, model selection, tool management and compaction are
7
7
  * handled by the pi framework.
8
8
  */
9
- import { existsSync } from 'node:fs';
10
- import { readdir } from 'node:fs/promises';
11
9
  import { dirname, join, resolve } from 'node:path';
12
10
  import { fileURLToPath } from 'node:url';
11
+ import { getExtensions } from '@gnsx/genesys.agent.extensions';
13
12
  import { getModel, setBedrockProviderModule } from '@mariozechner/pi-ai';
14
13
  import { bedrockProviderModule } from '@mariozechner/pi-ai/bedrock-provider';
15
- import { createAgentSession, DefaultResourceLoader, getAgentDir, InteractiveMode, runPrintMode, SessionManager, SettingsManager, } from '@mariozechner/pi-coding-agent';
14
+ import { AuthStorage, createAgentSession, DefaultResourceLoader, getAgentDir, InteractiveMode, ModelRegistry, runPrintMode, SessionManager, SettingsManager, } from '@mariozechner/pi-coding-agent';
16
15
  import { parseArgs } from './args.js';
16
+ import versionCheckExtension from './extensions/version-check.js';
17
17
  import { getPackageJson } from './utils/package.js';
18
18
  /**
19
19
  * Read all data from stdin if available.
@@ -78,30 +78,44 @@ async function main(argv) {
78
78
  }
79
79
  }
80
80
  // -------------------------------------------------------------------------
81
- // Create custom resource loader with our version-check extension
81
+ // Create custom resource loader with shared extensions + CLI-specific extensions
82
82
  // -------------------------------------------------------------------------
83
83
  const agentDir = getAgentDir();
84
84
  const settingsManager = SettingsManager.create(cwd, agentDir);
85
- // Scan extensions folder for all .ts and .js files (excluding .d.ts)
86
- let extensionFiles = [];
87
- const extensionsDir = join(__dirname, 'extensions');
88
- if (existsSync(extensionsDir)) {
89
- extensionFiles = await readdir(extensionsDir).then((files) => files
90
- .filter((f) => (f.endsWith('.ts') || f.endsWith('.js')) && !f.endsWith('.d.ts'))
91
- .map((f) => join(extensionsDir, f)));
92
- }
85
+ // Get shared extensions from the extensions package + CLI-specific version check
86
+ const sharedExtensions = getExtensions('cli');
87
+ const extensionFactories = [...sharedExtensions, versionCheckExtension];
93
88
  const resourceLoader = new DefaultResourceLoader({
94
89
  cwd,
95
90
  agentDir,
96
91
  settingsManager,
97
- additionalExtensionPaths: extensionFiles,
92
+ extensionFactories,
98
93
  });
99
94
  await resourceLoader.reload();
100
95
  // -------------------------------------------------------------------------
96
+ // Apply extension provider registrations
97
+ // -------------------------------------------------------------------------
98
+ const extensionsResult = resourceLoader.getExtensions();
99
+ const authStorage = AuthStorage.create(join(agentDir, 'auth.json'));
100
+ const modelRegistry = new ModelRegistry(authStorage, join(agentDir, 'models.json'));
101
+ // Apply pending provider registrations from extensions so they're available
102
+ // for model resolution before AgentSession is created
103
+ for (const { name, config, extensionPath } of extensionsResult.runtime.pendingProviderRegistrations) {
104
+ try {
105
+ modelRegistry.registerProvider(name, config);
106
+ }
107
+ catch (error) {
108
+ const message = error instanceof Error ? error.message : String(error);
109
+ console.warn(`Warning: Extension "${extensionPath}" failed to register provider "${name}": ${message}`);
110
+ }
111
+ }
112
+ extensionsResult.runtime.pendingProviderRegistrations = [];
113
+ // -------------------------------------------------------------------------
101
114
  // Create session
102
115
  // -------------------------------------------------------------------------
103
116
  const { session, modelFallbackMessage } = await createAgentSession({
104
117
  cwd,
118
+ modelRegistry,
105
119
  ...(model ? { model } : {}),
106
120
  ...(args.thinking ? { thinkingLevel: args.thinking } : {}),
107
121
  ...(sessionManager ? { sessionManager } : {}),
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;GAGG;AACH,KAAK,UAAU,SAAS;IACtB,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACxB,kCAAkC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAEnC,OAA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