agentplugged 1.0.4 → 1.0.6
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/main.js +17 -15
- package/package.json +8 -8
package/dist/main.js
CHANGED
|
@@ -6810,9 +6810,11 @@ const REQUEST_TIMEOUT_MS = 3e4;
|
|
|
6810
6810
|
/** `CredentialBackend` through a PowerShell helper, started on the first request. */
|
|
6811
6811
|
var PowerShellCredentials = class PowerShellCredentials {
|
|
6812
6812
|
#powershell;
|
|
6813
|
+
#startupTimeoutMs;
|
|
6813
6814
|
#session;
|
|
6814
|
-
constructor(powershell) {
|
|
6815
|
+
constructor(powershell, startupTimeoutMs) {
|
|
6815
6816
|
this.#powershell = powershell;
|
|
6817
|
+
this.#startupTimeoutMs = startupTimeoutMs;
|
|
6816
6818
|
}
|
|
6817
6819
|
/**
|
|
6818
6820
|
* Starts the helper now. Rejects with `PowerShellUnavailableError` when PowerShell is absent, in
|
|
@@ -6821,14 +6823,14 @@ var PowerShellCredentials = class PowerShellCredentials {
|
|
|
6821
6823
|
static async open(options = {}) {
|
|
6822
6824
|
const powershell = options.powershell ?? windowsPowerShellPath();
|
|
6823
6825
|
if (powershell === void 0) throw new PowerShellUnavailableError("Windows PowerShell was not found");
|
|
6824
|
-
const backend = new PowerShellCredentials(powershell);
|
|
6826
|
+
const backend = new PowerShellCredentials(powershell, options.startupTimeoutMs ?? STARTUP_TIMEOUT_MS);
|
|
6825
6827
|
await backend.#ensure();
|
|
6826
6828
|
return backend;
|
|
6827
6829
|
}
|
|
6828
6830
|
/** The running helper; a new one when the last stopped. */
|
|
6829
6831
|
async #ensure() {
|
|
6830
6832
|
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
6831
|
-
this.#session ??= Session.start(this.#powershell,
|
|
6833
|
+
this.#session ??= Session.start(this.#powershell, this.#startupTimeoutMs).catch((error) => {
|
|
6832
6834
|
this.#session = void 0;
|
|
6833
6835
|
throw error;
|
|
6834
6836
|
});
|
|
@@ -6985,22 +6987,22 @@ async function nativeBackend() {
|
|
|
6985
6987
|
}
|
|
6986
6988
|
let system;
|
|
6987
6989
|
/**
|
|
6988
|
-
* The system keychain of this machine
|
|
6989
|
-
*
|
|
6990
|
-
*
|
|
6990
|
+
* The system keychain of this machine: `@napi-rs/keyring`, and on Windows the PowerShell helper
|
|
6991
|
+
* when the native module cannot be loaded (Smart App Control may refuse it). The native module
|
|
6992
|
+
* comes first: it answers at once, where the helper compiles itself in each new process. Chosen
|
|
6993
|
+
* once per process, kept once it works.
|
|
6991
6994
|
*/
|
|
6992
6995
|
function systemCredentials() {
|
|
6993
6996
|
system ??= (async () => {
|
|
6994
|
-
let powershell;
|
|
6995
|
-
if (process.platform === "win32") try {
|
|
6996
|
-
return await PowerShellCredentials.open();
|
|
6997
|
-
} catch (error) {
|
|
6998
|
-
powershell = error;
|
|
6999
|
-
}
|
|
7000
6997
|
try {
|
|
7001
6998
|
return await nativeBackend();
|
|
7002
6999
|
} catch (error) {
|
|
7003
|
-
|
|
7000
|
+
if (process.platform !== "win32") throw error;
|
|
7001
|
+
try {
|
|
7002
|
+
return await PowerShellCredentials.open();
|
|
7003
|
+
} catch (powershell) {
|
|
7004
|
+
throw unavailableKeychainError(nativeCause(error), powershell);
|
|
7005
|
+
}
|
|
7004
7006
|
}
|
|
7005
7007
|
})().catch((error) => {
|
|
7006
7008
|
system = void 0;
|
|
@@ -7022,8 +7024,8 @@ async function explained(operation) {
|
|
|
7022
7024
|
}
|
|
7023
7025
|
/**
|
|
7024
7026
|
* `KeyStore` in the system keychain (Windows Credential Manager, macOS Keychain, the Secret
|
|
7025
|
-
* Service on Linux): through a PowerShell helper
|
|
7026
|
-
*
|
|
7027
|
+
* Service on Linux): through `@napi-rs/keyring`, or on Windows a PowerShell helper when the
|
|
7028
|
+
* native module cannot be loaded (`systemCredentials`). Tests pass their own service
|
|
7027
7029
|
* name and delete their entries afterwards: the machine's real entries are never touched.
|
|
7028
7030
|
*/
|
|
7029
7031
|
var NodeKeyStore = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentplugged",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Install the AgentPlugged method in a repository and make its agents callable from Claude Code, Codex, Antigravity/Gemini CLI and Cursor.",
|
|
5
5
|
"releaseSummary": "The engine updates itself: your session moves to a newer version between two calls, with nothing to reconnect.",
|
|
6
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"koffi": "~3.3.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agentplugged/adapters-git": "1.0.
|
|
51
|
-
"@agentplugged/adapters-tools": "1.0.
|
|
52
|
-
"@agentplugged/core": "1.0.
|
|
53
|
-
"@agentplugged/crypto": "1.0.
|
|
54
|
-
"@agentplugged/i18n": "1.0.
|
|
55
|
-
"@agentplugged/mcp": "1.0.
|
|
50
|
+
"@agentplugged/adapters-git": "1.0.6",
|
|
51
|
+
"@agentplugged/adapters-tools": "1.0.6",
|
|
52
|
+
"@agentplugged/core": "1.0.6",
|
|
53
|
+
"@agentplugged/crypto": "1.0.6",
|
|
54
|
+
"@agentplugged/i18n": "1.0.6",
|
|
55
|
+
"@agentplugged/mcp": "1.0.6",
|
|
56
56
|
"@agentplugged/method": "0.0.0",
|
|
57
|
-
"@agentplugged/protocol": "1.0.
|
|
57
|
+
"@agentplugged/protocol": "1.0.6",
|
|
58
58
|
"@biomejs/biome": "~2.5.15",
|
|
59
59
|
"@modelcontextprotocol/client": "~2.3.0",
|
|
60
60
|
"@types/node": "^24.19.1",
|