ticlawk 0.1.15-dev.1 → 0.1.15-dev.3
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 +3 -4
- package/bin/ticlawk.mjs +9 -12
- package/package.json +1 -1
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
|
|
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
|
|
363
|
-
ticlawk connect
|
|
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
|
|
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
|
|
128
|
-
ticlawk connect
|
|
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
|
|
163
|
-
ticlawk connect
|
|
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
|
|
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 ||
|
|
288
|
-
const hasExplicitAdapter = Boolean(args.adapter
|
|
284
|
+
const workdir = explicitWorkdir || null;
|
|
285
|
+
const hasExplicitAdapter = Boolean(args.adapter);
|
|
289
286
|
const adapter = (!serviceType && !hasExplicitAdapter)
|
|
290
287
|
? 'ticlawk'
|
|
291
|
-
: getConnectAdapter(args.adapter
|
|
288
|
+
: getConnectAdapter(args.adapter);
|
|
292
289
|
if (!serviceType) {
|
|
293
290
|
if (adapter === 'ticlawk' && !args.type && !positionalRuntime) {
|
|
294
291
|
return {
|