Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"scripts": ["node_modules/uplot/dist/uPlot.iife.min.js"],
"extraWebpackConfig": "projects/step-app/webpack.config.js",
"commonChunk": false,
"allowedCommonJsDependencies": ["ace-builds", "luxon"]
"allowedCommonJsDependencies": ["ace-builds", "luxon", "@logicflow-ai/astra-wingman"]
},
"configurations": {
"local": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"tslib": "2.3.0",
"uplot": "^1.6.28",
"uuid": "8.3.2",
"zone.js": "0.14.3"
"zone.js": "0.14.3",
"@logicflow-ai/astra-wingman": "latest"
},
"devDependencies": {
"@angular-devkit/build-angular": "17.1.1",
Expand Down
5 changes: 5 additions & 0 deletions projects/step-app/src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { environment } from './environments/environment';
import { AppModule } from '@exense/step-frontend';
import { initializeWingman } from '@logicflow-ai/astra-wingman';

if (environment.production) {
enableProdMode();
}

if (environment.wingmanConfig) {
initializeWingman(environment.wingmanConfig);
}

platformBrowserDynamic()
.bootstrapModule(AppModule)
.catch((err) => console.error(err));
20 changes: 20 additions & 0 deletions projects/step-app/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
import { initializeWingman } from '@logicflow-ai/astra-wingman';
type WingmanConfig = Parameters<typeof initializeWingman>[0];

export const environment = {
production: true,
wingmanConfig: {
endpoint: 'https://astra.logicflow.ai/',
application: 'Autonomous STEP',
projectId: '38eb9b47-5483-4e09-88e6-defc8b4e4216',
environments: ['http://localhost:4201', 'https://stepos-sed-2461.stepcloud-test.ch'],
active: true,
allowPassword: true,
language: () => 'en',
username: () => 'admin',
customState: () => {
return { role: 'admin' };
},
debugging: true,
testing: false,
flowGpt: false,
gptInContext: false,
} as WingmanConfig | undefined,
};
20 changes: 20 additions & 0 deletions projects/step-app/src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
import { initializeWingman } from '@logicflow-ai/astra-wingman';

type WingmanConfig = Parameters<typeof initializeWingman>[0];

export const environment = {
production: false,
wingmanConfig: {
endpoint: 'https://astra.logicflow.ai/',
application: 'Autonomous STEP',
projectId: '38eb9b47-5483-4e09-88e6-defc8b4e4216',
environments: ['http://localhost:4201', 'https://stepos-sed-2461.stepcloud-test.ch'],
active: true,
allowPassword: true,
language: () => 'en',
username: () => 'admin',
customState: () => {
return { role: 'admin' };
},
debugging: true,
testing: false,
flowGpt: false,
gptInContext: false,
} as WingmanConfig | undefined,
};

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class PlanEditorActionsComponent implements OnChanges {
undo: 'Undo (Ctrl + Z)',
redo: 'Redo (Ctrl + Y)',
duplicate: 'Duplicate this plan',
showSource: 'Show plan\'s YAML source',
showSource: "Show plan's YAML source",
export: 'Export this plan',
start: 'Execute this plan',
resetInteractive: 'Reset the session of the interactive mode',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { Component, EventEmitter, inject, Input, OnDestroy, OnInit, Output, ViewChild, ViewEncapsulation } from '@angular/core';
import {
Component,
EventEmitter,
inject,
Input,
OnDestroy,
OnInit,
Output,
ViewChild,
ViewEncapsulation,
} from '@angular/core';
import { TimeSeriesUtils } from '../../time-series-utils';
import { TSRangerComponent } from '../../ranger/ts-ranger.component';
import { TimeSeriesContext } from '../../time-series-context';
Expand Down