ticlawk 0.1.15-dev.4 → 0.1.15-dev.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ticlawk",
3
- "version": "0.1.15-dev.4",
3
+ "version": "0.1.15-dev.5",
4
4
  "description": "Connect local agent harnesses to Ticlawk, Telegram, and other mobile clients.",
5
5
  "type": "module",
6
6
  "main": "ticlawk.mjs",
@@ -192,6 +192,16 @@ function runtimeLabel(runtime) {
192
192
  return runtime || 'Agent';
193
193
  }
194
194
 
195
+ function printDetectedRuntimeOptions(runtimeOptions = []) {
196
+ if (!runtimeOptions.length) return;
197
+ console.log('Detected agent harness:');
198
+ for (const option of runtimeOptions) {
199
+ const label = option.runtime_label || runtimeLabel(option.runtime);
200
+ const workdir = option.workdir ? ` (${option.workdir})` : '';
201
+ console.log(` - ${label}${workdir}`);
202
+ }
203
+ }
204
+
195
205
  async function buildAutoRuntimeOptions(ctx, payload = {}) {
196
206
  const workdir = getRuntimeWorkdir(payload) || process.cwd();
197
207
  const candidates = ['codex', 'claude_code', 'opencode', 'pi'];
@@ -878,6 +888,9 @@ export function createTiclawkAdapter(ctx) {
878
888
  if (autoRuntime && runtimeOptions.length === 0) {
879
889
  throw new Error('No supported local agent runtime found in this terminal. Install or sign in to Codex, Claude Code, OpenCode, or pi, then try again.');
880
890
  }
891
+ if (autoRuntime) {
892
+ printDetectedRuntimeOptions(runtimeOptions);
893
+ }
881
894
  const resolved = autoRuntime ? null : await ctx.resolveRuntimeBinding(payload);
882
895
  const runtimeMeta = resolved?.runtimeMeta || {};
883
896
  const workdir = getRuntimeWorkdir(runtimeMeta) || getRuntimeWorkdir(payload) || process.cwd();