@promptbook/remote-server 0.8.0 โ†’ 0.10.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.
Files changed (37) hide show
  1. package/esm/index.es.js +2 -1
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/_packages/core.index.d.ts +2 -2
  4. package/esm/typings/_packages/types.index.d.ts +2 -2
  5. package/esm/typings/classes/PromptTemplatePipeline.d.ts +9 -9
  6. package/esm/typings/classes/PromptTemplatePipelineLibrary.d.ts +5 -4
  7. package/esm/typings/config.d.ts +1 -1
  8. package/esm/typings/conversion/_importPtp.d.ts +2 -2
  9. package/esm/typings/conversion/validatePromptTemplatePipelineJson.d.ts +1 -1
  10. package/esm/typings/execution/plugins/natural-execution-tools/remote/createRemoteServer.d.ts +1 -0
  11. package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions.d.ts +1 -1
  12. package/esm/typings/types/Command.d.ts +7 -7
  13. package/esm/typings/types/ModelRequirements.d.ts +4 -0
  14. package/esm/typings/types/Prompt.d.ts +4 -4
  15. package/esm/typings/types/PromptTemplatePipelineJson/PromptTemplateJson.d.ts +1 -1
  16. package/esm/typings/types/PromptTemplatePipelineJson/PromptTemplatePipelineJson.d.ts +7 -7
  17. package/esm/typings/types/PromptTemplatePipelineString.d.ts +2 -2
  18. package/esm/typings/types/typeAliases.d.ts +4 -20
  19. package/package.json +2 -2
  20. package/umd/index.umd.js +3 -2
  21. package/umd/index.umd.js.map +1 -1
  22. package/umd/typings/_packages/core.index.d.ts +2 -2
  23. package/umd/typings/_packages/types.index.d.ts +2 -2
  24. package/umd/typings/classes/PromptTemplatePipeline.d.ts +9 -9
  25. package/umd/typings/classes/PromptTemplatePipelineLibrary.d.ts +5 -4
  26. package/umd/typings/config.d.ts +1 -1
  27. package/umd/typings/conversion/_importPtp.d.ts +2 -2
  28. package/umd/typings/conversion/validatePromptTemplatePipelineJson.d.ts +1 -1
  29. package/umd/typings/execution/plugins/natural-execution-tools/remote/createRemoteServer.d.ts +1 -0
  30. package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions.d.ts +1 -1
  31. package/umd/typings/types/Command.d.ts +7 -7
  32. package/umd/typings/types/ModelRequirements.d.ts +4 -0
  33. package/umd/typings/types/Prompt.d.ts +4 -4
  34. package/umd/typings/types/PromptTemplatePipelineJson/PromptTemplateJson.d.ts +1 -1
  35. package/umd/typings/types/PromptTemplatePipelineJson/PromptTemplatePipelineJson.d.ts +7 -7
  36. package/umd/typings/types/PromptTemplatePipelineString.d.ts +2 -2
  37. package/umd/typings/types/typeAliases.d.ts +4 -20
