aipctl 2026.6.4 → 2026.6.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/build/index.cjs +47 -194
- package/package.json +8 -8
package/build/index.cjs
CHANGED
|
@@ -99709,9 +99709,13 @@ const skillCommand = make$4("skill", {}).pipe(
|
|
|
99709
99709
|
|
|
99710
99710
|
const BUILD_ENVS = ["local", "dev", "stage", "prod", "test"];
|
|
99711
99711
|
const isBuildEnv = (value) => BUILD_ENVS.includes(value);
|
|
99712
|
-
|
|
99713
|
-
const
|
|
99714
|
-
|
|
99712
|
+
|
|
99713
|
+
const injectedBuildEnv = "stage".length > 0 ? "stage" : "local";
|
|
99714
|
+
if (!isBuildEnv(injectedBuildEnv)) {
|
|
99715
|
+
throw new Error(`Invalid AIPCTL_BUILD_ENV: ${injectedBuildEnv}`);
|
|
99716
|
+
}
|
|
99717
|
+
const VERSION = "2026.6.5".length > 0 ? "2026.6.5" : "0.0.0";
|
|
99718
|
+
const BUILD_ENV = injectedBuildEnv;
|
|
99715
99719
|
const INCLUDE_NATIVE_LOGS = BUILD_ENV !== "prod";
|
|
99716
99720
|
|
|
99717
99721
|
const loadBinaryModule = () => {
|
|
@@ -99726,7 +99730,7 @@ const resolveNativeBinary = (options = {}) => {
|
|
|
99726
99730
|
const binary = (options.loadBinaryModule ?? loadBinaryModule)();
|
|
99727
99731
|
return binary.resolveBinaryPath(options.platform ?? process.platform, options.arch ?? process.arch);
|
|
99728
99732
|
};
|
|
99729
|
-
const runNativeCommand
|
|
99733
|
+
const runNativeCommand = (args, options = {}) => new Promise((resolve) => {
|
|
99730
99734
|
const env = options.env ?? process.env;
|
|
99731
99735
|
const spawn = options.spawn ?? childProcess.spawn;
|
|
99732
99736
|
const binaryPath = resolveNativeBinary(options);
|
|
@@ -99752,19 +99756,21 @@ const restArgs = text$2({ name: "arg" }).pipe(
|
|
|
99752
99756
|
const makeNativeCommand = (name, description) => make$4(
|
|
99753
99757
|
name,
|
|
99754
99758
|
{ rest: restArgs },
|
|
99755
|
-
({ rest }) => promise$1(() => runNativeCommand
|
|
99759
|
+
({ rest }) => promise$1(() => runNativeCommand([name, ...rest]))
|
|
99756
99760
|
).pipe(withDescription(description));
|
|
99757
99761
|
|
|
99758
|
-
const
|
|
99759
|
-
|
|
99760
|
-
|
|
99761
|
-
|
|
99762
|
-
|
|
99762
|
+
const nativeCommandDefinitions = [
|
|
99763
|
+
{ name: "install", description: "Install an MCP preset into a local client", includeInProd: true },
|
|
99764
|
+
{ name: "run", description: "Run the native MCP server", includeInProd: true },
|
|
99765
|
+
{ name: "tunnel", description: "Manage Edge Tunnel connections", includeInProd: true },
|
|
99766
|
+
{ name: "logs", description: "Inspect native MCP CLI logs", includeInProd: false }
|
|
99767
|
+
];
|
|
99768
|
+
nativeCommandDefinitions.map(({ name }) => name);
|
|
99769
|
+
const isEnabledNativeCommand = (definition, includeLogs) => definition.includeInProd || includeLogs;
|
|
99770
|
+
const nativeSubcommands = nativeCommandDefinitions.filter((definition) => isEnabledNativeCommand(definition, INCLUDE_NATIVE_LOGS)).map(({ name, description }) => makeNativeCommand(name, description));
|
|
99763
99771
|
const isNativeCommandEnabled = (command, includeLogs = INCLUDE_NATIVE_LOGS) => {
|
|
99764
|
-
|
|
99765
|
-
|
|
99766
|
-
}
|
|
99767
|
-
return command === "install" || command === "run" || command === "tunnel";
|
|
99772
|
+
const definition = nativeCommandDefinitions.find(({ name }) => name === command);
|
|
99773
|
+
return definition ? isEnabledNativeCommand(definition, includeLogs) : false;
|
|
99768
99774
|
};
|
|
99769
99775
|
|
|
99770
99776
|
const mainCommandDescription = "AIP command-line interface for managing organizations, skills, and native MCP commands";
|
|
@@ -99787,188 +99793,35 @@ const mainCommand = make$4("aipctl", {}).pipe(
|
|
|
99787
99793
|
withSubcommands(rootSubcommands)
|
|
99788
99794
|
);
|
|
99789
99795
|
|
|
99790
|
-
var publicHelpGroups = [
|
|
99791
|
-
{
|
|
99792
|
-
id: "root",
|
|
99793
|
-
path: [
|
|
99794
|
-
]
|
|
99795
|
-
},
|
|
99796
|
-
{
|
|
99797
|
-
id: "admin",
|
|
99798
|
-
path: [
|
|
99799
|
-
"admin"
|
|
99800
|
-
]
|
|
99801
|
-
},
|
|
99802
|
-
{
|
|
99803
|
-
id: "agent",
|
|
99804
|
-
path: [
|
|
99805
|
-
"agent"
|
|
99806
|
-
]
|
|
99807
|
-
},
|
|
99808
|
-
{
|
|
99809
|
-
id: "auth",
|
|
99810
|
-
path: [
|
|
99811
|
-
"auth"
|
|
99812
|
-
]
|
|
99813
|
-
},
|
|
99814
|
-
{
|
|
99815
|
-
id: "automation",
|
|
99816
|
-
path: [
|
|
99817
|
-
"automation"
|
|
99818
|
-
]
|
|
99819
|
-
},
|
|
99820
|
-
{
|
|
99821
|
-
id: "chat",
|
|
99822
|
-
path: [
|
|
99823
|
-
"chat"
|
|
99824
|
-
]
|
|
99825
|
-
},
|
|
99826
|
-
{
|
|
99827
|
-
id: "config",
|
|
99828
|
-
path: [
|
|
99829
|
-
"config"
|
|
99830
|
-
]
|
|
99831
|
-
},
|
|
99832
|
-
{
|
|
99833
|
-
id: "drive",
|
|
99834
|
-
path: [
|
|
99835
|
-
"drive"
|
|
99836
|
-
]
|
|
99837
|
-
},
|
|
99838
|
-
{
|
|
99839
|
-
id: "integration",
|
|
99840
|
-
path: [
|
|
99841
|
-
"integration"
|
|
99842
|
-
]
|
|
99843
|
-
},
|
|
99844
|
-
{
|
|
99845
|
-
id: "model",
|
|
99846
|
-
path: [
|
|
99847
|
-
"model"
|
|
99848
|
-
]
|
|
99849
|
-
},
|
|
99850
|
-
{
|
|
99851
|
-
id: "org",
|
|
99852
|
-
path: [
|
|
99853
|
-
"org"
|
|
99854
|
-
]
|
|
99855
|
-
},
|
|
99856
|
-
{
|
|
99857
|
-
id: "skill",
|
|
99858
|
-
path: [
|
|
99859
|
-
"skill"
|
|
99860
|
-
]
|
|
99861
|
-
},
|
|
99862
|
-
{
|
|
99863
|
-
id: "admin-org",
|
|
99864
|
-
path: [
|
|
99865
|
-
"admin",
|
|
99866
|
-
"org"
|
|
99867
|
-
]
|
|
99868
|
-
},
|
|
99869
|
-
{
|
|
99870
|
-
id: "admin-agent",
|
|
99871
|
-
path: [
|
|
99872
|
-
"admin",
|
|
99873
|
-
"agent"
|
|
99874
|
-
]
|
|
99875
|
-
},
|
|
99876
|
-
{
|
|
99877
|
-
id: "admin-integration",
|
|
99878
|
-
path: [
|
|
99879
|
-
"admin",
|
|
99880
|
-
"integration"
|
|
99881
|
-
]
|
|
99882
|
-
},
|
|
99883
|
-
{
|
|
99884
|
-
id: "admin-skill",
|
|
99885
|
-
path: [
|
|
99886
|
-
"admin",
|
|
99887
|
-
"skill"
|
|
99888
|
-
]
|
|
99889
|
-
},
|
|
99890
|
-
{
|
|
99891
|
-
id: "admin-preset",
|
|
99892
|
-
path: [
|
|
99893
|
-
"admin",
|
|
99894
|
-
"preset"
|
|
99895
|
-
]
|
|
99896
|
-
},
|
|
99897
|
-
{
|
|
99898
|
-
id: "admin-usage",
|
|
99899
|
-
path: [
|
|
99900
|
-
"admin",
|
|
99901
|
-
"usage"
|
|
99902
|
-
]
|
|
99903
|
-
},
|
|
99904
|
-
{
|
|
99905
|
-
id: "admin-audit",
|
|
99906
|
-
path: [
|
|
99907
|
-
"admin",
|
|
99908
|
-
"audit"
|
|
99909
|
-
]
|
|
99910
|
-
},
|
|
99911
|
-
{
|
|
99912
|
-
id: "admin-tunnel",
|
|
99913
|
-
path: [
|
|
99914
|
-
"admin",
|
|
99915
|
-
"tunnel"
|
|
99916
|
-
]
|
|
99917
|
-
},
|
|
99918
|
-
{
|
|
99919
|
-
id: "admin-skill-github",
|
|
99920
|
-
path: [
|
|
99921
|
-
"admin",
|
|
99922
|
-
"skill",
|
|
99923
|
-
"github"
|
|
99924
|
-
]
|
|
99925
|
-
},
|
|
99926
|
-
{
|
|
99927
|
-
id: "admin-skill-github-credentials",
|
|
99928
|
-
path: [
|
|
99929
|
-
"admin",
|
|
99930
|
-
"skill",
|
|
99931
|
-
"github",
|
|
99932
|
-
"credentials"
|
|
99933
|
-
]
|
|
99934
|
-
}
|
|
99935
|
-
];
|
|
99936
|
-
|
|
99937
99796
|
const HELP_FLAGS$1 = /* @__PURE__ */ new Set(["--help", "-h"]);
|
|
99938
|
-
const
|
|
99939
|
-
|
|
99940
|
-
|
|
99941
|
-
|
|
99942
|
-
|
|
99943
|
-
|
|
99944
|
-
|
|
99945
|
-
|
|
99946
|
-
|
|
99947
|
-
|
|
99948
|
-
|
|
99949
|
-
|
|
99950
|
-
"
|
|
99951
|
-
"admin
|
|
99952
|
-
"admin
|
|
99953
|
-
"admin
|
|
99954
|
-
"admin
|
|
99955
|
-
"admin
|
|
99956
|
-
"admin
|
|
99957
|
-
"admin
|
|
99958
|
-
"admin
|
|
99959
|
-
"admin
|
|
99960
|
-
|
|
99961
|
-
|
|
99962
|
-
|
|
99963
|
-
|
|
99964
|
-
if (!group) {
|
|
99965
|
-
throw new Error(`Unknown public help group id: ${id}`);
|
|
99797
|
+
const HELP_GROUPS = [
|
|
99798
|
+
{ path: [], description: mainCommandDescription, subcommands: rootSubcommands },
|
|
99799
|
+
{ path: ["admin"], description: adminCommandDescription, subcommands: adminSubcommands },
|
|
99800
|
+
{ path: ["agent"], description: agentCommandDescription, subcommands: agentSubcommands },
|
|
99801
|
+
{ path: ["auth"], description: authCommandDescription, subcommands: authSubcommands },
|
|
99802
|
+
{ path: ["automation"], description: automationCommandDescription, subcommands: automationSubcommands },
|
|
99803
|
+
{ path: ["chat"], description: chatCommandDescription, subcommands: chatSubcommands },
|
|
99804
|
+
{ path: ["config"], description: configCommandDescription, subcommands: configSubcommands },
|
|
99805
|
+
{ path: ["drive"], description: driveCommandDescription, subcommands: driveSubcommands },
|
|
99806
|
+
{ path: ["integration"], description: integrationCommandDescription, subcommands: integrationSubcommands },
|
|
99807
|
+
{ path: ["model"], description: modelCommandDescription, subcommands: modelSubcommands },
|
|
99808
|
+
{ path: ["org"], description: orgCommandDescription, subcommands: orgSubcommands },
|
|
99809
|
+
{ path: ["skill"], description: skillCommandDescription, subcommands: skillSubcommands },
|
|
99810
|
+
{ path: ["admin", "org"], description: adminOrgCommandDescription, subcommands: adminOrgSubcommands },
|
|
99811
|
+
{ path: ["admin", "agent"], description: adminAgentCommandDescription, subcommands: adminAgentSubcommands },
|
|
99812
|
+
{ path: ["admin", "integration"], description: adminIntegrationCommandDescription, subcommands: adminIntegrationSubcommands },
|
|
99813
|
+
{ path: ["admin", "skill"], description: adminSkillCommandDescription, subcommands: adminSkillSubcommands },
|
|
99814
|
+
{ path: ["admin", "preset"], description: presetCommandDescription, subcommands: presetSubcommands },
|
|
99815
|
+
{ path: ["admin", "usage"], description: usageCommandDescription, subcommands: usageSubcommands },
|
|
99816
|
+
{ path: ["admin", "audit"], description: auditCommandDescription, subcommands: auditSubcommands },
|
|
99817
|
+
{ path: ["admin", "tunnel"], description: tunnelCommandDescription, subcommands: tunnelSubcommands },
|
|
99818
|
+
{ path: ["admin", "skill", "github"], description: githubSkillCommandDescription, subcommands: githubSkillSubcommands },
|
|
99819
|
+
{
|
|
99820
|
+
path: ["admin", "skill", "github", "credentials"],
|
|
99821
|
+
description: githubCredentialsCommandDescription,
|
|
99822
|
+
subcommands: githubCredentialsSubcommands
|
|
99966
99823
|
}
|
|
99967
|
-
|
|
99968
|
-
path,
|
|
99969
|
-
...group
|
|
99970
|
-
};
|
|
99971
|
-
});
|
|
99824
|
+
];
|
|
99972
99825
|
const isSamePath = (left, right) => left.length === right.length && left.every((segment, index) => segment === right[index]);
|
|
99973
99826
|
const formatCanonicalPath = (path) => ["aipctl", ...path].join(" ");
|
|
99974
99827
|
const getCommandName = (command) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aipctl",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.5",
|
|
4
4
|
"description": "QueryPie AIP and MCP CLI tool",
|
|
5
5
|
"author": "QueryPie",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"node": ">=24.18.0"
|
|
23
23
|
},
|
|
24
24
|
"metadata": {
|
|
25
|
-
"contentHash": "
|
|
25
|
+
"contentHash": "ffd0e127dfba960e239ec382fc8fed23fb0ce650a98989d2ab9b49fe3ac8e8b1"
|
|
26
26
|
},
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"aipctl-darwin-x64": "2026.6.
|
|
29
|
-
"aipctl-darwin-arm64": "2026.6.
|
|
30
|
-
"aipctl-linux-x64": "2026.6.
|
|
31
|
-
"aipctl-linux-arm64": "2026.6.
|
|
32
|
-
"aipctl-windows-x64": "2026.6.
|
|
33
|
-
"aipctl-windows-arm64": "2026.6.
|
|
28
|
+
"aipctl-darwin-x64": "2026.6.5",
|
|
29
|
+
"aipctl-darwin-arm64": "2026.6.5",
|
|
30
|
+
"aipctl-linux-x64": "2026.6.5",
|
|
31
|
+
"aipctl-linux-arm64": "2026.6.5",
|
|
32
|
+
"aipctl-windows-x64": "2026.6.5",
|
|
33
|
+
"aipctl-windows-arm64": "2026.6.5"
|
|
34
34
|
}
|
|
35
35
|
}
|