swixter 0.1.9 → 0.1.10
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/dist/cli/index.js +14 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -14021,7 +14021,7 @@ var CONFIG_VERSION = "2.0.0", EXPORT_VERSION = "1.0.0";
|
|
|
14021
14021
|
var init_versions2 = () => {};
|
|
14022
14022
|
|
|
14023
14023
|
// src/constants/meta.ts
|
|
14024
|
-
var APP_VERSION = "0.1.
|
|
14024
|
+
var APP_VERSION = "0.1.10";
|
|
14025
14025
|
var init_meta = () => {};
|
|
14026
14026
|
|
|
14027
14027
|
// src/constants/install.ts
|
|
@@ -21978,6 +21978,9 @@ ${import_picocolors8.default.bold("Examples:")}
|
|
|
21978
21978
|
|
|
21979
21979
|
${import_picocolors8.default.dim(`# Run ${CODER_CONFIG.displayName} and pass other arguments`)}
|
|
21980
21980
|
${import_picocolors8.default.green(`swixter ${CODER_NAME} r --print "What is 2+2?"`)}
|
|
21981
|
+
|
|
21982
|
+
${import_picocolors8.default.dim(`# Run ${CODER_CONFIG.displayName} in yolo mode (skips all permission prompts)`)}
|
|
21983
|
+
${import_picocolors8.default.green(`swixter ${CODER_NAME} r --yolo`)}
|
|
21981
21984
|
`);
|
|
21982
21985
|
}
|
|
21983
21986
|
async function cmdCreate(args) {
|
|
@@ -22710,6 +22713,9 @@ async function spawnClaudeWithEnv(args, env, options) {
|
|
|
22710
22713
|
if (idx > 0 && args[idx - 1] === "--profile") {
|
|
22711
22714
|
return false;
|
|
22712
22715
|
}
|
|
22716
|
+
if (arg === "--yolo") {
|
|
22717
|
+
return false;
|
|
22718
|
+
}
|
|
22713
22719
|
return true;
|
|
22714
22720
|
});
|
|
22715
22721
|
const tmp = await import("node:os");
|
|
@@ -22719,6 +22725,11 @@ async function spawnClaudeWithEnv(args, env, options) {
|
|
|
22719
22725
|
const tmpFile = path.join(tmp.tmpdir(), `swixter-settings-${Date.now()}.json`);
|
|
22720
22726
|
await fs.writeFile(tmpFile, settingsContent, "utf-8");
|
|
22721
22727
|
claudeArgs.push("--settings", tmpFile);
|
|
22728
|
+
if (options?.yolo === true) {
|
|
22729
|
+
if (!claudeArgs.includes("--dangerously-skip-permissions")) {
|
|
22730
|
+
claudeArgs.push("--dangerously-skip-permissions");
|
|
22731
|
+
}
|
|
22732
|
+
}
|
|
22722
22733
|
if (options?.profileName) {
|
|
22723
22734
|
console.log();
|
|
22724
22735
|
console.log(import_picocolors8.default.dim(`Using profile: ${import_picocolors8.default.cyan(options.profileName)}${options.providerDisplayName ? ` (${options.providerDisplayName})` : ""}`));
|
|
@@ -22772,7 +22783,8 @@ async function cmdRun(args) {
|
|
|
22772
22783
|
await spawnClaudeWithEnv(args, env, {
|
|
22773
22784
|
profileName: profile.name,
|
|
22774
22785
|
providerDisplayName: preset?.displayName,
|
|
22775
|
-
baseURL
|
|
22786
|
+
baseURL,
|
|
22787
|
+
yolo: params.yolo === true
|
|
22776
22788
|
});
|
|
22777
22789
|
}
|
|
22778
22790
|
async function cmdInstall(args) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swixter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "CLI tool for managing AI coding assistant configurations - easily switch between providers (Claude Code, Codex, Continue) with Anthropic, Ollama, or custom APIs",
|
|
5
5
|
"main": "dist/cli/index.js",
|
|
6
6
|
"module": "dist/cli/index.js",
|