@digipair/skill-sse 0.69.1 → 0.69.2
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/index.cjs.js
CHANGED
|
@@ -1273,16 +1273,14 @@ let SSEService = class SSEService {
|
|
|
1273
1273
|
return channel;
|
|
1274
1274
|
}
|
|
1275
1275
|
async push(params, _pinsSettingsList, context) {
|
|
1276
|
-
const { id, message, reasoning = context.request.reasoning } = params;
|
|
1277
|
-
const digipair = context.request.digipair;
|
|
1276
|
+
const { id, message, reasoning = context.request.reasoning, digipair = context.request.digipair } = params;
|
|
1278
1277
|
const start = context.privates.SSE_SESSION_START || '';
|
|
1279
1278
|
const name = `${start}__${digipair}_${reasoning}__${id}`;
|
|
1280
1279
|
const session = this.sessions.get(name);
|
|
1281
1280
|
return session == null ? void 0 : session.push(message);
|
|
1282
1281
|
}
|
|
1283
1282
|
async broadcast(params, _pinsSettingsList, context) {
|
|
1284
|
-
const { message, reasoning = context.request.reasoning, id = '', event = 'message' } = params;
|
|
1285
|
-
const digipair = context.request.digipair;
|
|
1283
|
+
const { message, reasoning = context.request.reasoning, id = '', digipair = context.request.digipair, event = 'message' } = params;
|
|
1286
1284
|
const start = context.privates.SSE_SESSION_START || '';
|
|
1287
1285
|
const name = `${start}__${digipair}_${reasoning}__${id}`;
|
|
1288
1286
|
let channel = this.channels.get(name);
|
package/index.esm.js
CHANGED
|
@@ -25127,14 +25127,14 @@ function indent(str, spaces) {
|
|
|
25127
25127
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
25128
25128
|
// match is required
|
|
25129
25129
|
if (!match) {
|
|
25130
|
-
return i = i1,
|
|
25130
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
25131
25131
|
v: nextMatch1
|
|
25132
25132
|
};
|
|
25133
25133
|
}
|
|
25134
25134
|
var token = match.token, offset = match.offset;
|
|
25135
25135
|
i1 += offset;
|
|
25136
25136
|
if (token === " ") {
|
|
25137
|
-
return i = i1,
|
|
25137
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
25138
25138
|
}
|
|
25139
25139
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
25140
25140
|
token
|
|
@@ -25153,7 +25153,7 @@ function indent(str, spaces) {
|
|
|
25153
25153
|
if (contextKeys.some(function(el) {
|
|
25154
25154
|
return el.startsWith(name);
|
|
25155
25155
|
})) {
|
|
25156
|
-
return i = i1,
|
|
25156
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
25157
25157
|
}
|
|
25158
25158
|
if (dateTimeIdentifiers.some(function(el) {
|
|
25159
25159
|
return el === name;
|
|
@@ -25172,9 +25172,9 @@ function indent(str, spaces) {
|
|
|
25172
25172
|
if (dateTimeIdentifiers.some(function(el) {
|
|
25173
25173
|
return el.startsWith(name);
|
|
25174
25174
|
})) {
|
|
25175
|
-
return i = i1,
|
|
25175
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
25176
25176
|
}
|
|
25177
|
-
return i = i1,
|
|
25177
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
25178
25178
|
v: nextMatch1
|
|
25179
25179
|
};
|
|
25180
25180
|
};
|
|
@@ -29234,16 +29234,14 @@ let SSEService = class SSEService {
|
|
|
29234
29234
|
return channel;
|
|
29235
29235
|
}
|
|
29236
29236
|
async push(params, _pinsSettingsList, context) {
|
|
29237
|
-
const { id, message, reasoning = context.request.reasoning } = params;
|
|
29238
|
-
const digipair = context.request.digipair;
|
|
29237
|
+
const { id, message, reasoning = context.request.reasoning, digipair = context.request.digipair } = params;
|
|
29239
29238
|
const start = context.privates.SSE_SESSION_START || '';
|
|
29240
29239
|
const name = `${start}__${digipair}_${reasoning}__${id}`;
|
|
29241
29240
|
const session = this.sessions.get(name);
|
|
29242
29241
|
return session == null ? void 0 : session.push(message);
|
|
29243
29242
|
}
|
|
29244
29243
|
async broadcast(params, _pinsSettingsList, context) {
|
|
29245
|
-
const { message, reasoning = context.request.reasoning, id = '', event = 'message' } = params;
|
|
29246
|
-
const digipair = context.request.digipair;
|
|
29244
|
+
const { message, reasoning = context.request.reasoning, id = '', digipair = context.request.digipair, event = 'message' } = params;
|
|
29247
29245
|
const start = context.privates.SSE_SESSION_START || '';
|
|
29248
29246
|
const name = `${start}__${digipair}_${reasoning}__${id}`;
|
|
29249
29247
|
let channel = this.channels.get(name);
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -108,6 +108,15 @@
|
|
|
108
108
|
"schema": {
|
|
109
109
|
"type": "string"
|
|
110
110
|
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "digipair",
|
|
114
|
+
"summary": "Digipair",
|
|
115
|
+
"required": false,
|
|
116
|
+
"description": "Digipair",
|
|
117
|
+
"schema": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
111
120
|
}
|
|
112
121
|
],
|
|
113
122
|
"x-events": []
|
|
@@ -153,6 +162,15 @@
|
|
|
153
162
|
"schema": {
|
|
154
163
|
"type": "string"
|
|
155
164
|
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "digipair",
|
|
168
|
+
"summary": "Digipair",
|
|
169
|
+
"required": false,
|
|
170
|
+
"description": "Digipair",
|
|
171
|
+
"schema": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
}
|
|
156
174
|
}
|
|
157
175
|
],
|
|
158
176
|
"x-events": []
|
package/schema.json
CHANGED
|
@@ -108,6 +108,15 @@
|
|
|
108
108
|
"schema": {
|
|
109
109
|
"type": "string"
|
|
110
110
|
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "digipair",
|
|
114
|
+
"summary": "Digipair",
|
|
115
|
+
"required": false,
|
|
116
|
+
"description": "Digipair",
|
|
117
|
+
"schema": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
111
120
|
}
|
|
112
121
|
],
|
|
113
122
|
"x-events": []
|
|
@@ -153,6 +162,15 @@
|
|
|
153
162
|
"schema": {
|
|
154
163
|
"type": "string"
|
|
155
164
|
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "digipair",
|
|
168
|
+
"summary": "Digipair",
|
|
169
|
+
"required": false,
|
|
170
|
+
"description": "Digipair",
|
|
171
|
+
"schema": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
}
|
|
156
174
|
}
|
|
157
175
|
],
|
|
158
176
|
"x-events": []
|
|
File without changes
|
|
File without changes
|