@hasna/mementos 0.14.41 → 0.14.42
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 +33 -0
- package/dist/cli/index.js +3 -3
- package/dist/index.js +2 -2
- package/dist/mcp/index.js +2 -2
- package/dist/server/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,39 @@ npm install -g @hasna/mementos
|
|
|
17
17
|
mementos --help
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
## Shared Event Webhooks
|
|
21
|
+
|
|
22
|
+
`mementos` exposes the shared `@hasna/events` commands so memory events can
|
|
23
|
+
trigger deterministic or agentic automation without custom glue scripts. To
|
|
24
|
+
route mementos events into an OpenLoops worker/verifier template, register a
|
|
25
|
+
command webhook:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
mementos webhooks add loops \
|
|
29
|
+
--id openloops-mementos-events \
|
|
30
|
+
--transport command \
|
|
31
|
+
--source mementos \
|
|
32
|
+
--type "*" \
|
|
33
|
+
--arg=events \
|
|
34
|
+
--arg=handle \
|
|
35
|
+
--arg=generic \
|
|
36
|
+
--arg=--provider \
|
|
37
|
+
--arg=codewith \
|
|
38
|
+
--arg=--auth-profile \
|
|
39
|
+
--arg=account005 \
|
|
40
|
+
--arg=--permission-mode \
|
|
41
|
+
--arg=bypass \
|
|
42
|
+
--arg=--sandbox \
|
|
43
|
+
--arg=danger-full-access \
|
|
44
|
+
--timeout-ms 900000 \
|
|
45
|
+
--json
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`@hasna/events` sends the event envelope on stdin and in `HASNA_EVENT_JSON`.
|
|
49
|
+
OpenLoops can then create a deduped one-shot workflow for the event. Keep the
|
|
50
|
+
event payload scoped and include `working_dir`, `project_path`, or `repo_path`
|
|
51
|
+
when a downstream agent needs to run inside a specific repository.
|
|
52
|
+
|
|
20
53
|
## MCP Server
|
|
21
54
|
|
|
22
55
|
```bash
|
package/dist/cli/index.js
CHANGED
|
@@ -1011,7 +1011,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1011
1011
|
this._exitCallback = (err) => {
|
|
1012
1012
|
if (err.code !== "commander.executeSubCommandAsync") {
|
|
1013
1013
|
throw err;
|
|
1014
|
-
}
|
|
1014
|
+
} else {}
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
1017
|
return this;
|
|
@@ -29179,7 +29179,7 @@ class JSONSchemaGenerator {
|
|
|
29179
29179
|
if (val === undefined) {
|
|
29180
29180
|
if (this.unrepresentable === "throw") {
|
|
29181
29181
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
29182
|
-
}
|
|
29182
|
+
} else {}
|
|
29183
29183
|
} else if (typeof val === "bigint") {
|
|
29184
29184
|
if (this.unrepresentable === "throw") {
|
|
29185
29185
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -49430,7 +49430,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
49430
49430
|
const value = listMember.slice(i + 1, part.length);
|
|
49431
49431
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
49432
49432
|
agg.set(key, value);
|
|
49433
|
-
}
|
|
49433
|
+
} else {}
|
|
49434
49434
|
}
|
|
49435
49435
|
return agg;
|
|
49436
49436
|
}, new Map);
|
package/dist/index.js
CHANGED
|
@@ -20191,7 +20191,7 @@ class JSONSchemaGenerator {
|
|
|
20191
20191
|
if (val === undefined) {
|
|
20192
20192
|
if (this.unrepresentable === "throw") {
|
|
20193
20193
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
20194
|
-
}
|
|
20194
|
+
} else {}
|
|
20195
20195
|
} else if (typeof val === "bigint") {
|
|
20196
20196
|
if (this.unrepresentable === "throw") {
|
|
20197
20197
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -40442,7 +40442,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
40442
40442
|
const value = listMember.slice(i + 1, part.length);
|
|
40443
40443
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
40444
40444
|
agg.set(key, value);
|
|
40445
|
-
}
|
|
40445
|
+
} else {}
|
|
40446
40446
|
}
|
|
40447
40447
|
return agg;
|
|
40448
40448
|
}, new Map);
|
package/dist/mcp/index.js
CHANGED
|
@@ -26270,7 +26270,7 @@ class JSONSchemaGenerator {
|
|
|
26270
26270
|
if (val === undefined) {
|
|
26271
26271
|
if (this.unrepresentable === "throw") {
|
|
26272
26272
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
26273
|
-
}
|
|
26273
|
+
} else {}
|
|
26274
26274
|
} else if (typeof val === "bigint") {
|
|
26275
26275
|
if (this.unrepresentable === "throw") {
|
|
26276
26276
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -46521,7 +46521,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
46521
46521
|
const value = listMember.slice(i + 1, part.length);
|
|
46522
46522
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
46523
46523
|
agg.set(key, value);
|
|
46524
|
-
}
|
|
46524
|
+
} else {}
|
|
46525
46525
|
}
|
|
46526
46526
|
return agg;
|
|
46527
46527
|
}, new Map);
|
package/dist/server/index.js
CHANGED
|
@@ -22974,7 +22974,7 @@ class JSONSchemaGenerator {
|
|
|
22974
22974
|
if (val === undefined) {
|
|
22975
22975
|
if (this.unrepresentable === "throw") {
|
|
22976
22976
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
22977
|
-
}
|
|
22977
|
+
} else {}
|
|
22978
22978
|
} else if (typeof val === "bigint") {
|
|
22979
22979
|
if (this.unrepresentable === "throw") {
|
|
22980
22980
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -43225,7 +43225,7 @@ var require_tracestate_impl = __commonJS((exports) => {
|
|
|
43225
43225
|
const value = listMember.slice(i + 1, part.length);
|
|
43226
43226
|
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
43227
43227
|
agg.set(key, value);
|
|
43228
|
-
}
|
|
43228
|
+
} else {}
|
|
43229
43229
|
}
|
|
43230
43230
|
return agg;
|
|
43231
43231
|
}, new Map);
|