@andrewyang/ai-workflow-editor 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.nuxt/app.config.mjs +18 -0
  2. package/.nuxt/components.d.ts +910 -0
  3. package/.nuxt/dev/index.mjs +4103 -0
  4. package/.nuxt/dev/index.mjs.map +1 -0
  5. package/.nuxt/dist/server/client.manifest.mjs +4 -0
  6. package/.nuxt/dist/server/client.precomputed.mjs +1 -0
  7. package/.nuxt/dist/server/server.mjs +1 -0
  8. package/.nuxt/i18n-route-resources.mjs +3 -0
  9. package/.nuxt/imports.d.ts +43 -0
  10. package/.nuxt/manifest/latest.json +1 -0
  11. package/.nuxt/manifest/meta/dev.json +1 -0
  12. package/.nuxt/nitro.json +17 -0
  13. package/.nuxt/nuxt.d.ts +24 -0
  14. package/.nuxt/nuxt.json +9 -0
  15. package/.nuxt/schema/nuxt.schema.d.ts +17 -0
  16. package/.nuxt/schema/nuxt.schema.json +3 -0
  17. package/.nuxt/tsconfig.json +234 -0
  18. package/.nuxt/tsconfig.server.json +185 -0
  19. package/.nuxt/types/app-defaults.d.ts +7 -0
  20. package/.nuxt/types/app.config.d.ts +31 -0
  21. package/.nuxt/types/build.d.ts +29 -0
  22. package/.nuxt/types/builder-env.d.ts +1 -0
  23. package/.nuxt/types/components.d.ts +915 -0
  24. package/.nuxt/types/i18n-plugin.d.ts +123 -0
  25. package/.nuxt/types/imports.d.ts +993 -0
  26. package/.nuxt/types/middleware.d.ts +17 -0
  27. package/.nuxt/types/nitro-config.d.ts +14 -0
  28. package/.nuxt/types/nitro-imports.d.ts +170 -0
  29. package/.nuxt/types/nitro-layouts.d.ts +17 -0
  30. package/.nuxt/types/nitro-nuxt.d.ts +39 -0
  31. package/.nuxt/types/nitro-routes.d.ts +17 -0
  32. package/.nuxt/types/nitro.d.ts +3 -0
  33. package/.nuxt/types/plugins.d.ts +43 -0
  34. package/.nuxt/types/schema.d.ts +213 -0
  35. package/.nuxt/types/vue-shim.d.ts +0 -0
  36. package/.trae/rules/rule.md +38 -0
  37. package/.vscode/settings.json +5 -0
  38. package/nuxt.config.ts +38 -0
  39. package/package.json +42 -0
  40. package/pnpm-lock.yaml +24 -0
  41. package/src/app.vue +46 -0
  42. package/src/components/AiWorkflowEditor.vue +142 -0
  43. package/src/components/ai/AiChatPanel.vue +135 -0
  44. package/src/components/ai/AiGenerator.vue +62 -0
  45. package/src/components/editor/Canvas.vue +175 -0
  46. package/src/components/editor/FormatPanel.vue +327 -0
  47. package/src/components/editor/NodePanel.vue +240 -0
  48. package/src/components/editor/PropertyPanel.vue +348 -0
  49. package/src/components/editor/Toolbar.vue +49 -0
  50. package/src/components/editor/nodes/AiNode.vue +77 -0
  51. package/src/components/editor/nodes/NormalNode.vue +75 -0
  52. package/src/components/editor/nodes/SysmlBlockNode.vue +72 -0
  53. package/src/components/editor/nodes/SysmlRequirementNode.vue +72 -0
  54. package/src/components/editor/nodes/SysmlUseCaseNode.vue +62 -0
  55. package/src/composables/useAi.ts +82 -0
  56. package/src/i18n.config.ts +5 -0
  57. package/src/locales/en.json +106 -0
  58. package/src/locales/zh.json +106 -0
  59. package/src/plugins/aiWorkflowEditor.ts +6 -0
  60. package/src/types/ai.ts +7 -0
  61. package/src/types/workflow.ts +25 -0
  62. package/src/utils/llmAdapter.ts +46 -0
  63. package/tsconfig.json +3 -0
  64. package/uno.config.ts +15 -0
  65. package//345/211/215/347/253/257/345/256/232/345/210/266/345/274/200/345/217/221/357/274/232ai-workflow-editor/345/274/200/345/217/221/350/256/241/345/210/222.md +655 -0
