@supernova-studio/pulsar-core 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser/pulsar.js +2011 -2123
- package/build/browser/pulsar.min.js +3 -3
- package/build/main/browser-bundle.js +7 -8
- package/build/main/browser-bundle.js.map +1 -1
- package/build/main/engine/ExportEngine.d.ts +14 -14
- package/build/main/engine/ExportEngine.js +6 -6
- package/build/main/engine/ExportEngine.js.map +1 -1
- package/build/main/engine/configuration/ExportConfiguration.d.ts +10 -10
- package/build/main/engine/configuration/ExportConfiguration.js +8 -8
- package/build/main/engine/configuration/ExportConfiguration.js.map +1 -1
- package/build/main/engine/generation/ExportDataProducer.d.ts +13 -13
- package/build/main/engine/generation/ExportDataProducer.js +12 -12
- package/build/main/engine/generation/ExportDataProducer.js.map +1 -1
- package/build/main/engine/generation/queue/ExportDataQueue.d.ts +11 -11
- package/build/main/engine/generation/queue/ExportDataQueue.js +5 -5
- package/build/main/engine/generation/queue/ExportDataQueue.js.map +1 -1
- package/build/main/engine/generation/queue/ExportDataQueueOperation.d.ts +5 -5
- package/build/main/engine/generation/queue/ExportDataQueueOperation.js +4 -4
- package/build/main/engine/generation/queue/ExportDataQueueOperation.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.d.ts +5 -5
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js +7 -7
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.d.ts +5 -5
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js +5 -5
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequest.d.ts +15 -15
- package/build/main/engine/generation/requests/ExportDataRequest.js +8 -8
- package/build/main/engine/generation/requests/ExportDataRequest.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.d.ts +6 -6
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.js +12 -12
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.d.ts +8 -8
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.js +19 -19
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestProducer.d.ts +15 -15
- package/build/main/engine/generation/requests/ExportDataRequestProducer.js +27 -40
- package/build/main/engine/generation/requests/ExportDataRequestProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataResponse.d.ts +12 -12
- package/build/main/engine/generation/requests/ExportDataResponse.js +4 -4
- package/build/main/engine/generation/requests/ExportDataResponse.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.d.ts +11 -11
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js +9 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js.map +1 -1
- package/build/main/engine/items/ExportItemProducer.d.ts +12 -12
- package/build/main/engine/items/ExportItemProducer.js +7 -7
- package/build/main/engine/items/ExportItemProducer.js.map +1 -1
- package/build/main/engine/items/construction/ExportItem.d.ts +4 -4
- package/build/main/engine/items/construction/ExportItem.js +4 -4
- package/build/main/engine/items/construction/ExportItem.js.map +1 -1
- package/build/main/engine/items/construction/ExportItemBuilder.d.ts +7 -7
- package/build/main/engine/items/construction/ExportItemBuilder.js +7 -11
- package/build/main/engine/items/construction/ExportItemBuilder.js.map +1 -1
- package/build/main/engine/items/queue/ExportItemQueue.d.ts +11 -11
- package/build/main/engine/items/queue/ExportItemQueue.js +5 -5
- package/build/main/engine/items/queue/ExportItemQueue.js.map +1 -1
- package/build/main/engine/items/queue/ExportItemQueueOperation.d.ts +5 -5
- package/build/main/engine/items/queue/ExportItemQueueOperation.js +3 -3
- package/build/main/engine/items/queue/ExportItemQueueOperation.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemRequest.d.ts +10 -10
- package/build/main/engine/items/requests/ExportItemRequest.js +5 -5
- package/build/main/engine/items/requests/ExportItemRequest.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemRequestProducer.d.ts +7 -7
- package/build/main/engine/items/requests/ExportItemRequestProducer.js +4 -4
- package/build/main/engine/items/requests/ExportItemRequestProducer.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemResponse.d.ts +8 -8
- package/build/main/engine/items/requests/ExportItemResponse.js +4 -4
- package/build/main/engine/items/requests/ExportItemResponse.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemResponseProducer.d.ts +5 -5
- package/build/main/engine/items/requests/ExportItemResponseProducer.js +5 -5
- package/build/main/engine/items/requests/ExportItemResponseProducer.js.map +1 -1
- package/build/main/engine/loaders/BlueprintLoader.d.ts +8 -8
- package/build/main/engine/loaders/BlueprintLoader.js +11 -11
- package/build/main/engine/loaders/BlueprintLoader.js.map +1 -1
- package/build/main/engine/writing/queue/ExportWriterQueue.d.ts +11 -11
- package/build/main/engine/writing/queue/ExportWriterQueue.js +5 -5
- package/build/main/engine/writing/queue/ExportWriterQueue.js.map +1 -1
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.d.ts +5 -5
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.js +4 -4
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterRequest.d.ts +10 -10
- package/build/main/engine/writing/requests/ExportWriterRequest.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterRequest.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.d.ts +7 -7
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.js +5 -5
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterResponse.d.ts +8 -8
- package/build/main/engine/writing/requests/ExportWriterResponse.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterResponse.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.d.ts +5 -5
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.js.map +1 -1
- package/build/main/engine/writing/writers/ExportItemWriter.d.ts +12 -12
- package/build/main/engine/writing/writers/ExportItemWriter.js +7 -7
- package/build/main/engine/writing/writers/ExportItemWriter.js.map +1 -1
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.d.ts +6 -6
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js +7 -7
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.d.ts +2 -2
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.js +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.d.ts +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js +6 -6
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterStore.d.ts +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterStore.js +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterStore.js.map +1 -1
- package/build/main/exports.d.ts +3 -3
- package/build/main/exports.js +3 -3
- package/build/main/exports.js.map +1 -1
- package/build/main/index.js.map +1 -1
- package/build/main/model/dsm/DSMReferenceStore.js +6 -6
- package/build/main/model/dsm/DSMReferenceStore.js.map +1 -1
- package/build/main/model/exporters/Exporter.d.ts +17 -16
- package/build/main/model/exporters/Exporter.js +14 -4
- package/build/main/model/exporters/Exporter.js.map +1 -1
- package/build/main/model/maps/ExporterMapBlueprint.d.ts +4 -4
- package/build/main/model/maps/ExporterMapBlueprint.js +3 -3
- package/build/main/model/maps/ExporterMapBlueprint.js.map +1 -1
- package/build/main/model/sources/ExporterSource.d.ts +6 -6
- package/build/main/model/sources/ExporterSource.js +13 -13
- package/build/main/model/sources/ExporterSource.js.map +1 -1
- package/build/main/pulsar/Pulsar.d.ts +35 -35
- package/build/main/pulsar/Pulsar.js +40 -40
- package/build/main/pulsar/Pulsar.js.map +1 -1
- package/build/main/pulsar/PulsarInterface.d.ts +54 -54
- package/build/main/pulsar/PulsarInterface.js +14 -14
- package/build/main/pulsar/PulsarInterface.js.map +1 -1
- package/build/main/pulsar/PulsarStaticAnalysis.d.ts +12 -12
- package/build/main/pulsar/PulsarStaticAnalysis.js +19 -19
- package/build/main/pulsar/PulsarStaticAnalysis.js.map +1 -1
- package/build/main/pulsar/PulsarStaticAnalysisInterface.d.ts +9 -9
- package/build/main/pulsar/PulsarStaticAnalysisInterface.js +1 -1
- package/build/main/pulsar/PulsarStaticAnalysisInterface.js.map +1 -1
- package/build/main/pulsar/managers/PulsarBlueprintManager.d.ts +8 -8
- package/build/main/pulsar/managers/PulsarBlueprintManager.js +4 -4
- package/build/main/pulsar/managers/PulsarBlueprintManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarCIManager.d.ts +8 -8
- package/build/main/pulsar/managers/PulsarCIManager.js +13 -13
- package/build/main/pulsar/managers/PulsarCIManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarCodeManager.d.ts +15 -15
- package/build/main/pulsar/managers/PulsarCodeManager.js +29 -29
- package/build/main/pulsar/managers/PulsarCodeManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarConfigurationManager.d.ts +3 -3
- package/build/main/pulsar/managers/PulsarConfigurationManager.js +4 -4
- package/build/main/pulsar/managers/PulsarConfigurationManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarExporterManager.d.ts +11 -11
- package/build/main/pulsar/managers/PulsarExporterManager.js +5 -5
- package/build/main/pulsar/managers/PulsarExporterManager.js.map +1 -1
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.d.ts +4 -4
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js +10 -13
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js.map +1 -1
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.d.ts +5 -5
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js +4 -4
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js.map +1 -1
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.d.ts +3 -3
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js +3 -3
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js +7 -9
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js +16 -27
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js +6 -6
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js +6 -6
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js.map +1 -1
- package/build/main/tests/TestConfiguration.js.map +1 -1
- package/build/main/tests/casebuilders/ci.d.ts +8 -8
- package/build/main/tests/casebuilders/ci.js +1 -1
- package/build/main/tests/casebuilders/ci.js.map +1 -1
- package/build/main/tests/casebuilders/configuration.d.ts +4 -4
- package/build/main/tests/casebuilders/configuration.js +3 -3
- package/build/main/tests/casebuilders/configuration.js.map +1 -1
- package/build/main/tests/casebuilders/dsm.d.ts +2 -2
- package/build/main/tests/casebuilders/dsm.js +3 -3
- package/build/main/tests/casebuilders/dsm.js.map +1 -1
- package/build/main/tests/casebuilders/modelObjects.d.ts +13 -13
- package/build/main/tests/casebuilders/modelObjects.js +14 -14
- package/build/main/tests/casebuilders/modelObjects.js.map +1 -1
- package/build/main/tools/Logger.d.ts +14 -14
- package/build/main/tools/Logger.js +18 -18
- package/build/main/tools/Logger.js.map +1 -1
- package/build/main/tools/LoggerDefaultMessages.d.ts +10 -10
- package/build/main/tools/LoggerDefaultMessages.js +16 -16
- package/build/main/tools/LoggerDefaultMessages.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +221 -221
- package/package.json +9 -3
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCPulsar.ts
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCPulsarStaticAnalysis = exports.PCPulsarExporterMode = exports.PCPulsarEngineState = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Definitions
|
|
13
|
-
var
|
|
14
|
-
(function (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})(
|
|
19
|
-
var
|
|
20
|
-
(function (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})(
|
|
13
|
+
var PCPulsarEngineState;
|
|
14
|
+
(function (PCPulsarEngineState) {
|
|
15
|
+
PCPulsarEngineState["waiting"] = "waiting";
|
|
16
|
+
PCPulsarEngineState["loading"] = "loading";
|
|
17
|
+
PCPulsarEngineState["ready"] = "ready";
|
|
18
|
+
})(PCPulsarEngineState = exports.PCPulsarEngineState || (exports.PCPulsarEngineState = {}));
|
|
19
|
+
var PCPulsarExporterMode;
|
|
20
|
+
(function (PCPulsarExporterMode) {
|
|
21
|
+
PCPulsarExporterMode["ci"] = "ci";
|
|
22
|
+
PCPulsarExporterMode["sandbox"] = "sandbox";
|
|
23
|
+
PCPulsarExporterMode["docs"] = "docs";
|
|
24
|
+
})(PCPulsarExporterMode = exports.PCPulsarExporterMode || (exports.PCPulsarExporterMode = {}));
|
|
25
25
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
26
26
|
// MARK: - Class
|
|
27
|
-
class
|
|
27
|
+
class PCPulsarStaticAnalysis {
|
|
28
28
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
29
29
|
// MARK: - Setup
|
|
30
30
|
constructor() { }
|
|
31
31
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
32
32
|
// MARK: - Code editor
|
|
33
|
-
/** Suggest next characters, words or snippets to be inserted into
|
|
33
|
+
/** Suggest next characters, words or snippets to be inserted into pulsar code as user types */
|
|
34
34
|
suggestNextFromBlueprintCode(code, selectionLocation, selectionLength) {
|
|
35
35
|
return this.codeManager.suggestNextFromSourceCode(code, selectionLocation, selectionLength);
|
|
36
36
|
}
|
|
37
|
-
/** Apply autocompletion result to specified
|
|
37
|
+
/** Apply autocompletion result to specified pulsar code */
|
|
38
38
|
applyAutocompletionResultToCode(code, selectionLocation, selectionLength, apply) {
|
|
39
39
|
return this.codeManager.applyAutocompletionResultToCode(code, selectionLocation, selectionLength, apply);
|
|
40
40
|
}
|
|
41
|
-
/** Compute highlight tokens for the provided
|
|
41
|
+
/** Compute highlight tokens for the provided pulsar code */
|
|
42
42
|
suggestHighlightFromBlueprintCode(code) {
|
|
43
43
|
return this.codeManager.suggestHighlightFromSourceCode(code);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
exports.
|
|
46
|
+
exports.PCPulsarStaticAnalysis = PCPulsarStaticAnalysis;
|
|
47
47
|
//# sourceMappingURL=PulsarStaticAnalysis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PulsarStaticAnalysis.js","sourceRoot":"","sources":["../../../src/pulsar/PulsarStaticAnalysis.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"PulsarStaticAnalysis.js","sourceRoot":"","sources":["../../../src/pulsar/PulsarStaticAnalysis.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,eAAe;AACf,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAaF,8GAA8G;AAC9G,sBAAsB;AAEtB,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,0CAAmB,CAAA;IACnB,sCAAe,CAAA;AACjB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,iCAAS,CAAA;IACT,2CAAmB,CAAA;IACnB,qCAAa,CAAA;AACf,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAED,8GAA8G;AAC9G,gBAAgB;AAEhB,MAAa,sBAAsB;IAMjC,8GAA8G;IAC9G,gBAAgB;IAEhB,gBAAe,CAAC;IAEhB,8GAA8G;IAC9G,sBAAsB;IAEtB,+FAA+F;IAC/F,4BAA4B,CAC1B,IAAY,EACZ,iBAAyB,EACzB,eAAuB;QAEvB,OAAO,IAAI,CAAC,WAAW,CAAC,yBAAyB,CAAC,IAAI,EAAE,iBAAiB,EAAE,eAAe,CAAC,CAAA;IAC7F,CAAC;IAED,2DAA2D;IAC3D,+BAA+B,CAC7B,IAAY,EACZ,iBAAyB,EACzB,eAAuB,EACvB,KAAqC;QAErC,OAAO,IAAI,CAAC,WAAW,CAAC,+BAA+B,CAAC,IAAI,EAAE,iBAAiB,EAAE,eAAe,EAAE,KAAK,CAAC,CAAA;IAC1G,CAAC;IAED,4DAA4D;IAC5D,iCAAiC,CAAC,IAAY;QAC5C,OAAO,IAAI,CAAC,WAAW,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAA;IAC9D,CAAC;CACF;AArCD,wDAqCC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
4
|
-
/** Suggest next characters, words or snippets to be inserted into
|
|
5
|
-
suggestNextFromBlueprintCode(code: string, selectionLocation: number, selectionLength: number): Array<
|
|
6
|
-
/** Apply autocompletion result to specified
|
|
7
|
-
applyAutocompletionResultToCode(code: string, selectionLocation: number, selectionLength: number, apply:
|
|
8
|
-
/** Compute highlight tokens for the provided
|
|
9
|
-
suggestHighlightFromBlueprintCode(code: string): Array<
|
|
1
|
+
import { PLAutocompleteEngineApplicationResult, PLAutocompleteEngineSuggestion } from '@supernova-studio/pulsar-language/build/main/tools/autocomplete/AutocompleteEngine';
|
|
2
|
+
import { PLHighlightEngineToken } from '@supernova-studio/pulsar-language';
|
|
3
|
+
export interface PCPulsarStaticAnalysisInterface {
|
|
4
|
+
/** Suggest next characters, words or snippets to be inserted into pulsar code as user types */
|
|
5
|
+
suggestNextFromBlueprintCode(code: string, selectionLocation: number, selectionLength: number): Array<PLAutocompleteEngineSuggestion>;
|
|
6
|
+
/** Apply autocompletion result to specified pulsar code */
|
|
7
|
+
applyAutocompletionResultToCode(code: string, selectionLocation: number, selectionLength: number, apply: PLAutocompleteEngineSuggestion): PLAutocompleteEngineApplicationResult;
|
|
8
|
+
/** Compute highlight tokens for the provided pulsar code */
|
|
9
|
+
suggestHighlightFromBlueprintCode(code: string): Array<PLHighlightEngineToken>;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PulsarStaticAnalysisInterface.js","sourceRoot":"","sources":["../../../src/pulsar/PulsarStaticAnalysisInterface.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"PulsarStaticAnalysisInterface.js","sourceRoot":"","sources":["../../../src/pulsar/PulsarStaticAnalysisInterface.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,wBAAwB;AACxB,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
1
|
+
import { PCExporter } from './../../model/exporters/Exporter';
|
|
2
|
+
import { PCExporterSource } from '../../model/sources/ExporterSource';
|
|
3
|
+
export declare class PCPulsarSourceManager {
|
|
4
4
|
private exporter;
|
|
5
|
-
constructor(exporter:
|
|
5
|
+
constructor(exporter: PCExporter);
|
|
6
6
|
/** Get all sources associated with loaded exporter. Note that sources don't contain their code definitions, as those need to be requested separaterly */
|
|
7
|
-
getSources(): Array<
|
|
7
|
+
getSources(): Array<PCExporterSource>;
|
|
8
8
|
/** Get specific source associated with loaded exporter */
|
|
9
|
-
getSourceById(sourceId: string):
|
|
9
|
+
getSourceById(sourceId: string): PCExporterSource;
|
|
10
10
|
/** Create new source for loaded exporter. Source comes with default name and code and uses generic context */
|
|
11
|
-
createNewSource():
|
|
11
|
+
createNewSource(): PCExporterSource;
|
|
12
12
|
/** Delete specified source. Throws error when source is not found */
|
|
13
13
|
deleteSourceById(sourceId: string): void;
|
|
14
14
|
/** Update source id. Id must be non-empty and contain at least 3 characters. It must also be unique in scope. Note that this also updates all maps that are referencing this source */
|
|
15
|
-
updateSourceLocation(oldSourceId: string, newSourceId: string, newPath: string):
|
|
15
|
+
updateSourceLocation(oldSourceId: string, newSourceId: string, newPath: string): PCExporterSource;
|
|
16
16
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCPulsarSourceManager = void 0;
|
|
11
11
|
const ExporterSource_1 = require("../../model/sources/ExporterSource");
|
|
12
12
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
13
13
|
// MARK: - Definitions
|
|
14
14
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
15
15
|
// MARK: - Class
|
|
16
|
-
class
|
|
16
|
+
class PCPulsarSourceManager {
|
|
17
17
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
18
18
|
// MARK: - Setup
|
|
19
19
|
constructor(exporter) {
|
|
@@ -42,7 +42,7 @@ class PLSPulsarSourceManager {
|
|
|
42
42
|
/** Create new source for loaded exporter. Source comes with default name and code and uses generic context */
|
|
43
43
|
createNewSource() {
|
|
44
44
|
let count = this.exporter.sources.size;
|
|
45
|
-
let source = new ExporterSource_1.
|
|
45
|
+
let source = new ExporterSource_1.PCExporterSource(`source${count + 1}.pr`, null, ``);
|
|
46
46
|
this.exporter.storeNewSource(source);
|
|
47
47
|
return source;
|
|
48
48
|
}
|
|
@@ -72,5 +72,5 @@ class PLSPulsarSourceManager {
|
|
|
72
72
|
return source;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.
|
|
75
|
+
exports.PCPulsarSourceManager = PCPulsarSourceManager;
|
|
76
76
|
//# sourceMappingURL=PulsarBlueprintManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PulsarBlueprintManager.js","sourceRoot":"","sources":["../../../../src/pulsar/managers/PulsarBlueprintManager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,aAAa;AACb,E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,EAAE,EAAE,CAAC,CAAA;QAEpE,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QACpC,OAAO,MAAM,CAAA;IACf,CAAC;IAED,qEAAqE;IACrE,gBAAgB,CAAC,QAAgB;QAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;YACvC,MAAM,KAAK,CAAC,+BAA+B,QAAQ,EAAE,CAAC,CAAA;SACvD;QAED,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAA;IAC1C,CAAC;IAED,uLAAuL;IACvL,oBAAoB,CAAC,WAAmB,EAAE,WAAmB,EAAE,OAAe;QAC5E,kBAAkB;QAClB,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;QAClD,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,KAAK,CAAC,6BAA6B,WAAW,EAAE,CAAC,CAAA;SACxD;QAED,IAAI,QAAQ,GAAG,WAAW,CAAC,IAAI,EAAE,CAAA;QACjC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YACvB,MAAM,KAAK,CAAC,2CAA2C,CAAC,CAAA;SACzD;QAED,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE;YACvC,MAAM,KAAK,CAAC,mEAAmE,CAAC,CAAA;SACjF;QAED,mBAAmB;QACnB,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA;QACpE,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AA7ED,sDA6EC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PCExporter } from './../../model/exporters/Exporter';
|
|
2
|
+
import { PCEngineExporterProcessingResult } from '../PulsarInterface';
|
|
3
3
|
import { DSMReferenceStore } from './../../model/dsm/DSMReferenceStore';
|
|
4
4
|
import { DSMBridgeConfiguration } from '@supernova-studio/pulsar-language';
|
|
5
|
-
import {
|
|
6
|
-
export declare class
|
|
5
|
+
import { PCPulsarExporterMode } from '../Pulsar';
|
|
6
|
+
export declare class PCPulsarCIManager {
|
|
7
7
|
private exporter;
|
|
8
8
|
private currentExporterInstance;
|
|
9
|
-
constructor(exporter:
|
|
9
|
+
constructor(exporter: PCExporter);
|
|
10
10
|
/** Execute entire exporter and retrieve all files produced as a result of this export */
|
|
11
|
-
executeExporter(dsmBridgeConfig: DSMBridgeConfiguration, exportMode:
|
|
11
|
+
executeExporter(dsmBridgeConfig: DSMBridgeConfiguration, exportMode: PCPulsarExporterMode): Promise<PCEngineExporterProcessingResult>;
|
|
12
12
|
/** Execute entire exporter and retrieve all files produced as a result of this export */
|
|
13
|
-
executeExporterForSingleSandboxedComponent(dsmBridgeConfig: DSMBridgeConfiguration, exportMode:
|
|
13
|
+
executeExporterForSingleSandboxedComponent(dsmBridgeConfig: DSMBridgeConfiguration, exportMode: PCPulsarExporterMode, sandboxComponentId: string, serializedSandboxData: string): Promise<PCEngineExporterProcessingResult>;
|
|
14
14
|
/** Retrieve intermediate output of exporter in progress */
|
|
15
|
-
retrieveRunningExporterState():
|
|
15
|
+
retrieveRunningExporterState(): PCEngineExporterProcessingResult | null;
|
|
16
16
|
/** Get reference store containing description of all elements in the DSM, including all context categories */
|
|
17
17
|
getDSMContextStore(dsmBridgeConfig: DSMBridgeConfiguration): Promise<DSMReferenceStore>;
|
|
18
18
|
private convertExportResultToPulsarResult;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCPulsarCIManager = void 0;
|
|
11
11
|
const PulsarInterface_1 = require("../PulsarInterface");
|
|
12
12
|
const DSMReferenceStore_1 = require("./../../model/dsm/DSMReferenceStore");
|
|
13
13
|
const Logger_1 = require("./../../tools/Logger");
|
|
@@ -18,7 +18,7 @@ const pulsar_language_1 = require("@supernova-studio/pulsar-language");
|
|
|
18
18
|
// MARK: - Definitions
|
|
19
19
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
20
20
|
// MARK: - Class
|
|
21
|
-
class
|
|
21
|
+
class PCPulsarCIManager {
|
|
22
22
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
23
23
|
// MARK: - Setup
|
|
24
24
|
constructor(exporter) {
|
|
@@ -32,9 +32,9 @@ class PLSPulsarCIManager {
|
|
|
32
32
|
// Fetch the reference store containing description of the entire dsm, with all its elements
|
|
33
33
|
let store = await this.fetchReferenceStore(dsmBridgeConfig);
|
|
34
34
|
// Configure export engine
|
|
35
|
-
let logger = new Logger_1.
|
|
36
|
-
let configuration = new ExportConfiguration_1.
|
|
37
|
-
let pulsarEngine = new ExportEngine_1.
|
|
35
|
+
let logger = new Logger_1.PCLogger();
|
|
36
|
+
let configuration = new ExportConfiguration_1.PCExportConfiguration(this.exporter, logger, store, dsmBridgeConfig, exportMode, {});
|
|
37
|
+
let pulsarEngine = new ExportEngine_1.PCExportEngine(configuration);
|
|
38
38
|
this.currentExporterInstance = pulsarEngine;
|
|
39
39
|
// Run the export and wait for results, processing all blueprints against all file maps
|
|
40
40
|
let result = await pulsarEngine.processExport();
|
|
@@ -48,10 +48,10 @@ class PLSPulsarCIManager {
|
|
|
48
48
|
// Fetch the reference store containing description of the entire dsm, with all its elements
|
|
49
49
|
let store = await this.fetchReferenceStoreForSandboxedComponent(sandboxComponentId);
|
|
50
50
|
// Configure export engine
|
|
51
|
-
let logger = new Logger_1.
|
|
51
|
+
let logger = new Logger_1.PCLogger();
|
|
52
52
|
let sandboxData = JSON.parse(serializedSandboxData);
|
|
53
|
-
let configuration = new ExportConfiguration_1.
|
|
54
|
-
let pulsarEngine = new ExportEngine_1.
|
|
53
|
+
let configuration = new ExportConfiguration_1.PCExportConfiguration(this.exporter, logger, store, dsmBridgeConfig, exportMode, sandboxData);
|
|
54
|
+
let pulsarEngine = new ExportEngine_1.PCExportEngine(configuration);
|
|
55
55
|
this.currentExporterInstance = pulsarEngine;
|
|
56
56
|
// Run the export and wait for results, processing all blueprints against all file maps
|
|
57
57
|
let result = await pulsarEngine.processExport();
|
|
@@ -98,12 +98,12 @@ class PLSPulsarCIManager {
|
|
|
98
98
|
exporterId: this.exporter.id,
|
|
99
99
|
runId: exportEngine.runId,
|
|
100
100
|
emittedFiles: files,
|
|
101
|
-
state: PulsarInterface_1.
|
|
101
|
+
state: PulsarInterface_1.PCEngineExporterState.finished_success,
|
|
102
102
|
rootGroup: this.computeRootFileGroupFromFiles(files)
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
parseName(fullPath) {
|
|
106
|
-
// Only retrieve files that are .
|
|
106
|
+
// Only retrieve files that are .pr or .json
|
|
107
107
|
// Modify filename by removing the first directory
|
|
108
108
|
let components = fullPath.split('/');
|
|
109
109
|
// Extract filename, extension and paths
|
|
@@ -161,7 +161,7 @@ class PLSPulsarCIManager {
|
|
|
161
161
|
// MARK: - File group computing
|
|
162
162
|
computeRootFileGroupFromFiles(files) {
|
|
163
163
|
// Create root group to which everything goes
|
|
164
|
-
let rootGroup = new PulsarInterface_1.
|
|
164
|
+
let rootGroup = new PulsarInterface_1.PCEngineFileGroup('Root', '/', [], []);
|
|
165
165
|
let subgroups = new Map();
|
|
166
166
|
let currentParent = rootGroup;
|
|
167
167
|
for (let file of files) {
|
|
@@ -187,7 +187,7 @@ class PLSPulsarCIManager {
|
|
|
187
187
|
}
|
|
188
188
|
else {
|
|
189
189
|
// Group doesn't exist, we create one, assign it to parent and buffer
|
|
190
|
-
group = new PulsarInterface_1.
|
|
190
|
+
group = new PulsarInterface_1.PCEngineFileGroup(permutation.lastComponent, permutation.path, [], []);
|
|
191
191
|
currentParent.groups.push(group);
|
|
192
192
|
subgroups.set(permutation.path, group);
|
|
193
193
|
}
|
|
@@ -216,5 +216,5 @@ class PLSPulsarCIManager {
|
|
|
216
216
|
return buffer;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
exports.
|
|
219
|
+
exports.PCPulsarCIManager = PCPulsarCIManager;
|
|
220
220
|
//# sourceMappingURL=PulsarCIManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PulsarCIManager.js","sourceRoot":"","sources":["../../../../src/pulsar/managers/PulsarCIManager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,sBAAsB;AACtB,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAMF,
|
|
1
|
+
{"version":3,"file":"PulsarCIManager.js","sourceRoot":"","sources":["../../../../src/pulsar/managers/PulsarCIManager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,sBAAsB;AACtB,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAMF,wDAK2B;AAE3B,2EAAuE;AACvE,iDAA+C;AAC/C,0FAAwF;AACxF,8DAA4D;AAC5D,uEAAqF;AAGrF,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,gBAAgB;AAEhB,MAAa,iBAAiB;IAO5B,8GAA8G;IAC9G,gBAAgB;IAEhB,YAAY,QAAoB;QAC9B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAA;IACrC,CAAC;IAED,8GAA8G;IAC9G,qBAAqB;IAErB,yFAAyF;IACzF,KAAK,CAAC,eAAe,CACnB,eAAuC,EACvC,UAAgC;QAEhC,4FAA4F;QAC5F,IAAI,KAAK,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAA;QAE3D,0BAA0B;QAC1B,IAAI,MAA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QACjE,IAAI,YAAY,GAAG,EAAE,CAAA;QACrB,KAAK,IAAI,SAAS,IAAI,cAAc,EAAE;YACpC,YAAY,IAAI,IAAI,SAAS,EAAE,CAAA;YAC/B,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,YAAY;gBAClB,aAAa,EAAE,SAAS;aACzB,CAAC,CAAA;SACH;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AArQD,8CAqQC"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export declare class
|
|
1
|
+
import { PCExporter } from './../../model/exporters/Exporter';
|
|
2
|
+
import { PLBlueprint, DSMExecutionContext, PLHighlightEngineToken, DSMBridgeConfiguration } from '@supernova-studio/pulsar-language';
|
|
3
|
+
import { PLAutocompleteEngineApplicationResult, PLAutocompleteEngineSuggestion } from '@supernova-studio/pulsar-language/build/main/tools/autocomplete/AutocompleteEngine';
|
|
4
|
+
import { PCEngineSourceProcessingResult } from './../PulsarInterface';
|
|
5
|
+
export declare class PCPulsarCodeManager {
|
|
6
6
|
private exporter;
|
|
7
7
|
private codeExecutionContext;
|
|
8
|
-
constructor(exporter:
|
|
8
|
+
constructor(exporter: PCExporter);
|
|
9
9
|
/** Execute source code and retrieve the resulting output. This also retrieves any emitted extra files. Throws error when source is not found */
|
|
10
|
-
executeSourceById(sourceId: string, dsmBridgeConfig: DSMBridgeConfiguration, contextKey: string, contextId: string): Promise<
|
|
10
|
+
executeSourceById(sourceId: string, dsmBridgeConfig: DSMBridgeConfiguration, contextKey: string, contextId: string): Promise<PCEngineSourceProcessingResult>;
|
|
11
11
|
/** Update source code definition. Content can be anything */
|
|
12
12
|
updateSourceCodeDefinitionForSourceId(sourceId: string, definition: string): void;
|
|
13
13
|
/** Update source code definition. Overview can be empty. Throws error when source is not found */
|
|
14
14
|
updateSourceLocation(oldSourceId: string, newSourceId: string, newPath: string): void;
|
|
15
|
-
/** Suggest next characters, words or snippets to be inserted into
|
|
16
|
-
suggestNextFromSourceCode(code: string, selectionLocation: number, selectionLength: number): Array<
|
|
17
|
-
/** Apply autocompletion result to specified
|
|
18
|
-
applyAutocompletionResultToCode(code: string, selectionLocation: number, selectionLength: number, apply:
|
|
19
|
-
/** Compute highlight tokens for the provided
|
|
20
|
-
suggestHighlightFromSourceCode(code: string): Array<
|
|
15
|
+
/** Suggest next characters, words or snippets to be inserted into pulsar code as user types */
|
|
16
|
+
suggestNextFromSourceCode(code: string, selectionLocation: number, selectionLength: number): Array<PLAutocompleteEngineSuggestion>;
|
|
17
|
+
/** Apply autocompletion result to specified pulsar code */
|
|
18
|
+
applyAutocompletionResultToCode(code: string, selectionLocation: number, selectionLength: number, apply: PLAutocompleteEngineSuggestion): PLAutocompleteEngineApplicationResult;
|
|
19
|
+
/** Compute highlight tokens for the provided pulsar code */
|
|
20
|
+
suggestHighlightFromSourceCode(code: string): Array<PLHighlightEngineToken>;
|
|
21
21
|
createContextData(contextKey: string, contextId: string): Map<string, any>;
|
|
22
|
-
parseSource(declaration: string, executionContext: DSMExecutionContext): Promise<
|
|
23
|
-
interpretSource(source:
|
|
22
|
+
parseSource(declaration: string, executionContext: DSMExecutionContext): Promise<PLBlueprint>;
|
|
23
|
+
interpretSource(source: PLBlueprint, data: Map<string, any>, executionContext: DSMExecutionContext): Promise<string>;
|
|
24
24
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCPulsarCodeManager = void 0;
|
|
11
11
|
const Logger_1 = require("@supernova-studio/pulsar-language/build/main/interpreter/loggers/Logger");
|
|
12
12
|
const BlueprintLoader_1 = require("./../../engine/loaders/BlueprintLoader");
|
|
13
13
|
const pulsar_language_1 = require("@supernova-studio/pulsar-language");
|
|
@@ -17,13 +17,13 @@ const ExporterSource_1 = require("../../model/sources/ExporterSource");
|
|
|
17
17
|
// MARK: - Definitions
|
|
18
18
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
19
19
|
// MARK: - Class
|
|
20
|
-
class
|
|
20
|
+
class PCPulsarCodeManager {
|
|
21
21
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
22
22
|
// MARK: - Setup
|
|
23
23
|
constructor(exporter) {
|
|
24
24
|
this.exporter = exporter;
|
|
25
25
|
// Context is not usable for actual execution, but provides data about all types of functions / flows etc. available in the system
|
|
26
|
-
this.codeExecutionContext = new pulsar_language_1.DSMExecutionContext(new BlueprintLoader_2.
|
|
26
|
+
this.codeExecutionContext = new pulsar_language_1.DSMExecutionContext(new BlueprintLoader_2.PLBlueprintLoader(), new pulsar_language_1.PLBlueprintEmitter(), new Logger_1.PLLogger(), new pulsar_language_1.DSMBridge({
|
|
27
27
|
accessToken: '',
|
|
28
28
|
apiUrl: '',
|
|
29
29
|
designSystemId: '',
|
|
@@ -44,9 +44,9 @@ class PLSPulsarCodeManager {
|
|
|
44
44
|
// Create context data
|
|
45
45
|
let contextData = this.createContextData(contextKey, contextId);
|
|
46
46
|
// Create execution context for the DSM access, with in-memory loaders and emitters
|
|
47
|
-
let logger = new Logger_1.
|
|
48
|
-
let loader = new BlueprintLoader_1.
|
|
49
|
-
let emitter = new pulsar_language_1.
|
|
47
|
+
let logger = new Logger_1.PLLogger();
|
|
48
|
+
let loader = new BlueprintLoader_1.PCBlueprintLoader(this.exporter);
|
|
49
|
+
let emitter = new pulsar_language_1.PLMemoryBlueprintEmitter(false);
|
|
50
50
|
let configuredBridge = new pulsar_language_1.DSMBridge(dsmBridgeConfig);
|
|
51
51
|
let executionContext = new pulsar_language_1.DSMExecutionContext(loader, emitter, logger, configuredBridge, null);
|
|
52
52
|
// Parse sources using custom context with dsm functionality and execute
|
|
@@ -98,22 +98,22 @@ class PLSPulsarCodeManager {
|
|
|
98
98
|
// Move it
|
|
99
99
|
this.exporter.moveBlueprintSource(oldSourceId, newSourceId, newPath);
|
|
100
100
|
}
|
|
101
|
-
/** Suggest next characters, words or snippets to be inserted into
|
|
101
|
+
/** Suggest next characters, words or snippets to be inserted into pulsar code as user types */
|
|
102
102
|
suggestNextFromSourceCode(code, selectionLocation, selectionLength) {
|
|
103
|
-
let suggestionEngine = new pulsar_language_1.
|
|
104
|
-
suggestionEngine.loadSnippets(new pulsar_language_1.
|
|
103
|
+
let suggestionEngine = new pulsar_language_1.PLBlueprintAutocompleteEngine(this.codeExecutionContext);
|
|
104
|
+
suggestionEngine.loadSnippets(new pulsar_language_1.PLAutocompleteBlueprintSnippets().snippetPool());
|
|
105
105
|
let suggestions = suggestionEngine.suggestNextBasedOnString(code, selectionLocation, selectionLength);
|
|
106
106
|
return suggestions;
|
|
107
107
|
}
|
|
108
|
-
/** Apply autocompletion result to specified
|
|
108
|
+
/** Apply autocompletion result to specified pulsar code */
|
|
109
109
|
applyAutocompletionResultToCode(code, selectionLocation, selectionLength, apply) {
|
|
110
|
-
let suggestionEngine = new pulsar_language_1.
|
|
110
|
+
let suggestionEngine = new pulsar_language_1.PLBlueprintAutocompleteEngine(this.codeExecutionContext);
|
|
111
111
|
let result = suggestionEngine.applySuggestion(apply, code, selectionLocation, selectionLength, 0);
|
|
112
112
|
return result;
|
|
113
113
|
}
|
|
114
|
-
/** Compute highlight tokens for the provided
|
|
114
|
+
/** Compute highlight tokens for the provided pulsar code */
|
|
115
115
|
suggestHighlightFromSourceCode(code) {
|
|
116
|
-
let suggestionEngine = new pulsar_language_1.
|
|
116
|
+
let suggestionEngine = new pulsar_language_1.PLBlueprintHighlightEngine(this.codeExecutionContext);
|
|
117
117
|
let result = suggestionEngine.tokenize(code);
|
|
118
118
|
return result;
|
|
119
119
|
}
|
|
@@ -122,43 +122,43 @@ class PLSPulsarCodeManager {
|
|
|
122
122
|
createContextData(contextKey, contextId) {
|
|
123
123
|
let data = new Map();
|
|
124
124
|
if (contextId === 'none') {
|
|
125
|
-
if (contextKey === ExporterSource_1.
|
|
125
|
+
if (contextKey === ExporterSource_1.PCExporterSourceContextType.generic) {
|
|
126
126
|
return data;
|
|
127
127
|
}
|
|
128
|
-
else if (contextKey === ExporterSource_1.
|
|
128
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.component) {
|
|
129
129
|
throw new Error('Source with component context can only be tested against design system with one or more defined components. Create new component and run this source again.');
|
|
130
130
|
}
|
|
131
|
-
else if (contextKey === ExporterSource_1.
|
|
131
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.componentGroup) {
|
|
132
132
|
throw new Error('Source with component group context can only be tested against design system with one or more defined component groups. Create new component group and run this source again.');
|
|
133
133
|
}
|
|
134
|
-
else if (contextKey === ExporterSource_1.
|
|
134
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.tokenType) {
|
|
135
135
|
throw new Error('Source with token type context can only be tested against design system with one or more token types. Create new token and run this source again.');
|
|
136
136
|
}
|
|
137
|
-
else if (contextKey === ExporterSource_1.
|
|
137
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.tokenGroup) {
|
|
138
138
|
throw new Error('Source with token group context can only be tested against design system with one or more defined token groups. Create new token group and run this source again.');
|
|
139
139
|
}
|
|
140
|
-
else if (contextKey === ExporterSource_1.
|
|
140
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.theme) {
|
|
141
141
|
throw new Error('Source with theme context can only be tested against design system with one or more defined themes. Create new theme and run this source again.');
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
else {
|
|
145
|
-
if (contextKey === ExporterSource_1.
|
|
145
|
+
if (contextKey === ExporterSource_1.PCExporterSourceContextType.generic) {
|
|
146
146
|
// Generic ignores context id
|
|
147
147
|
return data;
|
|
148
148
|
}
|
|
149
|
-
else if (contextKey === ExporterSource_1.
|
|
149
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.component) {
|
|
150
150
|
data.set('componentId', contextId);
|
|
151
151
|
}
|
|
152
|
-
else if (contextKey === ExporterSource_1.
|
|
152
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.componentGroup) {
|
|
153
153
|
data.set('groupId', contextId);
|
|
154
154
|
}
|
|
155
|
-
else if (contextKey === ExporterSource_1.
|
|
155
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.tokenType) {
|
|
156
156
|
data.set('tokenTypeId', contextId);
|
|
157
157
|
}
|
|
158
|
-
else if (contextKey === ExporterSource_1.
|
|
158
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.tokenGroup) {
|
|
159
159
|
data.set('groupId', contextId);
|
|
160
160
|
}
|
|
161
|
-
else if (contextKey === ExporterSource_1.
|
|
161
|
+
else if (contextKey === ExporterSource_1.PCExporterSourceContextType.theme) {
|
|
162
162
|
data.set('themeId', contextId);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -167,14 +167,14 @@ class PLSPulsarCodeManager {
|
|
|
167
167
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
168
168
|
// MARK: - Convenience
|
|
169
169
|
async parseSource(declaration, executionContext) {
|
|
170
|
-
let source = pulsar_language_1.
|
|
170
|
+
let source = pulsar_language_1.PLBlueprintFactory.blueprint(declaration, 'test', executionContext, null);
|
|
171
171
|
return source;
|
|
172
172
|
}
|
|
173
173
|
async interpretSource(source, data, executionContext) {
|
|
174
|
-
let renderingContext = new pulsar_language_1.
|
|
175
|
-
let interpreter = new pulsar_language_1.
|
|
174
|
+
let renderingContext = new pulsar_language_1.PLInterpreterContext(data);
|
|
175
|
+
let interpreter = new pulsar_language_1.PLInterpreter();
|
|
176
176
|
return interpreter.interpret(source, renderingContext, executionContext);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
exports.
|
|
179
|
+
exports.PCPulsarCodeManager = PCPulsarCodeManager;
|
|
180
180
|
//# sourceMappingURL=PulsarCodeManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PulsarCodeManager.js","sourceRoot":"","sources":["../../../../src/pulsar/managers/PulsarCodeManager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,wBAAwB;AACxB,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAMF,
|
|
1
|
+
{"version":3,"file":"PulsarCodeManager.js","sourceRoot":"","sources":["../../../../src/pulsar/managers/PulsarCodeManager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,wBAAwB;AACxB,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAMF,oGAAkG;AAClG,4EAA0E;AAC1E,uEAc0C;AAK1C,sHAAoH;AAEpH,uEAAgF;AAEhF,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,gBAAgB;AAEhB,MAAa,mBAAmB;IAO9B,8GAA8G;IAC9G,gBAAgB;IAEhB,YAAY,QAAoB;QAC9B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QAExB,kIAAkI;QAClI,IAAI,CAAC,oBAAoB,GAAG,IAAI,qCAAmB,CACjD,IAAI,mCAAiB,EAAE,EACvB,IAAI,oCAAkB,EAAE,EACxB,IAAI,iBAAQ,EAAE,EACd,IAAI,2BAAS,CAAC;YACZ,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,EAAE;YACV,cAAc,EAAE,EAAE;YAClB,WAAW,EAAE,EAAE;YACf,UAAU,EAAE,KAAK;SAClB,CAAC,EACF,IAAI,CACL,CAAA;IACH,CAAC;IAED,8GAA8G;IAC9G,sBAAsB;IAEtB,gJAAgJ;IAChJ,KAAK,CAAC,iBAAiB,CACrB,QAAgB,EAChB,eAAuC,EACvC,UAAkB,EAClB,SAAiB;QAEjB,EAAE;QACF,kBAAkB;QAClB,IAAI,MAAM,GAAG,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nB,IAAsB,EACtB,gBAAqC;QAErC,IAAI,gBAAgB,GAAG,IAAI,sCAAoB,CAAC,IAAI,CAAC,CAAA;QACrD,IAAI,WAAW,GAAG,IAAI,+BAAa,EAAE,CAAA;QACrC,OAAO,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAA;IAC1E,CAAC;CACF;AApND,kDAoNC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
3
|
-
constructor(_exporter:
|
|
1
|
+
import { PCExporter } from '../../model/exporters/Exporter';
|
|
2
|
+
export declare class PCPulsarConfigurationManager {
|
|
3
|
+
constructor(_exporter: PCExporter);
|
|
4
4
|
/** Get exporter configuration JSON */
|
|
5
5
|
getExporterConfigurationJSON(): string;
|
|
6
6
|
/** Get source configuration JSON */
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCPulsarConfigurationManager = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Imports
|
|
13
13
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
14
14
|
// MARK: - Definitions
|
|
15
15
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
16
16
|
// MARK: - Class
|
|
17
|
-
class
|
|
17
|
+
class PCPulsarConfigurationManager {
|
|
18
18
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
19
19
|
// MARK: - Properties
|
|
20
|
-
// private exporter:
|
|
20
|
+
// private exporter: PCExporter
|
|
21
21
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
22
22
|
// MARK: - Setup
|
|
23
23
|
constructor(_exporter) {
|
|
@@ -44,5 +44,5 @@ class PLSPulsarConfigurationManager {
|
|
|
44
44
|
/** Update output configuration JSON */
|
|
45
45
|
updateOutputConfigurationJSON(_content) { }
|
|
46
46
|
}
|
|
47
|
-
exports.
|
|
47
|
+
exports.PCPulsarConfigurationManager = PCPulsarConfigurationManager;
|
|
48
48
|
//# sourceMappingURL=PulsarConfigurationManager.js.map
|