@omg-dev/protocol 0.6.324 → 0.6.326
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-message.d.ts","sourceRoot":"","sources":["../src/machine-message.ts"],"names":[],"mappings":"AAUA,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Messages that software sends into a session as a user turn, each starting
|
|
3
|
+
* with a bracketed marker. The person did not type them. The web client draws
|
|
4
|
+
* them as system rows (web/src/lib/system-message.ts holds the full parsers);
|
|
5
|
+
* the server uses this list where it must not treat one as the person's own
|
|
6
|
+
* message, for example the Auto build switch (src/auto-build-model.ts).
|
|
7
|
+
*/
|
|
8
|
+
const MACHINE_MARKER = /^\s*\[(?:omg builder\]|Background task |subagent (?:progress|complete|blocked|failed)\]|Peer message from |Message from [^\]]+ to bot |ask-user answer |Browser login |This conversation continues |Scheduled routine: )/i;
|
|
9
|
+
export function isMachineMessage(text) {
|
|
10
|
+
return MACHINE_MARKER.test(text);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=machine-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine-message.js","sourceRoot":"","sources":["../src/machine-message.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,cAAc,GAClB,2NAA2N,CAAC;AAE9N,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC"}
|