@loom-framework/core 0.1.0-alpha.165 → 0.1.0-alpha.167

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 (57) hide show
  1. package/builtin-skills/loom/SKILL.md +9 -6
  2. package/builtin-skills/loom/references/eject.md +130 -0
  3. package/dist/cli/commands/eject.d.ts.map +1 -1
  4. package/dist/cli/commands/eject.js +108 -279
  5. package/dist/cli/commands/eject.js.map +1 -1
  6. package/dist/cli/commands/generate-system-settings.d.ts +3 -3
  7. package/dist/cli/commands/generate-system-settings.d.ts.map +1 -1
  8. package/dist/cli/commands/generate-system-settings.js +29 -204
  9. package/dist/cli/commands/generate-system-settings.js.map +1 -1
  10. package/dist/cli/commands/init.d.ts.map +1 -1
  11. package/dist/cli/commands/init.js +27 -44
  12. package/dist/cli/commands/init.js.map +1 -1
  13. package/dist/cli/helpers/app-tsx-utils.d.ts +12 -0
  14. package/dist/cli/helpers/app-tsx-utils.d.ts.map +1 -0
  15. package/dist/cli/helpers/app-tsx-utils.js +22 -0
  16. package/dist/cli/helpers/app-tsx-utils.js.map +1 -0
  17. package/dist/cli/helpers/app-tsx-wiring-engine.d.ts +70 -0
  18. package/dist/cli/helpers/app-tsx-wiring-engine.d.ts.map +1 -0
  19. package/dist/cli/helpers/app-tsx-wiring-engine.js +546 -0
  20. package/dist/cli/helpers/app-tsx-wiring-engine.js.map +1 -0
  21. package/dist/cli/helpers/app-tsx-wiring.d.ts +4 -39
  22. package/dist/cli/helpers/app-tsx-wiring.d.ts.map +1 -1
  23. package/dist/cli/helpers/app-tsx-wiring.js +5 -608
  24. package/dist/cli/helpers/app-tsx-wiring.js.map +1 -1
  25. package/dist/cli/helpers/system-page-config.d.ts +27 -0
  26. package/dist/cli/helpers/system-page-config.d.ts.map +1 -0
  27. package/dist/cli/helpers/system-page-config.js +73 -0
  28. package/dist/cli/helpers/system-page-config.js.map +1 -0
  29. package/dist/cli/templates/login-page.d.ts +2 -3
  30. package/dist/cli/templates/login-page.d.ts.map +1 -1
  31. package/dist/cli/templates/login-page.js +19 -27
  32. package/dist/cli/templates/login-page.js.map +1 -1
  33. package/dist/cli/templates/model-management-page.d.ts +2 -3
  34. package/dist/cli/templates/model-management-page.d.ts.map +1 -1
  35. package/dist/cli/templates/model-management-page.js +12 -7
  36. package/dist/cli/templates/model-management-page.js.map +1 -1
  37. package/dist/cli/templates/notification-center-page.d.ts +2 -3
  38. package/dist/cli/templates/notification-center-page.d.ts.map +1 -1
  39. package/dist/cli/templates/notification-center-page.js +26 -60
  40. package/dist/cli/templates/notification-center-page.js.map +1 -1
  41. package/dist/cli/templates/notification-detail-page.d.ts +2 -3
  42. package/dist/cli/templates/notification-detail-page.d.ts.map +1 -1
  43. package/dist/cli/templates/notification-detail-page.js +14 -39
  44. package/dist/cli/templates/notification-detail-page.js.map +1 -1
  45. package/dist/cli/templates/process-management-page.d.ts +3 -3
  46. package/dist/cli/templates/process-management-page.d.ts.map +1 -1
  47. package/dist/cli/templates/process-management-page.js +76 -563
  48. package/dist/cli/templates/process-management-page.js.map +1 -1
  49. package/dist/cli/templates/skill-management-page.d.ts +2 -3
  50. package/dist/cli/templates/skill-management-page.d.ts.map +1 -1
  51. package/dist/cli/templates/skill-management-page.js +13 -13
  52. package/dist/cli/templates/skill-management-page.js.map +1 -1
  53. package/dist/cli/templates/user-management-page.d.ts +2 -4
  54. package/dist/cli/templates/user-management-page.d.ts.map +1 -1
  55. package/dist/cli/templates/user-management-page.js +22 -20
  56. package/dist/cli/templates/user-management-page.js.map +1 -1
  57. package/package.json +7 -3
