@cydm/pie 4.7.0 → 4.9.0
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 +51 -27
- package/dist/builtin/extensions/ask-user/index.js +4 -4
- package/dist/builtin/extensions/cron/index.js +916 -162
- package/dist/builtin/extensions/im-forward/README.md +24 -7
- package/dist/builtin/extensions/im-forward/index.js +6823 -3683
- package/dist/builtin/extensions/memory/index.js +76 -28
- package/dist/builtin/extensions/pie-ipc/README.md +2 -2
- package/dist/builtin/extensions/pie-ipc/index.js +421 -27
- package/dist/builtin/extensions/pie-proc/README.md +7 -7
- package/dist/builtin/extensions/pie-proc/index.js +453 -97
- package/dist/builtin/extensions/plan-mode/index.js +5 -5
- package/dist/builtin/extensions/subagent/index.js +8 -8
- package/dist/builtin/extensions/todo/index.js +4 -4
- package/dist/builtin/skills/chrome-devtools-axi/SKILL.md +35 -24
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-bridge.js +391 -123
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-runtime.js +1 -1
- package/dist/builtin/skills/chrome-devtools-axi/chunk-HAUDUMDO.js +795 -0
- package/dist/builtin/skills/chrome-devtools-axi/{cli-NLPMVDGG.js → cli-K7ESY3XD.js} +1437 -231
- package/dist/builtin/skills/computer-use-axi/SKILL.md +26 -8
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +465 -83
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +75 -22
- package/dist/builtin/skills/tui-use/tui-use-daemon.cjs +451 -43
- package/dist/chunks/{chunk-3W3SXVPB.js → chunk-4UIUMTHG.js} +993 -371
- package/dist/chunks/chunk-6WKBQZWM.js +19 -0
- package/dist/chunks/{chunk-5KI4Y4LA.js → chunk-BA4Z27XT.js} +4 -3
- package/dist/chunks/{chunk-BLDI2GRF.js → chunk-DBDU3RRN.js} +1364 -446
- package/dist/chunks/{chunk-LAJXWOKS.js → chunk-EEC5PJTC.js} +11 -9
- package/dist/chunks/chunk-IZKHSUNQ.js +30 -0
- package/dist/chunks/{chunk-Y3I2UV5Y.js → chunk-LRHNAG4V.js} +349 -288
- package/dist/chunks/chunk-OU33ROFD.js +717 -0
- package/dist/chunks/{chunk-Z2FKA2ZH.js → chunk-PN6B54VT.js} +104 -22
- package/dist/chunks/{chunk-NHV2CALB.js → chunk-WYXUF4MP.js} +388 -32
- package/dist/chunks/{chunk-4PR34UZF.js → chunk-Z5KL6AO2.js} +159 -145
- package/dist/chunks/{host-image-fallback-N7RHNPYN.js → host-image-fallback-RASJSVZY.js} +1 -1
- package/dist/chunks/{manager-cli-NEZA46M5.js → manager-cli-Y6HM3MHA.js} +5 -5
- package/dist/chunks/{model-registry-3XAHXXTA.js → model-registry-5TLYILYR.js} +2 -2
- package/dist/chunks/{read-file-understanding-FMPXR6EJ.js → read-file-understanding-VPKDBV23.js} +5 -5
- package/dist/chunks/{src-B44QWSGM.js → src-2XI5P62J.js} +2 -2
- package/dist/chunks/{src-EGXFJ3WA.js → src-6QGGDHIW.js} +3 -3
- package/dist/chunks/{src-Q7LU27C2.js → src-CCEENRKC.js} +31 -1
- package/dist/chunks/{src-CLE5ILN4.js → src-DI4MCAGT.js} +20 -4
- package/dist/chunks/{test-stream-OR3EJBNF.js → test-stream-SYVWIPPW.js} +2 -2
- package/dist/cli.js +1918 -1489
- package/models.schema.json +271 -0
- package/package.json +2 -2
- package/dist/builtin/skills/chrome-devtools-axi/chunk-WOGAQ4P5.js +0 -399
- package/dist/chunks/chunk-7UAUDXZW.js +0 -1425
- package/dist/chunks/{chunk-CGSFBWOM.js → chunk-WBL73KRI.js} +3 -3
- package/dist/chunks/{manager-upgrade-CTU3ISCW.js → manager-upgrade-LSTOHBUV.js} +3 -3
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
getBuiltinDir,
|
|
4
|
-
getConfigDir
|
|
5
|
-
} from "./chunk-CBDQJMUI.js";
|
|
6
2
|
import {
|
|
7
3
|
classifyShellCommand,
|
|
8
4
|
createSharedWebFetchTool,
|
|
@@ -10,15 +6,19 @@ import {
|
|
|
10
6
|
createSharedWebSearchTool,
|
|
11
7
|
defaultShellKindForPlatform,
|
|
12
8
|
interpretShellExit
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DBDU3RRN.js";
|
|
14
10
|
import {
|
|
15
11
|
requestInteraction
|
|
16
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LRHNAG4V.js";
|
|
13
|
+
import {
|
|
14
|
+
getBuiltinDir,
|
|
15
|
+
getConfigDir
|
|
16
|
+
} from "./chunk-CBDQJMUI.js";
|
|
17
17
|
import {
|
|
18
18
|
EMPTY_ASSISTANT_CONTENT_ERROR,
|
|
19
19
|
OPENAI_COMPAT_PROTOCOL_ERROR_CODE,
|
|
20
20
|
getLogger
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4UIUMTHG.js";
|
|
22
22
|
import {
|
|
23
23
|
Type
|
|
24
24
|
} from "./chunk-XXGYUYXI.js";
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
var TRANSIENT_NETWORK_ERROR_PATTERN = /sse stream aborted|sse stream closed before end|sse stream ended before response completed|responses stream ended without a terminal event|(?:read\s+)?ECONNRESET|ETIMEDOUT|EAI_AGAIN|ENOTFOUND|ECONNREFUSED|(?:read\s+|write\s+)?EPIPE|socket hang up|request timeout|websocket upgrade refused|websocket handshake|websocket connection failed|websocket transport failed|connection closed before opening|client network socket disconnected before secure TLS connection was established|connection.?error|connection.?refused|other side closed|fetch failed|upstream.?connect|reset before headers|terminated/i;
|
|
28
28
|
var TLS_VALIDATION_ERROR_PATTERN = /certificate (?:has )?expired|certificate is not yet valid|unable to verify (?:the first certificate|certificate)|unable to get (?:local )?issuer certificate|self[-_ ]signed cert(?:ificate)?|CERT_HAS_EXPIRED|SELF_SIGNED_CERT|does not match certificate's altnames|ERR_TLS_CERT_ALTNAME_INVALID/i;
|
|
29
29
|
var PROVIDER_TRANSIENT_ERROR_PATTERN = /overloaded|rate.?limit|too many requests|\b429\b|\b500\b|\b502\b|\b503\b|\b504\b|service.?unavailable|server error|internal error|retry delay|quota (?:has been |is )?exhausted/i;
|
|
30
|
+
var AGY_BRIDGE_TRANSIENT_PATTERN = /\bagy bridge:.*(?:\bunknown model id\b|\bunavailable to this agy account\b)/i;
|
|
30
31
|
var USER_ABORT_PATTERN = /request was aborted|local abort signal|user abort|user_interrupt|interrupted by user|esc pressed|ctrl\+c/i;
|
|
31
32
|
var AUTH_CONFIG_PATTERN = /missing api key|invalid api key|api key.*invalid|unauthorized|\b401\b|\b403\b|forbidden|authentication failed|no configured model|no models? are configured/i;
|
|
32
33
|
var QUOTA_EXHAUSTED_PATTERN = /insufficient[_ ]quota|exceeded[_ ]current[_ ]quota|exceeded your current quota|billing[_ ]hard[_ ]limit|insufficient[_ ]balance|credit balance is too low|\barrearage\b|余额不足|\b(?:account|monthly|billing) quota (?:has been |is )?exhausted/i;
|
|
@@ -98,7 +99,7 @@ function classifyCliFailure(context) {
|
|
|
98
99
|
terminal: false
|
|
99
100
|
});
|
|
100
101
|
}
|
|
101
|
-
if (PROVIDER_TRANSIENT_ERROR_PATTERN.test(errorMessage)) {
|
|
102
|
+
if (PROVIDER_TRANSIENT_ERROR_PATTERN.test(errorMessage) || AGY_BRIDGE_TRANSIENT_PATTERN.test(errorMessage)) {
|
|
102
103
|
return createClassification("provider_transient", errorMessage, {
|
|
103
104
|
retryable: true,
|
|
104
105
|
terminal: false
|
|
@@ -992,7 +993,8 @@ function createBashTool(defaultCwd, options) {
|
|
|
992
993
|
highRisk: true,
|
|
993
994
|
maxOutputChars: 1e5
|
|
994
995
|
},
|
|
995
|
-
execute: async (_toolCallId,
|
|
996
|
+
execute: async (_toolCallId, rawParams, signal, onUpdate) => {
|
|
997
|
+
const { command, timeout, cwd, shell } = rawParams;
|
|
996
998
|
validateBashCommand(command);
|
|
997
999
|
const resolvedShell = resolveShell(shell, contract);
|
|
998
1000
|
const effectiveCommand = buildEffectiveCommand(command, options, resolvedShell);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/core/cron-panel-bridge.ts
|
|
4
|
+
var activeBridge;
|
|
5
|
+
function registerCronPanelBridge(bridge) {
|
|
6
|
+
const token = /* @__PURE__ */ Symbol("cron-panel-bridge");
|
|
7
|
+
activeBridge = { token, bridge };
|
|
8
|
+
return () => {
|
|
9
|
+
if (activeBridge?.token === token) activeBridge = void 0;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function currentCronPanelBridge() {
|
|
13
|
+
return activeBridge?.bridge;
|
|
14
|
+
}
|
|
15
|
+
function cronActiveCount(sessionId) {
|
|
16
|
+
const bridge = activeBridge?.bridge;
|
|
17
|
+
if (!bridge) return 0;
|
|
18
|
+
try {
|
|
19
|
+
const res = bridge.listJobs(sessionId ? { sessionId } : void 0);
|
|
20
|
+
return res.jobs.filter((j) => j.enabled || j.state === "running").length;
|
|
21
|
+
} catch {
|
|
22
|
+
return 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
registerCronPanelBridge,
|
|
28
|
+
currentCronPanelBridge,
|
|
29
|
+
cronActiveCount
|
|
30
|
+
};
|