package/esm/index.es.js CHANGED
@@ -66,7 +66,7 @@ function __generator(thisArg, body) {
66
66
  */
67
67
  function createRemoteServer(options) {
68
68
  var _this = this;
69
- var port = options.port, /* [๐ŸŽ›] ptpLibrary, */ createNaturalExecutionTools = options.createNaturalExecutionTools, isVerbose = options.isVerbose;
69
+ var port = options.port, /* [๐ŸŽ›] ptbkLibrary, */ createNaturalExecutionTools = options.createNaturalExecutionTools, isVerbose = options.isVerbose;
70
70
  var httpServer = http.createServer({}, function (request, response) {
71
71
  var _a;
72
72
  if ((_a = request.url) === null || _a === void 0 ? void 0 : _a.includes('socket.io')) {
@@ -150,6 +150,7 @@ function createRemoteServer(options) {
150
150
  }
151
151
  }
152
152
  /**
153
+ * TODO: !!! This should be name runRemoteServer OR startRemoteServer and return Destroyable OR Promise<Destroyable>
153
154
  * TODO: Handle progress - support streaming
154
155
  * TODO: [๐Ÿคนโ€โ™‚๏ธ] Do not hang up immediately but wait until client closes OR timeout
155
156
  * TODO: [๐Ÿคนโ€โ™‚๏ธ] Timeout on chat to free up resources
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../src/execution/plugins/natural-execution-tools/remote/createRemoteServer.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuDA;AACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EA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../node_modules/tslib/tslib.es6.js","../../../src/execution/plugins/natural-execution-tools/remote/createRemoteServer.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuDA;AACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE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AAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;KACxD;AACL,CAAC;AAED;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { PromptTemplatePipeline } from '../classes/PromptTemplatePipeline';
2
2
  import { PromptTemplatePipelineLibrary } from '../classes/PromptTemplatePipelineLibrary';
3
- import { PTP_VERSION } from '../config';
3
+ import { PTBK_VERSION } from '../config';
4
4
  import { promptTemplatePipelineStringToJson } from '../conversion/promptTemplatePipelineStringToJson';
5
5
  import { validatePromptTemplatePipelineJson } from '../conversion/validatePromptTemplatePipelineJson';
6
6
  import { createPtpExecutor } from '../execution/createPtpExecutor';
@@ -9,7 +9,7 @@ import { CallbackInterfaceTools } from '../execution/plugins/user-interface-exec
9
9
  import { CallbackInterfaceToolsOptions } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions';
10
10
  import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools';
11
11
  import { ExecutionTypes } from '../types/ExecutionTypes';
12
- export { ExecutionTypes, PTP_VERSION, PromptTemplatePipeline, PromptTemplatePipelineLibrary };
12
+ export { ExecutionTypes, PTBK_VERSION, PromptTemplatePipeline, PromptTemplatePipelineLibrary };
13
13
  export { SimplePromptInterfaceTools };
14
14
  export { promptTemplatePipelineStringToJson, validatePromptTemplatePipelineJson };
15
15
  export { MockedEchoNaturalExecutionTools };
@@ -16,5 +16,5 @@ import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineStr
16
16
  import { ScriptLanguage } from '../types/ScriptLanguage';
17
17
  import { DoneTaskProgress, PendingTaskProgress, TaskProgress } from '../types/TaskProgress';
18
18
  import { string_char_emoji } from '../types/typeAliasEmoji';
19
- import { ILicense, IPersonProfile, IRepository, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_cursor, string_css_property, string_css_selector, string_css_value, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_image_prompt, string_javascript, string_javascript_name, string_license, string_license_token, string_markdown, string_markdown_text, string_midjourney_prompt, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptp_url, string_ptp_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment } from '../types/typeAliases';
20
- export { CommonExecutionToolsOptions, DoneTaskProgress, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, PendingTaskProgress, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptTemplatePipelineJson, PromptTemplatePipelineString, PtpExecutor, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_char_emoji, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_cursor, string_css_property, string_css_selector, string_css_value, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_image_prompt, string_javascript, string_javascript_name, string_license, string_license_token, string_markdown, string_markdown_text, string_midjourney_prompt, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptp_url, string_ptp_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment, };
19
+ import { ILicense, IPersonProfile, IRepository, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_property, string_css_selector, string_css_value, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_license_token, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptbk_url, string_ptbk_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment } from '../types/typeAliases';
20
+ export { CommonExecutionToolsOptions, DoneTaskProgress, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, PendingTaskProgress, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptTemplatePipelineJson, PromptTemplatePipelineString, PtpExecutor, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_char_emoji, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_property, string_css_selector, string_css_value, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_license_token, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptbk_url, string_ptbk_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment, };
@@ -8,14 +8,14 @@ import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineStr
8
8
  * It represents a series of prompt templates chained together to form a pipeline / one big prompt template with input and result parameters.
9
9
  *
10
10
  * It can have 3 formats:
11
- * - **.ptp.md file** in custom markdown format described above
12
- * - **JSON** format, parsed from the .ptp.md file
11
+ * - **.ptbk.md file** in custom markdown format described above
12
+ * - **JSON** format, parsed from the .ptbk.md file
13
13
  * - _(this)_ **Object** which is created from JSON format and bound with tools around (but not the execution logic)
14
14
  *
15
15
  * @see https://github.com/webgptorg/promptbook#prompt-template-pipeline
16
16
  */
17
17
  export declare class PromptTemplatePipeline {
18
- readonly ptpUrl: URL | null;
18
+ readonly ptbkUrl: URL | null;
19
19
  readonly parameters: Record<string_name, PromptTemplateParameterJson>;
20
20
  readonly promptTemplates: Array<PromptTemplateJson>;
21
21
  /**
@@ -23,28 +23,28 @@ export declare class PromptTemplatePipeline {
23
23
  *
24
24
  * Note: During the construction syntax and logic of source is validated
25
25
  *
26
- * @param source content of .ptp.md or .ptp.json file
26
+ * @param source content of .ptbk.md or .ptbk.json file
27
27
  * @returns PromptTemplatePipeline
28
28
  */
29
- static fromSource(ptpSource: PromptTemplatePipelineString | PromptTemplatePipelineJson): PromptTemplatePipeline;
29
+ static fromSource(ptbkSource: PromptTemplatePipelineString | PromptTemplatePipelineJson): PromptTemplatePipeline;
30
30
  /**
31
31
  * Constructs PromptTemplatePipeline from markdown source
32
32
  *
33
33
  * Note: During the construction syntax and logic of source is validated
34
34
  *
35
- * @param ptpString content of .ptp.md file
35
+ * @param ptbkString content of .ptbk.md file
36
36
  * @returns PromptTemplatePipeline
37
37
  */
38
- static fromString(ptpString: PromptTemplatePipelineString): PromptTemplatePipeline;
38
+ static fromString(ptbkString: PromptTemplatePipelineString): PromptTemplatePipeline;
39
39
  /**
40
40
  * Constructs PromptTemplatePipeline from JSON source
41
41
  *
42
42
  * Note: During the construction the source is logic validated
43
43
  *
44
- * @param ptpjson content of .ptp.json file parsed into JSON
44
+ * @param ptbkjson content of .ptbk.json file parsed into JSON
45
45
  * @returns PromptTemplatePipeline
46
46
  */
47
- static fromJson(ptpjson: PromptTemplatePipelineJson): PromptTemplatePipeline;
47
+ static fromJson(ptbkjson: PromptTemplatePipelineJson): PromptTemplatePipeline;
48
48
  private constructor();
49
49
  /**
50
50
  * Returns the first prompt template in the pipeline
@@ -20,12 +20,12 @@ export declare class PromptTemplatePipelineLibrary {
20
20
  * Constructs PromptTemplatePipeline from any sources
21
21
  *
22
22
  * Note: During the construction syntax and logic of all sources are validated
23
- * Note: You can combine .ptp.md and .ptp.json files BUT it is not recommended
23
+ * Note: You can combine .ptbk.md and .ptbk.json files BUT it is not recommended
24
24
  *
25
- * @param ptpSources contents of .ptp.md or .ptp.json files
25
+ * @param ptbkSources contents of .ptbk.md or .ptbk.json files
26
26
  * @returns PromptTemplatePipelineLibrary
27
27
  */
28
- static fromSources(ptpSources: Record<string_name, PromptTemplatePipelineJson | PromptTemplatePipelineString>): PromptTemplatePipelineLibrary;
28
+ static fromSources(ptbkSources: Record<string_name, PromptTemplatePipelineJson | PromptTemplatePipelineString>): PromptTemplatePipelineLibrary;
29
29
  private constructor();
30
30
  /**
31
31
  * Gets prompt template pipeline by name
@@ -41,13 +41,14 @@ export declare class PromptTemplatePipelineLibrary {
41
41
  createExecutor(name: string_name, tools: ExecutionTools): PtpExecutor;
42
42
  }
43
43
  /**
44
+ * TODO: !!! This should be renamed to Promptbook
44
45
  * TODO: !! [๐Ÿ‘][๐Ÿง ] Split of PromptTemplatePipeline,PromptTemplatePipelineLibrary between interface and class
45
46
  * TODO: !! [๐Ÿ‘] Make promptTemplatePipelines private WHEN split between interface and class
46
47
  * TODO: [๐Ÿง ] Maybe isPromptInLibrary should be separate utility function
47
48
  * TODO: [๐Ÿง ] Maybe createExecutor should be separate utility function
48
49
  * TODO: Static method fromDirectory
49
50
  * TODO: [๐Ÿคœ] Add generic type for entry and result parameters
50
- * TODO: [๐Ÿง ] Is it better to ptpLibrary.executePtp('writeXyz',{...}) OR ptpLibrary.createExecutor('writeXyz')({...}) OR createExecutor(ptpLibrary.getPtp('writeXyz'))
51
+ * TODO: [๐Ÿง ] Is it better to ptbkLibrary.executePtp('writeXyz',{...}) OR ptbkLibrary.createExecutor('writeXyz')({...}) OR createExecutor(ptbkLibrary.getPtp('writeXyz'))
51
52
  * TODO: [๐Ÿง ] Formarly (before commit 62229afce7668a5b85077cc18becf798b583bf8d) there were two classes PromptTemplatePipelineLibrary+PtpLibraryExecutor (maybe it was better?)
52
53
  * TODO: [๐Ÿง ] Is it better to pass tools into getExecutor or into constructor
53
54
  * Maybe it is not a good idea to cache executors when they are can be created with different tools
@@ -3,7 +3,7 @@ import { string_version } from './types/typeAliases';
3
3
  /**
4
4
  * The version of the PTP
5
5
  */
6
- export declare const PTP_VERSION: string_version;
6
+ export declare const PTBK_VERSION: string_version;
7
7
  /**
8
8
  * Default model requirements for the pipeline
9
9
  */
@@ -8,5 +8,5 @@ import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineStr
8
8
  *
9
9
  * @private
10
10
  */
11
- export declare function importPtp(path: `${string}.ptp.md`): PromptTemplatePipelineString;
12
- export declare function importPtp(path: `${string}.ptp.json`): PromptTemplatePipelineJson;
11
+ export declare function importPtp(path: `${string}.ptbk.md`): PromptTemplatePipelineString;
12
+ export declare function importPtp(path: `${string}.ptbk.json`): PromptTemplatePipelineJson;
@@ -14,7 +14,7 @@ import { PromptTemplatePipelineJson } from '../types/PromptTemplatePipelineJson/
14
14
  */
15
15
  export declare function validatePromptTemplatePipelineJson(ptp: PromptTemplatePipelineJson): void;
16
16
  /**
17
- * TODO: [๐Ÿง ] Work with ptpVersion
17
+ * TODO: [๐Ÿง ] Work with ptbkVersion
18
18
  * TODO: Use here some json-schema, Zod or something similar and change it to:
19
19
  * > /**
20
20
  * > * Validates PromptTemplatePipelineJson if it is logically valid.
@@ -9,6 +9,7 @@ import { RemoteServerOptions } from './interfaces/RemoteServerOptions';
9
9
  */
10
10
  export declare function createRemoteServer(options: RemoteServerOptions): void;
11
11
  /**
12
+ * TODO: !!! This should be name runRemoteServer OR startRemoteServer and return Destroyable OR Promise<Destroyable>
12
13
  * TODO: Handle progress - support streaming
13
14
  * TODO: [๐Ÿคนโ€โ™‚๏ธ] Do not hang up immediately but wait until client closes OR timeout
14
15
  * TODO: [๐Ÿคนโ€โ™‚๏ธ] Timeout on chat to free up resources
@@ -12,7 +12,7 @@ export interface RemoteServerOptions extends CommonExecutionToolsOptions {
12
12
  *
13
13
  * This is used to checkl validity of the prompt to prevent DDoS
14
14
  */
15
- readonly ptpLibrary: PromptTemplatePipelineLibrary;
15
+ readonly ptbkLibrary: PromptTemplatePipelineLibrary;
16
16
  /**
17
17
  * Creates natural execution tools for each client
18
18
  */
@@ -5,16 +5,16 @@ import { ModelRequirements } from './ModelRequirements';
5
5
  * Command is one piece of the prompt template which adds some logic to the prompt template or the whole pipeline.
6
6
  * It is parsed from the markdown from ul/ol items - one command per one item.
7
7
  */
8
- export type Command = PtpUrlCommand | PtpVersionCommand | ExecuteCommand | UseCommand | ParameterCommand | PostprocessCommand;
8
+ export type Command = PtbkUrlCommand | PtbkVersionCommand | ExecuteCommand | UseCommand | ParameterCommand | PostprocessCommand;
9
9
  /**
10
10
  * PtpVersion command tells which version is .ptp file using
11
11
  *
12
12
  * - It is used for backward compatibility
13
13
  * - It is defined per whole .ptp file in the header
14
14
  */
15
- export interface PtpUrlCommand {
16
- readonly type: 'PTP_URL';
17
- readonly ptpUrl: URL;
15
+ export interface PtbkUrlCommand {
16
+ readonly type: 'PTBK_URL';
17
+ readonly ptbkUrl: URL;
18
18
  }
19
19
  /**
20
20
  * PtpVersion command tells which version is .ptp file using
@@ -22,9 +22,9 @@ export interface PtpUrlCommand {
22
22
  * - It is used for backward compatibility
23
23
  * - It is defined per whole .ptp file in the header
24
24
  */
25
- export interface PtpVersionCommand {
26
- readonly type: 'PTP_VERSION';
27
- readonly ptpVersion: string_version;
25
+ export interface PtbkVersionCommand {
26
+ readonly type: 'PTBK_VERSION';
27
+ readonly ptbkVersion: string_version;
28
28
  }
29
29
  /**
30
30
  * Execute command tells how to execute the section
@@ -21,6 +21,10 @@ export interface ModelRequirements {
21
21
  * - **CHAT** - model that takes prompt and previous messages and returns response
22
22
  */
23
23
  readonly variant: ModelVariant;
24
+ /**
25
+ * Maximum number of tokens that can be generated by the model
26
+ */
27
+ readonly maxTokens?: number;
24
28
  }
25
29
  /**
26
30
  * TODO: Maybe figure out better word than "variant"
@@ -1,4 +1,4 @@
1
- import { string_name, string_prompt, string_ptp_url_with_hashtemplate } from '.././types/typeAliases';
1
+ import { string_name, string_prompt, string_ptbk_url_with_hashtemplate } from '.././types/typeAliases';
2
2
  import { ModelRequirements } from './ModelRequirements';
3
3
  /**
4
4
  * Prompt in a text along with model requirements, but without any execution or templating logic.
@@ -20,13 +20,13 @@ export interface Prompt {
20
20
  /**
21
21
  * Unique identifier of the prompt template pipeline with specific template name as hash
22
22
  *
23
- * @example https://ptp.webgpt.com/cs/write-wallpaper-content.ptp.md@v2.4.15#keywords
23
+ * @example https://ptbk.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords
24
24
  */
25
- readonly ptpUrl: string_ptp_url_with_hashtemplate;
25
+ readonly ptbkUrl: string_ptbk_url_with_hashtemplate;
26
26
  /**
27
27
  * Parameters used in the prompt
28
28
  *
29
- * Note: This is redundant (same information is in ptpUrl+content) but useful for logging and debugging
29
+ * Note: This is redundant (same information is in ptbkUrl+content) but useful for logging and debugging
30
30
  */
31
31
  readonly parameters: Record<string_name, string>;
32
32
  }
@@ -49,7 +49,7 @@ interface PromptTemplateJsonCommon {
49
49
  * Name of the template
50
50
  * - It must be unique across the pipeline
51
51
  * - It should start uppercase and contain letters and numbers
52
- * - The ptpUrl together with hash and name are used to identify the prompt template in the pipeline
52
+ * - The ptbkUrl together with hash and name are used to identify the prompt template in the pipeline
53
53
  */
54
54
  readonly name: string_name;
55
55
  /**
@@ -1,4 +1,4 @@
1
- import { string_ptp_url, string_version } from '../.././types/typeAliases';
1
+ import { string_ptbk_url, string_version } from '../.././types/typeAliases';
2
2
  import { PromptTemplateJson } from './PromptTemplateJson';
3
3
  import { PromptTemplateParameterJson } from './PromptTemplateParameterJson';
4
4
  /**
@@ -6,8 +6,8 @@ import { PromptTemplateParameterJson } from './PromptTemplateParameterJson';
6
6
  * It represents a series of prompt templates chained together to form a pipeline / one big prompt template with input and result parameters.
7
7
  *
8
8
  * It can have 3 formats:
9
- * - **.ptp.md file** in custom markdown format described above
10
- * - _(this)_ **JSON** format, parsed from the .ptp.md file
9
+ * - **.ptbk.md file** in custom markdown format described above
10
+ * - _(this)_ **JSON** format, parsed from the .ptbk.md file
11
11
  * - **Object** which is created from JSON format and bound with tools around (but not the execution logic)
12
12
  *
13
13
  * @see https://github.com/webgptorg/promptbook#prompt-template-pipeline
@@ -19,19 +19,19 @@ export interface PromptTemplatePipelineJson {
19
19
  * Note: It must be unique across all prompt template pipelines
20
20
  * Note: It must use HTTPs URL
21
21
  * Tip: You can do versioning in the URL
22
- * For example: https://ptp.webgpt.com/cs/write-wallpaper-content.ptp.md@1.0.0
22
+ * For example: https://ptbk.webgpt.com/cs/write-website-content.ptbk.md@1.0.0
23
23
  * Warning: Do not hash part of the URL, hash part is used for identification of the prompt template in the pipeline
24
24
  */
25
- readonly ptpUrl?: string_ptp_url;
25
+ readonly ptbkUrl?: string_ptbk_url;
26
26
  /**
27
27
  * Title of the prompt template pipeline
28
28
  * -It can use simple markdown formatting like **bold**, *italic*, [link](https://example.com), ... BUT not code blocks and structure
29
29
  */
30
30
  readonly title: string;
31
31
  /**
32
- * Version of the .ptp.json file
32
+ * Version of the .ptbk.json file
33
33
  */
34
- readonly ptpVersion: string_version;
34
+ readonly ptbkVersion: string_version;
35
35
  /**
36
36
  * Description of the prompt template pipeline
37
37
  * It can use multiple paragraphs of simple markdown formatting like **bold**, *italic*, [link](https://example.com), ... BUT not code blocks and structure
@@ -3,8 +3,8 @@
3
3
  * It represents a series of prompt templates chained together to form a pipeline / one big prompt template with input and result parameters.
4
4
  *
5
5
  * It can have 3 formats:
6
- * - _(this)_ **.ptp.md file** in custom markdown format described above
7
- * - **JSON** format, parsed from the .ptp.md file
6
+ * - _(this)_ **.ptbk.md file** in custom markdown format described above
7
+ * - **JSON** format, parsed from the .ptbk.md file
8
8
  * - **Object** which is created from JSON format and bound with tools around (but not the execution logic)
9
9
  *
10
10
  * @see https://github.com/webgptorg/promptbook#prompt-template-pipeline
@@ -20,18 +20,6 @@ export type string_prompt = string;
20
20
  * For example `"A cat wearing a {ITEM}"`
21
21
  */
22
22
  export type string_template = string;
23
- /**
24
- * Semantic helper
25
- *
26
- * For example `"A cat wearing a hat"`
27
- */
28
- export type string_image_prompt = string_prompt;
29
- /**
30
- * Semantic helper
31
- *
32
- * For example `"A cat wearing a hat --wallpaper --v 5.2"`
33
- */
34
- export type string_midjourney_prompt = string_image_prompt;
35
23
  /**
36
24
  * Semantic helper
37
25
  *
@@ -191,15 +179,15 @@ export type string_url = string;
191
179
  /**
192
180
  * Semantic helper
193
181
  *
194
- * For example `"https://ptp.webgpt.com/cs/write-wallpaper-content.ptp.md@v2.4.15"`
182
+ * For example `"https://ptbk.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15"`
195
183
  */
196
- export type string_ptp_url = string;
184
+ export type string_ptbk_url = string;
197
185
  /**
198
186
  * Semantic helper
199
187
  *
200
- * For example `"https://ptp.webgpt.com/cs/write-wallpaper-content.ptp.md@v2.4.15#keywords"`
188
+ * For example `"https://ptbk.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords"`
201
189
  */
202
- export type string_ptp_url_with_hashtemplate = string;
190
+ export type string_ptbk_url_with_hashtemplate = string;
203
191
  /**
204
192
  * Semantic helper
205
193
  *
@@ -389,10 +377,6 @@ export interface IRepository {
389
377
  readonly type?: string | 'git';
390
378
  readonly url?: string;
391
379
  }
392
- /**
393
- * CSS cursor type
394
- */
395
- export type string_css_cursor = 'alias' | 'all-scroll' | 'auto' | 'cell' | 'context-menu' | 'col-resize' | 'copy' | 'crosshair' | 'default' | 'e-resize' | 'ew-resize' | 'grab' | 'grabbing' | 'help' | 'move' | 'n-resize' | 'ne-resize' | 'nesw-resize' | 'ns-resize' | 'nw-resize' | 'nwse-resize' | 'no-drop' | 'none' | 'not-allowed' | 'pointer' | 'progress' | 'row-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'text' | 'w-resize' | 'wait' | 'zoom-in' | 'zoom-out';
396
380
  /**
397
381
  * Semantic helper for attributes
398
382
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-server",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Library to supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -38,7 +38,7 @@
38
38
  "spacetrim": "0.9.2"
39
39
  },
40
40
  "peerDependencies": {
41
- "@promptbook/core": "0.8.0"
41
+ "@promptbook/core": "0.10.0"
42
42
  },
43
43
  "main": "./umd/index.umd.js",
44
44
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('chalk'), require('http'), require('socket.io'), require('spacetrim')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', 'chalk', 'http', 'socket.io', 'spacetrim'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ptp-remote-server"] = {}, global.chalk, global.http, global.socket_io, global.spaceTrim));
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-remote-server"] = {}, global.chalk, global.http, global.socket_io, global.spaceTrim));
5
5
  })(this, (function (exports, chalk, http, socket_io, spaceTrim) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -73,7 +73,7 @@
73
73
  */
74
74
  function createRemoteServer(options) {
75
75
  var _this = this;
76
- var port = options.port, /* [๐ŸŽ›] ptpLibrary, */ createNaturalExecutionTools = options.createNaturalExecutionTools, isVerbose = options.isVerbose;
76
+ var port = options.port, /* [๐ŸŽ›] ptbkLibrary, */ createNaturalExecutionTools = options.createNaturalExecutionTools, isVerbose = options.isVerbose;
77
77
  var httpServer = http__default["default"].createServer({}, function (request, response) {
78
78
  var _a;
79
79
  if ((_a = request.url) === null || _a === void 0 ? void 0 : _a.includes('socket.io')) {
@@ -157,6 +157,7 @@
157
157
  }
158
158
  }
159
159
  /**
160
+ * TODO: !!! This should be name runRemoteServer OR startRemoteServer and return Destroyable OR Promise<Destroyable>
160
161
  * TODO: Handle progress - support streaming
161
162
  * TODO: [๐Ÿคนโ€โ™‚๏ธ] Do not hang up immediately but wait until client closes OR timeout
162
163
  * TODO: [๐Ÿคนโ€โ™‚๏ธ] Timeout on chat to free up resources
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../src/execution/plugins/natural-execution-tools/remote/createRemoteServer.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null],"names":["http","spaceTrim","Server","chalk"],"mappings":";;;;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;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AEH,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE;;gBAEpB,IAAI,SAAS,EAAE;oBACX,OAAO,CAAC,IAAI,CAACA,yBAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;iBAC9D;aACJ,CAAC,CAAC;SACN,CAAC,CAAC;QAEH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;QAGxB,OAAO,CAAC,IAAI,CAACA,yBAAK,CAAC,OAAO,CAAC,uCAAgC,IAAI,CAAE,CAAC,CAAC,CAAC;QACpE,IAAI,SAAS,EAAE;YACX,OAAO,CAAC,IAAI,CAACA,yBAAK,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;SACxD;IACL,CAAC;IAED;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../src/execution/plugins/natural-execution-tools/remote/createRemoteServer.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null],"names":["http","spaceTrim","Server","chalk"],"mappings":";;;;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AAuDA;IACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;IAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;IAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;IAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;IACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;IACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;IACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAA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,MAAM,OAAK,CAAC;6BACf;4BAED,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,OAAK,CAAC,OAAO,EAAuB,CAAC,CAAC;;;4BAE3E,MAAM,CAAC,UAAU,EAAE,CAAC;;;;;iBAE3B,CAAC,CAAC;YAEH,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE;;gBAEpB,IAAI,SAAS,EAAE;oBACX,OAAO,CAAC,IAAI,CAACA,yBAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;iBAC9D;aACJ,CAAC,CAAC;SACN,CAAC,CAAC;QAEH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;QAGxB,OAAO,CAAC,IAAI,CAACA,yBAAK,CAAC,OAAO,CAAC,uCAAgC,IAAI,CAAE,CAAC,CAAC,CAAC;QACpE,IAAI,SAAS,EAAE;YACX,OAAO,CAAC,IAAI,CAACA,yBAAK,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;SACxD;IACL,CAAC;IAED;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { PromptTemplatePipeline } from '../classes/PromptTemplatePipeline';
2
2
  import { PromptTemplatePipelineLibrary } from '../classes/PromptTemplatePipelineLibrary';
3
- import { PTP_VERSION } from '../config';
3
+ import { PTBK_VERSION } from '../config';
4
4
  import { promptTemplatePipelineStringToJson } from '../conversion/promptTemplatePipelineStringToJson';
5
5
  import { validatePromptTemplatePipelineJson } from '../conversion/validatePromptTemplatePipelineJson';
6
6
  import { createPtpExecutor } from '../execution/createPtpExecutor';
@@ -9,7 +9,7 @@ import { CallbackInterfaceTools } from '../execution/plugins/user-interface-exec
9
9
  import { CallbackInterfaceToolsOptions } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions';
10
10
  import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools';
11
11
  import { ExecutionTypes } from '../types/ExecutionTypes';
12
- export { ExecutionTypes, PTP_VERSION, PromptTemplatePipeline, PromptTemplatePipelineLibrary };
12
+ export { ExecutionTypes, PTBK_VERSION, PromptTemplatePipeline, PromptTemplatePipelineLibrary };
13
13
  export { SimplePromptInterfaceTools };
14
14
  export { promptTemplatePipelineStringToJson, validatePromptTemplatePipelineJson };
15
15
  export { MockedEchoNaturalExecutionTools };
@@ -16,5 +16,5 @@ import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineStr
16
16
  import { ScriptLanguage } from '../types/ScriptLanguage';
17
17
  import { DoneTaskProgress, PendingTaskProgress, TaskProgress } from '../types/TaskProgress';
18
18
  import { string_char_emoji } from '../types/typeAliasEmoji';
19
- import { ILicense, IPersonProfile, IRepository, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_cursor, string_css_property, string_css_selector, string_css_value, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_image_prompt, string_javascript, string_javascript_name, string_license, string_license_token, string_markdown, string_markdown_text, string_midjourney_prompt, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptp_url, string_ptp_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment } from '../types/typeAliases';
20
- export { CommonExecutionToolsOptions, DoneTaskProgress, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, PendingTaskProgress, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptTemplatePipelineJson, PromptTemplatePipelineString, PtpExecutor, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_char_emoji, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_cursor, string_css_property, string_css_selector, string_css_value, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_image_prompt, string_javascript, string_javascript_name, string_license, string_license_token, string_markdown, string_markdown_text, string_midjourney_prompt, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptp_url, string_ptp_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment, };
19
+ import { ILicense, IPersonProfile, IRepository, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_property, string_css_selector, string_css_value, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_license_token, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptbk_url, string_ptbk_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment } from '../types/typeAliases';
20
+ export { CommonExecutionToolsOptions, DoneTaskProgress, ExecutionTools, ExecutionType, ILicense, IPersonProfile, IRepository, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, PendingTaskProgress, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptTemplatePipelineJson, PromptTemplatePipelineString, PtpExecutor, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, number_bytes, number_days, number_gigabytes, number_hours, number_integer, number_kilobytes, number_likeness, number_megabytes, number_miliseconds, number_minutes, number_months, number_negative, number_percent, number_positive, number_seconds, number_terabytes, number_weeks, number_years, string_attribute, string_attribute_value_scope, string_business_category_name, string_char, string_char_emoji, string_chat_prompt, string_color, string_completion_prompt, string_css, string_css_class, string_css_property, string_css_selector, string_css_value, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_license_token, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_page, string_password, string_person_fullname, string_person_profile, string_pgp_key, string_prompt, string_protocol, string_ptbk_url, string_ptbk_url_with_hashtemplate, string_script, string_sha256, string_ssh_key, string_svg, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_translate_name, string_translate_name_not_normalized, string_uri, string_uri_part, string_uriid, string_url, string_url_image, string_version, string_version_dependency, string_wallpaper_id, string_xml, uuid, uuid_first_segment, };
@@ -8,14 +8,14 @@ import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineStr
8
8
  * It represents a series of prompt templates chained together to form a pipeline / one big prompt template with input and result parameters.
9
9
  *
10
10
  * It can have 3 formats:
11
- * - **.ptp.md file** in custom markdown format described above
12
- * - **JSON** format, parsed from the .ptp.md file
11
+ * - **.ptbk.md file** in custom markdown format described above
12
+ * - **JSON** format, parsed from the .ptbk.md file
13
13
  * - _(this)_ **Object** which is created from JSON format and bound with tools around (but not the execution logic)
14
14
  *
15
15
  * @see https://github.com/webgptorg/promptbook#prompt-template-pipeline
16
16
  */
17
17
  export declare class PromptTemplatePipeline {
18
- readonly ptpUrl: URL | null;
18
+ readonly ptbkUrl: URL | null;
19
19
  readonly parameters: Record<string_name, PromptTemplateParameterJson>;
20
20
  readonly promptTemplates: Array<PromptTemplateJson>;
21
21
  /**
@@ -23,28 +23,28 @@ export declare class PromptTemplatePipeline {
23
23
  *
24
24
  * Note: During the construction syntax and logic of source is validated
25
25
  *
26
- * @param source content of .ptp.md or .ptp.json file
26
+ * @param source content of .ptbk.md or .ptbk.json file
27
27
  * @returns PromptTemplatePipeline
28
28
  */
29
- static fromSource(ptpSource: PromptTemplatePipelineString | PromptTemplatePipelineJson): PromptTemplatePipeline;
29
+ static fromSource(ptbkSource: PromptTemplatePipelineString | PromptTemplatePipelineJson): PromptTemplatePipeline;
30
30
  /**
31
31
  * Constructs PromptTemplatePipeline from markdown source
32
32
  *
33
33
  * Note: During the construction syntax and logic of source is validated
34
34
  *
35
- * @param ptpString content of .ptp.md file
35
+ * @param ptbkString content of .ptbk.md file
36
36
  * @returns PromptTemplatePipeline
37
37
  */
38
- static fromString(ptpString: PromptTemplatePipelineString): PromptTemplatePipeline;
38
+ static fromString(ptbkString: PromptTemplatePipelineString): PromptTemplatePipeline;
39
39
  /**
40
40
  * Constructs PromptTemplatePipeline from JSON source
41
41
  *
42
42
  * Note: During the construction the source is logic validated
43
43
  *
44
- * @param ptpjson content of .ptp.json file parsed into JSON
44
+ * @param ptbkjson content of .ptbk.json file parsed into JSON
45
45
  * @returns PromptTemplatePipeline
46
46
  */
47
- static fromJson(ptpjson: PromptTemplatePipelineJson): PromptTemplatePipeline;
47
+ static fromJson(ptbkjson: PromptTemplatePipelineJson): PromptTemplatePipeline;
48
48
  private constructor();
49
49
  /**
50
50
  * Returns the first prompt template in the pipeline
@@ -20,12 +20,12 @@ export declare class PromptTemplatePipelineLibrary {
20
20
  * Constructs PromptTemplatePipeline from any sources
21
21
  *
22
22
  * Note: During the construction syntax and logic of all sources are validated
23
- * Note: You can combine .ptp.md and .ptp.json files BUT it is not recommended
23
+ * Note: You can combine .ptbk.md and .ptbk.json files BUT it is not recommended
24
24
  *
25
- * @param ptpSources contents of .ptp.md or .ptp.json files
25
+ * @param ptbkSources contents of .ptbk.md or .ptbk.json files
26
26
  * @returns PromptTemplatePipelineLibrary
27
27
  */
28
- static fromSources(ptpSources: Record<string_name, PromptTemplatePipelineJson | PromptTemplatePipelineString>): PromptTemplatePipelineLibrary;
28
+ static fromSources(ptbkSources: Record<string_name, PromptTemplatePipelineJson | PromptTemplatePipelineString>): PromptTemplatePipelineLibrary;
29
29
  private constructor();
30
30
  /**
31
31
  * Gets prompt template pipeline by name
@@ -41,13 +41,14 @@ export declare class PromptTemplatePipelineLibrary {
41
41
  createExecutor(name: string_name, tools: ExecutionTools): PtpExecutor;
42
42
  }
43
43
  /**
44
+ * TODO: !!! This should be renamed to Promptbook
44
45
  * TODO: !! [๐Ÿ‘][๐Ÿง ] Split of PromptTemplatePipeline,PromptTemplatePipelineLibrary between interface and class
45
46
  * TODO: !! [๐Ÿ‘] Make promptTemplatePipelines private WHEN split between interface and class
46
47
  * TODO: [๐Ÿง ] Maybe isPromptInLibrary should be separate utility function
47
48
  * TODO: [๐Ÿง ] Maybe createExecutor should be separate utility function
48
49
  * TODO: Static method fromDirectory
49
50
  * TODO: [๐Ÿคœ] Add generic type for entry and result parameters
50
- * TODO: [๐Ÿง ] Is it better to ptpLibrary.executePtp('writeXyz',{...}) OR ptpLibrary.createExecutor('writeXyz')({...}) OR createExecutor(ptpLibrary.getPtp('writeXyz'))
51
+ * TODO: [๐Ÿง ] Is it better to ptbkLibrary.executePtp('writeXyz',{...}) OR ptbkLibrary.createExecutor('writeXyz')({...}) OR createExecutor(ptbkLibrary.getPtp('writeXyz'))
51
52
  * TODO: [๐Ÿง ] Formarly (before commit 62229afce7668a5b85077cc18becf798b583bf8d) there were two classes PromptTemplatePipelineLibrary+PtpLibraryExecutor (maybe it was better?)
52
53
  * TODO: [๐Ÿง ] Is it better to pass tools into getExecutor or into constructor
53
54
  * Maybe it is not a good idea to cache executors when they are can be created with different tools
@@ -3,7 +3,7 @@ import { string_version } from './types/typeAliases';
3
3
  /**
4
4
  * The version of the PTP
5
5
  */
6
- export declare const PTP_VERSION: string_version;
6
+ export declare const PTBK_VERSION: string_version;
7
7
  /**
8
8
  * Default model requirements for the pipeline
9
9
  */
@@ -8,5 +8,5 @@ import { PromptTemplatePipelineString } from '../types/PromptTemplatePipelineStr
8
8
  *
9
9
  * @private
10
10
  */
11
- export declare function importPtp(path: `${string}.ptp.md`): PromptTemplatePipelineString;
12
- export declare function importPtp(path: `${string}.ptp.json`): PromptTemplatePipelineJson;
11
+ export declare function importPtp(path: `${string}.ptbk.md`): PromptTemplatePipelineString;
12
+ export declare function importPtp(path: `${string}.ptbk.json`): PromptTemplatePipelineJson;
@@ -14,7 +14,7 @@ import { PromptTemplatePipelineJson } from '../types/PromptTemplatePipelineJson/
14
14
  */
15
15
  export declare function validatePromptTemplatePipelineJson(ptp: PromptTemplatePipelineJson): void;
16
16
  /**
17
- * TODO: [๐Ÿง ] Work with ptpVersion
17
+ * TODO: [๐Ÿง ] Work with ptbkVersion
18
18
  * TODO: Use here some json-schema, Zod or something similar and change it to:
19
19
  * > /**
20
20
  * > * Validates PromptTemplatePipelineJson if it is logically valid.
@@ -9,6 +9,7 @@ import { RemoteServerOptions } from './interfaces/RemoteServerOptions';
9
9
  */
10
10
  export declare function createRemoteServer(options: RemoteServerOptions): void;
11
11
  /**
12
+ * TODO: !!! This should be name runRemoteServer OR startRemoteServer and return Destroyable OR Promise<Destroyable>
12
13
  * TODO: Handle progress - support streaming
13
14
  * TODO: [๐Ÿคนโ€โ™‚๏ธ] Do not hang up immediately but wait until client closes OR timeout
14
15
  * TODO: [๐Ÿคนโ€โ™‚๏ธ] Timeout on chat to free up resources
@@ -12,7 +12,7 @@ export interface RemoteServerOptions extends CommonExecutionToolsOptions {
12
12
  *
13
13
  * This is used to checkl validity of the prompt to prevent DDoS
14
14
  */
15
- readonly ptpLibrary: PromptTemplatePipelineLibrary;
15
+ readonly ptbkLibrary: PromptTemplatePipelineLibrary;
16
16
  /**
17
17
  * Creates natural execution tools for each client
18
18
  */
@@ -5,16 +5,16 @@ import { ModelRequirements } from './ModelRequirements';
5
5
  * Command is one piece of the prompt template which adds some logic to the prompt template or the whole pipeline.
6
6
  * It is parsed from the markdown from ul/ol items - one command per one item.
7
7
  */
8
- export type Command = PtpUrlCommand | PtpVersionCommand | ExecuteCommand | UseCommand | ParameterCommand | PostprocessCommand;
8
+ export type Command = PtbkUrlCommand | PtbkVersionCommand | ExecuteCommand | UseCommand | ParameterCommand | PostprocessCommand;
9
9
  /**
10
10
  * PtpVersion command tells which version is .ptp file using
11
11
  *
12
12
  * - It is used for backward compatibility
13
13
  * - It is defined per whole .ptp file in the header
14
14
  */
15
- export interface PtpUrlCommand {
16
- readonly type: 'PTP_URL';
17
- readonly ptpUrl: URL;
15
+ export interface PtbkUrlCommand {
16
+ readonly type: 'PTBK_URL';
17
+ readonly ptbkUrl: URL;
18
18
  }
19
19
  /**
20
20
  * PtpVersion command tells which version is .ptp file using
@@ -22,9 +22,9 @@ export interface PtpUrlCommand {
22
22
  * - It is used for backward compatibility
23
23
  * - It is defined per whole .ptp file in the header
24
24
  */
25
- export interface PtpVersionCommand {
26
- readonly type: 'PTP_VERSION';
27
- readonly ptpVersion: string_version;
25
+ export interface PtbkVersionCommand {
26
+ readonly type: 'PTBK_VERSION';
27
+ readonly ptbkVersion: string_version;
28
28
  }
29
29
  /**
30
30
  * Execute command tells how to execute the section
@@ -21,6 +21,10 @@ export interface ModelRequirements {
21
21
  * - **CHAT** - model that takes prompt and previous messages and returns response
22
22
  */
23
23
  readonly variant: ModelVariant;
24
+ /**
25
+ * Maximum number of tokens that can be generated by the model
26
+ */
27
+ readonly maxTokens?: number;
24
28
  }
25
29
  /**
26
30
  * TODO: Maybe figure out better word than "variant"
@@ -1,4 +1,4 @@
1
- import { string_name, string_prompt, string_ptp_url_with_hashtemplate } from '.././types/typeAliases';
1
+ import { string_name, string_prompt, string_ptbk_url_with_hashtemplate } from '.././types/typeAliases';
2
2
  import { ModelRequirements } from './ModelRequirements';
3
3
  /**
4
4
  * Prompt in a text along with model requirements, but without any execution or templating logic.
@@ -20,13 +20,13 @@ export interface Prompt {
20
20
  /**
21
21
  * Unique identifier of the prompt template pipeline with specific template name as hash
22
22
  *
23
- * @example https://ptp.webgpt.com/cs/write-wallpaper-content.ptp.md@v2.4.15#keywords
23
+ * @example https://ptbk.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords
24
24
  */
25
- readonly ptpUrl: string_ptp_url_with_hashtemplate;
25
+ readonly ptbkUrl: string_ptbk_url_with_hashtemplate;
26
26
  /**
27
27
  * Parameters used in the prompt
28
28
  *
29
- * Note: This is redundant (same information is in ptpUrl+content) but useful for logging and debugging
29
+ * Note: This is redundant (same information is in ptbkUrl+content) but useful for logging and debugging
30
30
  */
31
31
  readonly parameters: Record<string_name, string>;
32
32
  }
@@ -49,7 +49,7 @@ interface PromptTemplateJsonCommon {
49
49
  * Name of the template
50
50
  * - It must be unique across the pipeline
51
51
  * - It should start uppercase and contain letters and numbers
52
- * - The ptpUrl together with hash and name are used to identify the prompt template in the pipeline
52
+ * - The ptbkUrl together with hash and name are used to identify the prompt template in the pipeline
53
53
  */
54
54
  readonly name: string_name;
55
55
  /**
@@ -1,4 +1,4 @@
1
- import { string_ptp_url, string_version } from '../.././types/typeAliases';
1
+ import { string_ptbk_url, string_version } from '../.././types/typeAliases';
2
2
  import { PromptTemplateJson } from './PromptTemplateJson';
3
3
  import { PromptTemplateParameterJson } from './PromptTemplateParameterJson';
4
4
  /**
@@ -6,8 +6,8 @@ import { PromptTemplateParameterJson } from './PromptTemplateParameterJson';
6
6
  * It represents a series of prompt templates chained together to form a pipeline / one big prompt template with input and result parameters.
7
7
  *
8
8
  * It can have 3 formats:
9
- * - **.ptp.md file** in custom markdown format described above
10
- * - _(this)_ **JSON** format, parsed from the .ptp.md file
9
+ * - **.ptbk.md file** in custom markdown format described above
10
+ * - _(this)_ **JSON** format, parsed from the .ptbk.md file
11
11
  * - **Object** which is created from JSON format and bound with tools around (but not the execution logic)
12
12
  *
13
13
  * @see https://github.com/webgptorg/promptbook#prompt-template-pipeline
@@ -19,19 +19,19 @@ export interface PromptTemplatePipelineJson {
19
19
  * Note: It must be unique across all prompt template pipelines
20
20
  * Note: It must use HTTPs URL
21
21
  * Tip: You can do versioning in the URL
22
- * For example: https://ptp.webgpt.com/cs/write-wallpaper-content.ptp.md@1.0.0
22
+ * For example: https://ptbk.webgpt.com/cs/write-website-content.ptbk.md@1.0.0
23
23
  * Warning: Do not hash part of the URL, hash part is used for identification of the prompt template in the pipeline
24
24
  */
25
- readonly ptpUrl?: string_ptp_url;
25
+ readonly ptbkUrl?: string_ptbk_url;
26
26
  /**
27
27
  * Title of the prompt template pipeline
28
28
  * -It can use simple markdown formatting like **bold**, *italic*, [link](https://example.com), ... BUT not code blocks and structure
29
29
  */
30
30
  readonly title: string;
31
31
  /**
32
- * Version of the .ptp.json file
32
+ * Version of the .ptbk.json file
33
33
  */
34
- readonly ptpVersion: string_version;
34
+ readonly ptbkVersion: string_version;
35
35
  /**
36
36
  * Description of the prompt template pipeline
37
37
  * It can use multiple paragraphs of simple markdown formatting like **bold**, *italic*, [link](https://example.com), ... BUT not code blocks and structure
@@ -3,8 +3,8 @@
3
3
  * It represents a series of prompt templates chained together to form a pipeline / one big prompt template with input and result parameters.
4
4
  *
5
5
  * It can have 3 formats:
6
- * - _(this)_ **.ptp.md file** in custom markdown format described above
7
- * - **JSON** format, parsed from the .ptp.md file
6
+ * - _(this)_ **.ptbk.md file** in custom markdown format described above
7
+ * - **JSON** format, parsed from the .ptbk.md file
8
8
  * - **Object** which is created from JSON format and bound with tools around (but not the execution logic)
9
9
  *
10
10
  * @see https://github.com/webgptorg/promptbook#prompt-template-pipeline
@@ -20,18 +20,6 @@ export type string_prompt = string;
20
20
  * For example `"A cat wearing a {ITEM}"`
21
21
  */
22
22
  export type string_template = string;
23
- /**
24
- * Semantic helper
25
- *
26
- * For example `"A cat wearing a hat"`
27
- */
28
- export type string_image_prompt = string_prompt;
29
- /**
30
- * Semantic helper
31
- *
32
- * For example `"A cat wearing a hat --wallpaper --v 5.2"`
33
- */
34
- export type string_midjourney_prompt = string_image_prompt;
35
23
  /**
36
24
  * Semantic helper
37
25
  *
@@ -191,15 +179,15 @@ export type string_url = string;
191
179
  /**
192
180
  * Semantic helper
193
181
  *
194
- * For example `"https://ptp.webgpt.com/cs/write-wallpaper-content.ptp.md@v2.4.15"`
182
+ * For example `"https://ptbk.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15"`
195
183
  */
196
- export type string_ptp_url = string;
184
+ export type string_ptbk_url = string;
197
185
  /**
198
186
  * Semantic helper
199
187
  *
200
- * For example `"https://ptp.webgpt.com/cs/write-wallpaper-content.ptp.md@v2.4.15#keywords"`
188
+ * For example `"https://ptbk.webgpt.com/cs/write-website-content.ptbk.md@v2.4.15#keywords"`
201
189
  */
202
- export type string_ptp_url_with_hashtemplate = string;
190
+ export type string_ptbk_url_with_hashtemplate = string;
203
191
  /**
204
192
  * Semantic helper
205
193
  *
@@ -389,10 +377,6 @@ export interface IRepository {
389
377
  readonly type?: string | 'git';
390
378
  readonly url?: string;
391
379
  }
392
- /**
393
- * CSS cursor type
394
- */
395
- export type string_css_cursor = 'alias' | 'all-scroll' | 'auto' | 'cell' | 'context-menu' | 'col-resize' | 'copy' | 'crosshair' | 'default' | 'e-resize' | 'ew-resize' | 'grab' | 'grabbing' | 'help' | 'move' | 'n-resize' | 'ne-resize' | 'nesw-resize' | 'ns-resize' | 'nw-resize' | 'nwse-resize' | 'no-drop' | 'none' | 'not-allowed' | 'pointer' | 'progress' | 'row-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'text' | 'w-resize' | 'wait' | 'zoom-in' | 'zoom-out';
396
380
  /**
397
381
  * Semantic helper for attributes
398
382
  *