@@ -1,59 +1,32 @@
1
1
  /**
2
2
  * NotificationDetail page template
3
3
  *
4
- * Generates NotificationDetailPage as a local source file.
5
- * Page imports sub-components from @loom-framework/frontend-antd and
6
- * registers its own i18n keys via registerMessages().
4
+ * GENERATED by scripts/generate-templates.ts v0.1.0-alpha.167 DO NOT EDIT MANUALLY.
5
+ * Source: packages/frontend-antd/src/components/pages/NotificationDetail.tsx
7
6
  */
8
7
  export function notificationDetailPageTemplate() {
9
- return `import React from 'react';
8
+ return `/**
9
+ * NotificationDetailPage - Single notification detail with Markdown rendering
10
+ */
11
+
12
+ import React from 'react';
10
13
  import { Tag, Typography, Empty, Breadcrumb, Button, Space, Flex } from 'antd';
11
14
  import { ArrowLeftOutlined, HomeOutlined, MessageOutlined } from '@ant-design/icons';
12
15
  import { XMarkdown } from '@ant-design/x-markdown';
13
16
  import '@ant-design/x-markdown/themes/light.css';
14
17
  import '@ant-design/x-markdown/themes/dark.css';
15
- import { useNotificationCenter, useAppShell, useLocale, useLoomTheme, registerMessages, AIContext } from '@loom-framework/frontend-antd';
18
+ import type { BreadcrumbItem } from '@loom-framework/frontend-antd';
19
+ import { useNotificationCenter, useAppShell, useLocale, registerMessages, AIContext, useLoomTheme, formatTime, NOTIFICATION_TYPE_COLORS, NOTIFICATION_SOURCE_COLORS } from '@loom-framework/frontend-antd';
16
20
 
17
21
  registerMessages('zh-CN', {
18
- 'notification.backToList': '返回列表',
19
- 'notification.notFound': '通知不存在或已被删除',
20
- 'notification.type.info': '信息',
21
- 'notification.type.warning': '警告',
22
- 'notification.type.error': '错误',
23
- 'notification.type.success': '成功',
24
- 'notification.source.system': '系统',
25
- 'notification.source.event': '事件',
26
- 'notification.source.cli': '命令行',
27
22
  'notification.viewSession': 'Loom 会话',
28
23
  });
29
24
 
30
25
  registerMessages('en-US', {
31
- 'notification.backToList': 'Back to list',
32
- 'notification.notFound': 'Notification not found or has been deleted',
33
- 'notification.type.info': 'Info',
34
- 'notification.type.warning': 'Warning',
35
- 'notification.type.error': 'Error',
36
- 'notification.type.success': 'Success',
37
- 'notification.source.system': 'System',
38
- 'notification.source.event': 'Event',
39
- 'notification.source.cli': 'CLI',
40
26
  'notification.viewSession': 'Loom Session',
41
27
  });
42
28
 
43
- const NOTIFICATION_TYPE_COLORS: Record<string, string> = {
44
- info: 'blue',
45
- warning: 'orange',
46
- error: 'red',
47
- success: 'green',
48
- };
49
-
50
- const NOTIFICATION_SOURCE_COLORS: Record<string, string> = {
51
- system: 'default',
52
- event: 'purple',
53
- cli: 'cyan',
54
- };
55
-
56
- export default function NotificationDetailPage() {
29
+ function NotificationDetailPage() {
57
30
  const { notifications, selectedNotificationId } = useNotificationCenter();
58
31
  const { breadcrumbs, onNavClick } = useAppShell();
59
32
  const { t } = useLocale();
@@ -79,7 +52,7 @@ export default function NotificationDetailPage() {
79
52
  return (
80
53
  <div style={{ display: 'flex', flexDirection: 'column', flex: 1, minHeight: 0 }}>
81
54
  <Flex justify="space-between" align="center" style={{ marginBottom: 12 }}>
82
- <Breadcrumb items={[{ title: <HomeOutlined onClick={() => onNavClick?.('')} style={{ cursor: 'pointer' }} /> }, ...(breadcrumbs || []).map((b: { title: string; path?: string }) => ({ title: b.path ? <a onClick={() => { if (b.path) onNavClick?.(b.path); }}>{b.title}</a> : b.title }))]} />
55
+ <Breadcrumb items={[{ title: <HomeOutlined onClick={() => onNavClick?.('')} style={{ cursor: 'pointer' }} /> }, ...(breadcrumbs || []).map((b: BreadcrumbItem) => ({ title: b.path ? <a onClick={() => { if (b.path) onNavClick?.(b.path); }}>{b.title}</a> : b.title }))]} />
83
56
  <Space>
84
57
  {notification.sessionId && aiContext?.switchToSession && (
85
58
  <Button icon={<MessageOutlined />} onClick={() => aiContext.switchToSession!(notification.sessionId!)}>
@@ -96,7 +69,7 @@ export default function NotificationDetailPage() {
96
69
  <Space size={8} align="center" style={{ marginBottom: 8 }}>
97
70
  <Tag color={NOTIFICATION_TYPE_COLORS[notification.type]}>{t(\`notification.type.\${notification.type}\`)}</Tag>
98
71
  <Tag color={NOTIFICATION_SOURCE_COLORS[notification.source] || 'default'}>{t(\`notification.source.\${notification.source}\`) || notification.source}</Tag>
99
- <Typography.Text type="secondary">{notification.createdAt ? new Date(notification.createdAt).toLocaleString() : '-'}</Typography.Text>
72
+ <Typography.Text type="secondary">{formatTime(notification.createdAt)}</Typography.Text>
100
73
  </Space>
101
74
  <Typography.Title level={4} style={{ marginBottom: 8 }}>{notification.title}</Typography.Title>
102
75
  </div>
@@ -107,6 +80,8 @@ export default function NotificationDetailPage() {
107
80
  </div>
108
81
  );
109
82
  }
83
+
84
+ export default NotificationDetailPage;
110
85
  `;
111
86
  }
112
87
  //# sourceMappingURL=notification-detail-page.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification-detail-page.js","sourceRoot":"","sources":["../../../src/cli/templates/notification-detail-page.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,UAAU,8BAA8B;IAC5C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGR,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"notification-detail-page.js","sourceRoot":"","sources":["../../../src/cli/templates/notification-detail-page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,UAAU,8BAA8B;IAC5C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ER,CAAC;AACF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * ProcessManagementPage Template
2
+ * Process Management page template
3
3
  *
4
- * Follows SkillManagementPage patterns: flex column layout, breadcrumb,
5
- * theme tokens, showLine/blockNode tree, i18n, Card wrapper.
4
+ * GENERATED by scripts/generate-templates.ts v0.1.0-alpha.167 DO NOT EDIT MANUALLY.
5
+ * Source: packages/frontend-antd/src/components/pages/process-management-page.tsx
6
6
  */
7
7
  export declare function processManagementPageTemplate(): string;
8
8
  //# sourceMappingURL=process-management-page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"process-management-page.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/process-management-page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,6BAA6B,IAAI,MAAM,CAi9BtD"}
1
+ {"version":3,"file":"process-management-page.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/process-management-page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,6BAA6B,IAAI,MAAM,CA0etD"}