ticlawk 0.1.14 → 0.1.15-dev.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/README.md CHANGED
@@ -320,7 +320,7 @@ Usage:
320
320
  ticlawk config get <adapter|streaming...|runtimes.claude_code.path|runtimes.codex.path|runtimes.opencode.path|runtimes.pi.path|telegram.bot-token|ticlawk.connector-api-key|ticlawk.api-url|ticlawk.connector-ws-url>
321
321
  ticlawk config set <adapter|streaming...|runtimes.claude_code.path|runtimes.codex.path|runtimes.opencode.path|runtimes.pi.path|telegram.bot-token|ticlawk.connector-api-key|ticlawk.api-url|ticlawk.connector-ws-url> <value>
322
322
  ticlawk auth <adapter> [adapter-auth-args...]
323
- ticlawk connect [ticlawk] [codex|claude|opencode|openclaw|pi] [runtime args...]
323
+ ticlawk connect
324
324
  ticlawk connect [--adapter <adapter>] [--session-id <id>] --workdir <dir> [--switch-user]
325
325
  ticlawk connect [--adapter <adapter>] --type codex [--session-id <id>] --workdir <dir> [--name <name>] [--runtime-path <path>] [--switch-user]
326
326
  ticlawk connect [--adapter <adapter>] --type openclaw --agent-id <id> [--name <name>] [--runtime-path <path>] [--switch-user]
@@ -359,9 +359,8 @@ Config examples:
359
359
 
360
360
  Examples:
361
361
  ticlawk connect
362
- ticlawk connect ticlawk
363
- ticlawk connect ticlawk codex
364
- ticlawk connect ticlawk openclaw --agent-id main
362
+ ticlawk connect --type codex --workdir /path/to/project
363
+ ticlawk connect --type openclaw --agent-id main
365
364
  ticlawk auth telegram --bot-token <bot-token>
366
365
  ticlawk connect --adapter telegram --workdir /path/to/project
367
366
  ticlawk connect --adapter telegram --session-id <claude-session-id>
package/bin/ticlawk.mjs CHANGED
@@ -91,7 +91,7 @@ Usage:
91
91
  ticlawk config get <${configKeys}>
92
92
  ticlawk config set <${configKeys}> <value>
93
93
  ticlawk auth <adapter> [adapter-auth-args...]
94
- ticlawk connect [ticlawk] [codex|claude|opencode|openclaw|pi] [runtime args...]
94
+ ticlawk connect
95
95
  ticlawk connect [--adapter <adapter>] [--session-id <id>] --workdir <dir> [--switch-user]
96
96
  ${getRuntimeConnectUsageLines()}
97
97
  ticlawk profile list
@@ -124,9 +124,8 @@ ${getRuntimeConfigExamples()}
124
124
 
125
125
  Examples:
126
126
  ticlawk connect
127
- ticlawk connect ticlawk
128
- ticlawk connect ticlawk codex
129
- ticlawk connect ticlawk openclaw --agent-id main
127
+ ticlawk connect --type codex --workdir /path/to/project
128
+ ticlawk connect --type openclaw --agent-id main
130
129
  ticlawk auth telegram --bot-token <bot-token>
131
130
  ${getRuntimeConnectExamples()}
132
131
  `;
@@ -159,9 +158,8 @@ Use \`--runtime-path <path>\` only when you need to override that discovery.
159
158
 
160
159
  Examples:
161
160
  ticlawk connect
162
- ticlawk connect ticlawk
163
- ticlawk connect ticlawk codex
164
- ticlawk connect ticlawk openclaw --agent-id main
161
+ ticlawk connect --type codex --workdir /path/to/project
162
+ ticlawk connect --type openclaw --agent-id main
165
163
  ${getRuntimeConnectExamples()}
166
164
  `;
167
165
  }
@@ -280,15 +278,14 @@ function getConnectAdapter(value) {
280
278
  }
281
279
 
282
280
  function buildConnectPayload(args) {
283
- const positionalAdapter = normalizeAdapterName(args._?.[1]) ? args._[1] : null;
284
- const positionalRuntime = positionalAdapter ? args._?.[2] : args._?.[1];
281
+ const positionalRuntime = args._?.[1];
285
282
  const serviceType = normalizeServiceType(args.type || positionalRuntime);
286
283
  const explicitWorkdir = args.workdir || args.cwd || args['project-dir'];
287
- const workdir = explicitWorkdir || (positionalAdapter ? resolve('.') : null);
288
- const hasExplicitAdapter = Boolean(args.adapter || positionalAdapter);
284
+ const workdir = explicitWorkdir || null;
285
+ const hasExplicitAdapter = Boolean(args.adapter);
289
286
  const adapter = (!serviceType && !hasExplicitAdapter)
290
287
  ? 'ticlawk'
291
- : getConnectAdapter(args.adapter || positionalAdapter);
288
+ : getConnectAdapter(args.adapter);
292
289
  if (!serviceType) {
293
290
  if (adapter === 'ticlawk' && !args.type && !positionalRuntime) {
294
291
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ticlawk",
3
- "version": "0.1.14",
3
+ "version": "0.1.15-dev.2",
4
4
  "description": "Connect local agent harnesses to Ticlawk, Telegram, and other mobile clients.",
5
5
  "type": "module",
6
6
  "main": "ticlawk.mjs",
@@ -65,6 +65,7 @@
65
65
  "dependencies": {
66
66
  "dotenv": "^17.4.2",
67
67
  "qrcode-terminal": "^0.12.0",
68
+ "ticlawk": "^0.1.15-dev.1",
68
69
  "ws": "^8.20.0"
69
70
  }
70
71
  }