@rogatio/cli 5.1.0 → 5.2.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/dist/editor/index.js +5 -11
- package/dist/node/index.js +19225 -37
- package/package.json +1 -1
package/dist/editor/index.js
CHANGED
|
@@ -215,7 +215,7 @@ var HTTP_METHODS = Object.freeze([
|
|
|
215
215
|
]);
|
|
216
216
|
|
|
217
217
|
// packages/editor/src/ai-assist-panel.ts
|
|
218
|
-
function createAIAssistPanel(_container,
|
|
218
|
+
function createAIAssistPanel(_container, _editor, onApply, onClose) {
|
|
219
219
|
let visible = false;
|
|
220
220
|
let streamingContent = "";
|
|
221
221
|
let streamingMessageIndex = -1;
|
|
@@ -537,13 +537,6 @@ function createAIAssistPanel(_container, editor, onApply, onClose) {
|
|
|
537
537
|
function handleSend() {
|
|
538
538
|
const prompt = textarea.value.trim();
|
|
539
539
|
if (!prompt) return;
|
|
540
|
-
const _request = {
|
|
541
|
-
kind: "generate",
|
|
542
|
-
prompt,
|
|
543
|
-
context: {
|
|
544
|
-
project: editor.getDraft()
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
540
|
textarea.value = "";
|
|
548
541
|
textarea.style.height = "auto";
|
|
549
542
|
}
|
|
@@ -2586,8 +2579,8 @@ var EditorControllerImpl = class {
|
|
|
2586
2579
|
id: ruleId,
|
|
2587
2580
|
name: ruleProposal.name,
|
|
2588
2581
|
urlRegex: ruleProposal.urlRegex,
|
|
2589
|
-
origins: ruleProposal.origins
|
|
2590
|
-
resourceTypes: ruleProposal.resourceTypes
|
|
2582
|
+
origins: ruleProposal.origins ? [...ruleProposal.origins] : [],
|
|
2583
|
+
resourceTypes: ruleProposal.resourceTypes ? [...ruleProposal.resourceTypes] : ["main_frame"],
|
|
2591
2584
|
priority: ruleProposal.priority ?? 100
|
|
2592
2585
|
};
|
|
2593
2586
|
if (ruleProposal.method) {
|
|
@@ -2597,9 +2590,10 @@ var EditorControllerImpl = class {
|
|
|
2597
2590
|
rule[actionField] = ruleProposal.action;
|
|
2598
2591
|
group.rules.push(rule);
|
|
2599
2592
|
this.markChanged();
|
|
2593
|
+
const groupIdStr = String(group.id);
|
|
2600
2594
|
this.focusRequest = pointer(
|
|
2601
2595
|
"groups",
|
|
2602
|
-
this.groupIndex(
|
|
2596
|
+
this.groupIndex(groupIdStr),
|
|
2603
2597
|
"rules",
|
|
2604
2598
|
group.rules.length - 1,
|
|
2605
2599
|
"name"
|