Move from cog to dialog.
|
@ -2685,14 +2685,15 @@
|
|||
"version": "1.9.2",
|
||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz",
|
||||
"integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==",
|
||||
"dependencies": {
|
||||
"color-name": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
|
||||
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
|
||||
}
|
||||
"requires": {
|
||||
"color-name": "1.1.1"
|
||||
}
|
||||
},
|
||||
"color-name": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz",
|
||||
"integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok="
|
||||
},
|
||||
"colors": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://registry.npmjs.org/colors/-/colors-1.3.2.tgz",
|
||||
|
@ -3211,11 +3212,14 @@
|
|||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
|
||||
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
|
||||
"requires": {
|
||||
"ms": "2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"ms": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
|
||||
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -4442,8 +4446,7 @@
|
|||
"ansi-regex": {
|
||||
"version": "2.1.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"aproba": {
|
||||
"version": "1.2.0",
|
||||
|
@ -4464,14 +4467,12 @@
|
|||
"balanced-match": {
|
||||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
|
@ -4486,20 +4487,17 @@
|
|||
"code-point-at": {
|
||||
"version": "1.1.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"concat-map": {
|
||||
"version": "0.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"console-control-strings": {
|
||||
"version": "1.1.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"core-util-is": {
|
||||
"version": "1.0.2",
|
||||
|
@ -4616,8 +4614,7 @@
|
|||
"inherits": {
|
||||
"version": "2.0.3",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"ini": {
|
||||
"version": "1.3.5",
|
||||
|
@ -4629,7 +4626,6 @@
|
|||
"version": "1.0.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"number-is-nan": "^1.0.0"
|
||||
}
|
||||
|
@ -4644,7 +4640,6 @@
|
|||
"version": "3.0.4",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"brace-expansion": "^1.1.7"
|
||||
}
|
||||
|
@ -4652,14 +4647,12 @@
|
|||
"minimist": {
|
||||
"version": "0.0.8",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"minipass": {
|
||||
"version": "2.3.5",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"safe-buffer": "^5.1.2",
|
||||
"yallist": "^3.0.0"
|
||||
|
@ -4678,7 +4671,6 @@
|
|||
"version": "0.5.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"minimist": "0.0.8"
|
||||
}
|
||||
|
@ -4759,8 +4751,7 @@
|
|||
"number-is-nan": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"object-assign": {
|
||||
"version": "4.1.1",
|
||||
|
@ -4772,7 +4763,6 @@
|
|||
"version": "1.4.0",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"wrappy": "1"
|
||||
}
|
||||
|
@ -4858,8 +4848,7 @@
|
|||
"safe-buffer": {
|
||||
"version": "5.1.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
|
@ -4895,7 +4884,6 @@
|
|||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"code-point-at": "^1.0.0",
|
||||
"is-fullwidth-code-point": "^1.0.0",
|
||||
|
@ -4915,7 +4903,6 @@
|
|||
"version": "3.0.1",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"ansi-regex": "^2.0.0"
|
||||
}
|
||||
|
@ -4959,14 +4946,12 @@
|
|||
"wrappy": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"yallist": {
|
||||
"version": "3.0.3",
|
||||
"bundled": true,
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -6917,16 +6902,17 @@
|
|||
"brorand": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.35.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz",
|
||||
"integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg=="
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.19",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz",
|
||||
"integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==",
|
||||
"dependencies": {
|
||||
"mime-db": {
|
||||
"version": "1.38.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz",
|
||||
"integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg=="
|
||||
}
|
||||
"requires": {
|
||||
"mime-db": "~1.35.0"
|
||||
}
|
||||
},
|
||||
"mimic-fn": {
|
||||
|
|
|
@ -1,283 +0,0 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"title": "JSON Schema definition for cog schemas.",
|
||||
"definitions": {
|
||||
"schemaArray": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#"
|
||||
}
|
||||
},
|
||||
"nonNegativeInteger": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"nonNegativeIntegerDefault0": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/nonNegativeInteger"
|
||||
},
|
||||
{
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"simpleTypes": {
|
||||
"enum": [
|
||||
"array",
|
||||
"boolean",
|
||||
"integer",
|
||||
"null",
|
||||
"number",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"stringArray": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"default": []
|
||||
},
|
||||
"role": {
|
||||
"title": "$role",
|
||||
"description": "Schema definition for root $role added by cogSchema.",
|
||||
"type": "string",
|
||||
"pattern": "^((lg)|(unionType)|(unionType\\([a-zA-Z][a-zA-Z0-9.]*\\)))$"
|
||||
},
|
||||
"id": {
|
||||
"title": "$id",
|
||||
"description": "Schema definition for $id added by cogSchema.",
|
||||
"type": "string",
|
||||
"pattern": "^([a-zA-Z][a-zA-Z0-9.]*)$"
|
||||
},
|
||||
"copy": {
|
||||
"title": "$copy",
|
||||
"description": "Schema deifnition for $copy added by cogSchema.",
|
||||
"type": "string",
|
||||
"pattern": "^(([a-zA-Z][a-zA-Z0-9.]*)?(#[a-zA-Z][a-zA-Z0-9.]*)?)$"
|
||||
},
|
||||
"type": {
|
||||
"title": "$type",
|
||||
"description": "Schema definition for $type added by cogSchema.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][a-zA-Z0-9.]*$"
|
||||
}
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
"boolean"
|
||||
],
|
||||
"properties": {
|
||||
"$id": {
|
||||
"type": "string",
|
||||
"format": "uri-reference"
|
||||
},
|
||||
"$schema": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"$ref": {
|
||||
"type": "string",
|
||||
"format": "uri-reference"
|
||||
},
|
||||
"$comment": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": true,
|
||||
"readOnly": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"examples": {
|
||||
"type": "array",
|
||||
"items": true
|
||||
},
|
||||
"multipleOf": {
|
||||
"type": "number",
|
||||
"exclusiveMinimum": 0
|
||||
},
|
||||
"maximum": {
|
||||
"type": "number"
|
||||
},
|
||||
"exclusiveMaximum": {
|
||||
"type": "number"
|
||||
},
|
||||
"minimum": {
|
||||
"type": "number"
|
||||
},
|
||||
"exclusiveMinimum": {
|
||||
"type": "number"
|
||||
},
|
||||
"maxLength": {
|
||||
"$ref": "#/definitions/nonNegativeInteger"
|
||||
},
|
||||
"minLength": {
|
||||
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
||||
},
|
||||
"pattern": {
|
||||
"type": "string",
|
||||
"format": "regex"
|
||||
},
|
||||
"additionalItems": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/schemaArray"
|
||||
}
|
||||
],
|
||||
"default": true
|
||||
},
|
||||
"maxItems": {
|
||||
"$ref": "#/definitions/nonNegativeInteger"
|
||||
},
|
||||
"minItems": {
|
||||
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
||||
},
|
||||
"uniqueItems": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"contains": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"maxProperties": {
|
||||
"$ref": "#/definitions/nonNegativeInteger"
|
||||
},
|
||||
"minProperties": {
|
||||
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
||||
},
|
||||
"required": {
|
||||
"$ref": "#/definitions/stringArray"
|
||||
},
|
||||
"additionalProperties": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"definitions": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"default": {}
|
||||
},
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"default": {}
|
||||
},
|
||||
"patternProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"propertyNames": {
|
||||
"format": "regex"
|
||||
},
|
||||
"default": {}
|
||||
},
|
||||
"dependencies": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/stringArray"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"propertyNames": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"const": true,
|
||||
"enum": {
|
||||
"type": "array",
|
||||
"items": true,
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"type": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/simpleTypes"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/simpleTypes"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"format": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentMediaType": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentEncoding": {
|
||||
"type": "string"
|
||||
},
|
||||
"if": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"then": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"else": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"allOf": {
|
||||
"$ref": "#/definitions/schemaArray"
|
||||
},
|
||||
"anyOf": {
|
||||
"$ref": "#/definitions/schemaArray"
|
||||
},
|
||||
"oneOf": {
|
||||
"$ref": "#/definitions/schemaArray"
|
||||
},
|
||||
"not": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"$role": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/role"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/role"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"$type": {
|
||||
"$ref": "#/definitions/type"
|
||||
}
|
||||
},
|
||||
"default": true,
|
||||
"description": "In order to create a component for Bot Framework .cog files you need to create a schema file describing your configuration that meets this definition. This extends http://json-schema.org/draft-07/schema#.",
|
||||
"$comment": "This file is generated by running the cogSchema node tool when there is not a cogSchema.schema file."
|
||||
}
|
|
@ -1,292 +0,0 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"title": "JSON Schema definition for cog schemas.",
|
||||
"definitions": {
|
||||
"schemaArray": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#"
|
||||
}
|
||||
},
|
||||
"nonNegativeInteger": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"nonNegativeIntegerDefault0": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/nonNegativeInteger"
|
||||
},
|
||||
{
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"simpleTypes": {
|
||||
"enum": [
|
||||
"array",
|
||||
"boolean",
|
||||
"integer",
|
||||
"null",
|
||||
"number",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"stringArray": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true,
|
||||
"default": []
|
||||
},
|
||||
"role": {
|
||||
"title": "$role",
|
||||
"description": "Schema definition for root $role added by cogSchema.",
|
||||
"type": "string",
|
||||
"pattern": "^((lg)|(unionType)|(unionType\\([a-zA-Z][a-zA-Z0-9.]*\\)))$"
|
||||
},
|
||||
"id": {
|
||||
"title": "$id",
|
||||
"description": "Schema definition for $id added by cogSchema.",
|
||||
"type": "string",
|
||||
"pattern": "^([a-zA-Z][a-zA-Z0-9.]*)$"
|
||||
},
|
||||
"copy": {
|
||||
"title": "$copy",
|
||||
"description": "Schema deifnition for $copy added by cogSchema.",
|
||||
"type": "string",
|
||||
"pattern": "^(([a-zA-Z][a-zA-Z0-9.]*)?(#[a-zA-Z][a-zA-Z0-9.]*)?)$"
|
||||
},
|
||||
"type": {
|
||||
"title": "$type",
|
||||
"description": "Schema definition for $type added by cogSchema.",
|
||||
"type": "string",
|
||||
"pattern": "^[a-zA-Z][a-zA-Z0-9.]*$"
|
||||
},
|
||||
"lg": {
|
||||
"type": [
|
||||
"string",
|
||||
"object"
|
||||
],
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
"boolean"
|
||||
],
|
||||
"properties": {
|
||||
"$id": {
|
||||
"type": "string",
|
||||
"format": "uri-reference"
|
||||
},
|
||||
"$schema": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"$ref": {
|
||||
"type": "string",
|
||||
"format": "uri-reference"
|
||||
},
|
||||
"$comment": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": true,
|
||||
"readOnly": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"examples": {
|
||||
"type": "array",
|
||||
"items": true
|
||||
},
|
||||
"multipleOf": {
|
||||
"type": "number",
|
||||
"exclusiveMinimum": 0
|
||||
},
|
||||
"maximum": {
|
||||
"type": "number"
|
||||
},
|
||||
"exclusiveMaximum": {
|
||||
"type": "number"
|
||||
},
|
||||
"minimum": {
|
||||
"type": "number"
|
||||
},
|
||||
"exclusiveMinimum": {
|
||||
"type": "number"
|
||||
},
|
||||
"maxLength": {
|
||||
"$ref": "#/definitions/nonNegativeInteger"
|
||||
},
|
||||
"minLength": {
|
||||
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
||||
},
|
||||
"pattern": {
|
||||
"type": "string",
|
||||
"format": "regex"
|
||||
},
|
||||
"additionalItems": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/schemaArray"
|
||||
}
|
||||
],
|
||||
"default": true
|
||||
},
|
||||
"maxItems": {
|
||||
"$ref": "#/definitions/nonNegativeInteger"
|
||||
},
|
||||
"minItems": {
|
||||
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
||||
},
|
||||
"uniqueItems": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"contains": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"maxProperties": {
|
||||
"$ref": "#/definitions/nonNegativeInteger"
|
||||
},
|
||||
"minProperties": {
|
||||
"$ref": "#/definitions/nonNegativeIntegerDefault0"
|
||||
},
|
||||
"required": {
|
||||
"$ref": "#/definitions/stringArray"
|
||||
},
|
||||
"additionalProperties": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"definitions": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"default": {}
|
||||
},
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"default": {}
|
||||
},
|
||||
"patternProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"propertyNames": {
|
||||
"format": "regex"
|
||||
},
|
||||
"default": {}
|
||||
},
|
||||
"dependencies": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/stringArray"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"propertyNames": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"const": true,
|
||||
"enum": {
|
||||
"type": "array",
|
||||
"items": true,
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"type": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/simpleTypes"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/simpleTypes"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"format": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentMediaType": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentEncoding": {
|
||||
"type": "string"
|
||||
},
|
||||
"if": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"then": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"else": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"allOf": {
|
||||
"$ref": "#/definitions/schemaArray"
|
||||
},
|
||||
"anyOf": {
|
||||
"$ref": "#/definitions/schemaArray"
|
||||
},
|
||||
"oneOf": {
|
||||
"$ref": "#/definitions/schemaArray"
|
||||
},
|
||||
"not": {
|
||||
"$ref": "#"
|
||||
},
|
||||
"$role": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/role"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/role"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"$type": {
|
||||
"$ref": "#/definitions/type"
|
||||
}
|
||||
},
|
||||
"default": true,
|
||||
"description": "In order to create a component for Bot Framework .cog files you need to create a schema file describing your configuration that meets this definition. This extends http://json-schema.org/draft-07/schema#.",
|
||||
"$comment": "This file is generated by running the cogSchema node tool when there is not a cogSchema.schema file."
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
> Simple prompt
|
||||
# prompt.prompt
|
||||
> Simple english
|
||||
- English prompt
|
||||
|
||||
# externalRecognizer.req
|
||||
|
||||
# externalRecognizer.complex.inside
|
||||
|
||||
# myPrompt.prompt
|
||||
|
||||
# myPrompt.alternatePrompt
|
||||
|
||||
# myPromptCopy.prompt
|
||||
|
||||
# myPromptCopy.alternatePrompt
|
||||
|
||||
# NotUsed.req
|
||||
|
||||
# NotUsed.complex.inside
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
# Recognizer.req
|
||||
|
||||
# Recognizer.complex.inside
|
||||
|
||||
# prompt.prompt
|
||||
- Generic prompt
|
||||
|
||||
# prompt.alternatePrompt
|
||||
|
||||
# externalRecognizer.req
|
||||
|
||||
# externalRecognizer.complex.inside
|
||||
|
||||
# myPrompt.prompt
|
||||
|
||||
# myPrompt.alternatePrompt
|
||||
|
||||
# myPromptCopy.prompt
|
||||
|
||||
# myPromptCopy.alternatePrompt
|
||||
|
||||
# NotUsed.req
|
||||
|
||||
# NotUsed.complex.inside
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
> Simple prompt
|
||||
# prompt.prompt
|
||||
> Simple english
|
||||
- English prompt
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
# prompt.prompt
|
||||
- Generic prompt
|
||||
|
||||
# prompt.alternatePrompt
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$role": "unionType(IRecognizer)",
|
||||
}
|
|
@ -8,13 +8,13 @@
|
|||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Program",
|
||||
"program": "${workspaceFolder}\\lib\\cogLint.js",
|
||||
"program": "${workspaceFolder}\\lib\\dialogLint.js",
|
||||
"args": [
|
||||
"examples/*.cog",
|
||||
"examples/*.dialog",
|
||||
"-w",
|
||||
"examples/app.lg"
|
||||
],
|
||||
"cwd": "${workspaceFolder}/../cogtracker/test",
|
||||
"cwd": "${workspaceFolder}/../dialogtracker/test",
|
||||
"preLaunchTask": "tsc: build - tsconfig.json",
|
||||
"outFiles": [
|
||||
"${workspaceFolder}/lib/**/*.js"
|
||||
|
@ -26,7 +26,7 @@
|
|||
"name": "Launch TestBot",
|
||||
"program": "${workspaceFolder}\\lib\\cogLint.js",
|
||||
"args": [
|
||||
"**/*.cog"
|
||||
"**/*.dialog"
|
||||
],
|
||||
"cwd": "${workspaceFolder}/../../../botbuilder-dotnet/tests/Microsoft.Bot.Builder.TestBot.Json/dialogs/",
|
||||
"preLaunchTask": "tsc: build - tsconfig.json",
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# CogLint Command Line tool
|
||||
|
||||
CogLint is a command line tool that analyzes JSON .cog files created for the Bot Framework. It builds an index of cog components and how they relate to each other using $type, $id and $copy. From this information it prints out information about types and any errors including:
|
||||
CogLint is a command line tool that analyzes JSON .dialog files created for the Bot Framework. It builds an index of dialog components and how they relate to each other using $type, $id and $copy. From this information it prints out information about types and any errors including:
|
||||
* **Missing $type:** A valid component must include a $type.
|
||||
* **Multiple $id definitions:** There should be only one definition for a $id.
|
||||
* **Incompatible types between $copy and $id:**
|
||||
|
@ -11,10 +11,10 @@ CogLint is a command line tool that analyzes JSON .cog files created for the Bot
|
|||
* **Malformed JSON:** Reports files which do not contain valid JSON.
|
||||
References to definitions show up in this format `TYPE[ID](file#/path)`.
|
||||
|
||||
You can also optionally update your .lg files with templates specific to your cog files by using the -w switch.
|
||||
You can also optionally update your .lg files with templates specific to your dialog files by using the -w switch.
|
||||
|
||||
# CogTracker class
|
||||
If you need to work with cog files, you can make use of the [`CogTracker`](../cogTracker/docs/classes/_cogtracker_.cogtracker.html) class which supports reading, updating, writing and indexing cog files with both schema and semantic validation. The [`CogLint`](src/cogLint.ts) tool shows an example of how to use the tracker to read in files and report various kinds of errors. You can also use the class as an in-memory cache of cog definitions, .lg files and their relationships.
|
||||
If you need to work with dialog files, you can make use of the [`CogTracker`](../cogTracker/docs/classes/_cogtracker_.dialogtracker.html) class which supports reading, updating, writing and indexing dialog files with both schema and semantic validation. The [`CogLint`](src/cogLint.ts) tool shows an example of how to use the tracker to read in files and report various kinds of errors. You can also use the class as an in-memory cache of dialog definitions, .lg files and their relationships.
|
||||
|
||||
## Prerequisite
|
||||
|
До Ширина: | Высота: | Размер: 9.3 KiB После Ширина: | Высота: | Размер: 9.3 KiB |
До Ширина: | Высота: | Размер: 27 KiB После Ширина: | Высота: | Размер: 27 KiB |
До Ширина: | Высота: | Размер: 480 B После Ширина: | Высота: | Размер: 480 B |
До Ширина: | Высота: | Размер: 855 B После Ширина: | Высота: | Размер: 855 B |
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Cog | cogLint</title>
|
||||
<title>dialog | cogLint</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../assets/css/main.css">
|
||||
|
@ -59,10 +59,10 @@
|
|||
<a href="../modules/_cogtracker_.html">"cogTracker"</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="_cogtracker_.cog.html">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html">dialog</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>Class Cog</h1>
|
||||
<h1>Class dialog</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
@ -72,7 +72,7 @@
|
|||
<section class="tsd-panel tsd-comment">
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Top-level cog definition that would be found in a file.</p>
|
||||
<p>Top-level dialog definition that would be found in a file.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -80,7 +80,7 @@
|
|||
<h3>Hierarchy</h3>
|
||||
<ul class="tsd-hierarchy">
|
||||
<li>
|
||||
<span class="target">Cog</span>
|
||||
<span class="target">dialog</span>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -91,23 +91,23 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>Constructors</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_cogtracker_.cog.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Properties</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cog.html#body" class="tsd-kind-icon">body</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cog.html#errors" class="tsd-kind-icon">errors</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cog.html#file" class="tsd-kind-icon">file</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cog.html#save" class="tsd-kind-icon">save</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#body" class="tsd-kind-icon">body</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#errors" class="tsd-kind-icon">errors</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#file" class="tsd-kind-icon">file</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#save" class="tsd-kind-icon">save</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Methods</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cog.html#id" class="tsd-kind-icon">id</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cog.html#tostring" class="tsd-kind-icon">to<wbr>String</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#id" class="tsd-kind-icon">id</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#tostring" class="tsd-kind-icon">to<wbr>String</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
@ -119,7 +119,7 @@
|
|||
<a name="constructor" class="tsd-anchor"></a>
|
||||
<h3>constructor</h3>
|
||||
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>Cog<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, body<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>dialog<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, body<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -137,7 +137,7 @@
|
|||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> body: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">object</span></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h4>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -155,7 +155,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Definition of this cog or undefined if file did not parse.</p>
|
||||
<p>Definition of this dialog or undefined if file did not parse.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -185,7 +185,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>The path relative to the CogTracker root where the cog came from or should be written to.</p>
|
||||
<p>The path relative to the CogTracker root where the dialog came from or should be written to.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -200,7 +200,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>TRUE if cog should be written, i.e. changed since read.</p>
|
||||
<p>TRUE if dialog should be written, i.e. changed since read.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -222,7 +222,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Return the id of the cog, i.e. the base filename.</p>
|
||||
<p>Return the id of the dialog, i.e. the base filename.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
||||
|
@ -255,10 +255,10 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="../modules/_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -267,35 +267,35 @@
|
|||
</ul>
|
||||
<ul class="current">
|
||||
<li class="current tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a>
|
||||
<ul>
|
||||
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
<a href="_cogtracker_.dialog.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#body" class="tsd-kind-icon">body</a>
|
||||
<a href="_cogtracker_.dialog.html#body" class="tsd-kind-icon">body</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#errors" class="tsd-kind-icon">errors</a>
|
||||
<a href="_cogtracker_.dialog.html#errors" class="tsd-kind-icon">errors</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#file" class="tsd-kind-icon">file</a>
|
||||
<a href="_cogtracker_.dialog.html#file" class="tsd-kind-icon">file</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#save" class="tsd-kind-icon">save</a>
|
||||
<a href="_cogtracker_.dialog.html#save" class="tsd-kind-icon">save</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#id" class="tsd-kind-icon">id</a>
|
||||
<a href="_cogtracker_.dialog.html#id" class="tsd-kind-icon">id</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#tostring" class="tsd-kind-icon">to<wbr>String</a>
|
||||
<a href="_cogtracker_.dialog.html#tostring" class="tsd-kind-icon">to<wbr>String</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="after-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a>
|
||||
<a href="_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.definition.html" class="tsd-kind-icon">Definition</a>
|
|
@ -59,7 +59,7 @@
|
|||
<a href="../modules/_cogtracker_.html">"cogTracker"</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="_cogtracker_.cogtracker.html">CogTracker</a>
|
||||
<a href="_cogtracker_.dialogtracker.html">CogTracker</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>Class CogTracker</h1>
|
||||
|
@ -91,42 +91,42 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>Constructors</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Properties</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#cogs" class="tsd-kind-icon">cogs</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#idto" class="tsd-kind-icon">id<wbr>To</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#missingtypes" class="tsd-kind-icon">missing<wbr>Types</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#root" class="tsd-kind-icon">root</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#typeto" class="tsd-kind-icon">type<wbr>To</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#validator" class="tsd-kind-icon">validator</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#cogs" class="tsd-kind-icon">cogs</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#idto" class="tsd-kind-icon">id<wbr>To</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#missingtypes" class="tsd-kind-icon">missing<wbr>Types</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#root" class="tsd-kind-icon">root</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#typeto" class="tsd-kind-icon">type<wbr>To</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#validator" class="tsd-kind-icon">validator</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Methods</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#addcog" class="tsd-kind-icon">add<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#addcogfile" class="tsd-kind-icon">add<wbr>Cog<wbr>File</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#addcogfiles" class="tsd-kind-icon">add<wbr>Cog<wbr>Files</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#adddefinition" class="tsd-kind-icon">add<wbr>Definition</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#addreference" class="tsd-kind-icon">add<wbr>Reference</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#alldefinitions" class="tsd-kind-icon">all<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#clonecog" class="tsd-kind-icon">clone<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#expandref" class="tsd-kind-icon">expand<wbr>Ref</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#findcog" class="tsd-kind-icon">find<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#findcogfile" class="tsd-kind-icon">find<wbr>Cog<wbr>File</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#geturl" class="tsd-kind-icon">getURL</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#missingdefinitions" class="tsd-kind-icon">missing<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#multipledefinitions" class="tsd-kind-icon">multiple<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#removecog" class="tsd-kind-icon">remove<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#removedefinition" class="tsd-kind-icon">remove<wbr>Definition</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#unusedids" class="tsd-kind-icon">unusedIDs</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#updatecog" class="tsd-kind-icon">update<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#walkjson" class="tsd-kind-icon">walkJSON</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#writecogs" class="tsd-kind-icon">write<wbr>Cogs</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#addcog" class="tsd-kind-icon">add<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#addcogfile" class="tsd-kind-icon">add<wbr>dialog<wbr>File</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#addcogfiles" class="tsd-kind-icon">add<wbr>dialog<wbr>Files</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#adddefinition" class="tsd-kind-icon">add<wbr>Definition</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#addreference" class="tsd-kind-icon">add<wbr>Reference</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#alldefinitions" class="tsd-kind-icon">all<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#clonecog" class="tsd-kind-icon">clone<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#expandref" class="tsd-kind-icon">expand<wbr>Ref</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#findcog" class="tsd-kind-icon">find<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#findcogfile" class="tsd-kind-icon">find<wbr>dialog<wbr>File</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#geturl" class="tsd-kind-icon">getURL</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#missingdefinitions" class="tsd-kind-icon">missing<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#multipledefinitions" class="tsd-kind-icon">multiple<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#removecog" class="tsd-kind-icon">remove<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#removedefinition" class="tsd-kind-icon">remove<wbr>Definition</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#unusedids" class="tsd-kind-icon">unusedIDs</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#updatecog" class="tsd-kind-icon">update<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#walkjson" class="tsd-kind-icon">walkJSON</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#writecogs" class="tsd-kind-icon">write<wbr>Cogs</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
@ -138,7 +138,7 @@
|
|||
<a name="constructor" class="tsd-anchor"></a>
|
||||
<h3>constructor</h3>
|
||||
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>Cog<wbr>Tracker<span class="tsd-signature-symbol">(</span>root<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cogtracker.html" class="tsd-signature-type">CogTracker</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>dialog<wbr>Tracker<span class="tsd-signature-symbol">(</span>root<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialogtracker.html" class="tsd-signature-type">CogTracker</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -153,7 +153,7 @@
|
|||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> root: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_cogtracker_.cogtracker.html" class="tsd-signature-type">CogTracker</a></h4>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_cogtracker_.dialogtracker.html" class="tsd-signature-type">CogTracker</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -163,7 +163,7 @@
|
|||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="cogs" class="tsd-anchor"></a>
|
||||
<h3>cogs</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">cogs<span class="tsd-signature-symbol">:</span> <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">[]</span></div>
|
||||
<div class="tsd-signature tsd-kind-icon">cogs<span class="tsd-signature-symbol">:</span> <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">[]</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/Microsoft/botbuilder-tools/blob/fbe1289/packages/CogLint/src/cogTracker.ts#L169">cogTracker.ts:169</a></li>
|
||||
|
@ -188,7 +188,7 @@
|
|||
<div class="lead">
|
||||
<p>Map from $id to the definition.
|
||||
If there are more than one, then it is multiply defined.
|
||||
If any of them are missing cog, then there is a $copy, but no definition.</p>
|
||||
If any of them are missing dialog, then there is a $copy, but no definition.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -252,9 +252,9 @@
|
|||
<h2>Methods</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="addcog" class="tsd-anchor"></a>
|
||||
<h3>add<wbr>Cog</h3>
|
||||
<h3>add<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>Cog<span class="tsd-signature-symbol">(</span>cog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>dialog<span class="tsd-signature-symbol">(</span>dialog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -265,13 +265,13 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Add a new Cog file to the tracker.</p>
|
||||
<p>Add a new dialog file to the tracker.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5>dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -280,9 +280,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="addcogfile" class="tsd-anchor"></a>
|
||||
<h3>add<wbr>Cog<wbr>File</h3>
|
||||
<h3>add<wbr>dialog<wbr>File</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>Cog<wbr>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">></span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>dialog<wbr>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">></span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -293,7 +293,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Read a cog file and add it to the tracker.</p>
|
||||
<p>Read a dialog file and add it to the tracker.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -302,15 +302,15 @@
|
|||
<h5>file: <span class="tsd-signature-type">string</span></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">></span></h4>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">></span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="addcogfiles" class="tsd-anchor"></a>
|
||||
<h3>add<wbr>Cog<wbr>Files</h3>
|
||||
<h3>add<wbr>dialog<wbr>Files</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>Cog<wbr>Files<span class="tsd-signature-symbol">(</span>patterns<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>dialog<wbr>Files<span class="tsd-signature-symbol">(</span>patterns<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -321,7 +321,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Add cog files that match patterns to tracker.</p>
|
||||
<p>Add dialog files that match patterns to tracker.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -424,9 +424,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="clonecog" class="tsd-anchor"></a>
|
||||
<h3>clone<wbr>Cog</h3>
|
||||
<h3>clone<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">clone<wbr>Cog<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">clone<wbr>dialog<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -437,7 +437,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Clone an existing cog so you can modify it and then call updateCog.</p>
|
||||
<p>Clone an existing dialog so you can modify it and then call updateCog.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -448,7 +448,7 @@
|
|||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span>
|
||||
<span class="tsd-signature-symbol"> | </span>
|
||||
<a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a>
|
||||
</h4>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -457,7 +457,7 @@
|
|||
<a name="expandref" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagPrivate">Private</span> expand<wbr>Ref</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<li class="tsd-signature tsd-kind-icon">expand<wbr>Ref<span class="tsd-signature-symbol">(</span>ref<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, cog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">expand<wbr>Ref<span class="tsd-signature-symbol">(</span>ref<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, dialog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -472,7 +472,7 @@
|
|||
<h5>ref: <span class="tsd-signature-type">string</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5>dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
||||
|
@ -481,9 +481,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="findcog" class="tsd-anchor"></a>
|
||||
<h3>find<wbr>Cog</h3>
|
||||
<h3>find<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>Cog<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>dialog<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -494,7 +494,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Find an existing cog or return undefined.</p>
|
||||
<p>Find an existing dialog or return undefined.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -505,16 +505,16 @@
|
|||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span>
|
||||
<span class="tsd-signature-symbol"> | </span>
|
||||
<a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a>
|
||||
</h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="findcogfile" class="tsd-anchor"></a>
|
||||
<h3>find<wbr>Cog<wbr>File</h3>
|
||||
<h3>find<wbr>dialog<wbr>File</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>Cog<wbr>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>dialog<wbr>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -525,7 +525,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Find the cog corresponding to a file path.</p>
|
||||
<p>Find the dialog corresponding to a file path.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -536,7 +536,7 @@
|
|||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span>
|
||||
<span class="tsd-signature-symbol"> | </span>
|
||||
<a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a>
|
||||
</h4>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -610,9 +610,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="removecog" class="tsd-anchor"></a>
|
||||
<h3>remove<wbr>Cog</h3>
|
||||
<h3>remove<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">remove<wbr>Cog<span class="tsd-signature-symbol">(</span>cog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">remove<wbr>dialog<span class="tsd-signature-symbol">(</span>dialog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -623,13 +623,13 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Remove cog from tracker.</p>
|
||||
<p>Remove dialog from tracker.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5>dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
||||
|
@ -688,9 +688,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="updatecog" class="tsd-anchor"></a>
|
||||
<h3>update<wbr>Cog</h3>
|
||||
<h3>update<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">update<wbr>Cog<span class="tsd-signature-symbol">(</span>cog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">update<wbr>dialog<span class="tsd-signature-symbol">(</span>dialog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -701,13 +701,13 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Update or add a cog.</p>
|
||||
<p>Update or add a dialog.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5>dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -779,7 +779,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Write out cog files with save true and reset the flag.</p>
|
||||
<p>Write out dialog files with save true and reset the flag.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -804,100 +804,100 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="../modules/_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="current">
|
||||
<li class="current tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a>
|
||||
<a href="_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a>
|
||||
<ul>
|
||||
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#cogs" class="tsd-kind-icon">cogs</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#cogs" class="tsd-kind-icon">cogs</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#idto" class="tsd-kind-icon">id<wbr>To</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#idto" class="tsd-kind-icon">id<wbr>To</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#missingtypes" class="tsd-kind-icon">missing<wbr>Types</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#missingtypes" class="tsd-kind-icon">missing<wbr>Types</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#root" class="tsd-kind-icon">root</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#root" class="tsd-kind-icon">root</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#typeto" class="tsd-kind-icon">type<wbr>To</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#typeto" class="tsd-kind-icon">type<wbr>To</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#validator" class="tsd-kind-icon">validator</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#validator" class="tsd-kind-icon">validator</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#addcog" class="tsd-kind-icon">add<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#addcog" class="tsd-kind-icon">add<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#addcogfile" class="tsd-kind-icon">add<wbr>Cog<wbr>File</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#addcogfile" class="tsd-kind-icon">add<wbr>dialog<wbr>File</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#addcogfiles" class="tsd-kind-icon">add<wbr>Cog<wbr>Files</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#addcogfiles" class="tsd-kind-icon">add<wbr>dialog<wbr>Files</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#adddefinition" class="tsd-kind-icon">add<wbr>Definition</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#adddefinition" class="tsd-kind-icon">add<wbr>Definition</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#addreference" class="tsd-kind-icon">add<wbr>Reference</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#addreference" class="tsd-kind-icon">add<wbr>Reference</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#alldefinitions" class="tsd-kind-icon">all<wbr>Definitions</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#alldefinitions" class="tsd-kind-icon">all<wbr>Definitions</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#clonecog" class="tsd-kind-icon">clone<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#clonecog" class="tsd-kind-icon">clone<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#expandref" class="tsd-kind-icon">expand<wbr>Ref</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#expandref" class="tsd-kind-icon">expand<wbr>Ref</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#findcog" class="tsd-kind-icon">find<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#findcog" class="tsd-kind-icon">find<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#findcogfile" class="tsd-kind-icon">find<wbr>Cog<wbr>File</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#findcogfile" class="tsd-kind-icon">find<wbr>dialog<wbr>File</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#geturl" class="tsd-kind-icon">getURL</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#geturl" class="tsd-kind-icon">getURL</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#missingdefinitions" class="tsd-kind-icon">missing<wbr>Definitions</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#missingdefinitions" class="tsd-kind-icon">missing<wbr>Definitions</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#multipledefinitions" class="tsd-kind-icon">multiple<wbr>Definitions</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#multipledefinitions" class="tsd-kind-icon">multiple<wbr>Definitions</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#removecog" class="tsd-kind-icon">remove<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#removecog" class="tsd-kind-icon">remove<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#removedefinition" class="tsd-kind-icon">remove<wbr>Definition</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#removedefinition" class="tsd-kind-icon">remove<wbr>Definition</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#unusedids" class="tsd-kind-icon">unusedIDs</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#unusedids" class="tsd-kind-icon">unusedIDs</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#updatecog" class="tsd-kind-icon">update<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#updatecog" class="tsd-kind-icon">update<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#walkjson" class="tsd-kind-icon">walkJSON</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#walkjson" class="tsd-kind-icon">walkJSON</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#writecogs" class="tsd-kind-icon">write<wbr>Cogs</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#writecogs" class="tsd-kind-icon">write<wbr>Cogs</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
|
@ -97,7 +97,7 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>Properties</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#cog" class="tsd-kind-icon">cog</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#dialog" class="tsd-kind-icon">dialog</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#id" class="tsd-kind-icon">id</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#path" class="tsd-kind-icon">path</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#type" class="tsd-kind-icon">type</a></li>
|
||||
|
@ -123,7 +123,7 @@
|
|||
<a name="constructor" class="tsd-anchor"></a>
|
||||
<h3>constructor</h3>
|
||||
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>Definition<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, cog<span class="tsd-signature-symbol">?: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a>, path<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.definition.html" class="tsd-signature-type">Definition</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>Definition<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, dialog<span class="tsd-signature-symbol">?: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a>, path<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.definition.html" class="tsd-signature-type">Definition</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -156,10 +156,10 @@
|
|||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>The cog that contains the definition. (undefined for forward reference.)</p>
|
||||
<p>The dialog that contains the definition. (undefined for forward reference.)</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -180,9 +180,9 @@
|
|||
<section class="tsd-panel-group tsd-member-group ">
|
||||
<h2>Properties</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="cog" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagOptional">Optional</span> cog</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">cog<span class="tsd-signature-symbol">:</span> <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></div>
|
||||
<a name="dialog" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagOptional">Optional</span> dialog</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">dialog<span class="tsd-signature-symbol">:</span> <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/Microsoft/botbuilder-tools/blob/fbe1289/packages/CogLint/src/cogTracker.ts#L54">cogTracker.ts:54</a></li>
|
||||
|
@ -190,7 +190,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Cog that contains definition.</p>
|
||||
<p>dialog that contains definition.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -220,7 +220,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Path within the cog that leads to the component definition.</p>
|
||||
<p>Path within the dialog that leads to the component definition.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -362,20 +362,20 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="../modules/_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a>
|
||||
<a href="_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="current">
|
||||
|
@ -386,7 +386,7 @@
|
|||
<a href="_cogtracker_.definition.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.definition.html#cog" class="tsd-kind-icon">cog</a>
|
||||
<a href="_cogtracker_.definition.html#dialog" class="tsd-kind-icon">dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.definition.html#id" class="tsd-kind-icon">id</a>
|
|
@ -125,10 +125,10 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="../modules/_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
|
@ -70,8 +70,8 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>External modules</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-external-module"><a href="modules/_coglint_.html" class="tsd-kind-icon">"cog<wbr>Lint"</a></li>
|
||||
<li class="tsd-kind-external-module"><a href="modules/_cogtracker_.html" class="tsd-kind-icon">"cog<wbr>Tracker"</a></li>
|
||||
<li class="tsd-kind-external-module"><a href="modules/_coglint_.html" class="tsd-kind-icon">"dialog<wbr>Lint"</a></li>
|
||||
<li class="tsd-kind-external-module"><a href="modules/_cogtracker_.html" class="tsd-kind-icon">"dialog<wbr>Tracker"</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
@ -85,10 +85,10 @@
|
|||
<a href="globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="modules/_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
|
@ -66,7 +66,7 @@
|
|||
<div class="tsd-panel tsd-typography">
|
||||
<p><a href="https://badge.fury.io/js/cogLint"><img src="https://badge.fury.io/js/msbot.svg" alt="npm version"></a></p>
|
||||
<h1 id="coglint-command-line-tool">CogLint Command Line tool</h1>
|
||||
<p>CogLint is a command line tool that analyzes JSON .cog files created for the Bot Framework. It builds an index of cog components and how they relate to each other using $type, $id and $copy. From this information it prints out information about types and any errors including: </p>
|
||||
<p>CogLint is a command line tool that analyzes JSON .dialog files created for the Bot Framework. It builds an index of dialog components and how they relate to each other using $type, $id and $copy. From this information it prints out information about types and any errors including: </p>
|
||||
<ul>
|
||||
<li><strong>Missing $type:</strong> A valid component must include a $type.</li>
|
||||
<li><strong>Multiple $id definitions:</strong> There should be only one definition for a $id.</li>
|
||||
|
@ -77,7 +77,7 @@
|
|||
References to definitions show up in this format <code>TYPE[ID](file#/path)</code>.</li>
|
||||
</ul>
|
||||
<h1 id="cogtracker-class">CogTracker class</h1>
|
||||
<p>If you need to work with cog files, you can make use of the <a href="docs/classes/_cogtracker_.cogtracker.html"><code>CogTracker</code></a> class which supports reading, updating, writing and indexing cog files with both schema and semantic validation. The <a href="src/cogLint.ts"><code>CogLint</code></a> tool shows an example of how to use the tracker to read in files and report various kinds of errors. You can also use the class as an in-memory cache of cog definitions and their relationships.</p>
|
||||
<p>If you need to work with dialog files, you can make use of the <a href="docs/classes/_cogtracker_.dialogtracker.html"><code>CogTracker</code></a> class which supports reading, updating, writing and indexing dialog files with both schema and semantic validation. The <a href="src/cogLint.ts"><code>CogLint</code></a> tool shows an example of how to use the tracker to read in files and report various kinds of errors. You can also use the class as an in-memory cache of dialog definitions and their relationships.</p>
|
||||
<h2 id="prerequisite">Prerequisite</h2>
|
||||
<ul>
|
||||
<li><a href="https://nodejs.org/">Node.js</a> version 8.5 or higher</li>
|
||||
|
@ -105,10 +105,10 @@
|
|||
<a href="globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="modules/_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
|
@ -130,10 +130,10 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="../modules/_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
|
@ -176,10 +176,10 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
|
@ -73,8 +73,8 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>Classes</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a></li>
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a></li>
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a></li>
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a></li>
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.definition.html" class="tsd-kind-icon">Definition</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -108,20 +108,20 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="_coglint_.html">"cog<wbr>Lint"</a>
|
||||
<a href="_coglint_.html">"dialog<wbr>Lint"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="../classes/_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a>
|
||||
<a href="../classes/_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="../classes/_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a>
|
||||
<a href="../classes/_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="../classes/_cogtracker_.definition.html" class="tsd-kind-icon">Definition</a>
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "coglint",
|
||||
"name": "dialoglint",
|
||||
"version": "1.2.0",
|
||||
"description": "Merge together multiple JSON schemas with references and allof into a single simple schema.",
|
||||
"main": "./lib/cogLint.js",
|
||||
"types": "./typing/lib/cogLint.d.ts",
|
||||
"main": "./lib/dialogLint.js",
|
||||
"types": "./typing/lib/dialogLint.d.ts",
|
||||
"bin": {
|
||||
"cogLint": "./lib/cogLint.js"
|
||||
"dialoglint": "./lib/dialogLint.js"
|
||||
},
|
||||
"directories": {
|
||||
"bin": "bin",
|
||||
|
@ -56,7 +56,7 @@
|
|||
"ajv": "^6.9.1",
|
||||
"chalk": "^2.4.2",
|
||||
"clone": "^2.1.2",
|
||||
"cogtracker": "^1.0.0",
|
||||
"dialogtracker": "^1.0.0",
|
||||
"commander": "^2.19.0",
|
||||
"fs-extra": "^7.0.1",
|
||||
"globby": "^9.0.0",
|
|
@ -6,7 +6,7 @@
|
|||
// tslint:disable:no-console
|
||||
// tslint:disable:no-object-literal-type-assertion
|
||||
import * as chalk from 'chalk';
|
||||
import * as ct from 'cogtracker';
|
||||
import * as dt from 'dialogtracker';
|
||||
import * as program from 'commander';
|
||||
import * as process from 'process';
|
||||
import * as semver from 'semver';
|
||||
|
@ -31,32 +31,32 @@ program.Command.prototype.unknownOption = (flag: string): void => {
|
|||
program
|
||||
.version(pkg.version, '-v, --Version')
|
||||
.usage("[options] <fileRegex ...>")
|
||||
.option("-w, write <path>", "Write cog lg information into .lg files where <path> is an .lg file with no locale.")
|
||||
.description(`Take JSON .cog files created for Bot Framework and index $id, $type and $ref to identify errors. See readme.md for more information.`)
|
||||
.option("-w, write <path>", "Write dialog lg information into .lg files where <path> is an .lg file with no locale.")
|
||||
.description(`Take JSON .dialog files created for Bot Framework and index $id, $type and $ref to identify errors. See readme.md for more information.`)
|
||||
.parse(process.argv);
|
||||
|
||||
doIndexing();
|
||||
|
||||
async function doIndexing() {
|
||||
const schema = new ct.SchemaTracker();
|
||||
const tracker = new ct.CogTracker(schema);
|
||||
await tracker.addCogFiles(program.args);
|
||||
if (tracker.cogs.length == 0) {
|
||||
const schema = new dt.SchemaTracker();
|
||||
const tracker = new dt.DialogTracker(schema);
|
||||
await tracker.addDialogFiles(program.args);
|
||||
if (tracker.dialogs.length == 0) {
|
||||
program.help();
|
||||
} else {
|
||||
for (let cog of tracker.cogs) {
|
||||
if (cog.errors.length == 0) {
|
||||
logger(MsgKind.msg, `Processed ${cog}`);
|
||||
for (let dialog of tracker.dialogs) {
|
||||
if (dialog.errors.length == 0) {
|
||||
logger(MsgKind.msg, `Processed ${dialog}`);
|
||||
} else {
|
||||
logger(MsgKind.error, `Errors processing ${cog}`);
|
||||
for (let error of cog.errors) {
|
||||
logger(MsgKind.error, `Errors processing ${dialog}`);
|
||||
for (let error of dialog.errors) {
|
||||
logger(MsgKind.error, ` ${error.message}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (let defs of tracker.multipleDefinitions()) {
|
||||
let def = (<ct.Definition[]>defs)[0];
|
||||
let def = (<dt.Definition[]>defs)[0];
|
||||
logger(MsgKind.error, `Multiple definitions for ${def} ${def.usedByString()}`);
|
||||
for (let def of defs) {
|
||||
logger(MsgKind.error, ` ${def.pathString()}`);
|
|
@ -8,7 +8,7 @@
|
|||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Program",
|
||||
"program": "${workspaceFolder}\\lib\\cogSchemaMain.js",
|
||||
"program": "${workspaceFolder}\\lib\\dialogSchemaMain.js",
|
||||
"args":
|
||||
[
|
||||
"implementations/*.schema",
|
||||
|
@ -26,7 +26,7 @@
|
|||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Tom",
|
||||
"program": "${workspaceFolder}\\lib\\cogSchemaMain.js",
|
||||
"program": "${workspaceFolder}\\lib\\dialogSchemaMain.js",
|
||||
"args": [
|
||||
"components/**/*.schema",
|
||||
"-o",
|
||||
|
@ -42,7 +42,7 @@
|
|||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch OBI",
|
||||
"program": "${workspaceFolder}\\lib\\cogSchema.js",
|
||||
"program": "${workspaceFolder}\\lib\\dialogSchemaMain.js",
|
||||
"args": [
|
||||
"**/*.schema",
|
||||
"-o",
|
||||
|
@ -57,14 +57,14 @@
|
|||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch cogLint",
|
||||
"program": "${workspaceFolder}\\lib\\cogSchema.js",
|
||||
"name": "Launch dialogLint",
|
||||
"program": "${workspaceFolder}\\lib\\dialogSchemaMain.js",
|
||||
"args": [
|
||||
"*.schema",
|
||||
"-o",
|
||||
"../examples/app.schema"
|
||||
],
|
||||
"cwd": "${workspaceFolder}/../cogLint/test/schemas",
|
||||
"cwd": "${workspaceFolder}/../dialogLint/test/schemas",
|
||||
"preLaunchTask": "tsc: build - tsconfig.json",
|
||||
"outFiles": [
|
||||
"${workspaceFolder}/lib/**/*.js"
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# CogSchema Command Line tool
|
||||
|
||||
CogSchema tool is a command line tool designed to merge together Microsoft Bot Builder](https://github.com/Microsoft/BotBuilder) .schema JSON schema files into a single JSON schema file. The .schema files should have a unique filename that is used to refer to that type using `$type`. The .schema files can optionally include a `$schema: "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema"` which defines the schema they are validated against. Within a schema definition you can use `$role:"unionType(<type>)` to project the type definition into union types defined using `$role:"unionType"` while merging. To refer to a type in a property, just use `"$type":"<type>"`. The merger combines all of the component .schema files into a single .schema file that has resolved all external `$ref`, merged `allOf` and connected together schemas through `$role` and `$type`.
|
||||
CogSchema tool is a command line tool designed to merge together Microsoft Bot Builder](https://github.com/Microsoft/BotBuilder) .schema JSON schema files into a single JSON schema file. The .schema files should have a unique filename that is used to refer to that type using `$type`. The .schema files can optionally include a `$schema: "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema"` which defines the schema they are validated against. Within a schema definition you can use `$role:"unionType(<type>)` to project the type definition into union types defined using `$role:"unionType"` while merging. To refer to a type in a property, just use `"$type":"<type>"`. The merger combines all of the component .schema files into a single .schema file that has resolved all external `$ref`, merged `allOf` and connected together schemas through `$role` and `$type`.
|
||||
|
||||
In addition all .lg files that share a location and name with .schema files will be merged into a single global .lg file for each locale. The naming pattern is `<type>[-<locale>].lg` found in the same location as `<type>.schema`. If a global .lg file already exists then its template definitions will replace any associated with individual .schema files. Any property marked with `$role:"lg"` will automatically be included as an empty template if not already defined in a .lg file.
|
||||
|
||||
|
@ -14,7 +14,7 @@ For example look at these files:
|
|||
* [Microsoft.Prompt-en-us.lg](test/examples/Microsoft.Prompt-en-us.lg) Shows some templates for a particular type.
|
||||
* [app.lg](test/examples/app.lg) and [app-en-us.lg](test/examples/app-en-us.lg) show files generated by this tool.
|
||||
|
||||
[example.cog](test/examples/example.cog) Shows how you could use the resulting schema to enter in JSON schema and get intellisense.
|
||||
[example.dialog](test/examples/example.dialog) Shows how you could use the resulting schema to enter in JSON schema and get intellisense.
|
||||
|
||||
## Prerequisite
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"$id": "app.schema",
|
||||
"type": "object",
|
||||
"title": "Component types",
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "cogschema",
|
||||
"name": "dialogschema",
|
||||
"version": "1.0.0",
|
||||
"description": "Merge together multiple Bot Framework .cog JSON schemas into a single schema.",
|
||||
"main": "./lib/cogSchemaMain.js",
|
||||
"types": "./typings/lib/cogSchema.d.ts",
|
||||
"description": "Merge together multiple Bot Framework .dialog JSON schemas into a single schema.",
|
||||
"main": "./lib/dialogSchemaMain.js",
|
||||
"types": "./typings/lib/dialogSchema.d.ts",
|
||||
"bin": {
|
||||
"cogSchema": "./lib/cogSchema.js"
|
||||
"dialogschema": "./lib/dialogSchema.js"
|
||||
},
|
||||
"directories": {
|
||||
"bin": "bin",
|
||||
|
@ -49,7 +49,7 @@
|
|||
"ajv": "^6.9.1",
|
||||
"chalk": "^2.4.2",
|
||||
"clone": "^2.1.2",
|
||||
"cogtracker": "^1.0.0",
|
||||
"dialogtracker": "^1.0.0",
|
||||
"commander": "^2.19.0",
|
||||
"fs-extra": "^7.0.1",
|
||||
"globby": "^9.0.0",
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"title": "JSON Schema definition for cog schemas.",
|
||||
"description": "In order to create a component for Bot Framework .cog files you need to create a schema file describing your configuration that meets this definition. This extends http://json-schema.org/draft-07/schema#.",
|
||||
"$id": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"title": "JSON Schema definition for dialog schemas.",
|
||||
"description": "In order to create a component for Bot Framework .dialog files you need to create a schema file describing your configuration that meets this definition. This extends http://json-schema.org/draft-07/schema#.",
|
||||
"definitions": {
|
||||
"role": {
|
||||
"title": "$role",
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"title": "JSON Schema definition for cog schemas.",
|
||||
"$id": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"title": "JSON Schema definition for dialog schemas.",
|
||||
"definitions": {
|
||||
"schemaArray": {
|
||||
"type": "array",
|
||||
|
@ -287,6 +287,6 @@
|
|||
}
|
||||
},
|
||||
"default": true,
|
||||
"description": "In order to create a component for Bot Framework .cog files you need to create a schema file describing your configuration that meets this definition. This extends http://json-schema.org/draft-07/schema#.",
|
||||
"$comment": "This file is generated by running the cogSchema node tool when there is not a cogSchema.schema file."
|
||||
"description": "In order to create a component for Bot Framework .dialog files you need to create a schema file describing your configuration that meets this definition. This extends http://json-schema.org/draft-07/schema#.",
|
||||
"$comment": "This file is generated by running the cogSchema node tool when there is not a dialogSchema.schema file."
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
// tslint:disable:no-console
|
||||
// tslint:disable:no-object-literal-type-assertion
|
||||
import * as chalk from 'chalk';
|
||||
import * as ct from 'cogtracker';
|
||||
import * as dt from 'dialogtracker';
|
||||
import * as fs from 'fs-extra';
|
||||
import * as glob from 'globby';
|
||||
import * as os from 'os';
|
||||
|
@ -21,7 +21,7 @@ const jsonOptions = { spaces: 4, EOL: os.EOL};
|
|||
let failed = false;
|
||||
let missingTypes = new Set();
|
||||
|
||||
// NOTE: This relies on an internal copy of cogSchema.schema which is generated by deleting the old file
|
||||
// NOTE: This relies on an internal copy of dialogSchema.schema which is generated by deleting the old file
|
||||
// and then running this which will pull in the standard meta-schema from the web.
|
||||
|
||||
/** Merge together .schema and .lg files to make a custom schema.
|
||||
|
@ -104,9 +104,9 @@ export async function mergeSchemas(patterns: string[], output?: string, flat?: b
|
|||
await fs.writeJSON(output, finalSchema, jsonOptions);
|
||||
console.log("");
|
||||
progress("Generating .lg files");
|
||||
let schema = new ct.SchemaTracker();
|
||||
let schema = new dt.SchemaTracker();
|
||||
await schema.getValidator(output);
|
||||
let lg = new ct.LGTracker(schema);
|
||||
let lg = new dt.LGTracker(schema);
|
||||
for (let schemaPath of schemaPaths) {
|
||||
await lg.addLGFiles([path.join(path.dirname(schemaPath), path.basename(schemaPath, ".schema") + "*.lg")], progress);
|
||||
}
|
||||
|
@ -128,13 +128,14 @@ export async function mergeSchemas(patterns: string[], output?: string, flat?: b
|
|||
|
||||
async function getMetaSchema(): Promise<any> {
|
||||
let metaSchema: any;
|
||||
let schemaName = path.join(__dirname, "../src/cogSchema.schema");
|
||||
let schemaName = path.join(__dirname, "../src/dialogSchema.schema");
|
||||
if (!await fs.pathExists(schemaName)) {
|
||||
console.log("Generating cogSchema.schema");
|
||||
console.log("Generating dialogSchema.schema");
|
||||
let baseName = path.join(__dirname, "../src/baseCogSchema.schema");
|
||||
let schema = await fs.readJSON(baseName);
|
||||
let metaSchemaName = schema.$schema;
|
||||
metaSchema = JSON.parse(await getURL(metaSchemaName));
|
||||
let metaSchemaDef = await getURL(metaSchemaName);
|
||||
metaSchema = JSON.parse(metaSchemaDef);
|
||||
for (let prop in schema) {
|
||||
let propDef = schema[prop];
|
||||
if (typeof propDef === "string") {
|
||||
|
@ -145,7 +146,7 @@ async function getMetaSchema(): Promise<any> {
|
|||
}
|
||||
}
|
||||
}
|
||||
metaSchema.$comment = "This file is generated by running the cogSchema node tool when there is not a cogSchema.schema file.";
|
||||
metaSchema.$comment = "This file is generated by running the cogSchema node tool when there is not a dialogSchema.schema file.";
|
||||
await fs.writeJSON(schemaName, metaSchema, jsonOptions);
|
||||
} else {
|
||||
metaSchema = await fs.readJSON(schemaName);
|
|
@ -6,7 +6,7 @@
|
|||
// tslint:disable:no-console
|
||||
// tslint:disable:no-object-literal-type-assertion
|
||||
import * as chalk from 'chalk';
|
||||
import * as cs from './cogSchema';
|
||||
import * as ds from './dialogSchema';
|
||||
import * as process from 'process';
|
||||
import * as program from 'commander';
|
||||
import * as semver from 'semver';
|
||||
|
@ -44,7 +44,7 @@ program
|
|||
.description(`Take JSON Schema files and merge them into a single schema file where $ref are included and allOf are merged. Will also use $role to define union types and lg properties. All associated .lg files will be merged into a single .lg file per locale. See readme.md for more information.`)
|
||||
.parse(process.argv);
|
||||
|
||||
cs.mergeSchemas(program.args, program.output, program.flat)
|
||||
ds.mergeSchemas(program.args, program.output, program.flat)
|
||||
.then((finished) => {
|
||||
if (!finished) program.help();
|
||||
});
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "../../src/cogSchema.schema",
|
||||
"$schema": "../../src/dialogSchema.schema",
|
||||
"title": "Microsoft Nothing",
|
||||
"description": "Definition of a union type with no $implements.",
|
||||
"$role":"unionType"
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "../../src/cogSchema.schema",
|
||||
"$schema": "../../src/dialogSchema.schema",
|
||||
"title": "Microsoft IPrompt",
|
||||
"description": "Definition of Microsoft.IPrompt which will be expanded by components that $implements it.",
|
||||
"$role":"unionType"
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "../../src/cogSchema.schema",
|
||||
"$schema": "../../src/dialogSchema.schema",
|
||||
"title": "Microsoft IRecognizer",
|
||||
"description": "Definition of Microsoft.IRecognizer which will be expanded by components that $implements it.",
|
||||
"$role": "unionType",
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"$id": "app.schema",
|
||||
"type": "object",
|
||||
"title": "Component types",
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"title": "LUIS Recognizer",
|
||||
"description": "LUIS recognizer.",
|
||||
"$role": ["unionType(Microsoft.IRecognizer)", "unionType(Microsoft.IPrompt)"],
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "../../src/cogSchema.schema",
|
||||
"$schema": "../../src/dialogSchema.schema",
|
||||
"title": "Simple Prompt",
|
||||
"description": "Example simple prompt.",
|
||||
"$role": "unionType(Microsoft.IPrompt)",
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "../../src/cogSchema.schema",
|
||||
"$schema": "../../src/dialogSchema.schema",
|
||||
"title": "Regular Expression Recognizer",
|
||||
"description": "Example regular expression recognizer.",
|
||||
"$role": "unionType(Microsoft.IRecognizer)",
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"title": "Prompt",
|
||||
"$role": "unionType(Microsoft.IPrompt)",
|
||||
"properties": {
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "../../src/cogSchema.schema",
|
||||
"$schema": "../../src/dialogSchema.schema",
|
||||
"title": "Topic",
|
||||
"description": "Topic from DRuE.",
|
||||
"type": "object",
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# CogTracker
|
||||
|
||||
This library allows reading, validating, indexing, modifying and writing [Bot Framework](https://dev.botframework.com/) .schema, .cog and .lg files utilizing an in-memory cache. It reads in cog files and captures errors in them so that they can be presented as issues to be fixed. It also provides indexing to help tools maniuplate the information in the files. It builds an index of .cog components and how they relate to each other using $type, $role, $id and $copy. It captures:
|
||||
This library allows reading, validating, indexing, modifying and writing [Bot Framework](https://dev.botframework.com/) .schema, .dialog and .lg files utilizing an in-memory cache. It reads in dialog files and captures errors in them so that they can be presented as issues to be fixed. It also provides indexing to help tools maniuplate the information in the files. It builds an index of .dialog components and how they relate to each other using $type, $role, $id and $copy. It captures:
|
||||
* **Missing $type:** A valid component must include a $type.
|
||||
* **Multiple $id definitions:** There should be only one definition for a $id.
|
||||
* **Incompatible types between $copy and $id:**
|
||||
|
@ -13,7 +13,7 @@ This library allows reading, validating, indexing, modifying and writing [Bot Fr
|
|||
References to definitions show up in this format `TYPE[ID](file#/path)`.
|
||||
|
||||
## Using
|
||||
The main class is the [`CogTracker`](docs/classes/_cogtracker_.cogtracker.html) class which supports reading, updating, writing and indexing cog files with both schema and semantic validation. The [`CogLint`](../coglint/src/cogLint.ts) tool shows an example of how to use the tracker to read in files and report various kinds of errors.
|
||||
The main class is the [`CogTracker`](docs/classes/_cogtracker_.dialogtracker.html) class which supports reading, updating, writing and indexing dialog files with both schema and semantic validation. The [`CogLint`](../coglint/src/cogLint.ts) tool shows an example of how to use the tracker to read in files and report various kinds of errors.
|
||||
|
||||
## Prerequisite
|
||||
|
До Ширина: | Высота: | Размер: 9.3 KiB После Ширина: | Высота: | Размер: 9.3 KiB |
До Ширина: | Высота: | Размер: 27 KiB После Ширина: | Высота: | Размер: 27 KiB |
До Ширина: | Высота: | Размер: 480 B После Ширина: | Высота: | Размер: 480 B |
До Ширина: | Высота: | Размер: 855 B После Ширина: | Высота: | Размер: 855 B |
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Cog | cogtracker</title>
|
||||
<title>dialog | cogtracker</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="../assets/css/main.css">
|
||||
|
@ -59,10 +59,10 @@
|
|||
<a href="../modules/_cogtracker_.html">"cogTracker"</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="_cogtracker_.cog.html">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html">dialog</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>Class Cog</h1>
|
||||
<h1>Class dialog</h1>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
@ -72,7 +72,7 @@
|
|||
<section class="tsd-panel tsd-comment">
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Top-level cog definition that would be found in a file.</p>
|
||||
<p>Top-level dialog definition that would be found in a file.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -80,7 +80,7 @@
|
|||
<h3>Hierarchy</h3>
|
||||
<ul class="tsd-hierarchy">
|
||||
<li>
|
||||
<span class="target">Cog</span>
|
||||
<span class="target">dialog</span>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -91,24 +91,24 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>Constructors</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_cogtracker_.cog.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Properties</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cog.html#body" class="tsd-kind-icon">body</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cog.html#errors" class="tsd-kind-icon">errors</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cog.html#file" class="tsd-kind-icon">file</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cog.html#save" class="tsd-kind-icon">save</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#body" class="tsd-kind-icon">body</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#errors" class="tsd-kind-icon">errors</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#file" class="tsd-kind-icon">file</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#save" class="tsd-kind-icon">save</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Methods</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cog.html#id" class="tsd-kind-icon">id</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cog.html#schema" class="tsd-kind-icon">schema</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cog.html#tostring" class="tsd-kind-icon">to<wbr>String</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#id" class="tsd-kind-icon">id</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#schema" class="tsd-kind-icon">schema</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialog.html#tostring" class="tsd-kind-icon">to<wbr>String</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
@ -120,7 +120,7 @@
|
|||
<a name="constructor" class="tsd-anchor"></a>
|
||||
<h3>constructor</h3>
|
||||
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>Cog<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, body<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>dialog<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, body<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -138,7 +138,7 @@
|
|||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> body: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">object</span></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h4>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -156,7 +156,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Definition of this cog or undefined if file did not parse.</p>
|
||||
<p>Definition of this dialog or undefined if file did not parse.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -186,7 +186,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>The path relative to the CogTracker root where the cog came from or should be written to.</p>
|
||||
<p>The path relative to the CogTracker root where the dialog came from or should be written to.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -201,7 +201,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>TRUE if cog should be written, i.e. changed since read.</p>
|
||||
<p>TRUE if dialog should be written, i.e. changed since read.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -223,7 +223,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Return the id of the cog, i.e. the base filename.</p>
|
||||
<p>Return the id of the dialog, i.e. the base filename.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
||||
|
@ -245,7 +245,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Base schema for cog.</p>
|
||||
<p>Base schema for dialog.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
||||
|
@ -278,7 +278,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
||||
|
@ -293,38 +293,38 @@
|
|||
</ul>
|
||||
<ul class="current">
|
||||
<li class="current tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a>
|
||||
<ul>
|
||||
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
<a href="_cogtracker_.dialog.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#body" class="tsd-kind-icon">body</a>
|
||||
<a href="_cogtracker_.dialog.html#body" class="tsd-kind-icon">body</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#errors" class="tsd-kind-icon">errors</a>
|
||||
<a href="_cogtracker_.dialog.html#errors" class="tsd-kind-icon">errors</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#file" class="tsd-kind-icon">file</a>
|
||||
<a href="_cogtracker_.dialog.html#file" class="tsd-kind-icon">file</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#save" class="tsd-kind-icon">save</a>
|
||||
<a href="_cogtracker_.dialog.html#save" class="tsd-kind-icon">save</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#id" class="tsd-kind-icon">id</a>
|
||||
<a href="_cogtracker_.dialog.html#id" class="tsd-kind-icon">id</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#schema" class="tsd-kind-icon">schema</a>
|
||||
<a href="_cogtracker_.dialog.html#schema" class="tsd-kind-icon">schema</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cog.html#tostring" class="tsd-kind-icon">to<wbr>String</a>
|
||||
<a href="_cogtracker_.dialog.html#tostring" class="tsd-kind-icon">to<wbr>String</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="after-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a>
|
||||
<a href="_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.definition.html" class="tsd-kind-icon">Definition</a>
|
|
@ -59,7 +59,7 @@
|
|||
<a href="../modules/_cogtracker_.html">"cogTracker"</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="_cogtracker_.cogtracker.html">CogTracker</a>
|
||||
<a href="_cogtracker_.dialogtracker.html">CogTracker</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h1>Class CogTracker</h1>
|
||||
|
@ -91,42 +91,42 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>Constructors</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
||||
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Properties</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#cogs" class="tsd-kind-icon">cogs</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#idtodef" class="tsd-kind-icon">id<wbr>ToDef</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#lg" class="tsd-kind-icon">lg</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#missingtypes" class="tsd-kind-icon">missing<wbr>Types</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#root" class="tsd-kind-icon">root</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#schema" class="tsd-kind-icon">schema</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#typetodef" class="tsd-kind-icon">type<wbr>ToDef</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#cogs" class="tsd-kind-icon">cogs</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#idtodef" class="tsd-kind-icon">id<wbr>ToDef</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#lg" class="tsd-kind-icon">lg</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#missingtypes" class="tsd-kind-icon">missing<wbr>Types</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#root" class="tsd-kind-icon">root</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#schema" class="tsd-kind-icon">schema</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#typetodef" class="tsd-kind-icon">type<wbr>ToDef</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
<h3>Methods</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#addcog" class="tsd-kind-icon">add<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#addcogfile" class="tsd-kind-icon">add<wbr>Cog<wbr>File</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#addcogfiles" class="tsd-kind-icon">add<wbr>Cog<wbr>Files</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#adddefinition" class="tsd-kind-icon">add<wbr>Definition</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#addreference" class="tsd-kind-icon">add<wbr>Reference</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#alldefinitions" class="tsd-kind-icon">all<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#clonecog" class="tsd-kind-icon">clone<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#expandref" class="tsd-kind-icon">expand<wbr>Ref</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#findcog" class="tsd-kind-icon">find<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#findcogfile" class="tsd-kind-icon">find<wbr>Cog<wbr>File</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#missingdefinitions" class="tsd-kind-icon">missing<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#multipledefinitions" class="tsd-kind-icon">multiple<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#removecog" class="tsd-kind-icon">remove<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.cogtracker.html#removedefinition" class="tsd-kind-icon">remove<wbr>Definition</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#unusedids" class="tsd-kind-icon">unusedIDs</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#updatecog" class="tsd-kind-icon">update<wbr>Cog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#writecogs" class="tsd-kind-icon">write<wbr>Cogs</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.cogtracker.html#writelg" class="tsd-kind-icon">writeLG</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#addcog" class="tsd-kind-icon">add<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#addcogfile" class="tsd-kind-icon">add<wbr>dialog<wbr>File</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#addcogfiles" class="tsd-kind-icon">add<wbr>dialog<wbr>Files</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#adddefinition" class="tsd-kind-icon">add<wbr>Definition</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#addreference" class="tsd-kind-icon">add<wbr>Reference</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#alldefinitions" class="tsd-kind-icon">all<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#clonecog" class="tsd-kind-icon">clone<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#expandref" class="tsd-kind-icon">expand<wbr>Ref</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#findcog" class="tsd-kind-icon">find<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#findcogfile" class="tsd-kind-icon">find<wbr>dialog<wbr>File</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#missingdefinitions" class="tsd-kind-icon">missing<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#multipledefinitions" class="tsd-kind-icon">multiple<wbr>Definitions</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#removecog" class="tsd-kind-icon">remove<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_cogtracker_.dialogtracker.html#removedefinition" class="tsd-kind-icon">remove<wbr>Definition</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#unusedids" class="tsd-kind-icon">unusedIDs</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#updatecog" class="tsd-kind-icon">update<wbr>dialog</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#writecogs" class="tsd-kind-icon">write<wbr>Cogs</a></li>
|
||||
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_cogtracker_.dialogtracker.html#writelg" class="tsd-kind-icon">writeLG</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
@ -138,7 +138,7 @@
|
|||
<a name="constructor" class="tsd-anchor"></a>
|
||||
<h3>constructor</h3>
|
||||
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>Cog<wbr>Tracker<span class="tsd-signature-symbol">(</span>schema<span class="tsd-signature-symbol">: </span><a href="_schematracker_.schematracker.html" class="tsd-signature-type">SchemaTracker</a>, root<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cogtracker.html" class="tsd-signature-type">CogTracker</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>dialog<wbr>Tracker<span class="tsd-signature-symbol">(</span>schema<span class="tsd-signature-symbol">: </span><a href="_schematracker_.schematracker.html" class="tsd-signature-type">SchemaTracker</a>, root<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialogtracker.html" class="tsd-signature-type">CogTracker</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -156,7 +156,7 @@
|
|||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> root: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_cogtracker_.cogtracker.html" class="tsd-signature-type">CogTracker</a></h4>
|
||||
<h4 class="tsd-returns-title">Returns <a href="_cogtracker_.dialogtracker.html" class="tsd-signature-type">CogTracker</a></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -166,7 +166,7 @@
|
|||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="cogs" class="tsd-anchor"></a>
|
||||
<h3>cogs</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">cogs<span class="tsd-signature-symbol">:</span> <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">[]</span></div>
|
||||
<div class="tsd-signature tsd-kind-icon">cogs<span class="tsd-signature-symbol">:</span> <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">[]</span></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/Microsoft/botbuilder-tools/blob/76958b17/packages/CogTracker/src/cogTracker.ts#L189">cogTracker.ts:189</a></li>
|
||||
|
@ -191,7 +191,7 @@
|
|||
<div class="lead">
|
||||
<p>Map from $id to the definition.
|
||||
If there are more than one, then it is multiply defined.
|
||||
If any of them are missing cog, then there is a $copy, but no definition.</p>
|
||||
If any of them are missing dialog, then there is a $copy, but no definition.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -275,9 +275,9 @@
|
|||
<h2>Methods</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="addcog" class="tsd-anchor"></a>
|
||||
<h3>add<wbr>Cog</h3>
|
||||
<h3>add<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>Cog<span class="tsd-signature-symbol">(</span>cog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>dialog<span class="tsd-signature-symbol">(</span>dialog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -288,13 +288,13 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Add a new Cog file to the tracker.</p>
|
||||
<p>Add a new dialog file to the tracker.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5>dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -303,9 +303,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="addcogfile" class="tsd-anchor"></a>
|
||||
<h3>add<wbr>Cog<wbr>File</h3>
|
||||
<h3>add<wbr>dialog<wbr>File</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>Cog<wbr>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">></span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>dialog<wbr>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">></span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -316,7 +316,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Read a cog file and add it to the tracker.</p>
|
||||
<p>Read a dialog file and add it to the tracker.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -325,15 +325,15 @@
|
|||
<h5>file: <span class="tsd-signature-type">string</span></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">></span></h4>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">></span></h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="addcogfiles" class="tsd-anchor"></a>
|
||||
<h3>add<wbr>Cog<wbr>Files</h3>
|
||||
<h3>add<wbr>dialog<wbr>Files</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>Cog<wbr>Files<span class="tsd-signature-symbol">(</span>patterns<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">add<wbr>dialog<wbr>Files<span class="tsd-signature-symbol">(</span>patterns<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -344,7 +344,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Add cog files that match patterns to tracker.</p>
|
||||
<p>Add dialog files that match patterns to tracker.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -447,9 +447,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="clonecog" class="tsd-anchor"></a>
|
||||
<h3>clone<wbr>Cog</h3>
|
||||
<h3>clone<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">clone<wbr>Cog<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">clone<wbr>dialog<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -460,7 +460,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Clone an existing cog so you can modify it and then call updateCog.</p>
|
||||
<p>Clone an existing dialog so you can modify it and then call updateCog.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -471,7 +471,7 @@
|
|||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span>
|
||||
<span class="tsd-signature-symbol"> | </span>
|
||||
<a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a>
|
||||
</h4>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -480,7 +480,7 @@
|
|||
<a name="expandref" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagPrivate">Private</span> expand<wbr>Ref</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<li class="tsd-signature tsd-kind-icon">expand<wbr>Ref<span class="tsd-signature-symbol">(</span>ref<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, cog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">expand<wbr>Ref<span class="tsd-signature-symbol">(</span>ref<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, dialog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -495,7 +495,7 @@
|
|||
<h5>ref: <span class="tsd-signature-type">string</span></h5>
|
||||
</li>
|
||||
<li>
|
||||
<h5>cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5>dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
||||
|
@ -504,9 +504,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="findcog" class="tsd-anchor"></a>
|
||||
<h3>find<wbr>Cog</h3>
|
||||
<h3>find<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>Cog<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>dialog<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -517,7 +517,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Find an existing cog or return undefined.</p>
|
||||
<p>Find an existing dialog or return undefined.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -528,16 +528,16 @@
|
|||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span>
|
||||
<span class="tsd-signature-symbol"> | </span>
|
||||
<a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a>
|
||||
</h4>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="findcogfile" class="tsd-anchor"></a>
|
||||
<h3>find<wbr>Cog<wbr>File</h3>
|
||||
<h3>find<wbr>dialog<wbr>File</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>Cog<wbr>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">find<wbr>dialog<wbr>File<span class="tsd-signature-symbol">(</span>file<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -548,7 +548,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Find the cog corresponding to a file path.</p>
|
||||
<p>Find the dialog corresponding to a file path.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -559,7 +559,7 @@
|
|||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span>
|
||||
<span class="tsd-signature-symbol"> | </span>
|
||||
<a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a>
|
||||
</h4>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -610,9 +610,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="removecog" class="tsd-anchor"></a>
|
||||
<h3>remove<wbr>Cog</h3>
|
||||
<h3>remove<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">remove<wbr>Cog<span class="tsd-signature-symbol">(</span>cog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">remove<wbr>dialog<span class="tsd-signature-symbol">(</span>dialog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -623,13 +623,13 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Remove cog from tracker.</p>
|
||||
<p>Remove dialog from tracker.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5>dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
||||
|
@ -688,9 +688,9 @@
|
|||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
||||
<a name="updatecog" class="tsd-anchor"></a>
|
||||
<h3>update<wbr>Cog</h3>
|
||||
<h3>update<wbr>dialog</h3>
|
||||
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">update<wbr>Cog<span class="tsd-signature-symbol">(</span>cog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
<li class="tsd-signature tsd-kind-icon">update<wbr>dialog<span class="tsd-signature-symbol">(</span>dialog<span class="tsd-signature-symbol">: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -701,13 +701,13 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Update or add a cog.</p>
|
||||
<p>Update or add a dialog.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
<ul class="tsd-parameters">
|
||||
<li>
|
||||
<h5>cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5>dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -729,7 +729,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Write out cog files with save true and reset the flag.</p>
|
||||
<p>Write out dialog files with save true and reset the flag.</p>
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -785,7 +785,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
||||
|
@ -798,90 +798,90 @@
|
|||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="current">
|
||||
<li class="current tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a>
|
||||
<a href="_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a>
|
||||
<ul>
|
||||
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#cogs" class="tsd-kind-icon">cogs</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#cogs" class="tsd-kind-icon">cogs</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#idtodef" class="tsd-kind-icon">id<wbr>ToDef</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#idtodef" class="tsd-kind-icon">id<wbr>ToDef</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#lg" class="tsd-kind-icon">lg</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#lg" class="tsd-kind-icon">lg</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#missingtypes" class="tsd-kind-icon">missing<wbr>Types</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#missingtypes" class="tsd-kind-icon">missing<wbr>Types</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#root" class="tsd-kind-icon">root</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#root" class="tsd-kind-icon">root</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#schema" class="tsd-kind-icon">schema</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#schema" class="tsd-kind-icon">schema</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#typetodef" class="tsd-kind-icon">type<wbr>ToDef</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#typetodef" class="tsd-kind-icon">type<wbr>ToDef</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#addcog" class="tsd-kind-icon">add<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#addcog" class="tsd-kind-icon">add<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#addcogfile" class="tsd-kind-icon">add<wbr>Cog<wbr>File</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#addcogfile" class="tsd-kind-icon">add<wbr>dialog<wbr>File</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#addcogfiles" class="tsd-kind-icon">add<wbr>Cog<wbr>Files</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#addcogfiles" class="tsd-kind-icon">add<wbr>dialog<wbr>Files</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#adddefinition" class="tsd-kind-icon">add<wbr>Definition</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#adddefinition" class="tsd-kind-icon">add<wbr>Definition</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#addreference" class="tsd-kind-icon">add<wbr>Reference</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#addreference" class="tsd-kind-icon">add<wbr>Reference</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#alldefinitions" class="tsd-kind-icon">all<wbr>Definitions</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#alldefinitions" class="tsd-kind-icon">all<wbr>Definitions</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#clonecog" class="tsd-kind-icon">clone<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#clonecog" class="tsd-kind-icon">clone<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#expandref" class="tsd-kind-icon">expand<wbr>Ref</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#expandref" class="tsd-kind-icon">expand<wbr>Ref</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#findcog" class="tsd-kind-icon">find<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#findcog" class="tsd-kind-icon">find<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#findcogfile" class="tsd-kind-icon">find<wbr>Cog<wbr>File</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#findcogfile" class="tsd-kind-icon">find<wbr>dialog<wbr>File</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#missingdefinitions" class="tsd-kind-icon">missing<wbr>Definitions</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#missingdefinitions" class="tsd-kind-icon">missing<wbr>Definitions</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#multipledefinitions" class="tsd-kind-icon">multiple<wbr>Definitions</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#multipledefinitions" class="tsd-kind-icon">multiple<wbr>Definitions</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#removecog" class="tsd-kind-icon">remove<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#removecog" class="tsd-kind-icon">remove<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
||||
<a href="_cogtracker_.cogtracker.html#removedefinition" class="tsd-kind-icon">remove<wbr>Definition</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#removedefinition" class="tsd-kind-icon">remove<wbr>Definition</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#unusedids" class="tsd-kind-icon">unusedIDs</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#unusedids" class="tsd-kind-icon">unusedIDs</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#updatecog" class="tsd-kind-icon">update<wbr>Cog</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#updatecog" class="tsd-kind-icon">update<wbr>dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#writecogs" class="tsd-kind-icon">write<wbr>Cogs</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#writecogs" class="tsd-kind-icon">write<wbr>Cogs</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.cogtracker.html#writelg" class="tsd-kind-icon">writeLG</a>
|
||||
<a href="_cogtracker_.dialogtracker.html#writelg" class="tsd-kind-icon">writeLG</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
|
@ -97,7 +97,7 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>Properties</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#cog" class="tsd-kind-icon">cog</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#dialog" class="tsd-kind-icon">dialog</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#copy" class="tsd-kind-icon">copy</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#id" class="tsd-kind-icon">id</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_cogtracker_.definition.html#path" class="tsd-kind-icon">path</a></li>
|
||||
|
@ -124,7 +124,7 @@
|
|||
<a name="constructor" class="tsd-anchor"></a>
|
||||
<h3>constructor</h3>
|
||||
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>Definition<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">st.Type</span>, id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, cog<span class="tsd-signature-symbol">?: </span><a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a>, path<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, copy<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.definition.html" class="tsd-signature-type">Definition</a></li>
|
||||
<li class="tsd-signature tsd-kind-icon">new <wbr>Definition<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">st.Type</span>, id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, dialog<span class="tsd-signature-symbol">?: </span><a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a>, path<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, copy<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_cogtracker_.definition.html" class="tsd-signature-type">Definition</a></li>
|
||||
</ul>
|
||||
<ul class="tsd-descriptions">
|
||||
<li class="tsd-description">
|
||||
|
@ -157,10 +157,10 @@
|
|||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cog: <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></h5>
|
||||
<h5><span class="tsd-flag ts-flagOptional">Optional</span> dialog: <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></h5>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>The cog that contains the definition. (undefined for forward reference.)</p>
|
||||
<p>The dialog that contains the definition. (undefined for forward reference.)</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -189,9 +189,9 @@
|
|||
<section class="tsd-panel-group tsd-member-group ">
|
||||
<h2>Properties</h2>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
||||
<a name="cog" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagOptional">Optional</span> cog</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">cog<span class="tsd-signature-symbol">:</span> <a href="_cogtracker_.cog.html" class="tsd-signature-type">Cog</a></div>
|
||||
<a name="dialog" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagOptional">Optional</span> dialog</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">dialog<span class="tsd-signature-symbol">:</span> <a href="_cogtracker_.dialog.html" class="tsd-signature-type">dialog</a></div>
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/Microsoft/botbuilder-tools/blob/76958b17/packages/CogTracker/src/cogTracker.ts#L63">cogTracker.ts:63</a></li>
|
||||
|
@ -199,7 +199,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Cog that contains definition.</p>
|
||||
<p>dialog that contains definition.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -244,7 +244,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Path within the cog that leads to the component definition.</p>
|
||||
<p>Path within the dialog that leads to the component definition.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -386,7 +386,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
||||
|
@ -399,10 +399,10 @@
|
|||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a>
|
||||
<a href="_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a>
|
||||
<a href="_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="current">
|
||||
|
@ -413,7 +413,7 @@
|
|||
<a href="_cogtracker_.definition.html#constructor" class="tsd-kind-icon">constructor</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.definition.html#cog" class="tsd-kind-icon">cog</a>
|
||||
<a href="_cogtracker_.definition.html#dialog" class="tsd-kind-icon">dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="_cogtracker_.definition.html#copy" class="tsd-kind-icon">copy</a>
|
|
@ -236,7 +236,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -657,7 +657,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -363,7 +363,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="../modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -209,7 +209,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -283,7 +283,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="../modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="../modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -70,7 +70,7 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>External modules</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-external-module"><a href="modules/_cogtracker_.html" class="tsd-kind-icon">"cog<wbr>Tracker"</a></li>
|
||||
<li class="tsd-kind-external-module"><a href="modules/_cogtracker_.html" class="tsd-kind-icon">"dialog<wbr>Tracker"</a></li>
|
||||
<li class="tsd-kind-external-module"><a href="modules/_lgtracker_.html" class="tsd-kind-icon">"lg<wbr>Tracker"</a></li>
|
||||
<li class="tsd-kind-external-module"><a href="modules/_schematracker_.html" class="tsd-kind-icon">"schema<wbr>Tracker"</a></li>
|
||||
</ul>
|
||||
|
@ -86,7 +86,7 @@
|
|||
<a href="globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -66,7 +66,7 @@
|
|||
<div class="tsd-panel tsd-typography">
|
||||
<p><a href="https://badge.fury.io/js/cogLint"><img src="https://badge.fury.io/js/msbot.svg" alt="npm version"></a></p>
|
||||
<h1 id="cogtracker">CogTracker</h1>
|
||||
<p>This library allows reading, validating, indexing, modifying and writing <a href="https://dev.botframework.com/">Bot Framework</a> .schema, .cog and .lg files utilizing an in-memory cache. It reads in cog files and captures errors in them so that they can be presented as issues to be fixed. It also provides indexing to help tools maniuplate the information in the files. It builds an index of .cog components and how they relate to each other using $type, $role, $id and $copy. It captures:</p>
|
||||
<p>This library allows reading, validating, indexing, modifying and writing <a href="https://dev.botframework.com/">Bot Framework</a> .schema, .dialog and .lg files utilizing an in-memory cache. It reads in dialog files and captures errors in them so that they can be presented as issues to be fixed. It also provides indexing to help tools maniuplate the information in the files. It builds an index of .dialog components and how they relate to each other using $type, $role, $id and $copy. It captures:</p>
|
||||
<ul>
|
||||
<li><strong>Missing $type:</strong> A valid component must include a $type.</li>
|
||||
<li><strong>Multiple $id definitions:</strong> There should be only one definition for a $id.</li>
|
||||
|
@ -78,7 +78,7 @@
|
|||
References to definitions show up in this format <code>TYPE[ID](file#/path)</code>. </li>
|
||||
</ul>
|
||||
<h2 id="using">Using</h2>
|
||||
<p>The main class is the <a href="docs/classes/_cogtracker_.cogtracker.html"><code>CogTracker</code></a> class which supports reading, updating, writing and indexing cog files with both schema and semantic validation. The <a href="../coglint/src/cogLint.ts"><code>CogLint</code></a> tool shows an example of how to use the tracker to read in files and report various kinds of errors.</p>
|
||||
<p>The main class is the <a href="docs/classes/_cogtracker_.dialogtracker.html"><code>CogTracker</code></a> class which supports reading, updating, writing and indexing dialog files with both schema and semantic validation. The <a href="../coglint/src/cogLint.ts"><code>CogLint</code></a> tool shows an example of how to use the tracker to read in files and report various kinds of errors.</p>
|
||||
<h2 id="prerequisite">Prerequisite</h2>
|
||||
<ul>
|
||||
<li><a href="https://nodejs.org/">Node.js</a> version 8.5 or higher</li>
|
||||
|
@ -106,7 +106,7 @@
|
|||
<a href="globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="modules/_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="modules/_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -73,8 +73,8 @@
|
|||
<section class="tsd-index-section ">
|
||||
<h3>Classes</h3>
|
||||
<ul class="tsd-index-list">
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a></li>
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a></li>
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a></li>
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a></li>
|
||||
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_cogtracker_.definition.html" class="tsd-kind-icon">Definition</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -167,7 +167,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="_lgtracker_.html">"lg<wbr>Tracker"</a>
|
||||
|
@ -180,10 +180,10 @@
|
|||
<nav class="tsd-navigation secondary menu-sticky">
|
||||
<ul class="before-current">
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="../classes/_cogtracker_.cog.html" class="tsd-kind-icon">Cog</a>
|
||||
<a href="../classes/_cogtracker_.dialog.html" class="tsd-kind-icon">dialog</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="../classes/_cogtracker_.cogtracker.html" class="tsd-kind-icon">Cog<wbr>Tracker</a>
|
||||
<a href="../classes/_cogtracker_.dialogtracker.html" class="tsd-kind-icon">dialog<wbr>Tracker</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-class tsd-parent-kind-external-module">
|
||||
<a href="../classes/_cogtracker_.definition.html" class="tsd-kind-icon">Definition</a>
|
|
@ -89,7 +89,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class="current tsd-kind-external-module">
|
||||
<a href="_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -88,7 +88,7 @@
|
|||
<a href="../globals.html"><em>Globals</em></a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="_cogtracker_.html">"cog<wbr>Tracker"</a>
|
||||
<a href="_cogtracker_.html">"dialog<wbr>Tracker"</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-external-module">
|
||||
<a href="_lgtracker_.html">"lg<wbr>Tracker"</a>
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "cogtracker",
|
||||
"name": "dialogtracker",
|
||||
"version": "1.0.0",
|
||||
"description": "Utilities for reading, validating, indexing, modifying and writing Bot Framework .schema, .cog and .lg files.",
|
||||
"main": "./lib/cogTracker.js",
|
||||
"types": "./typings/lib/cogTracker.d.ts",
|
||||
"description": "Utilities for reading, validating, indexing, modifying and writing Bot Framework .schema, .dialog and .lg files.",
|
||||
"main": "./lib/dialogTracker.js",
|
||||
"types": "./typings/lib/dialogTracker.d.ts",
|
||||
"bin": {
|
||||
"cogLint": "./lib/cogTracker.js"
|
||||
"dialogtracker": "./lib/dialogTracker.js"
|
||||
},
|
||||
"directories": {
|
||||
"bin": "bin",
|
||||
|
@ -48,7 +48,7 @@
|
|||
"@types/semver": "^5.5.0",
|
||||
"chai": "^4.2.0",
|
||||
"chalk": "^2.4.2",
|
||||
"cogschema": "^1.0.0",
|
||||
"dialogschema": "^1.0.0",
|
||||
"mocha": "^5.2.0",
|
||||
"ts-node": "^8.0.2",
|
||||
"typedoc": "^0.14.2",
|
|
@ -15,26 +15,26 @@ import * as st from './schemaTracker';
|
|||
|
||||
let clone = require('clone');
|
||||
|
||||
/** Top-level cog definition that would be found in a file. */
|
||||
export class Cog {
|
||||
/** The path relative to the CogTracker root where the cog came from or should be written to. */
|
||||
/** Top-level dialog definition that would be found in a file. */
|
||||
export class Dialog {
|
||||
/** The path relative to the DialogTracker root where the dialog came from or should be written to. */
|
||||
file: string;
|
||||
|
||||
/** Definition of this cog or undefined if file did not parse. */
|
||||
/** Definition of this dialog or undefined if file did not parse. */
|
||||
body?: any;
|
||||
|
||||
/** Any errors found in validating definition. */
|
||||
errors: Error[];
|
||||
|
||||
/** TRUE if cog should be written, i.e. changed since read. */
|
||||
/** TRUE if dialog should be written, i.e. changed since read. */
|
||||
save: boolean;
|
||||
|
||||
/** Return the id of the cog, i.e. the base filename. */
|
||||
/** Return the id of the dialog, i.e. the base filename. */
|
||||
id(): string {
|
||||
return path.basename(this.file, ".cog");
|
||||
return path.basename(this.file, ".dialog");
|
||||
}
|
||||
|
||||
/** Base schema for cog. */
|
||||
/** Base schema for dialog. */
|
||||
schema(): string {
|
||||
return this.body.$schema;
|
||||
}
|
||||
|
@ -59,10 +59,10 @@ export class Definition {
|
|||
/** $type definition of the copmonent or undefined. */
|
||||
type?: st.Type;
|
||||
|
||||
/** Cog that contains definition. */
|
||||
cog?: Cog;
|
||||
/** dialog that contains definition. */
|
||||
dialog?: Dialog;
|
||||
|
||||
/** Path within the cog that leads to the component definition. */
|
||||
/** Path within the dialog that leads to the component definition. */
|
||||
path?: string;
|
||||
|
||||
/** $id of the component if present, otherwise undefined. */
|
||||
|
@ -78,14 +78,14 @@ export class Definition {
|
|||
* Construct a component definition.
|
||||
* @param type The $type of the component.
|
||||
* @param id The $id of the component if present.
|
||||
* @param cog The cog that contains the definition. (undefined for forward reference.)
|
||||
* @param dialog The dialog that contains the definition. (undefined for forward reference.)
|
||||
* @param path The path within the file to the component.
|
||||
* @param copy The id of the copied definition.
|
||||
*/
|
||||
constructor(type?: st.Type, id?: string, cog?: Cog, path?: string, copy?: string) {
|
||||
constructor(type?: st.Type, id?: string, dialog?: Dialog, path?: string, copy?: string) {
|
||||
this.type = type;
|
||||
this.id = id;
|
||||
this.cog = cog;
|
||||
this.dialog = dialog;
|
||||
this.path = path;
|
||||
this.copy = copy;
|
||||
this.usedBy = [];
|
||||
|
@ -94,20 +94,20 @@ export class Definition {
|
|||
/** Compare definitions and return -1 for less than, 0 for equals and +1 for greater than. */
|
||||
compare(definition: Definition): number {
|
||||
let result: number;
|
||||
if (this.cog != undefined && this.path != undefined
|
||||
&& definition.cog != undefined && definition.path != undefined) { // Actual definitions
|
||||
if (this.cog === definition.cog) {
|
||||
if (this.dialog != undefined && this.path != undefined
|
||||
&& definition.dialog != undefined && definition.path != undefined) { // Actual definitions
|
||||
if (this.dialog === definition.dialog) {
|
||||
if (this.path === definition.path) {
|
||||
result = 0;
|
||||
} else {
|
||||
result = this.path.localeCompare(definition.path);
|
||||
}
|
||||
} else {
|
||||
result = this.cog.file.localeCompare(definition.cog.file);
|
||||
result = this.dialog.file.localeCompare(definition.dialog.file);
|
||||
}
|
||||
} else if (this.cog != undefined && this.path != undefined) {
|
||||
} else if (this.dialog != undefined && this.path != undefined) {
|
||||
result = +1;
|
||||
} else if (definition.cog != undefined && definition.path != undefined) {
|
||||
} else if (definition.dialog != undefined && definition.path != undefined) {
|
||||
result = -1;
|
||||
} else if (this.id != undefined && this.type != undefined
|
||||
&& definition.id != undefined && definition.type != undefined) {
|
||||
|
@ -156,13 +156,13 @@ export class Definition {
|
|||
}
|
||||
|
||||
pathString(): string {
|
||||
let id = this.cog ? this.cog.id() : "undefined";
|
||||
let id = this.dialog ? this.dialog.id() : "undefined";
|
||||
return `(${id}#${this.path})`;
|
||||
}
|
||||
}
|
||||
|
||||
/** Tracks cogs and the definitions they contain. */
|
||||
export class CogTracker {
|
||||
export class DialogTracker {
|
||||
/** Paths will be relative to root directory. */
|
||||
root: string;
|
||||
|
||||
|
@ -175,7 +175,7 @@ export class CogTracker {
|
|||
/**
|
||||
* Map from $id to the definition.
|
||||
* If there are more than one, then it is multiply defined.
|
||||
* If any of them are missing cog, then there is a $copy, but no definition.
|
||||
* If any of them are missing dialog, then there is a $copy, but no definition.
|
||||
*/
|
||||
idToDef: Map<string, Definition[]>;
|
||||
|
||||
|
@ -186,7 +186,7 @@ export class CogTracker {
|
|||
missingTypes: Definition[];
|
||||
|
||||
/** Top-level cogs in tracker. */
|
||||
cogs: Cog[];
|
||||
dialogs: Dialog[];
|
||||
|
||||
constructor(schema: st.SchemaTracker, root?: string) {
|
||||
this.schema = schema;
|
||||
|
@ -195,24 +195,24 @@ export class CogTracker {
|
|||
this.idToDef = new Map<string, Definition[]>();
|
||||
this.typeToDef = new Map<string, Definition[]>();
|
||||
this.missingTypes = [];
|
||||
this.cogs = [];
|
||||
this.dialogs = [];
|
||||
}
|
||||
|
||||
/** Add a new Cog file to the tracker. */
|
||||
async addCog(cog: Cog): Promise<void> {
|
||||
/** Add a new Dialog file to the tracker. */
|
||||
async addDialog(dialog: Dialog): Promise<void> {
|
||||
try {
|
||||
const schemaFile = cog.body.$schema;
|
||||
const schemaFile = dialog.body.$schema;
|
||||
if (schemaFile) {
|
||||
let schemaPath = path.join(path.dirname(cog.file), schemaFile);
|
||||
let schemaPath = path.join(path.dirname(dialog.file), schemaFile);
|
||||
let [validator, added] = await this.schema.getValidator(schemaPath);
|
||||
let validation = validator(cog.body, cog.file);
|
||||
let validation = validator(dialog.body, dialog.file);
|
||||
if (!validation && validator.errors) {
|
||||
for (let err of validator.errors) {
|
||||
let path = err.dataPath;
|
||||
if (path.startsWith(cog.file)) {
|
||||
path = path.substring(cog.file.length);
|
||||
if (path.startsWith(dialog.file)) {
|
||||
path = path.substring(dialog.file.length);
|
||||
}
|
||||
cog.errors.push(new Error(`${path} ${err.message}`));
|
||||
dialog.errors.push(new Error(`${path} ${err.message}`));
|
||||
}
|
||||
}
|
||||
if (added) {
|
||||
|
@ -221,131 +221,131 @@ export class CogTracker {
|
|||
await this.lg.addLGFiles([pattern]);
|
||||
}
|
||||
} else {
|
||||
cog.errors.push(new Error(`${cog} does not have a $schema.`));
|
||||
dialog.errors.push(new Error(`${dialog} does not have a $schema.`));
|
||||
}
|
||||
if (cog.body.$id) {
|
||||
cog.errors.push(new Error(`Cog cannot have $id at the root because it is defined by the filename.`))
|
||||
if (dialog.body.$id) {
|
||||
dialog.errors.push(new Error(`dialog cannot have $id at the root because it is defined by the filename.`))
|
||||
}
|
||||
// Expand $id to include root cog
|
||||
walkJSON(cog.body, "", (elt) => {
|
||||
// Expand $id to include root dialog
|
||||
walkJSON(dialog.body, "", (elt) => {
|
||||
if (elt.$id) {
|
||||
elt.$id = cog.id() + "#" + elt.$id;
|
||||
elt.$id = dialog.id() + "#" + elt.$id;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
cog.body.$id = cog.id();
|
||||
walkJSON(cog.body, "", (elt, path) => {
|
||||
dialog.body.$id = dialog.id();
|
||||
walkJSON(dialog.body, "", (elt, path) => {
|
||||
if (elt.$type) {
|
||||
let def = new Definition(this.schema.typeToType.get(elt.$type), elt.$id, cog, path, elt.$copy);
|
||||
let def = new Definition(this.schema.typeToType.get(elt.$type), elt.$id, dialog, path, elt.$copy);
|
||||
this.addDefinition(def);
|
||||
if (elt.$copy) {
|
||||
this.addReference(elt.$copy, def);
|
||||
}
|
||||
} else if (elt.$id || elt.$copy) { // Missing type
|
||||
this.addDefinition(new Definition(undefined, elt.$id, cog, path, elt.$copy));
|
||||
this.addDefinition(new Definition(undefined, elt.$id, dialog, path, elt.$copy));
|
||||
}
|
||||
return false;
|
||||
});
|
||||
// Ensure we have templates for this specific cog
|
||||
if (cog.id()) {
|
||||
let type = this.schema.typeToType.get(cog.body.$type);
|
||||
// Ensure we have templates for this specific dialog
|
||||
if (dialog.id()) {
|
||||
let type = this.schema.typeToType.get(dialog.body.$type);
|
||||
if (type) {
|
||||
for (let fullName of type.lgProperties) {
|
||||
let propName = cog.id() + fullName.substring(fullName.indexOf("/")).replace(/\//g, '.');
|
||||
let propName = dialog.id() + fullName.substring(fullName.indexOf("/")).replace(/\//g, '.');
|
||||
this.lg.addTemplate(new lgt.Template(propName, undefined, ""))
|
||||
}
|
||||
}
|
||||
}
|
||||
// Assume we will save it and reset this when coming from file
|
||||
cog.save = true;
|
||||
dialog.save = true;
|
||||
} catch (e) {
|
||||
cog.errors.push(e);
|
||||
dialog.errors.push(e);
|
||||
}
|
||||
this.cogs.push(cog);
|
||||
this.dialogs.push(dialog);
|
||||
}
|
||||
|
||||
/** Read a cog file and add it to the tracker. */
|
||||
async addCogFile(file: string): Promise<Cog> {
|
||||
let cog: Cog;
|
||||
/** Read a dialog file and add it to the tracker. */
|
||||
async addDialogFile(file: string): Promise<Dialog> {
|
||||
let dialog: Dialog;
|
||||
let rel = path.relative(this.root, file);
|
||||
try {
|
||||
cog = new Cog(rel, await fs.readJSON(rel));
|
||||
await this.addCog(cog);
|
||||
dialog = new Dialog(rel, await fs.readJSON(rel));
|
||||
await this.addDialog(dialog);
|
||||
} catch (e) {
|
||||
// File is not valid JSON
|
||||
cog = new Cog(rel);
|
||||
cog.errors.push(e);
|
||||
this.cogs.push(cog);
|
||||
dialog = new Dialog(rel);
|
||||
dialog.errors.push(e);
|
||||
this.dialogs.push(dialog);
|
||||
}
|
||||
cog.save = false;
|
||||
return cog;
|
||||
dialog.save = false;
|
||||
return dialog;
|
||||
}
|
||||
|
||||
/** Add cog files that match patterns to tracker. */
|
||||
async addCogFiles(patterns: string[]): Promise<void> {
|
||||
/** Add dialog files that match patterns to tracker. */
|
||||
async addDialogFiles(patterns: string[]): Promise<void> {
|
||||
let filePaths = glob.sync(patterns);
|
||||
for (let filePath of filePaths) {
|
||||
await this.addCogFile(filePath);
|
||||
await this.addDialogFile(filePath);
|
||||
}
|
||||
}
|
||||
|
||||
/** Remove cog from tracker. */
|
||||
removeCog(cog: Cog) {
|
||||
this.cogs = this.cogs.filter((c) => c != cog);
|
||||
/** Remove dialog from tracker. */
|
||||
removeDialog(dialog: Dialog) {
|
||||
this.dialogs = this.dialogs.filter((c) => c != dialog);
|
||||
for (let definition of this.allDefinitions()) {
|
||||
if (definition.cog === cog) {
|
||||
if (definition.dialog === dialog) {
|
||||
this.removeDefinition(definition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Find an existing cog or return undefined. */
|
||||
findCog(id: string): undefined | Cog {
|
||||
let result: undefined | Cog;
|
||||
for (let cog of this.cogs) {
|
||||
if (cog.id() === id) {
|
||||
result = cog;
|
||||
/** Find an existing dialog or return undefined. */
|
||||
findDialog(id: string): undefined | Dialog {
|
||||
let result: undefined | Dialog;
|
||||
for (let dialog of this.dialogs) {
|
||||
if (dialog.id() === id) {
|
||||
result = dialog;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/** Find the cog corresponding to a file path. */
|
||||
findCogFile(file: string): undefined | Cog {
|
||||
return this.findCog(path.basename(file, ".cog"));
|
||||
/** Find the dialog corresponding to a file path. */
|
||||
findDialogFile(file: string): undefined | Dialog {
|
||||
return this.findDialog(path.basename(file, ".dialog"));
|
||||
}
|
||||
|
||||
/** Clone an existing cog so you can modify it and then call updateCog. */
|
||||
cloneCog(file: string): undefined | Cog {
|
||||
let cog = this.findCog(file);
|
||||
return cog ? clone(cog, false) : undefined;
|
||||
/** Clone an existing dialog so you can modify it and then call updateDialog. */
|
||||
cloneDialog(file: string): undefined | Dialog {
|
||||
let dialog = this.findDialog(file);
|
||||
return dialog ? clone(dialog, false) : undefined;
|
||||
}
|
||||
|
||||
/** Update or add a cog. */
|
||||
async updateCog(cog: Cog): Promise<void> {
|
||||
let oldCog = this.findCog(cog.id());
|
||||
if (oldCog) {
|
||||
this.removeCog(oldCog);
|
||||
/** Update or add a dialog. */
|
||||
async updateDialog(dialog: Dialog): Promise<void> {
|
||||
let oldDialog = this.findDialog(dialog.id());
|
||||
if (oldDialog) {
|
||||
this.removeDialog(oldDialog);
|
||||
}
|
||||
await this.addCog(cog);
|
||||
await this.addDialog(dialog);
|
||||
}
|
||||
|
||||
/** Write out cog files with save true and reset the flag.
|
||||
/** Write out dialog files with save true and reset the flag.
|
||||
* @param root If present this is the new root and paths below will be relative to process.cwd.
|
||||
*/
|
||||
async writeCogs(root?: string): Promise<void> {
|
||||
for (let cog of this.cogs) {
|
||||
if (cog.save) {
|
||||
let filePath = root ? path.join(path.resolve(root), path.relative(process.cwd(), cog.file)) : cog.file;
|
||||
async writeDialogs(root?: string): Promise<void> {
|
||||
for (let dialog of this.dialogs) {
|
||||
if (dialog.save) {
|
||||
let filePath = root ? path.join(path.resolve(root), path.relative(process.cwd(), dialog.file)) : dialog.file;
|
||||
let dir = path.dirname(filePath);
|
||||
await fs.mkdirp(dir);
|
||||
let oldID = cog.id();
|
||||
delete cog.body.$id;
|
||||
await fs.writeJSON(filePath, cog.body, { spaces: 4 });
|
||||
cog.file = path.relative(process.cwd(), filePath);
|
||||
cog.body.$id = oldID;
|
||||
cog.save = false;
|
||||
let oldID = dialog.id();
|
||||
delete dialog.body.$id;
|
||||
await fs.writeJSON(filePath, dialog.body, { spaces: 4 });
|
||||
dialog.file = path.relative(process.cwd(), filePath);
|
||||
dialog.body.$id = oldID;
|
||||
dialog.save = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -383,7 +383,7 @@ export class CogTracker {
|
|||
* missingDefinitions(): Iterable<Definition> {
|
||||
for (let defs of this.idToDef.values()) {
|
||||
for (let def of defs) {
|
||||
if (!def.cog) {
|
||||
if (!def.dialog) {
|
||||
yield def;
|
||||
}
|
||||
}
|
||||
|
@ -414,9 +414,9 @@ export class CogTracker {
|
|||
// Reference already existed, check for consistency
|
||||
// Merge if possible, otherwise add
|
||||
for (let old of <Definition[]>this.idToDef.get(definition.id)) {
|
||||
if (!old.cog && !old.path && old.type === definition.type) {
|
||||
if (!old.dialog && !old.path && old.type === definition.type) {
|
||||
add = false;
|
||||
old.cog = definition.cog;
|
||||
old.dialog = definition.dialog;
|
||||
old.path = definition.path;
|
||||
break;
|
||||
}
|
||||
|
@ -447,7 +447,7 @@ export class CogTracker {
|
|||
* @param source Definition that contains $copy.
|
||||
*/
|
||||
private addReference(ref: string, source: Definition): void {
|
||||
let fullRef = this.expandRef(ref, <Cog>source.cog);
|
||||
let fullRef = this.expandRef(ref, <Dialog>source.dialog);
|
||||
if (!this.idToDef.has(fullRef)) {
|
||||
// ID does not exist so add place holder
|
||||
let definition = new Definition(source.type, fullRef);
|
||||
|
@ -496,8 +496,8 @@ export class CogTracker {
|
|||
return found;
|
||||
}
|
||||
|
||||
private expandRef(ref: string, cog: Cog): string {
|
||||
return ref.startsWith('#') ? `${cog.id()}${ref}` : ref;
|
||||
private expandRef(ref: string, dialog: Dialog): string {
|
||||
return ref.startsWith('#') ? `${dialog.id()}${ref}` : ref;
|
||||
}
|
||||
}
|
||||
|
|
@ -8,6 +8,8 @@
|
|||
import * as ajv from 'ajv';
|
||||
import * as fs from 'fs-extra';
|
||||
import * as path from 'path';
|
||||
const http = require('http');
|
||||
const https = require('https');
|
||||
|
||||
export class SchemaTracker {
|
||||
/** Map from type name to information about that type. */
|
||||
|
@ -42,10 +44,10 @@ export class SchemaTracker {
|
|||
};
|
||||
for (let one of schemaObject.oneOf) {
|
||||
let ref = one.$ref;
|
||||
// NOTE: Assuming schema file format is from cogSchema or we will ignore.
|
||||
// NOTE: Assuming schema file format is from httpSchema or we will ignore.
|
||||
// Assumption is that a given type name is the same across different schemas.
|
||||
// All .cog in one app should use the same app.schema, but if you are using
|
||||
// a .cog from another app then it will use its own schema which if it follows the rules
|
||||
// All .dialog in one app should use the same app.schema, but if you are using
|
||||
// a .dialog from another app then it will use its own schema which if it follows the rules
|
||||
// should have globally unique type names.
|
||||
if (ref.startsWith(defRef)) {
|
||||
ref = ref.substring(defRef.length);
|
||||
|
@ -72,7 +74,8 @@ export class SchemaTracker {
|
|||
let metaSchemaCache = path.join(__dirname, path.basename(metaSchemaName));
|
||||
let metaSchema: any;
|
||||
if (!await fs.pathExists(metaSchemaCache)) {
|
||||
metaSchema = JSON.parse(await this.getURL(metaSchemaName));
|
||||
let metaSchemaDefinition = await this.getURL(metaSchemaName);
|
||||
metaSchema = JSON.parse(metaSchemaDefinition);
|
||||
await fs.writeJSON(metaSchemaCache, metaSchema, { spaces: 4 });
|
||||
} else {
|
||||
metaSchema = await fs.readJSON(metaSchemaCache);
|
||||
|
@ -88,8 +91,6 @@ export class SchemaTracker {
|
|||
|
||||
private async getURL(url: string): Promise<any> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const http = require('http'),
|
||||
https = require('https');
|
||||
|
||||
let client = http;
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"$id": "app.schema",
|
||||
"type": "object",
|
||||
"title": "Component types",
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"$id": "promptOnly.schema",
|
||||
"type": "object",
|
||||
"title": "Component types",
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"$role": "unionType"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/CogSchema/src/cogSchema.schema",
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"$role": "unionType(IRecognizer)",
|
||||
"properties": {
|
||||
"req": {
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/botbuilder-tools/SchemaGen/packages/DialogSchema/src/dialogSchema.schema",
|
||||
"$role": "unionType(IRecognizer)"
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
@echo off
|
||||
setlocal
|
||||
del /q ..\examples\*.lg
|
||||
set cs=..\..\..\cogschema\lib\cogschemaMain.js
|
||||
set cs=..\..\..\dialogschema\lib\dialogschemaMain.js
|
||||
if exist %cs% goto run
|
||||
pushd ..\..\..\cogschema
|
||||
pushd ..\..\..\dialogschema
|
||||
call npm run build
|
||||
popd
|
||||
:run
|