@promptbook/core 0.68.0 → 0.70.0-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/esm/index.es.js +126 -81
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/commands/FOREACH/ForeachCommand.d.ts +6 -1
- package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +2 -1
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +16 -1
- package/package.json +1 -1
- package/umd/index.umd.js +126 -81
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -10,7 +10,7 @@ import moment from 'moment';
|
|
|
10
10
|
/**
|
|
11
11
|
* The version of the Promptbook library
|
|
12
12
|
*/
|
|
13
|
-
var PROMPTBOOK_VERSION = '0.
|
|
13
|
+
var PROMPTBOOK_VERSION = '0.69.0-0';
|
|
14
14
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
15
15
|
|
|
16
16
|
/*! *****************************************************************************
|
|
@@ -1788,7 +1788,7 @@ function forEachAsync(array, options, callbackfunction) {
|
|
|
1788
1788
|
});
|
|
1789
1789
|
}
|
|
1790
1790
|
|
|
1791
|
-
var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.
|
|
1791
|
+
var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.69.0-0",parameters:[{name:"knowledgeContent",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledgePieces",description:"The knowledge JSON object",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {knowledgeContent}",resultingParameterName:"knowledgePieces",dependentParameterNames:["knowledgeContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.ptbk.md",promptbookVersion:"0.69.0-0",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {knowledgePieceContent}",resultingParameterName:"keywords",dependentParameterNames:["knowledgePieceContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.ptbk.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.ptbk.md",promptbookVersion:"0.69.0-0",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {knowledgePieceContent}",resultingParameterName:"title",expectations:{words:{min:1,max:8}},dependentParameterNames:["knowledgePieceContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-title.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-persona.ptbk.md",promptbookVersion:"0.69.0-0",parameters:[{name:"availableModelNames",description:"List of available model names separated by comma (,)",isInput:true,isOutput:false},{name:"personaDescription",description:"Description of the persona",isInput:true,isOutput:false},{name:"modelRequirements",description:"Specific requirements for the model",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"make-model-requirements",title:"Make modelRequirements",content:"You are experienced AI engineer, you need to create virtual assistant.\nWrite\n\n## Sample\n\n```json\n{\n\"modelName\": \"gpt-4o\",\n\"systemMessage\": \"You are experienced AI engineer and helpfull assistant.\",\n\"temperature\": 0.7\n}\n```\n\n## Instructions\n\n- Your output format is JSON object\n- Write just the JSON object, no other text should be present\n- It contains the following keys:\n - `modelName`: The name of the model to use\n - `systemMessage`: The system message to provide context to the model\n - `temperature`: The sampling temperature to use\n\n### Key `modelName`\n\nPick from the following models:\n\n- {availableModelNames}\n\n### Key `systemMessage`\n\nThe system message is used to communicate instructions or provide context to the model at the beginning of a conversation. It is displayed in a different format compared to user messages, helping the model understand its role in the conversation. The system message typically guides the model's behavior, sets the tone, or specifies desired output from the model. By utilizing the system message effectively, users can steer the model towards generating more accurate and relevant responses.\n\nFor example:\n\n> You are an experienced AI engineer and helpful assistant.\n\n> You are a friendly and knowledgeable chatbot.\n\n### Key `temperature`\n\nThe sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.\n\nYou can pick a value between 0 and 2. For example:\n\n- `0.1`: Low temperature, extremely conservative and deterministic\n- `0.5`: Medium temperature, balanced between conservative and creative\n- `1.0`: High temperature, creative and bit random\n- `1.5`: Very high temperature, extremely creative and often chaotic and unpredictable\n- `2.0`: Maximum temperature, completely random and unpredictable, for some extreme creative use cases\n\n# The assistant\n\nTake this description of the persona:\n\n> {personaDescription}",resultingParameterName:"modelRequirements",format:"JSON",dependentParameterNames:["availableModelNames","personaDescription"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-persona.ptbk.md"}];
|
|
1792
1792
|
|
|
1793
1793
|
var defaultDiacriticsRemovalMap = [
|
|
1794
1794
|
{
|
|
@@ -5193,6 +5193,76 @@ var expectCommandParser = {
|
|
|
5193
5193
|
},
|
|
5194
5194
|
};
|
|
5195
5195
|
|
|
5196
|
+
/**
|
|
5197
|
+
* @@@
|
|
5198
|
+
*
|
|
5199
|
+
* @param text @@@
|
|
5200
|
+
* @returns @@@
|
|
5201
|
+
* @example 'HELLO_WORLD'
|
|
5202
|
+
* @example 'I_LOVE_PROMPTBOOK'
|
|
5203
|
+
* @public exported from `@promptbook/utils`
|
|
5204
|
+
*/
|
|
5205
|
+
function normalizeTo_SCREAMING_CASE(text) {
|
|
5206
|
+
var e_1, _a;
|
|
5207
|
+
var charType;
|
|
5208
|
+
var lastCharType = 'OTHER';
|
|
5209
|
+
var normalizedName = '';
|
|
5210
|
+
try {
|
|
5211
|
+
for (var text_1 = __values(text), text_1_1 = text_1.next(); !text_1_1.done; text_1_1 = text_1.next()) {
|
|
5212
|
+
var char = text_1_1.value;
|
|
5213
|
+
var normalizedChar = void 0;
|
|
5214
|
+
if (/^[a-z]$/.test(char)) {
|
|
5215
|
+
charType = 'LOWERCASE';
|
|
5216
|
+
normalizedChar = char.toUpperCase();
|
|
5217
|
+
}
|
|
5218
|
+
else if (/^[A-Z]$/.test(char)) {
|
|
5219
|
+
charType = 'UPPERCASE';
|
|
5220
|
+
normalizedChar = char;
|
|
5221
|
+
}
|
|
5222
|
+
else if (/^[0-9]$/.test(char)) {
|
|
5223
|
+
charType = 'NUMBER';
|
|
5224
|
+
normalizedChar = char;
|
|
5225
|
+
}
|
|
5226
|
+
else if (/^\/$/.test(char)) {
|
|
5227
|
+
charType = 'SLASH';
|
|
5228
|
+
normalizedChar = char;
|
|
5229
|
+
}
|
|
5230
|
+
else {
|
|
5231
|
+
charType = 'OTHER';
|
|
5232
|
+
normalizedChar = '_';
|
|
5233
|
+
}
|
|
5234
|
+
if (charType !== lastCharType &&
|
|
5235
|
+
!(lastCharType === 'UPPERCASE' && charType === 'LOWERCASE') &&
|
|
5236
|
+
!(lastCharType === 'NUMBER') &&
|
|
5237
|
+
!(charType === 'NUMBER')) {
|
|
5238
|
+
normalizedName += '_';
|
|
5239
|
+
}
|
|
5240
|
+
normalizedName += normalizedChar;
|
|
5241
|
+
lastCharType = charType;
|
|
5242
|
+
}
|
|
5243
|
+
}
|
|
5244
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
5245
|
+
finally {
|
|
5246
|
+
try {
|
|
5247
|
+
if (text_1_1 && !text_1_1.done && (_a = text_1.return)) _a.call(text_1);
|
|
5248
|
+
}
|
|
5249
|
+
finally { if (e_1) throw e_1.error; }
|
|
5250
|
+
}
|
|
5251
|
+
normalizedName = normalizedName.replace(/_+/g, '_');
|
|
5252
|
+
normalizedName = normalizedName.replace(/_?\/_?/g, '/');
|
|
5253
|
+
normalizedName = normalizedName.replace(/^_/, '');
|
|
5254
|
+
normalizedName = normalizedName.replace(/_$/, '');
|
|
5255
|
+
return normalizedName;
|
|
5256
|
+
}
|
|
5257
|
+
/**
|
|
5258
|
+
* TODO: Tests
|
|
5259
|
+
* > expect(encodeRoutePath({ uriId: 'VtG7sR9rRJqwNEdM2', name: 'Moje tabule' })).toEqual('/VtG7sR9rRJqwNEdM2/Moje tabule');
|
|
5260
|
+
* > expect(encodeRoutePath({ uriId: 'VtG7sR9rRJqwNEdM2', name: 'ěščřžžýáíúů' })).toEqual('/VtG7sR9rRJqwNEdM2/escrzyaieuu');
|
|
5261
|
+
* > expect(encodeRoutePath({ uriId: 'VtG7sR9rRJqwNEdM2', name: ' ahoj ' })).toEqual('/VtG7sR9rRJqwNEdM2/ahoj');
|
|
5262
|
+
* > expect(encodeRoutePath({ uriId: 'VtG7sR9rRJqwNEdM2', name: ' ahoj_ahojAhoj ahoj ' })).toEqual('/VtG7sR9rRJqwNEdM2/ahoj-ahoj-ahoj-ahoj');
|
|
5263
|
+
* TODO: [🌺] Use some intermediate util splitWords
|
|
5264
|
+
*/
|
|
5265
|
+
|
|
5196
5266
|
/**
|
|
5197
5267
|
* Parses the foreach command
|
|
5198
5268
|
*
|
|
@@ -5230,17 +5300,59 @@ var foreachCommandParser = {
|
|
|
5230
5300
|
'FOREACH List Line -> `{customer}`',
|
|
5231
5301
|
'FOR List Line -> `{customer}`',
|
|
5232
5302
|
'EACH List Line -> `{customer}`',
|
|
5233
|
-
// <- TODO: [🍭] More
|
|
5303
|
+
// <- TODO: [🍭] !!!!!! More
|
|
5234
5304
|
],
|
|
5235
5305
|
/**
|
|
5236
5306
|
* Parses the FOREACH command
|
|
5237
5307
|
*/
|
|
5238
5308
|
parse: function (input) {
|
|
5239
|
-
var args = input.args;
|
|
5240
|
-
|
|
5241
|
-
|
|
5309
|
+
var args = input.args, rawArgs = input.rawArgs;
|
|
5310
|
+
var formatName = normalizeTo_SCREAMING_CASE(args[0] || '');
|
|
5311
|
+
var cellName = normalizeTo_SCREAMING_CASE(args[1] || '');
|
|
5312
|
+
var assignSign = args[2];
|
|
5313
|
+
var parameter = args[3];
|
|
5314
|
+
if (![
|
|
5315
|
+
'LIST',
|
|
5316
|
+
'CSV',
|
|
5317
|
+
// <- TODO: [🏢] Unhardcode formats
|
|
5318
|
+
].includes(formatName)) {
|
|
5319
|
+
console.info({ args: args, formatName: formatName });
|
|
5320
|
+
throw new Error("Unsupported format \"".concat(formatName, "\""));
|
|
5321
|
+
// <- TODO: [🏢] List all supported format names
|
|
5322
|
+
}
|
|
5323
|
+
if (![
|
|
5324
|
+
'LINE',
|
|
5325
|
+
'ROW',
|
|
5326
|
+
'COLUMN',
|
|
5327
|
+
'CELL',
|
|
5328
|
+
// <- TODO: [🏢] Unhardcode format cekks
|
|
5329
|
+
].includes(cellName)) {
|
|
5330
|
+
console.info({ args: args, cellName: cellName });
|
|
5331
|
+
throw new Error("Format ".concat(formatName, " does not support cell \"").concat(cellName, "\""));
|
|
5332
|
+
// <- TODO: [🏢] List all supported cell names for the format
|
|
5333
|
+
}
|
|
5334
|
+
if (assignSign !== '->') {
|
|
5335
|
+
console.info({ args: args, assignSign: assignSign });
|
|
5336
|
+
throw new Error("FOREACH command must have '->' to assign the value to the parameter");
|
|
5337
|
+
}
|
|
5338
|
+
var parameterNames = extractParameterNames(parameter || rawArgs);
|
|
5339
|
+
if (parameterNames.size !== 1) {
|
|
5340
|
+
console.info({ args: args, parameter: parameter, rawArgs: rawArgs });
|
|
5341
|
+
throw new Error("FOREACH command contain exactly one parameter, but found ".concat(parameterNames.size));
|
|
5342
|
+
}
|
|
5343
|
+
var parameterName = parameterNames.values().next().value;
|
|
5344
|
+
if (typeof parameterName !== 'string'
|
|
5345
|
+
// <- TODO: !!!!!! Replace with propper parameter name validation
|
|
5346
|
+
) {
|
|
5347
|
+
console.info({ args: args, parameterName: parameterName });
|
|
5348
|
+
throw new Error("Invalid parameter name");
|
|
5349
|
+
// <- TODO: !!!!!! Better error (with rules and precise error) from validateParameterName
|
|
5350
|
+
}
|
|
5242
5351
|
return {
|
|
5243
5352
|
type: 'FOREACH',
|
|
5353
|
+
formatName: formatName,
|
|
5354
|
+
cellName: cellName,
|
|
5355
|
+
parameterName: parameterName,
|
|
5244
5356
|
};
|
|
5245
5357
|
},
|
|
5246
5358
|
/**
|
|
@@ -5250,7 +5362,7 @@ var foreachCommandParser = {
|
|
|
5250
5362
|
*/
|
|
5251
5363
|
$applyToTemplateJson: function (command, $templateJson, $pipelineJson) {
|
|
5252
5364
|
keepUnused(command, $templateJson, $pipelineJson);
|
|
5253
|
-
// <- TODO: [🍭] Implement
|
|
5365
|
+
// <- TODO: [🍭] !!!!!! Implement
|
|
5254
5366
|
},
|
|
5255
5367
|
/**
|
|
5256
5368
|
* Converts the FOREACH command back to string
|
|
@@ -5260,7 +5372,7 @@ var foreachCommandParser = {
|
|
|
5260
5372
|
stringify: function (command) {
|
|
5261
5373
|
keepUnused(command);
|
|
5262
5374
|
return "";
|
|
5263
|
-
// <- TODO: [🍭] Implement
|
|
5375
|
+
// <- TODO: [🍭] !!!!!! Implement
|
|
5264
5376
|
},
|
|
5265
5377
|
/**
|
|
5266
5378
|
* Reads the FOREACH command from the `TemplateJson`
|
|
@@ -5270,11 +5382,12 @@ var foreachCommandParser = {
|
|
|
5270
5382
|
takeFromTemplateJson: function ($templateJson) {
|
|
5271
5383
|
keepUnused($templateJson);
|
|
5272
5384
|
return [];
|
|
5273
|
-
// <- TODO: [🍭] Implement
|
|
5385
|
+
// <- TODO: [🍭] !!!!!! Implement
|
|
5274
5386
|
},
|
|
5275
5387
|
};
|
|
5276
5388
|
/**
|
|
5277
|
-
* TODO:
|
|
5389
|
+
* TODO: !!!!!! Comment console logs
|
|
5390
|
+
* TODO: [🍭] !!!!!! Make .ptbk.md file with examples of the FOREACH command and also with wrong parsing and logic
|
|
5278
5391
|
*/
|
|
5279
5392
|
|
|
5280
5393
|
/**
|
|
@@ -5627,6 +5740,7 @@ var parameterCommandParser = {
|
|
|
5627
5740
|
isInput = false;
|
|
5628
5741
|
isOutput = false;
|
|
5629
5742
|
}
|
|
5743
|
+
// TODO: !!!!!! Add parameter name validation
|
|
5630
5744
|
return {
|
|
5631
5745
|
type: 'PARAMETER',
|
|
5632
5746
|
parameterName: parameterName,
|
|
@@ -6379,76 +6493,6 @@ function removeMarkdownFormatting(str) {
|
|
|
6379
6493
|
return str;
|
|
6380
6494
|
}
|
|
6381
6495
|
|
|
6382
|
-
/**
|
|
6383
|
-
* @@@
|
|
6384
|
-
*
|
|
6385
|
-
* @param text @@@
|
|
6386
|
-
* @returns @@@
|
|
6387
|
-
* @example 'HELLO_WORLD'
|
|
6388
|
-
* @example 'I_LOVE_PROMPTBOOK'
|
|
6389
|
-
* @public exported from `@promptbook/utils`
|
|
6390
|
-
*/
|
|
6391
|
-
function normalizeTo_SCREAMING_CASE(text) {
|
|
6392
|
-
var e_1, _a;
|
|
6393
|
-
var charType;
|
|
6394
|
-
var lastCharType = 'OTHER';
|
|
6395
|
-
var normalizedName = '';
|
|
6396
|
-
try {
|
|
6397
|
-
for (var text_1 = __values(text), text_1_1 = text_1.next(); !text_1_1.done; text_1_1 = text_1.next()) {
|
|
6398
|
-
var char = text_1_1.value;
|
|
6399
|
-
var normalizedChar = void 0;
|
|
6400
|
-
if (/^[a-z]$/.test(char)) {
|
|
6401
|
-
charType = 'LOWERCASE';
|
|
6402
|
-
normalizedChar = char.toUpperCase();
|
|
6403
|
-
}
|
|
6404
|
-
else if (/^[A-Z]$/.test(char)) {
|
|
6405
|
-
charType = 'UPPERCASE';
|
|
6406
|
-
normalizedChar = char;
|
|
6407
|
-
}
|
|
6408
|
-
else if (/^[0-9]$/.test(char)) {
|
|
6409
|
-
charType = 'NUMBER';
|
|
6410
|
-
normalizedChar = char;
|
|
6411
|
-
}
|
|
6412
|
-
else if (/^\/$/.test(char)) {
|
|
6413
|
-
charType = 'SLASH';
|
|
6414
|
-
normalizedChar = char;
|
|
6415
|
-
}
|
|
6416
|
-
else {
|
|
6417
|
-
charType = 'OTHER';
|
|
6418
|
-
normalizedChar = '_';
|
|
6419
|
-
}
|
|
6420
|
-
if (charType !== lastCharType &&
|
|
6421
|
-
!(lastCharType === 'UPPERCASE' && charType === 'LOWERCASE') &&
|
|
6422
|
-
!(lastCharType === 'NUMBER') &&
|
|
6423
|
-
!(charType === 'NUMBER')) {
|
|
6424
|
-
normalizedName += '_';
|
|
6425
|
-
}
|
|
6426
|
-
normalizedName += normalizedChar;
|
|
6427
|
-
lastCharType = charType;
|
|
6428
|
-
}
|
|
6429
|
-
}
|
|
6430
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
6431
|
-
finally {
|
|
6432
|
-
try {
|
|
6433
|
-
if (text_1_1 && !text_1_1.done && (_a = text_1.return)) _a.call(text_1);
|
|
6434
|
-
}
|
|
6435
|
-
finally { if (e_1) throw e_1.error; }
|
|
6436
|
-
}
|
|
6437
|
-
normalizedName = normalizedName.replace(/_+/g, '_');
|
|
6438
|
-
normalizedName = normalizedName.replace(/_?\/_?/g, '/');
|
|
6439
|
-
normalizedName = normalizedName.replace(/^_/, '');
|
|
6440
|
-
normalizedName = normalizedName.replace(/_$/, '');
|
|
6441
|
-
return normalizedName;
|
|
6442
|
-
}
|
|
6443
|
-
/**
|
|
6444
|
-
* TODO: Tests
|
|
6445
|
-
* > expect(encodeRoutePath({ uriId: 'VtG7sR9rRJqwNEdM2', name: 'Moje tabule' })).toEqual('/VtG7sR9rRJqwNEdM2/Moje tabule');
|
|
6446
|
-
* > expect(encodeRoutePath({ uriId: 'VtG7sR9rRJqwNEdM2', name: 'ěščřžžýáíúů' })).toEqual('/VtG7sR9rRJqwNEdM2/escrzyaieuu');
|
|
6447
|
-
* > expect(encodeRoutePath({ uriId: 'VtG7sR9rRJqwNEdM2', name: ' ahoj ' })).toEqual('/VtG7sR9rRJqwNEdM2/ahoj');
|
|
6448
|
-
* > expect(encodeRoutePath({ uriId: 'VtG7sR9rRJqwNEdM2', name: ' ahoj_ahojAhoj ahoj ' })).toEqual('/VtG7sR9rRJqwNEdM2/ahoj-ahoj-ahoj-ahoj');
|
|
6449
|
-
* TODO: [🌺] Use some intermediate util splitWords
|
|
6450
|
-
*/
|
|
6451
|
-
|
|
6452
6496
|
/**
|
|
6453
6497
|
* Parses one line of ul/ol to command
|
|
6454
6498
|
*
|
|
@@ -6461,6 +6505,7 @@ function parseCommand(raw, usagePlace) {
|
|
|
6461
6505
|
if (raw.includes('\n') || raw.includes('\r')) {
|
|
6462
6506
|
throw new ParseError('Command can not contain new line characters' /* <- TODO: [🚞] */);
|
|
6463
6507
|
}
|
|
6508
|
+
// TODO: Unit test all this processing and parsing
|
|
6464
6509
|
var normalized = raw.trim();
|
|
6465
6510
|
normalized = normalized.split('`').join('');
|
|
6466
6511
|
normalized = normalized.split('"').join('');
|
|
@@ -6516,7 +6561,7 @@ function parseCommand(raw, usagePlace) {
|
|
|
6516
6561
|
// Arg1 Arg2 Arg3 | FOO
|
|
6517
6562
|
{
|
|
6518
6563
|
var commandNameRaw = items.slice(-1).join('_');
|
|
6519
|
-
var args = items.slice(0, -1);
|
|
6564
|
+
var args = items.slice(0, -1); // <- Note: This is probbably not correct
|
|
6520
6565
|
var rawArgs = raw.substring(0, raw.length - commandNameRaw.length).trim();
|
|
6521
6566
|
var command = parseCommandVariant({ usagePlace: usagePlace, raw: raw, rawArgs: rawArgs, normalized: normalized, args: args, commandNameRaw: commandNameRaw });
|
|
6522
6567
|
if (command !== null) {
|