cpee 2.1.127 → 2.1.128
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.
- checksums.yaml +4 -4
- data/cockpit/js/instance.js +51 -51
- data/cockpit/llmmodel.html +2 -1
- data/cpee.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bcd03c0a07a2a1e264b5d3f8470ab2b0c1f9e6603b02e9c3448493cf6410d717
|
|
4
|
+
data.tar.gz: 4c38994ad48fa9703749b8d675bfa657cbac4f34e31ec17cce66405b486c5ae4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 488800a06b5b45929a7b6f0dbad7300d6bdd77c4f7f3865d8e4968e5c3b197243d791346394bc7bbe320b9ece2bd56bb8a675982a7b58a1003a966b1b3fb18be
|
|
7
|
+
data.tar.gz: 6225dabee23d8f553b3fb02595995fbc44774d993735e6171ddd6d8961e2035d7e9a547b16395a9bf5dc6d7a5defe762fbdbbce7bdf20d51b06489c6d8f06fb4
|
data/cockpit/js/instance.js
CHANGED
|
@@ -95,6 +95,47 @@ var sub_less = 'topic' + '=' + 'activity' + '&' +// {{{
|
|
|
95
95
|
'topic' + '=' + 'handlers' + '&' +
|
|
96
96
|
'events' + '=' + 'change';// }}}
|
|
97
97
|
|
|
98
|
+
function sanitize_url(url) { //{{{
|
|
99
|
+
var lastChar = url.substr(url.length - 1)
|
|
100
|
+
if (lastChar != '/') {
|
|
101
|
+
url = (url + '/');
|
|
102
|
+
}
|
|
103
|
+
return url;
|
|
104
|
+
}
|
|
105
|
+
//}}}
|
|
106
|
+
function translate_endpoint(ep) { //{{{
|
|
107
|
+
return ep.replace(/\{[^\/\}]+\}/g,'*');
|
|
108
|
+
} //}}}
|
|
109
|
+
function get_resource(base, key, loc, cache) { //{{{
|
|
110
|
+
cache[key] = {};
|
|
111
|
+
let deferreds = [new $.Deferred(), new $.Deferred(), new $.Deferred()];
|
|
112
|
+
$.ajax({
|
|
113
|
+
url: base + 'endpoints/' + encodeURIComponent(translate_endpoint(loc)) + "/symbol.svg",
|
|
114
|
+
success: function(res) {
|
|
115
|
+
cache[key]['symbol'] = res;
|
|
116
|
+
deferreds[0].resolve(true);
|
|
117
|
+
},
|
|
118
|
+
error: deferreds[0].resolve
|
|
119
|
+
})
|
|
120
|
+
$.ajax({
|
|
121
|
+
url: base + 'endpoints/' + encodeURIComponent(translate_endpoint(loc)) + "/schema.rng",
|
|
122
|
+
success: function(res) {
|
|
123
|
+
cache[key]['schema'] = res;
|
|
124
|
+
deferreds[1].resolve(true);
|
|
125
|
+
},
|
|
126
|
+
error: deferreds[1].resolve
|
|
127
|
+
})
|
|
128
|
+
$.ajax({
|
|
129
|
+
url: base + 'endpoints/' + encodeURIComponent(translate_endpoint(loc)) + "/properties.json",
|
|
130
|
+
success: function(res) {
|
|
131
|
+
cache[key]['properties'] = res;
|
|
132
|
+
deferreds[2].resolve(true);
|
|
133
|
+
},
|
|
134
|
+
error: deferreds[2].resolve
|
|
135
|
+
})
|
|
136
|
+
return deferreds;
|
|
137
|
+
} //}}}
|
|
138
|
+
|
|
98
139
|
function cockpit() { //{{{
|
|
99
140
|
$("button[name=base]").click(function(){ create_instance($("input[name=base-url]").val(),null,false,false); });
|
|
100
141
|
$("button[name=instance]").click(function(){ uidash_activate_tab("#tabinstance"); monitor_instance($("input[name=instance-url]").val(),$("input[name=res-url]").val(),false,false); });
|
|
@@ -229,14 +270,6 @@ function cockpit() { //{{{
|
|
|
229
270
|
});
|
|
230
271
|
} //}}}
|
|
231
272
|
|
|
232
|
-
function sanitize_url(url) { //{{{
|
|
233
|
-
var lastChar = url.substr(url.length - 1)
|
|
234
|
-
if (lastChar != '/') {
|
|
235
|
-
url = (url + '/');
|
|
236
|
-
}
|
|
237
|
-
return url;
|
|
238
|
-
}
|
|
239
|
-
//}}}
|
|
240
273
|
function check_subscription() { // {{{
|
|
241
274
|
var url = $('body').attr('current-instance');
|
|
242
275
|
var num = 0;
|
|
@@ -326,6 +359,7 @@ async function sse() { //{{{
|
|
|
326
359
|
break;
|
|
327
360
|
case 'description':
|
|
328
361
|
monitor_instance_dsl();
|
|
362
|
+
monitor_graph_change(false);
|
|
329
363
|
break;
|
|
330
364
|
case 'endpoints':
|
|
331
365
|
monitor_instance_values("endpoints");
|
|
@@ -373,6 +407,7 @@ async function sse() { //{{{
|
|
|
373
407
|
await monitor_instance_values("attributes"); // attributes first, to catch the <resources> attribute which overrides current-resources
|
|
374
408
|
monitor_instance_values("dataelements");
|
|
375
409
|
monitor_instance_dsl();
|
|
410
|
+
monitor_graph_change(false);
|
|
376
411
|
monitor_instance_state();
|
|
377
412
|
} //}}}
|
|
378
413
|
|
|
@@ -453,40 +488,6 @@ function monitor_instance(cin,rep,load,exec) {// {{{
|
|
|
453
488
|
});
|
|
454
489
|
}// }}}
|
|
455
490
|
|
|
456
|
-
function translate_endpoint(ep) {
|
|
457
|
-
return ep.replace(/\{[^\/\}]+\}/g,'*');
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
function get_resource(base, key, loc, cache) {
|
|
461
|
-
cache[key] = {};
|
|
462
|
-
let deferreds = [new $.Deferred(), new $.Deferred(), new $.Deferred()];
|
|
463
|
-
$.ajax({
|
|
464
|
-
url: base + 'endpoints/' + encodeURIComponent(translate_endpoint(loc)) + "/symbol.svg",
|
|
465
|
-
success: function(res) {
|
|
466
|
-
cache[key]['symbol'] = res;
|
|
467
|
-
deferreds[0].resolve(true);
|
|
468
|
-
},
|
|
469
|
-
error: deferreds[0].resolve
|
|
470
|
-
})
|
|
471
|
-
$.ajax({
|
|
472
|
-
url: base + 'endpoints/' + encodeURIComponent(translate_endpoint(loc)) + "/schema.rng",
|
|
473
|
-
success: function(res) {
|
|
474
|
-
cache[key]['schema'] = res;
|
|
475
|
-
deferreds[1].resolve(true);
|
|
476
|
-
},
|
|
477
|
-
error: deferreds[1].resolve
|
|
478
|
-
})
|
|
479
|
-
$.ajax({
|
|
480
|
-
url: base + 'endpoints/' + encodeURIComponent(translate_endpoint(loc)) + "/properties.json",
|
|
481
|
-
success: function(res) {
|
|
482
|
-
cache[key]['properties'] = res;
|
|
483
|
-
deferreds[2].resolve(true);
|
|
484
|
-
},
|
|
485
|
-
error: deferreds[2].resolve
|
|
486
|
-
})
|
|
487
|
-
return deferreds;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
491
|
function monitor_instance_values(type,vals) {// {{{
|
|
491
492
|
if (type == "dataelements" && save['state'] == "running") {
|
|
492
493
|
let de = save[type].save();
|
|
@@ -771,7 +772,6 @@ function monitor_instance_dsl() {// {{{
|
|
|
771
772
|
res = res.replace(/activity\s+\[:([A-Za-z][a-zA-Z0-9_]+)([^\]]*\])/g,"<span class='activities' id=\"activity-$1\">activity [:$1$2</span>");
|
|
772
773
|
|
|
773
774
|
ctv.append(res);
|
|
774
|
-
monitor_graph_change(false);
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
});
|
|
@@ -1600,9 +1600,7 @@ function append_to_log(what,type,message) {//{{{
|
|
|
1600
1600
|
}
|
|
1601
1601
|
}//}}}
|
|
1602
1602
|
|
|
1603
|
-
function
|
|
1604
|
-
|
|
1605
|
-
function ui_pos(e,bl) {
|
|
1603
|
+
function ui_pos(e,bl) { //{{{
|
|
1606
1604
|
var url = $('body').attr('current-instance');
|
|
1607
1605
|
var coll = [];
|
|
1608
1606
|
$('g.element.primitive > g.activities.active, g.element.primitive > g.activities.passive').each(function(a,b){
|
|
@@ -1626,16 +1624,18 @@ function ui_pos(e,bl) {
|
|
|
1626
1624
|
success: monitor_instance_pos,
|
|
1627
1625
|
error: report_failure
|
|
1628
1626
|
});
|
|
1629
|
-
}
|
|
1630
|
-
function del_ui_pos(e) {
|
|
1627
|
+
} //}}}
|
|
1628
|
+
function del_ui_pos(e) { //{{{
|
|
1631
1629
|
ui_pos(e,function(coll){
|
|
1632
1630
|
coll.splice(coll.findIndex((ele)=>ele[0] == $(e).attr('id')),1);
|
|
1633
1631
|
return coll;
|
|
1634
1632
|
});
|
|
1635
|
-
}
|
|
1636
|
-
function add_ui_pos(e) {
|
|
1633
|
+
} //}}}
|
|
1634
|
+
function add_ui_pos(e) { //{{{
|
|
1637
1635
|
ui_pos(e,function(coll){
|
|
1638
1636
|
coll.push([$(e).attr('id'), e.nodeName == 'stop' ? 'after' : 'at']);
|
|
1639
1637
|
return coll;
|
|
1640
1638
|
});
|
|
1641
|
-
}
|
|
1639
|
+
} //}}}
|
|
1640
|
+
|
|
1641
|
+
function report_failure(){}
|
data/cockpit/llmmodel.html
CHANGED
|
@@ -178,7 +178,8 @@
|
|
|
178
178
|
<option value="dataflow">Model and Dataflow</option>
|
|
179
179
|
</select>
|
|
180
180
|
<select name="mode" id="mode" class='hidden'>
|
|
181
|
-
<option value="
|
|
181
|
+
<option value="noendpoints_docdescription" selected="selected">Generate/Adapt DocDescription</option>
|
|
182
|
+
<option value="noendpoints">Generate/Adapt from Scratch</option>
|
|
182
183
|
<option value="endpoints">Generate/Adapt with Endpoint Knowledge</option>
|
|
183
184
|
</select>
|
|
184
185
|
<button id='prompt_submit_button' title="CTRL-ENTER to Submit" class="llm_button small">➤</button>
|
data/cpee.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "cpee"
|
|
3
|
-
s.version = "2.1.
|
|
3
|
+
s.version = "2.1.128"
|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
|
5
5
|
s.license = "LGPL-3.0-or-later"
|
|
6
6
|
s.summary = "The cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
|