@enactprotocol/cli 1.0.11 → 1.0.13
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/index.js +13 -13
- package/dist/index.js.bak +13 -13
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -216966,7 +216966,7 @@ async function installMcpServer(client) {
|
|
|
216966
216966
|
config3.extensions.enact = {
|
|
216967
216967
|
name: "enact",
|
|
216968
216968
|
cmd: "npx",
|
|
216969
|
-
args: ["-y", "-
|
|
216969
|
+
args: ["-y", "@enactprotocol/mcp-server"],
|
|
216970
216970
|
enabled: true,
|
|
216971
216971
|
type: "stdio",
|
|
216972
216972
|
timeout: 300
|
|
@@ -216995,7 +216995,7 @@ async function installMcpServer(client) {
|
|
|
216995
216995
|
const mcpServerConfig = {
|
|
216996
216996
|
enact: {
|
|
216997
216997
|
command: "npx",
|
|
216998
|
-
args: ["-y", "-
|
|
216998
|
+
args: ["-y", "@enactprotocol/mcp-server"]
|
|
216999
216999
|
}
|
|
217000
217000
|
};
|
|
217001
217001
|
if (client.id === "claude-desktop" || client.id === "claude-code") {
|
|
@@ -217060,7 +217060,7 @@ async function loadConfig(global2 = false) {
|
|
|
217060
217060
|
const configPath = getConfigPath(global2);
|
|
217061
217061
|
if (!existsSync10(configPath)) {
|
|
217062
217062
|
return {
|
|
217063
|
-
executionProvider: "
|
|
217063
|
+
executionProvider: "dagger",
|
|
217064
217064
|
defaultTimeout: "30s",
|
|
217065
217065
|
verificationPolicy: "permissive"
|
|
217066
217066
|
};
|
|
@@ -217069,7 +217069,7 @@ async function loadConfig(global2 = false) {
|
|
|
217069
217069
|
const content = await fs3.readFile(configPath, "utf8");
|
|
217070
217070
|
const config2 = JSON.parse(content);
|
|
217071
217071
|
return {
|
|
217072
|
-
executionProvider: "
|
|
217072
|
+
executionProvider: "dagger",
|
|
217073
217073
|
defaultTimeout: "30s",
|
|
217074
217074
|
verificationPolicy: "permissive",
|
|
217075
217075
|
...config2
|
|
@@ -217077,7 +217077,7 @@ async function loadConfig(global2 = false) {
|
|
|
217077
217077
|
} catch (error) {
|
|
217078
217078
|
console.error(import_picocolors12.default.red(`Error reading config file: ${error}`));
|
|
217079
217079
|
return {
|
|
217080
|
-
executionProvider: "
|
|
217080
|
+
executionProvider: "dagger",
|
|
217081
217081
|
defaultTimeout: "30s",
|
|
217082
217082
|
verificationPolicy: "permissive"
|
|
217083
217083
|
};
|
|
@@ -217138,7 +217138,7 @@ async function listConfig(global2 = false) {
|
|
|
217138
217138
|
}
|
|
217139
217139
|
async function resetConfig(global2 = false) {
|
|
217140
217140
|
const defaultConfig = {
|
|
217141
|
-
executionProvider: "
|
|
217141
|
+
executionProvider: "dagger",
|
|
217142
217142
|
defaultTimeout: "30s",
|
|
217143
217143
|
verificationPolicy: "permissive"
|
|
217144
217144
|
};
|
|
@@ -217152,8 +217152,8 @@ async function interactiveConfig(global2 = false) {
|
|
|
217152
217152
|
const executionProvider = await ve({
|
|
217153
217153
|
message: "Select execution provider:",
|
|
217154
217154
|
options: [
|
|
217155
|
-
{ value: "
|
|
217156
|
-
{ value: "
|
|
217155
|
+
{ value: "dagger", label: "Dagger (containerized execution)" },
|
|
217156
|
+
{ value: "direct", label: "Direct (run commands directly on host)" }
|
|
217157
217157
|
],
|
|
217158
217158
|
initialValue: currentConfig.executionProvider
|
|
217159
217159
|
});
|
|
@@ -217237,7 +217237,7 @@ Options:`);
|
|
|
217237
217237
|
console.log(` --help Show this help
|
|
217238
217238
|
`);
|
|
217239
217239
|
console.log("Configuration Keys:");
|
|
217240
|
-
console.log(" executionProvider
|
|
217240
|
+
console.log(" executionProvider dagger | direct");
|
|
217241
217241
|
console.log(" verificationPolicy permissive | enterprise | paranoid");
|
|
217242
217242
|
console.log(" defaultTimeout 30s | 5m | 1h");
|
|
217243
217243
|
console.log(" daggerOptions.baseImage node:20-slim");
|
|
@@ -226832,7 +226832,7 @@ class EnactCore {
|
|
|
226832
226832
|
this.options = {
|
|
226833
226833
|
apiUrl: "https://enact.tools",
|
|
226834
226834
|
supabaseUrl: "https://xjnhhxwxovjifdxdwzih.supabase.co",
|
|
226835
|
-
executionProvider: "
|
|
226835
|
+
executionProvider: "dagger",
|
|
226836
226836
|
defaultTimeout: "30s",
|
|
226837
226837
|
verificationPolicy: "permissive",
|
|
226838
226838
|
...options
|
|
@@ -227282,11 +227282,11 @@ class EnactCore {
|
|
|
227282
227282
|
}
|
|
227283
227283
|
createExecutionProvider() {
|
|
227284
227284
|
switch (this.options.executionProvider) {
|
|
227285
|
-
case "dagger":
|
|
227286
|
-
return new DaggerExecutionProvider(this.options.daggerOptions);
|
|
227287
227285
|
case "direct":
|
|
227288
|
-
default:
|
|
227289
227286
|
return new DirectExecutionProvider;
|
|
227287
|
+
case "dagger":
|
|
227288
|
+
default:
|
|
227289
|
+
return new DaggerExecutionProvider(this.options.daggerOptions);
|
|
227290
227290
|
}
|
|
227291
227291
|
}
|
|
227292
227292
|
switchExecutionProvider(provider, options) {
|
package/dist/index.js.bak
CHANGED
|
@@ -216965,7 +216965,7 @@ async function installMcpServer(client) {
|
|
|
216965
216965
|
config3.extensions.enact = {
|
|
216966
216966
|
name: "enact",
|
|
216967
216967
|
cmd: "npx",
|
|
216968
|
-
args: ["-y", "-
|
|
216968
|
+
args: ["-y", "@enactprotocol/mcp-server"],
|
|
216969
216969
|
enabled: true,
|
|
216970
216970
|
type: "stdio",
|
|
216971
216971
|
timeout: 300
|
|
@@ -216994,7 +216994,7 @@ async function installMcpServer(client) {
|
|
|
216994
216994
|
const mcpServerConfig = {
|
|
216995
216995
|
enact: {
|
|
216996
216996
|
command: "npx",
|
|
216997
|
-
args: ["-y", "-
|
|
216997
|
+
args: ["-y", "@enactprotocol/mcp-server"]
|
|
216998
216998
|
}
|
|
216999
216999
|
};
|
|
217000
217000
|
if (client.id === "claude-desktop" || client.id === "claude-code") {
|
|
@@ -217059,7 +217059,7 @@ async function loadConfig(global2 = false) {
|
|
|
217059
217059
|
const configPath = getConfigPath(global2);
|
|
217060
217060
|
if (!existsSync10(configPath)) {
|
|
217061
217061
|
return {
|
|
217062
|
-
executionProvider: "
|
|
217062
|
+
executionProvider: "dagger",
|
|
217063
217063
|
defaultTimeout: "30s",
|
|
217064
217064
|
verificationPolicy: "permissive"
|
|
217065
217065
|
};
|
|
@@ -217068,7 +217068,7 @@ async function loadConfig(global2 = false) {
|
|
|
217068
217068
|
const content = await fs3.readFile(configPath, "utf8");
|
|
217069
217069
|
const config2 = JSON.parse(content);
|
|
217070
217070
|
return {
|
|
217071
|
-
executionProvider: "
|
|
217071
|
+
executionProvider: "dagger",
|
|
217072
217072
|
defaultTimeout: "30s",
|
|
217073
217073
|
verificationPolicy: "permissive",
|
|
217074
217074
|
...config2
|
|
@@ -217076,7 +217076,7 @@ async function loadConfig(global2 = false) {
|
|
|
217076
217076
|
} catch (error) {
|
|
217077
217077
|
console.error(import_picocolors12.default.red(`Error reading config file: ${error}`));
|
|
217078
217078
|
return {
|
|
217079
|
-
executionProvider: "
|
|
217079
|
+
executionProvider: "dagger",
|
|
217080
217080
|
defaultTimeout: "30s",
|
|
217081
217081
|
verificationPolicy: "permissive"
|
|
217082
217082
|
};
|
|
@@ -217137,7 +217137,7 @@ async function listConfig(global2 = false) {
|
|
|
217137
217137
|
}
|
|
217138
217138
|
async function resetConfig(global2 = false) {
|
|
217139
217139
|
const defaultConfig = {
|
|
217140
|
-
executionProvider: "
|
|
217140
|
+
executionProvider: "dagger",
|
|
217141
217141
|
defaultTimeout: "30s",
|
|
217142
217142
|
verificationPolicy: "permissive"
|
|
217143
217143
|
};
|
|
@@ -217151,8 +217151,8 @@ async function interactiveConfig(global2 = false) {
|
|
|
217151
217151
|
const executionProvider = await ve({
|
|
217152
217152
|
message: "Select execution provider:",
|
|
217153
217153
|
options: [
|
|
217154
|
-
{ value: "
|
|
217155
|
-
{ value: "
|
|
217154
|
+
{ value: "dagger", label: "Dagger (containerized execution)" },
|
|
217155
|
+
{ value: "direct", label: "Direct (run commands directly on host)" }
|
|
217156
217156
|
],
|
|
217157
217157
|
initialValue: currentConfig.executionProvider
|
|
217158
217158
|
});
|
|
@@ -217236,7 +217236,7 @@ Options:`);
|
|
|
217236
217236
|
console.log(` --help Show this help
|
|
217237
217237
|
`);
|
|
217238
217238
|
console.log("Configuration Keys:");
|
|
217239
|
-
console.log(" executionProvider
|
|
217239
|
+
console.log(" executionProvider dagger | direct");
|
|
217240
217240
|
console.log(" verificationPolicy permissive | enterprise | paranoid");
|
|
217241
217241
|
console.log(" defaultTimeout 30s | 5m | 1h");
|
|
217242
217242
|
console.log(" daggerOptions.baseImage node:20-slim");
|
|
@@ -226831,7 +226831,7 @@ class EnactCore {
|
|
|
226831
226831
|
this.options = {
|
|
226832
226832
|
apiUrl: "https://enact.tools",
|
|
226833
226833
|
supabaseUrl: "https://xjnhhxwxovjifdxdwzih.supabase.co",
|
|
226834
|
-
executionProvider: "
|
|
226834
|
+
executionProvider: "dagger",
|
|
226835
226835
|
defaultTimeout: "30s",
|
|
226836
226836
|
verificationPolicy: "permissive",
|
|
226837
226837
|
...options
|
|
@@ -227281,11 +227281,11 @@ class EnactCore {
|
|
|
227281
227281
|
}
|
|
227282
227282
|
createExecutionProvider() {
|
|
227283
227283
|
switch (this.options.executionProvider) {
|
|
227284
|
-
case "dagger":
|
|
227285
|
-
return new DaggerExecutionProvider(this.options.daggerOptions);
|
|
227286
227284
|
case "direct":
|
|
227287
|
-
default:
|
|
227288
227285
|
return new DirectExecutionProvider;
|
|
227286
|
+
case "dagger":
|
|
227287
|
+
default:
|
|
227288
|
+
return new DaggerExecutionProvider(this.options.daggerOptions);
|
|
227289
227289
|
}
|
|
227290
227290
|
}
|
|
227291
227291
|
switchExecutionProvider(provider, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enactprotocol/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Official CLI for the Enact Protocol - package, secure, and discover AI tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"node": ">=18.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@enactprotocol/shared": "
|
|
45
|
+
"@enactprotocol/shared": "^1.0.13",
|
|
46
46
|
"@clack/core": "^0.4.2",
|
|
47
47
|
"@clack/prompts": "^0.10.1",
|
|
48
48
|
"picocolors": "^1.1.1"
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
"bun-types": "latest",
|
|
53
53
|
"typescript": "^5.4.5"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|