@loopstack/meeting-notes-example-workflow 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/README.md +2 -0
- package/dist/documents/meeting-notes-document.d.ts +11 -0
- package/dist/documents/meeting-notes-document.js +27 -0
- package/dist/documents/meeting-notes-document.js.map +1 -0
- package/dist/documents/meeting-notes-document.yaml +13 -0
- package/dist/documents/optimized-notes-document.d.ts +23 -0
- package/dist/documents/optimized-notes-document.js +31 -0
- package/dist/documents/optimized-notes-document.js.map +1 -0
- package/dist/documents/optimized-notes-document.yaml +36 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/meeting-notes-example.module.d.ts +2 -0
- package/dist/meeting-notes-example.module.js +33 -0
- package/dist/meeting-notes-example.module.js.map +1 -0
- package/dist/meeting-notes.workflow.d.ts +11 -0
- package/dist/meeting-notes.workflow.js +55 -0
- package/dist/meeting-notes.workflow.js.map +1 -0
- package/dist/meeting-notes.workflow.yaml +79 -0
- package/package.json +78 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
Copyright 2025 Loopstack GmbH
|
|
8
|
+
|
|
9
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
you may not use this skeleton application except in compliance with the License.
|
|
11
|
+
You may obtain a copy of the License at
|
|
12
|
+
|
|
13
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
|
|
15
|
+
Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
See the License for the specific language governing permissions and
|
|
19
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DocumentBase } from '@loopstack/core';
|
|
3
|
+
export declare const MeetingNotesDocumentSchema: z.ZodObject<{
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
text?: string;
|
|
7
|
+
}, {
|
|
8
|
+
text?: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare class MeetingNotesDocument extends DocumentBase {
|
|
11
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.MeetingNotesDocument = exports.MeetingNotesDocumentSchema = void 0;
|
|
10
|
+
const common_1 = require("@loopstack/common");
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
|
+
const core_1 = require("@loopstack/core");
|
|
13
|
+
const common_2 = require("@nestjs/common");
|
|
14
|
+
exports.MeetingNotesDocumentSchema = zod_1.z.object({
|
|
15
|
+
text: zod_1.z.string(),
|
|
16
|
+
});
|
|
17
|
+
let MeetingNotesDocument = class MeetingNotesDocument extends core_1.DocumentBase {
|
|
18
|
+
};
|
|
19
|
+
exports.MeetingNotesDocument = MeetingNotesDocument;
|
|
20
|
+
exports.MeetingNotesDocument = MeetingNotesDocument = __decorate([
|
|
21
|
+
(0, common_2.Injectable)(),
|
|
22
|
+
(0, common_1.BlockConfig)({
|
|
23
|
+
configFile: __dirname + '/meeting-notes-document.yaml',
|
|
24
|
+
}),
|
|
25
|
+
(0, common_1.WithArguments)(exports.MeetingNotesDocumentSchema)
|
|
26
|
+
], MeetingNotesDocument);
|
|
27
|
+
//# sourceMappingURL=meeting-notes-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-notes-document.js","sourceRoot":"","sources":["../../src/documents/meeting-notes-document.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAA+D;AAC/D,6BAAwB;AACxB,0CAA+C;AAC/C,2CAA4C;AAE/B,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAOI,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mBAAY;CAAG,CAAA;AAA5C,oDAAoB;+BAApB,oBAAoB;IALhC,IAAA,mBAAU,GAAE;IACZ,IAAA,oBAAW,EAAC;QACX,UAAU,EAAE,SAAS,GAAG,8BAA8B;KACvD,CAAC;IACD,IAAA,sBAAa,EAAC,kCAA0B,CAAC;GAC7B,oBAAoB,CAAwB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DocumentBase } from '@loopstack/core';
|
|
3
|
+
export declare const OptimizedMeetingNotesDocumentSchema: z.ZodObject<{
|
|
4
|
+
date: z.ZodString;
|
|
5
|
+
summary: z.ZodString;
|
|
6
|
+
participants: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
decisions: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
actionItems: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
date?: string;
|
|
11
|
+
summary?: string;
|
|
12
|
+
participants?: string[];
|
|
13
|
+
decisions?: string[];
|
|
14
|
+
actionItems?: string[];
|
|
15
|
+
}, {
|
|
16
|
+
date?: string;
|
|
17
|
+
summary?: string;
|
|
18
|
+
participants?: string[];
|
|
19
|
+
decisions?: string[];
|
|
20
|
+
actionItems?: string[];
|
|
21
|
+
}>;
|
|
22
|
+
export declare class OptimizedNotesDocument extends DocumentBase {
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.OptimizedNotesDocument = exports.OptimizedMeetingNotesDocumentSchema = void 0;
|
|
10
|
+
const common_1 = require("@loopstack/common");
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
|
+
const core_1 = require("@loopstack/core");
|
|
13
|
+
const common_2 = require("@nestjs/common");
|
|
14
|
+
exports.OptimizedMeetingNotesDocumentSchema = zod_1.z.object({
|
|
15
|
+
date: zod_1.z.string(),
|
|
16
|
+
summary: zod_1.z.string(),
|
|
17
|
+
participants: zod_1.z.array(zod_1.z.string()),
|
|
18
|
+
decisions: zod_1.z.array(zod_1.z.string()),
|
|
19
|
+
actionItems: zod_1.z.array(zod_1.z.string()),
|
|
20
|
+
});
|
|
21
|
+
let OptimizedNotesDocument = class OptimizedNotesDocument extends core_1.DocumentBase {
|
|
22
|
+
};
|
|
23
|
+
exports.OptimizedNotesDocument = OptimizedNotesDocument;
|
|
24
|
+
exports.OptimizedNotesDocument = OptimizedNotesDocument = __decorate([
|
|
25
|
+
(0, common_2.Injectable)(),
|
|
26
|
+
(0, common_1.BlockConfig)({
|
|
27
|
+
configFile: __dirname + '/optimized-notes-document.yaml',
|
|
28
|
+
}),
|
|
29
|
+
(0, common_1.WithArguments)(exports.OptimizedMeetingNotesDocumentSchema)
|
|
30
|
+
], OptimizedNotesDocument);
|
|
31
|
+
//# sourceMappingURL=optimized-notes-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optimized-notes-document.js","sourceRoot":"","sources":["../../src/documents/optimized-notes-document.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAA+D;AAC/D,6BAAwB;AACxB,0CAA+C;AAC/C,2CAA4C;AAE/B,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACjC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAC;AAOI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,mBAAY;CAAG,CAAA;AAA9C,wDAAsB;iCAAtB,sBAAsB;IALlC,IAAA,mBAAU,GAAE;IACZ,IAAA,oBAAW,EAAC;QACX,UAAU,EAAE,SAAS,GAAG,gCAAgC;KACzD,CAAC;IACD,IAAA,sBAAa,EAAC,2CAAmC,CAAC;GACtC,sBAAsB,CAAwB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type: document
|
|
2
|
+
ui:
|
|
3
|
+
form:
|
|
4
|
+
order:
|
|
5
|
+
- date
|
|
6
|
+
- summary
|
|
7
|
+
- participants
|
|
8
|
+
- decisions
|
|
9
|
+
- actionItems
|
|
10
|
+
properties:
|
|
11
|
+
date:
|
|
12
|
+
title: Date
|
|
13
|
+
summary:
|
|
14
|
+
title: Summary
|
|
15
|
+
widget: textarea
|
|
16
|
+
participants:
|
|
17
|
+
title: Participants
|
|
18
|
+
collapsed: true
|
|
19
|
+
items:
|
|
20
|
+
title: Participant
|
|
21
|
+
decisions:
|
|
22
|
+
title: Decisions
|
|
23
|
+
collapsed: true
|
|
24
|
+
items:
|
|
25
|
+
title: Decision
|
|
26
|
+
actionItems:
|
|
27
|
+
title: Action Items
|
|
28
|
+
collapsed: true
|
|
29
|
+
items:
|
|
30
|
+
title: Action Item
|
|
31
|
+
actions:
|
|
32
|
+
- type: button
|
|
33
|
+
widget: button
|
|
34
|
+
transition: confirm
|
|
35
|
+
options:
|
|
36
|
+
label: "Confirm"
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./meeting-notes-example.module"), exports);
|
|
18
|
+
__exportStar(require("./meeting-notes.workflow"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,2DAAyC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.MeetingNotesExampleModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const core_1 = require("@loopstack/core");
|
|
12
|
+
const core_ui_module_1 = require("@loopstack/core-ui-module");
|
|
13
|
+
const ai_module_1 = require("@loopstack/ai-module");
|
|
14
|
+
const meeting_notes_workflow_1 = require("./meeting-notes.workflow");
|
|
15
|
+
const meeting_notes_document_1 = require("./documents/meeting-notes-document");
|
|
16
|
+
const optimized_notes_document_1 = require("./documents/optimized-notes-document");
|
|
17
|
+
let MeetingNotesExampleModule = class MeetingNotesExampleModule {
|
|
18
|
+
};
|
|
19
|
+
exports.MeetingNotesExampleModule = MeetingNotesExampleModule;
|
|
20
|
+
exports.MeetingNotesExampleModule = MeetingNotesExampleModule = __decorate([
|
|
21
|
+
(0, common_1.Module)({
|
|
22
|
+
imports: [core_1.LoopCoreModule, core_ui_module_1.CoreUiModule, ai_module_1.AiModule],
|
|
23
|
+
providers: [
|
|
24
|
+
meeting_notes_workflow_1.MeetingNotesWorkflow,
|
|
25
|
+
meeting_notes_document_1.MeetingNotesDocument,
|
|
26
|
+
optimized_notes_document_1.OptimizedNotesDocument,
|
|
27
|
+
],
|
|
28
|
+
exports: [
|
|
29
|
+
meeting_notes_workflow_1.MeetingNotesWorkflow,
|
|
30
|
+
]
|
|
31
|
+
})
|
|
32
|
+
], MeetingNotesExampleModule);
|
|
33
|
+
//# sourceMappingURL=meeting-notes-example.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-notes-example.module.js","sourceRoot":"","sources":["../src/meeting-notes-example.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,0CAAiD;AACjD,8DAAyD;AACzD,oDAAgD;AAChD,qEAAgE;AAChE,+EAA0E;AAC1E,mFAA8E;AAavE,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAAG,CAAA;AAA5B,8DAAyB;oCAAzB,yBAAyB;IAXrC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,qBAAc,EAAE,6BAAY,EAAE,oBAAQ,CAAC;QACjD,SAAS,EAAE;YACT,6CAAoB;YACpB,6CAAoB;YACpB,iDAAsB;SACvB;QACD,OAAO,EAAE;YACP,6CAAoB;SACrB;KACF,CAAC;GACW,yBAAyB,CAAG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WorkflowBase } from '@loopstack/core';
|
|
2
|
+
import { MeetingNotesDocument } from './documents/meeting-notes-document';
|
|
3
|
+
import { OptimizedNotesDocument } from './documents/optimized-notes-document';
|
|
4
|
+
import { AiGenerateDocument } from '@loopstack/ai-module';
|
|
5
|
+
import { CreateDocument } from '@loopstack/core-ui-module';
|
|
6
|
+
export declare class MeetingNotesWorkflow extends WorkflowBase {
|
|
7
|
+
aiGenerateDocument: AiGenerateDocument;
|
|
8
|
+
createDocument: CreateDocument;
|
|
9
|
+
meetingNotesDocument: MeetingNotesDocument;
|
|
10
|
+
optimizedNotesDocument: OptimizedNotesDocument;
|
|
11
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MeetingNotesWorkflow = void 0;
|
|
13
|
+
const core_1 = require("@loopstack/core");
|
|
14
|
+
const common_1 = require("@loopstack/common");
|
|
15
|
+
const meeting_notes_document_1 = require("./documents/meeting-notes-document");
|
|
16
|
+
const optimized_notes_document_1 = require("./documents/optimized-notes-document");
|
|
17
|
+
const zod_1 = require("zod");
|
|
18
|
+
const ai_module_1 = require("@loopstack/ai-module");
|
|
19
|
+
const core_ui_module_1 = require("@loopstack/core-ui-module");
|
|
20
|
+
let MeetingNotesWorkflow = class MeetingNotesWorkflow extends core_1.WorkflowBase {
|
|
21
|
+
aiGenerateDocument;
|
|
22
|
+
createDocument;
|
|
23
|
+
meetingNotesDocument;
|
|
24
|
+
optimizedNotesDocument;
|
|
25
|
+
};
|
|
26
|
+
exports.MeetingNotesWorkflow = MeetingNotesWorkflow;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, common_1.Tool)(),
|
|
29
|
+
__metadata("design:type", ai_module_1.AiGenerateDocument)
|
|
30
|
+
], MeetingNotesWorkflow.prototype, "aiGenerateDocument", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, common_1.Tool)(),
|
|
33
|
+
__metadata("design:type", core_ui_module_1.CreateDocument)
|
|
34
|
+
], MeetingNotesWorkflow.prototype, "createDocument", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, common_1.Document)(),
|
|
37
|
+
__metadata("design:type", meeting_notes_document_1.MeetingNotesDocument)
|
|
38
|
+
], MeetingNotesWorkflow.prototype, "meetingNotesDocument", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, common_1.Document)(),
|
|
41
|
+
__metadata("design:type", optimized_notes_document_1.OptimizedNotesDocument)
|
|
42
|
+
], MeetingNotesWorkflow.prototype, "optimizedNotesDocument", void 0);
|
|
43
|
+
exports.MeetingNotesWorkflow = MeetingNotesWorkflow = __decorate([
|
|
44
|
+
(0, common_1.BlockConfig)({
|
|
45
|
+
configFile: __dirname + '/meeting-notes.workflow.yaml',
|
|
46
|
+
}),
|
|
47
|
+
(0, common_1.WithArguments)(zod_1.z.object({
|
|
48
|
+
inputText: zod_1.z.string().default("- meeting 1.1.2025\n- budget: need 2 cut costs sarah said\n- hire new person?? --> marketing\n- vendor pricing - follow up needed by anna"),
|
|
49
|
+
})),
|
|
50
|
+
(0, common_1.WithState)(zod_1.z.object({
|
|
51
|
+
meetingNotes: meeting_notes_document_1.MeetingNotesDocumentSchema.optional(),
|
|
52
|
+
optimizedNotes: optimized_notes_document_1.OptimizedMeetingNotesDocumentSchema.optional(),
|
|
53
|
+
}))
|
|
54
|
+
], MeetingNotesWorkflow);
|
|
55
|
+
//# sourceMappingURL=meeting-notes.workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-notes.workflow.js","sourceRoot":"","sources":["../src/meeting-notes.workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA+C;AAC/C,8CAA0F;AAC1F,+EAAsG;AACtG,mFAAmH;AACnH,6BAAwB;AACxB,oDAA0D;AAC1D,8DAA2D;AAYpD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mBAAY;IAC5C,kBAAkB,CAAqB;IACvC,cAAc,CAAiB;IAC3B,oBAAoB,CAAuB;IAC3C,sBAAsB,CAAyB;CAC5D,CAAA;AALY,oDAAoB;AACvB;IAAP,IAAA,aAAI,GAAE;8BAAqB,8BAAkB;gEAAC;AACvC;IAAP,IAAA,aAAI,GAAE;8BAAiB,+BAAc;4DAAC;AAC3B;IAAX,IAAA,iBAAQ,GAAE;8BAAuB,6CAAoB;kEAAC;AAC3C;IAAX,IAAA,iBAAQ,GAAE;8BAAyB,iDAAsB;oEAAC;+BAJhD,oBAAoB;IAVhC,IAAA,oBAAW,EAAC;QACX,UAAU,EAAE,SAAS,GAAG,8BAA8B;KACvD,CAAC;IACD,IAAA,sBAAa,EAAC,OAAC,CAAC,MAAM,CAAC;QACtB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,2IAA2I,CAAC;KAC3K,CAAC,CAAC;IACF,IAAA,kBAAS,EAAC,OAAC,CAAC,MAAM,CAAC;QAClB,YAAY,EAAE,mDAA0B,CAAC,QAAQ,EAAE;QACnD,cAAc,EAAE,8DAAmC,CAAC,QAAQ,EAAE;KAC/D,CAAC,CAAC;GACU,oBAAoB,CAKhC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
title: "Human-in-the-loop Demo (Meeting Notes Optimizer)"
|
|
2
|
+
|
|
3
|
+
description: "A demo workflow to demonstrate how to use AI to structure meeting notes."
|
|
4
|
+
|
|
5
|
+
ui:
|
|
6
|
+
form:
|
|
7
|
+
properties:
|
|
8
|
+
inputText:
|
|
9
|
+
title: 'Text'
|
|
10
|
+
widget: 'textarea'
|
|
11
|
+
|
|
12
|
+
transitions:
|
|
13
|
+
- id: create_form
|
|
14
|
+
from: start
|
|
15
|
+
to: waiting_for_response
|
|
16
|
+
call:
|
|
17
|
+
- id: form
|
|
18
|
+
tool: createDocument
|
|
19
|
+
args:
|
|
20
|
+
id: input
|
|
21
|
+
document: meetingNotesDocument
|
|
22
|
+
update:
|
|
23
|
+
content:
|
|
24
|
+
text: |
|
|
25
|
+
Unstructured Notes:
|
|
26
|
+
|
|
27
|
+
{{ args.inputText }}
|
|
28
|
+
|
|
29
|
+
- id: user_response
|
|
30
|
+
from: waiting_for_response
|
|
31
|
+
to: response_received
|
|
32
|
+
trigger: manual
|
|
33
|
+
call:
|
|
34
|
+
- id: create_response
|
|
35
|
+
tool: createDocument
|
|
36
|
+
args:
|
|
37
|
+
id: input
|
|
38
|
+
document: meetingNotesDocument
|
|
39
|
+
update:
|
|
40
|
+
content: ${ transition.payload }
|
|
41
|
+
assign:
|
|
42
|
+
meetingNotes: ${ result.data.content }
|
|
43
|
+
|
|
44
|
+
- id: optimize_notes
|
|
45
|
+
from: response_received
|
|
46
|
+
to: notes_optimized
|
|
47
|
+
call:
|
|
48
|
+
- id: prompt
|
|
49
|
+
tool: aiGenerateDocument
|
|
50
|
+
args:
|
|
51
|
+
llm:
|
|
52
|
+
provider: openai
|
|
53
|
+
model: gpt-4o
|
|
54
|
+
response:
|
|
55
|
+
id: final
|
|
56
|
+
document: optimizedNotesDocument
|
|
57
|
+
prompt: |
|
|
58
|
+
Extract all information from the provided meeting notes into the structured document.
|
|
59
|
+
|
|
60
|
+
<Meeting Notes>
|
|
61
|
+
{{ meetingNotes.text }}
|
|
62
|
+
</Meeting Notes>
|
|
63
|
+
assign:
|
|
64
|
+
optimizedNotes: ${ result.data.content }
|
|
65
|
+
|
|
66
|
+
- id: confirm
|
|
67
|
+
from: notes_optimized
|
|
68
|
+
to: end
|
|
69
|
+
trigger: manual
|
|
70
|
+
call:
|
|
71
|
+
- id: create_response
|
|
72
|
+
tool: createDocument
|
|
73
|
+
args:
|
|
74
|
+
id: final
|
|
75
|
+
document: optimizedNotesDocument
|
|
76
|
+
update:
|
|
77
|
+
content: ${ transition.payload }
|
|
78
|
+
assign:
|
|
79
|
+
optimizedNotes: ${ result.data.content }
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@loopstack/meeting-notes-example-workflow",
|
|
3
|
+
"displayName": "Loopstack Meeting Notes Example Worflow",
|
|
4
|
+
"description": "A complete workflow demonstrating how to create a workflow in loopstack based on a meeting notes summary use case.",
|
|
5
|
+
"version": "0.15.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Jakob Klippel",
|
|
8
|
+
"url": "https://www.linkedin.com/in/jakob-klippel/"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"example",
|
|
12
|
+
"workflow",
|
|
13
|
+
"automation",
|
|
14
|
+
"meeting notes",
|
|
15
|
+
"summary"
|
|
16
|
+
],
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"main": "dist/index.js",
|
|
19
|
+
"types": "dist/index.d.ts",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "nest build",
|
|
22
|
+
"watch": "nest build --watch",
|
|
23
|
+
"compile": "tsc --noEmit",
|
|
24
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
25
|
+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
26
|
+
"test": "jest",
|
|
27
|
+
"test:watch": "jest --watch",
|
|
28
|
+
"test:cov": "jest --coverage",
|
|
29
|
+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
30
|
+
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@loopstack/ai-module": "workspace:^0.15.0",
|
|
34
|
+
"@loopstack/common": "^0.15.0",
|
|
35
|
+
"@loopstack/core": "^0.15.0",
|
|
36
|
+
"@loopstack/core-ui-module": "^0.15.0",
|
|
37
|
+
"@nestjs/common": "^11.0.12",
|
|
38
|
+
"zod": "^3.24.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
42
|
+
"@eslint/js": "^9.22.0",
|
|
43
|
+
"@nestjs/cli": "^11.0.5",
|
|
44
|
+
"@nestjs/testing": "^11.0.12",
|
|
45
|
+
"@swc/cli": "^0.6.0",
|
|
46
|
+
"@swc/core": "^1.11.11",
|
|
47
|
+
"@types/jest": "^29.5.14",
|
|
48
|
+
"@types/node": "^22.13.10",
|
|
49
|
+
"eslint": "^9.22.0",
|
|
50
|
+
"eslint-config-prettier": "^10.1.1",
|
|
51
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
52
|
+
"globals": "^16.0.0",
|
|
53
|
+
"jest": "^29.7.0",
|
|
54
|
+
"prettier": "^3.5.3",
|
|
55
|
+
"ts-jest": "^29.2.6",
|
|
56
|
+
"tsconfig-paths": "^4.2.0",
|
|
57
|
+
"typescript": "^5.8.3",
|
|
58
|
+
"typescript-eslint": "^8.38.0"
|
|
59
|
+
},
|
|
60
|
+
"jest": {
|
|
61
|
+
"moduleFileExtensions": [
|
|
62
|
+
"js",
|
|
63
|
+
"json",
|
|
64
|
+
"ts"
|
|
65
|
+
],
|
|
66
|
+
"rootDir": "src",
|
|
67
|
+
"testRegex": ".*\\.spec\\.ts$",
|
|
68
|
+
"transform": {
|
|
69
|
+
"^.+\\.ts$": "ts-jest"
|
|
70
|
+
},
|
|
71
|
+
"collectCoverageFrom": [
|
|
72
|
+
"**/*.(t|j)s"
|
|
73
|
+
],
|
|
74
|
+
"coverageDirectory": "../coverage",
|
|
75
|
+
"testEnvironment": "node",
|
|
76
|
+
"maxWorkers": 1
|
|
77
|
+
}
|
|
78
|
+
}
|