json-object-editor 0.10.653 → 0.10.657
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/CHANGELOG.md +47 -1
- package/_www/mcp-test.html +287 -276
- package/css/joe-ai.css +1 -1
- package/css/joe-styles.css +56 -1
- package/css/joe.css +57 -2
- package/css/joe.min.css +1 -1
- package/js/JsonObjectEditor.jquery.craydent.js +152 -17
- package/js/joe-ai.js +2075 -1825
- package/js/joe.js +153 -18
- package/js/joe.min.js +1 -1
- package/package.json +1 -1
- package/readme.md +74 -4
- package/server/fields/core.js +54 -6
- package/server/modules/MCP.js +1364 -1237
- package/server/modules/Sites.js +79 -0
- package/server/modules/Storage.js +28 -1
- package/server/modules/ThoughtPipeline.js +6 -0
- package/server/plugins/awsConnect.js +31 -1
- package/server/plugins/chatgpt.js +1732 -1339
- package/server/schemas/ai_prompt.js +389 -322
- package/server/schemas/ai_response.js +414 -365
- package/server/schemas/status.js +12 -2
- package/server/schemas/task.js +9 -3
package/server/schemas/status.js
CHANGED
|
@@ -67,7 +67,15 @@ var schema = {
|
|
|
67
67
|
return false;
|
|
68
68
|
|
|
69
69
|
},
|
|
70
|
-
subsets:function(){
|
|
70
|
+
subsets:function(){//active, inactive, terminal, default
|
|
71
|
+
return [
|
|
72
|
+
{name:'active',filter:{active:true}},
|
|
73
|
+
{name:'inactive',filter:{inactive:true}},
|
|
74
|
+
{name:'terminal',filter:{terminal:true}},
|
|
75
|
+
{name:'default',filter:{default:true}}
|
|
76
|
+
];
|
|
77
|
+
},
|
|
78
|
+
filters:function(){
|
|
71
79
|
var schemas = [];
|
|
72
80
|
var subs = [];
|
|
73
81
|
_joe.current.list.map(function(status){
|
|
@@ -83,7 +91,9 @@ var schema = {
|
|
|
83
91
|
'name',
|
|
84
92
|
'info',
|
|
85
93
|
'description',
|
|
86
|
-
'color:color',
|
|
94
|
+
{name:'color',type:'color',comment:'hex or html color code',reloadable:true,
|
|
95
|
+
ai:{prompt:'generate a hex color code for this status. prioritise the name and info fields for context. Override with a color name is one is set.'}
|
|
96
|
+
},
|
|
87
97
|
{ name: "index", type: "number", display: "Ordering Index", comment: "Optional manual ordering index for lists and workflows. Lower values appear first.", width:'50%' },
|
|
88
98
|
|
|
89
99
|
{ name: "code", type: "text", display: "System Code", comment: "Machine-usable, human-readable identifier for database/API use. Use lowercase with underscores.", width:'50%' },
|
package/server/schemas/task.js
CHANGED
|
@@ -178,12 +178,16 @@ var task = function(){return{
|
|
|
178
178
|
fields:function(){
|
|
179
179
|
var fields = [
|
|
180
180
|
{sidebar_start:'left'},
|
|
181
|
-
{section_start:'
|
|
181
|
+
{section_start:'ai_chat', anchor:'AiChat'},
|
|
182
182
|
"objectChat",
|
|
183
183
|
"listConversations",
|
|
184
|
+
{section_end:'ai_chat'},
|
|
185
|
+
{section_start:'ai_thoughts', anchor:'AiThoughts'},
|
|
184
186
|
'proposeThought',
|
|
187
|
+
{section_end:'ai_thoughts'},
|
|
188
|
+
{section_start:'ai_responses', anchor:'AiResponses',collapsed:true},
|
|
185
189
|
'ai_responses',
|
|
186
|
-
{section_end:'
|
|
190
|
+
{section_end:'ai_responses'},
|
|
187
191
|
{sidebar_end:'left'},
|
|
188
192
|
{section_start:'overview'},
|
|
189
193
|
'name',
|
|
@@ -250,7 +254,9 @@ var task = function(){return{
|
|
|
250
254
|
{section_start:'acceptance',collapsed:function(item){
|
|
251
255
|
return !(item.scceptance_criteria && item.scceptance_criteria.length);
|
|
252
256
|
}},
|
|
253
|
-
{name:'
|
|
257
|
+
{name:'acceptance_criteria',display:'acceptance criteria',type:'objectList',label:false,value:function(item){
|
|
258
|
+
return item.scceptance_criteria || [];
|
|
259
|
+
},
|
|
254
260
|
template:function(obj,subobj){
|
|
255
261
|
var done = (subobj.sub_complete)?'joe-strike':'';
|
|
256
262
|
return '<joe-title class="'+done+'">${criteria}</joe-title>' ;
|