@@ -0,0 +1,123 @@
1
+ // Generated by @nuxtjs/i18n
2
+ import type { Composer } from 'vue-i18n'
3
+ import type { ComposerCustomProperties } from '../../node_modules/@nuxtjs/i18n/dist/runtime/types.ts'
4
+ import type { Strategies, Directions, LocaleObject } from '../../node_modules/@nuxtjs/i18n/dist/types.d.mts'
5
+ import type { I18nRoute } from '#i18n'
6
+
7
+ declare module 'vue-i18n' {
8
+ interface ComposerCustom extends ComposerCustomProperties<LocaleObject[]> {}
9
+ interface ExportedGlobalComposer extends ComposerCustomProperties<LocaleObject[]> {}
10
+ interface VueI18n extends ComposerCustomProperties<LocaleObject[]> {}
11
+ }
12
+
13
+ declare module '@intlify/core-base' {
14
+ // generated based on configured locales
15
+ interface GeneratedTypeConfig {
16
+ locale: "zh" | "en"
17
+ legacy: false
18
+ }
19
+ }
20
+
21
+ interface I18nMeta {
22
+ i18n?: I18nRoute | false
23
+ }
24
+
25
+ declare module '#app' {
26
+ interface NuxtApp {
27
+ $i18n: Composer
28
+ }
29
+ interface PageMeta extends I18nMeta {}
30
+ }
31
+
32
+
33
+ declare module 'vue-router' {
34
+ interface RouteMeta extends I18nMeta {}
35
+ }
36
+
37
+
38
+ declare module 'vue-router' {
39
+ import type { RouteNamedMapI18n } from 'vue-router/auto-routes'
40
+
41
+ export interface TypesConfig {
42
+ RouteNamedMapI18n: RouteNamedMapI18n
43
+ }
44
+
45
+ export type RouteMapI18n =
46
+ TypesConfig extends Record<'RouteNamedMapI18n', infer RouteNamedMap> ? RouteNamedMap : RouteMapGeneric
47
+
48
+ // Prefer named resolution for i18n
49
+ export type RouteLocationNamedI18n<Name extends keyof RouteMapI18n = keyof RouteMapI18n> =
50
+ | Name
51
+ | Omit<RouteLocationAsRelativeI18n, 'path'> & { path?: string }
52
+ /**
53
+ * Note: disabled route path string autocompletion, this can break depending on `strategy`
54
+ * this can be enabled again after route resolve has been improved.
55
+ */
56
+ // | RouteLocationAsStringI18n
57
+ // | RouteLocationAsPathI18n
58
+
59
+ export type RouteLocationRawI18n<Name extends keyof RouteMapI18n = keyof RouteMapI18n> =
60
+ RouteMapGeneric extends RouteMapI18n
61
+ ? RouteLocationAsStringI18n | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric
62
+ :
63
+ | _LiteralUnion<RouteLocationAsStringTypedList<RouteMapI18n>[Name], string>
64
+ | RouteLocationAsRelativeTypedList<RouteMapI18n>[Name]
65
+
66
+ export type RouteLocationResolvedI18n<Name extends keyof RouteMapI18n = keyof RouteMapI18n> =
67
+ RouteMapGeneric extends RouteMapI18n
68
+ ? RouteLocationResolvedGeneric
69
+ : RouteLocationResolvedTypedList<RouteMapI18n>[Name]
70
+
71
+ export interface RouteLocationNormalizedLoadedTypedI18n<
72
+ RouteMapI18n extends RouteMapGeneric = RouteMapGeneric,
73
+ Name extends keyof RouteMapI18n = keyof RouteMapI18n
74
+ > extends RouteLocationNormalizedLoadedGeneric {
75
+ name: Extract<Name, string | symbol>
76
+ params: RouteMapI18n[Name]['params']
77
+ }
78
+ export type RouteLocationNormalizedLoadedTypedListI18n<RouteMapOriginal extends RouteMapGeneric = RouteMapGeneric> = {
79
+ [N in keyof RouteMapOriginal]: RouteLocationNormalizedLoadedTypedI18n<RouteMapOriginal, N>
80
+ }
81
+ export type RouteLocationNormalizedLoadedI18n<Name extends keyof RouteMapI18n = keyof RouteMapI18n> =
82
+ RouteMapGeneric extends RouteMapI18n
83
+ ? RouteLocationNormalizedLoadedGeneric
84
+ : RouteLocationNormalizedLoadedTypedListI18n<RouteMapI18n>[Name]
85
+
86
+ type _LiteralUnion<LiteralType, BaseType extends string = string> = LiteralType | (BaseType & Record<never, never>)
87
+
88
+ export type RouteLocationAsStringI18n<Name extends keyof RouteMapI18n = keyof RouteMapI18n> =
89
+ RouteMapGeneric extends RouteMapI18n
90
+ ? string
91
+ : _LiteralUnion<RouteLocationAsStringTypedList<RouteMapI18n>[Name], string>
92
+
93
+ export type RouteLocationAsRelativeI18n<Name extends keyof RouteMapI18n = keyof RouteMapI18n> =
94
+ RouteMapGeneric extends RouteMapI18n
95
+ ? RouteLocationAsRelativeGeneric
96
+ : RouteLocationAsRelativeTypedList<RouteMapI18n>[Name]
97
+
98
+ export type RouteLocationAsPathI18n<Name extends keyof RouteMapI18n = keyof RouteMapI18n> =
99
+ RouteMapGeneric extends RouteMapI18n ? RouteLocationAsPathGeneric : RouteLocationAsPathTypedList<RouteMapI18n>[Name]
100
+
101
+ /**
102
+ * Helper to generate a type safe version of the {@link RouteLocationAsRelative} type.
103
+ */
104
+ export interface RouteLocationAsRelativeTypedI18n<
105
+ RouteMapI18n extends RouteMapGeneric = RouteMapGeneric,
106
+ Name extends keyof RouteMapI18n = keyof RouteMapI18n
107
+ > extends RouteLocationAsRelativeGeneric {
108
+ name?: Extract<Name, string | symbol>
109
+ params?: RouteMapI18n[Name]['paramsRaw']
110
+ }
111
+ }
112
+
113
+
114
+ declare global {
115
+ var $t: (Composer)['t']
116
+ var $rt: (Composer)['rt']
117
+ var $n: (Composer)['n']
118
+ var $d: (Composer)['d']
119
+ var $tm: (Composer)['tm']
120
+ var $te: (Composer)['te']
121
+ }
122
+
123
+ export {}