agent-neckbeard 1.1.18 → 1.1.20
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/CHANGELOG.md +32 -0
- package/README.md +171 -67
- package/dist/chunk-33IXN6MM.js +21 -0
- package/dist/chunk-3EB4CT5S.js +2516 -0
- package/dist/{chunk-AM2J5KBI.js → chunk-DHFC3O44.js} +4 -8
- package/dist/index.cjs +3652 -535
- package/dist/index.d.cts +150 -56
- package/dist/index.d.ts +150 -56
- package/dist/index.js +1167 -501
- package/dist/{invoke-client-XEH6FVRH.js → invoke-client-D5TMTOYM.js} +2 -1
- package/dist/sandbox-capabilities-CFjnZ_kB.d.cts +77 -0
- package/dist/sandbox-capabilities-CFjnZ_kB.d.ts +77 -0
- package/dist/supervisor.cjs +6043 -0
- package/dist/supervisor.d.cts +470 -0
- package/dist/supervisor.d.ts +470 -0
- package/dist/supervisor.js +3535 -0
- package/docs/SUPERVISOR.md +248 -0
- package/package.json +20 -8
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isSerializedError
|
|
3
|
+
} from "./chunk-33IXN6MM.js";
|
|
4
|
+
|
|
1
5
|
// src/runtime/protocol.ts
|
|
2
6
|
var RUNTIME_PROTOCOL_VERSION = 1;
|
|
3
7
|
function isHarnessEvent(value) {
|
|
@@ -35,14 +39,6 @@ function hasValidMetadata(candidate) {
|
|
|
35
39
|
}
|
|
36
40
|
return true;
|
|
37
41
|
}
|
|
38
|
-
function isSerializedError(value) {
|
|
39
|
-
if (!value || typeof value !== "object") return false;
|
|
40
|
-
const candidate = value;
|
|
41
|
-
if (typeof candidate.message !== "string") return false;
|
|
42
|
-
if (candidate.name !== void 0 && typeof candidate.name !== "string") return false;
|
|
43
|
-
if (candidate.stack !== void 0 && typeof candidate.stack !== "string") return false;
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
42
|
|
|
47
43
|
export {
|
|
48
44
|
RUNTIME_PROTOCOL_VERSION,
|