@shepai/cli 1.113.0-pr360.fc6e148 → 1.113.0-pr364.a9675b0
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/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.js +3 -10
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/claude-code.json +6 -11
- package/dist/src/presentation/cli/commands/install.command.js +1 -8
- package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.d.ts.map +1 -1
- package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +4 -0
- package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.d.ts.map +1 -1
- package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.js +6 -1
- package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +6 -1
- package/dist/src/presentation/web/app/actions/get-feature-drawer-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/get-feature-drawer-data.js +4 -0
- package/dist/src/presentation/web/app/build-feature-node-data.d.ts +4 -0
- package/dist/src/presentation/web/app/build-feature-node-data.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-feature-node-data.js +5 -0
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts +7 -1
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-graph-nodes.js +9 -12
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/event-log-viewer.d.ts +5 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/event-log-viewer.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/event-log-viewer.js +115 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/event-log-viewer.stories.d.ts +18 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/event-log-viewer.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/event-log-viewer.stories.js +88 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.js +10 -2
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.d.ts +5 -3
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.js +92 -9
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +17 -2
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts +10 -0
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.js +69 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +14 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/parse-log-line.d.ts +49 -0
- package/dist/src/presentation/web/lib/parse-log-line.d.ts.map +1 -0
- package/dist/src/presentation/web/lib/parse-log-line.js +126 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +20 -20
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +26 -26
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +26 -26
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +20 -20
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +26 -26
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +26 -26
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +18 -18
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
- package/web/.next/server/app/api/cli-upgrade/route.js +2 -2
- package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__d2c18946._.js +2 -2
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js +3 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__d91fdd51._.js.map → [root-of-the-server]__b1e68e34._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_565603fc._.js → _03454b77._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_565603fc._.js.map → _03454b77._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_4603402d._.js → _8b28c8e0._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_4603402d._.js.map → _8b28c8e0._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_ab801a12._.js → _ea36d0d1._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_ab801a12._.js.map → _ea36d0d1._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js.map +1 -1
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +31 -31
- package/web/.next/static/chunks/{2af84bd0c307253a.js → 0674db0428a6cd04.js} +1 -1
- package/web/.next/static/chunks/{88f3415275c2ad9e.js → 573861bd5601e95c.js} +1 -1
- package/web/.next/static/chunks/57b45edf86522369.css +1 -0
- package/web/.next/static/chunks/{ce5c6ad4a1ede904.js → 6dd548ecfa817f35.js} +1 -1
- package/web/.next/static/chunks/{2f552a88a5ff3a45.js → 72c362bec6753d8e.js} +2 -2
- package/web/.next/static/chunks/{bbd02ba529a180fc.js → 794eb0380ae591bb.js} +1 -1
- package/web/.next/static/chunks/{d5ebfa672d2e9180.js → 867b73d858dee339.js} +1 -1
- package/web/.next/static/chunks/b1f3c0e8e9872ef8.js +1 -0
- package/web/.next/static/chunks/bdda3241478cc6cb.js +1 -0
- package/web/.next/static/chunks/{c1c7f9c0c96fe817.js → de56b15e8de7a4e5.js} +1 -1
- package/web/.next/static/chunks/{12add0abaf2ac4b0.js → e13eb12c22fb36d9.js} +1 -1
- package/web/.next/static/chunks/{70b74a1ae1d1b18f.js → f00f386245c720fb.js} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d91fdd51._.js +0 -3
- package/web/.next/static/chunks/07b853e29af1e5f2.js +0 -1
- package/web/.next/static/chunks/694fc9a1173043d8.css +0 -1
- package/web/.next/static/chunks/b76a19045750d072.js +0 -1
- /package/web/.next/static/{3CXrO5C1NLxhLgWhUsMiI → _2jKxmj4v-sXblIY4kWek}/_buildManifest.js +0 -0
- /package/web/.next/static/{3CXrO5C1NLxhLgWhUsMiI → _2jKxmj4v-sXblIY4kWek}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{3CXrO5C1NLxhLgWhUsMiI → _2jKxmj4v-sXblIY4kWek}/_ssgManifest.js +0 -0
package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAc7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"log-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/log-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAc7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AA6GrC,gFAAgF;AAChF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC"}
|
|
@@ -8,14 +8,61 @@ const meta = {
|
|
|
8
8
|
layout: 'fullscreen',
|
|
9
9
|
},
|
|
10
10
|
decorators: [
|
|
11
|
-
(Story) => (_jsx("div", { style: { height: '600px', width: '
|
|
11
|
+
(Story) => (_jsx("div", { style: { height: '600px', width: '480px', border: '1px solid var(--color-border)' }, children: _jsx(Story, {}) })),
|
|
12
12
|
],
|
|
13
13
|
};
|
|
14
14
|
export default meta;
|
|
15
15
|
/* ---------------------------------------------------------------------------
|
|
16
16
|
* Data fixtures
|
|
17
17
|
* ------------------------------------------------------------------------- */
|
|
18
|
-
const
|
|
18
|
+
const structuredLogContent = `[2026-03-08T10:00:01.000Z] [claude-code|claude-sonnet-4-6] [WORKER] Starting worker — full command:
|
|
19
|
+
[2026-03-08T10:00:01.001Z] [claude-code|claude-sonnet-4-6] [WORKER] feature-agent-worker --feature-id auth-module --run-id run-123 --repo /home/user/myproject --agent-type claude-code --model claude-sonnet-4-6
|
|
20
|
+
[2026-03-08T10:00:01.010Z] [claude-code|claude-sonnet-4-6] [WORKER] Initializing container...
|
|
21
|
+
[2026-03-08T10:00:01.050Z] [claude-code|claude-sonnet-4-6] [WORKER] Creating executor from pinned agent type: claude-code
|
|
22
|
+
[2026-03-08T10:00:01.100Z] [claude-code|claude-sonnet-4-6] [WORKER] Updating status to running (PID 54321)...
|
|
23
|
+
[2026-03-08T10:00:01.110Z] [claude-code|claude-sonnet-4-6] [WORKER] Starting graph invocation...
|
|
24
|
+
[2026-03-08T10:00:05.000Z] [requirements] [claude-code|claude-sonnet-4-6] Starting...
|
|
25
|
+
[2026-03-08T10:00:05.010Z] [requirements] [claude-code|claude-sonnet-4-6] Executing agent at cwd=/home/user/myproject
|
|
26
|
+
[2026-03-08T10:00:05.020Z] [requirements] [claude-code|claude-sonnet-4-6] Prompt length: 2847 chars
|
|
27
|
+
[2026-03-08T10:00:05.100Z] [requirements] [claude-code|claude-sonnet-4-6] Spawning: claude -p "Analyze this project..." --output-format stream-json --verbose
|
|
28
|
+
[2026-03-08T10:00:05.102Z] [requirements] [claude-code|claude-sonnet-4-6] Subprocess PID: 54322
|
|
29
|
+
[2026-03-08T10:00:08.234Z] [requirements] [claude-code|claude-sonnet-4-6] [tool] Read {"file_path": "src/main.ts"}
|
|
30
|
+
[2026-03-08T10:00:10.345Z] [requirements] [claude-code|claude-sonnet-4-6] [text] Analyzing the codebase structure and identifying key entry points for the authentication module
|
|
31
|
+
[2026-03-08T10:00:12.567Z] [requirements] [claude-code|claude-sonnet-4-6] [tool] Glob {"pattern": "src/**/*.ts"}
|
|
32
|
+
[2026-03-08T10:00:14.789Z] [requirements] [claude-code|claude-sonnet-4-6] [tool] Read {"file_path": "src/auth/providers.ts"}
|
|
33
|
+
[2026-03-08T10:00:16.012Z] [requirements] [claude-code|claude-sonnet-4-6] [tool] Grep {"pattern": "interface.*Auth", "path": "src/"}
|
|
34
|
+
[2026-03-08T10:00:18.234Z] [requirements] [claude-code|claude-sonnet-4-6] [text] The project uses a clean architecture pattern with dependency injection. I can see the auth interfaces are defined in the domain layer
|
|
35
|
+
[2026-03-08T10:00:20.456Z] [requirements] [claude-code|claude-sonnet-4-6] [tool] Bash {"command": "find src -name '*.test.ts' | wc -l"}
|
|
36
|
+
[2026-03-08T10:00:45.789Z] [requirements] [claude-code|claude-sonnet-4-6] [result] 8920 chars, session=sess-abc123def456
|
|
37
|
+
[2026-03-08T10:00:45.790Z] [requirements] [claude-code|claude-sonnet-4-6] [tokens] 2450 in / 4560 out
|
|
38
|
+
[2026-03-08T10:00:45.791Z] [requirements] [claude-code|claude-sonnet-4-6] Process closed with code 0, result=8920 chars
|
|
39
|
+
[2026-03-08T10:00:45.800Z] [requirements] [claude-code|claude-sonnet-4-6] Complete (8920 chars, 40.8s)
|
|
40
|
+
[2026-03-08T10:00:45.900Z] [requirements] [claude-code|claude-sonnet-4-6] Interrupting for human approval
|
|
41
|
+
[2026-03-08T10:02:30.000Z] [requirements] [claude-code|claude-sonnet-4-6] Phase approved, skipping re-execution
|
|
42
|
+
[2026-03-08T10:02:30.100Z] [plan] [claude-code|claude-sonnet-4-6] Starting...
|
|
43
|
+
[2026-03-08T10:02:30.110Z] [plan] [claude-code|claude-sonnet-4-6] Executing agent at cwd=/home/user/myproject
|
|
44
|
+
[2026-03-08T10:02:30.120Z] [plan] [claude-code|claude-sonnet-4-6] Prompt length: 15234 chars
|
|
45
|
+
[2026-03-08T10:02:35.100Z] [plan] [claude-code|claude-sonnet-4-6] [tool] Read {"file_path": "CLAUDE.md"}
|
|
46
|
+
[2026-03-08T10:02:38.200Z] [plan] [claude-code|claude-sonnet-4-6] [text] Creating implementation plan with TDD approach as required by project conventions
|
|
47
|
+
[2026-03-08T10:02:42.300Z] [plan] [claude-code|claude-sonnet-4-6] [tool] Write {"file_path": "specs/001-auth/plan.yaml"}
|
|
48
|
+
[2026-03-08T10:02:45.400Z] [plan] [claude-code|claude-sonnet-4-6] [text] Plan includes 3 phases: scaffold auth module, implement OAuth2 providers, add tests and documentation
|
|
49
|
+
[2026-03-08T10:03:15.234Z] [plan] [claude-code|claude-sonnet-4-6] [result] 12345 chars, session=sess-abc123def456
|
|
50
|
+
[2026-03-08T10:03:15.235Z] [plan] [claude-code|claude-sonnet-4-6] [tokens] 8900 in / 3456 out
|
|
51
|
+
[2026-03-08T10:03:15.300Z] [plan] [claude-code|claude-sonnet-4-6] Complete (12345 chars, 45.1s)
|
|
52
|
+
[2026-03-08T10:05:00.000Z] [implement] [claude-code|claude-sonnet-4-6] Starting...
|
|
53
|
+
[2026-03-08T10:05:01.000Z] [implement] [claude-code|claude-sonnet-4-6] [tool] Write {"file_path": "src/auth/oauth-provider.ts"}
|
|
54
|
+
[2026-03-08T10:05:03.000Z] [implement] [claude-code|claude-sonnet-4-6] [tool] Write {"file_path": "src/auth/token-manager.ts"}
|
|
55
|
+
[2026-03-08T10:05:05.000Z] [implement] [claude-code|claude-sonnet-4-6] [tool] Edit {"file_path": "src/auth/index.ts"}
|
|
56
|
+
[2026-03-08T10:05:07.000Z] [implement] [claude-code|claude-sonnet-4-6] [tool] Bash {"command": "pnpm test:unit"}
|
|
57
|
+
[2026-03-08T10:05:30.000Z] [implement] [claude-code|claude-sonnet-4-6] [text] All 14 unit tests passing. Moving to integration tests
|
|
58
|
+
[2026-03-08T10:05:35.000Z] [implement] [claude-code|claude-sonnet-4-6] [tool] Bash {"command": "pnpm test:int"}
|
|
59
|
+
[2026-03-08T10:05:55.000Z] [implement] [claude-code|claude-sonnet-4-6] [result] 24560 chars, session=sess-abc123def456
|
|
60
|
+
[2026-03-08T10:05:55.001Z] [implement] [claude-code|claude-sonnet-4-6] [tokens] 15200 in / 9360 out
|
|
61
|
+
[2026-03-08T10:05:55.100Z] [implement] [claude-code|claude-sonnet-4-6] Complete (24560 chars, 54.1s)
|
|
62
|
+
[2026-03-08T10:06:00.000Z] [claude-code|claude-sonnet-4-6] [WORKER] Graph invocation completed. Error: none
|
|
63
|
+
[2026-03-08T10:06:00.100Z] [claude-code|claude-sonnet-4-6] [WORKER] Run marked as completed
|
|
64
|
+
[2026-03-08T10:06:00.200Z] [claude-code|claude-sonnet-4-6] [WORKER] Worker completed successfully, exiting.`;
|
|
65
|
+
const rawLogContent = `[2026-03-08T10:00:01.123Z] Starting agent run for feature "auth-module"
|
|
19
66
|
[2026-03-08T10:00:02.789Z] Agent started — analyzing codebase
|
|
20
67
|
[2026-03-08T10:00:03.456Z] Scanning repository structure...
|
|
21
68
|
[2026-03-08T10:00:04.012Z] Found 127 source files across 14 packages
|
|
@@ -35,22 +82,58 @@ const typicalLogContent = `[2026-03-08T10:00:01.123Z] Starting agent run for fea
|
|
|
35
82
|
[2026-03-08T10:00:24.789Z] Phase 3: add tests and documentation
|
|
36
83
|
[2026-03-08T10:00:26.456Z] Generating test suite...
|
|
37
84
|
[2026-03-08T10:00:28.012Z] All phases complete — feature "auth-module" ready for review`;
|
|
38
|
-
const
|
|
85
|
+
const longStructuredContent = Array.from({ length: 100 }, (_, i) => {
|
|
86
|
+
const min = String(Math.floor(i / 60)).padStart(2, '0');
|
|
87
|
+
const sec = String(i % 60).padStart(2, '0');
|
|
88
|
+
const ms = String((i * 7) % 1000).padStart(3, '0');
|
|
89
|
+
const ts = `2026-03-08T10:${min}:${sec}.${ms}Z`;
|
|
90
|
+
const phase = ['requirements', 'research', 'plan', 'implement'][i % 4];
|
|
91
|
+
const tags = ['[tool]', '[text]', '[tool]', '[text]', '[result]', '[tokens]'];
|
|
92
|
+
const tag = tags[i % tags.length];
|
|
93
|
+
const messages = {
|
|
94
|
+
'[tool]': [
|
|
95
|
+
'Read {"file_path": "src/components/button.tsx"}',
|
|
96
|
+
'Bash {"command": "pnpm test:unit"}',
|
|
97
|
+
'Grep {"pattern": "export function", "path": "src/"}',
|
|
98
|
+
'Write {"file_path": "src/new-file.ts"}',
|
|
99
|
+
'Glob {"pattern": "**/*.test.ts"}',
|
|
100
|
+
],
|
|
101
|
+
'[text]': [
|
|
102
|
+
'Analyzing the component structure for potential improvements',
|
|
103
|
+
'The test suite is comprehensive with good coverage',
|
|
104
|
+
'Implementing the authentication flow with OAuth2 providers',
|
|
105
|
+
'Refactoring to use dependency injection pattern',
|
|
106
|
+
],
|
|
107
|
+
'[result]': ['4520 chars, session=sess-xyz789'],
|
|
108
|
+
'[tokens]': ['3200 in / 1800 out'],
|
|
109
|
+
};
|
|
110
|
+
const msgList = messages[tag] ?? messages['[text]'];
|
|
111
|
+
const msg = msgList[i % msgList.length];
|
|
112
|
+
return `[${ts}] [${phase}] [claude-code|claude-sonnet-4-6] ${tag} ${msg}`;
|
|
113
|
+
}).join('\n');
|
|
39
114
|
/* ---------------------------------------------------------------------------
|
|
40
115
|
* Stories
|
|
41
116
|
* ------------------------------------------------------------------------- */
|
|
42
|
-
/** Default —
|
|
117
|
+
/** Default — structured agent log output with live connection (claude-code). */
|
|
43
118
|
export const Default = {
|
|
44
119
|
args: {
|
|
45
|
-
content:
|
|
120
|
+
content: structuredLogContent,
|
|
46
121
|
isConnected: true,
|
|
47
122
|
error: null,
|
|
48
123
|
},
|
|
49
124
|
};
|
|
50
|
-
/**
|
|
51
|
-
export const
|
|
125
|
+
/** LongStructured — 100 structured events to test scrolling behavior. */
|
|
126
|
+
export const LongStructured = {
|
|
52
127
|
args: {
|
|
53
|
-
content:
|
|
128
|
+
content: longStructuredContent,
|
|
129
|
+
isConnected: true,
|
|
130
|
+
error: null,
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
/** RawFallback — unstructured log content falls back gracefully. */
|
|
134
|
+
export const RawFallback = {
|
|
135
|
+
args: {
|
|
136
|
+
content: rawLogContent,
|
|
54
137
|
isConnected: true,
|
|
55
138
|
error: null,
|
|
56
139
|
},
|
|
@@ -58,7 +141,7 @@ export const LongLog = {
|
|
|
58
141
|
/** Disconnected — log content present but connection is lost. */
|
|
59
142
|
export const Disconnected = {
|
|
60
143
|
args: {
|
|
61
|
-
content:
|
|
144
|
+
content: structuredLogContent,
|
|
62
145
|
isConnected: false,
|
|
63
146
|
error: null,
|
|
64
147
|
},
|
package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"overview-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAQxE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CAqDrD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect, useRef } from 'react';
|
|
4
|
-
import { AlertTriangle, ExternalLink, GitBranch, GitCommitHorizontal, RotateCcw, Zap, } from 'lucide-react';
|
|
4
|
+
import { AlertTriangle, Check, ExternalLink, FileSearch, GitBranch, GitCommitHorizontal, RotateCcw, ShieldCheck, X, Zap, } from 'lucide-react';
|
|
5
5
|
import { InlineAttachments } from '../../common/inline-attachments/index.js';
|
|
6
6
|
import { PrStatus } from '../../../../../../packages/core/src/domain/generated/output.js';
|
|
7
7
|
import { cn } from '../../../lib/utils.js';
|
|
@@ -11,10 +11,11 @@ import { CiStatusBadge } from '../../common/ci-status-badge/index.js';
|
|
|
11
11
|
import { CometSpinner } from '../../ui/comet-spinner.js';
|
|
12
12
|
import { featureNodeStateConfig, lifecycleDisplayLabels } from '../../common/feature-node/index.js';
|
|
13
13
|
import { getAgentTypeIcon, agentTypeLabels, } from '../../common/feature-node/agent-type-icons.js';
|
|
14
|
+
import { getModelMeta } from '../../../lib/model-metadata.js';
|
|
14
15
|
import { formatDuration } from '../../../lib/format-duration.js';
|
|
15
16
|
export function OverviewTab({ data }) {
|
|
16
17
|
const isCompleted = data.lifecycle === 'maintain';
|
|
17
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "feature-drawer-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: lifecycleDisplayLabels[data.lifecycle] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FeatureStateBadge, { data: data }), data.state === 'error' && data.onRetry ? (_jsxs("button", { "data-testid": "feature-drawer-retry-button", onClick: () => data.onRetry(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5" }), "Retry"] })) : null] }), !isCompleted && data.progress > 0 ? (_jsxs("div", { "data-testid": "feature-drawer-progress", className: "flex flex-col gap-1", children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-xs", children: [_jsx("span", { children: "Progress" }), _jsxs("span", { children: [data.progress, "%"] })] }), _jsx("div", { className: "bg-muted h-2 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', featureNodeStateConfig[data.state].progressClass), style: { width: `${data.progress}%` } }) })] })) : null, isCompleted && data.pr ? _jsx(FeaturePrInfo, { pr: data.pr }) : null] }), _jsx(FeatureInfo, { data: data }), !isCompleted && data.pr ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "p-4", children: _jsx(FeaturePrInfo, { pr: data.pr }) })] })) : null, _jsx(FeatureDetails, { data: data })] }));
|
|
18
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "feature-drawer-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: lifecycleDisplayLabels[data.lifecycle] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FeatureStateBadge, { data: data }), data.state === 'error' && data.onRetry ? (_jsxs("button", { "data-testid": "feature-drawer-retry-button", onClick: () => data.onRetry(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5" }), "Retry"] })) : null] }), !isCompleted && data.progress > 0 ? (_jsxs("div", { "data-testid": "feature-drawer-progress", className: "flex flex-col gap-1", children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-xs", children: [_jsx("span", { children: "Progress" }), _jsxs("span", { children: [data.progress, "%"] })] }), _jsx("div", { className: "bg-muted h-2 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', featureNodeStateConfig[data.state].progressClass), style: { width: `${data.progress}%` } }) })] })) : null, isCompleted && data.pr ? _jsx(FeaturePrInfo, { pr: data.pr }) : null] }), _jsx(FeatureInfo, { data: data }), !isCompleted && data.pr ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "p-4", children: _jsx(FeaturePrInfo, { pr: data.pr }) })] })) : null, _jsx(FeatureDetails, { data: data }), _jsx(FeatureSettings, { data: data })] }));
|
|
18
19
|
}
|
|
19
20
|
function FeatureStateBadge({ data }) {
|
|
20
21
|
const config = featureNodeStateConfig[data.state];
|
|
@@ -108,6 +109,20 @@ function AgentDetailRow({ agentType }) {
|
|
|
108
109
|
const label = agentTypeLabels[agentType] ?? agentType;
|
|
109
110
|
return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Agent" }), _jsxs("span", { className: "flex items-center gap-2 text-sm", children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), label] })] }));
|
|
110
111
|
}
|
|
112
|
+
// ── Settings section ─────────────────────────────────────────────────
|
|
113
|
+
function SettingBadge({ enabled, label }) {
|
|
114
|
+
return (_jsxs("span", { className: cn('inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium', enabled ? 'bg-emerald-50 text-emerald-700' : 'bg-muted text-muted-foreground'), children: [enabled ? _jsx(Check, { className: "h-3 w-3" }) : _jsx(X, { className: "h-3 w-3" }), label] }));
|
|
115
|
+
}
|
|
116
|
+
function FeatureSettings({ data }) {
|
|
117
|
+
const hasSettings = data.approvalGates != null ||
|
|
118
|
+
data.push != null ||
|
|
119
|
+
data.openPr != null ||
|
|
120
|
+
data.enableEvidence != null ||
|
|
121
|
+
data.modelId;
|
|
122
|
+
if (!hasSettings)
|
|
123
|
+
return null;
|
|
124
|
+
return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-settings", className: "flex flex-col gap-3 p-4", children: [_jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "SETTINGS" }), data.modelId ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Model" }), _jsx("span", { className: "text-sm", children: getModelMeta(data.modelId).displayName || data.modelId })] })) : null, data.approvalGates ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(ShieldCheck, { className: "h-3 w-3" }), "Auto-Approve"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.approvalGates.allowPrd, label: "PRD" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowPlan, label: "Plan" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowMerge, label: "Merge" })] })] })) : null, data.enableEvidence != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(FileSearch, { className: "h-3 w-3" }), "Evidence"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.enableEvidence, label: "Collect" }), data.commitEvidence != null ? (_jsx(SettingBadge, { enabled: data.commitEvidence, label: "Add to PR" })) : null] })] })) : null, data.push != null || data.openPr != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(GitBranch, { className: "h-3 w-3" }), "Git"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [data.push != null ? _jsx(SettingBadge, { enabled: data.push, label: "Push" }) : null, data.openPr != null ? _jsx(SettingBadge, { enabled: data.openPr, label: "PR" }) : null] })] })) : null] })] }));
|
|
125
|
+
}
|
|
111
126
|
function DetailRow({ label, value }) {
|
|
112
127
|
return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }), _jsx("span", { className: "text-sm", children: value })] }));
|
|
113
128
|
}
|
package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts
CHANGED
|
@@ -37,4 +37,14 @@ export declare const DuplicateSummaryHidden: Story;
|
|
|
37
37
|
export declare const DifferentSummary: Story;
|
|
38
38
|
/** Completed feature with PR — progress hidden, PR shown in status section without borders. */
|
|
39
39
|
export declare const CompletedWithPr: Story;
|
|
40
|
+
/** Feature with all settings visible — approval gates, evidence, git, and model. */
|
|
41
|
+
export declare const WithAllSettings: Story;
|
|
42
|
+
/** Feature with no auto-approve gates enabled. */
|
|
43
|
+
export declare const WithSettingsAllDisabled: Story;
|
|
44
|
+
/** Feature with all auto-approve gates enabled. */
|
|
45
|
+
export declare const WithSettingsAllApproved: Story;
|
|
46
|
+
/** Feature with settings and fast mode. */
|
|
47
|
+
export declare const FastModeWithSettings: Story;
|
|
48
|
+
/** Feature with evidence enabled but commit to PR disabled. */
|
|
49
|
+
export declare const EvidenceCollectOnly: Story;
|
|
40
50
|
//# sourceMappingURL=overview-tab.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAclC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AA0G1C,uEAAuE;AACvE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC;AAEF,iDAAiD;AACjD,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAOF,6CAA6C;AAC7C,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAwBF,mEAAmE;AACnE,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAMF,0BAA0B;AAC1B,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,oBAAoB;AACpB,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,EAAE,KAclC,CAAC;AAqBF,4DAA4D;AAC5D,eAAO,MAAM,sBAAsB,EAAE,KAEpC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,eAAe,EAAE,KAgB7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"overview-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAclC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AA0G1C,uEAAuE;AACvE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC;AAEF,iDAAiD;AACjD,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAOF,6CAA6C;AAC7C,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAwBF,mEAAmE;AACnE,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAMF,0BAA0B;AAC1B,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,oBAAoB;AACpB,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,EAAE,KAclC,CAAC;AAqBF,4DAA4D;AAC5D,eAAO,MAAM,sBAAsB,EAAE,KAEpC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,eAAe,EAAE,KAgB7B,CAAC;AAMF,oFAAoF;AACpF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,uBAAuB,EAAE,KAYrC,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,uBAAuB,EAAE,KAYrC,CAAC;AAEF,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB,EAAE,KAYlC,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,EAAE,KAQjC,CAAC"}
|
package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.js
CHANGED
|
@@ -252,3 +252,72 @@ export const CompletedWithPr = {
|
|
|
252
252
|
},
|
|
253
253
|
},
|
|
254
254
|
};
|
|
255
|
+
/* ---------------------------------------------------------------------------
|
|
256
|
+
* Settings section stories
|
|
257
|
+
* ------------------------------------------------------------------------- */
|
|
258
|
+
/** Feature with all settings visible — approval gates, evidence, git, and model. */
|
|
259
|
+
export const WithAllSettings = {
|
|
260
|
+
args: {
|
|
261
|
+
data: {
|
|
262
|
+
...noPrData,
|
|
263
|
+
modelId: 'claude-sonnet-4-6',
|
|
264
|
+
approvalGates: { allowPrd: true, allowPlan: true, allowMerge: false },
|
|
265
|
+
enableEvidence: true,
|
|
266
|
+
commitEvidence: true,
|
|
267
|
+
push: true,
|
|
268
|
+
openPr: true,
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
/** Feature with no auto-approve gates enabled. */
|
|
273
|
+
export const WithSettingsAllDisabled = {
|
|
274
|
+
args: {
|
|
275
|
+
data: {
|
|
276
|
+
...noPrData,
|
|
277
|
+
modelId: 'gemini-2.5-pro',
|
|
278
|
+
approvalGates: { allowPrd: false, allowPlan: false, allowMerge: false },
|
|
279
|
+
enableEvidence: false,
|
|
280
|
+
commitEvidence: false,
|
|
281
|
+
push: false,
|
|
282
|
+
openPr: false,
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
/** Feature with all auto-approve gates enabled. */
|
|
287
|
+
export const WithSettingsAllApproved = {
|
|
288
|
+
args: {
|
|
289
|
+
data: {
|
|
290
|
+
...noPrData,
|
|
291
|
+
modelId: 'claude-opus-4-6',
|
|
292
|
+
approvalGates: { allowPrd: true, allowPlan: true, allowMerge: true },
|
|
293
|
+
enableEvidence: true,
|
|
294
|
+
commitEvidence: true,
|
|
295
|
+
push: true,
|
|
296
|
+
openPr: true,
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
};
|
|
300
|
+
/** Feature with settings and fast mode. */
|
|
301
|
+
export const FastModeWithSettings = {
|
|
302
|
+
args: {
|
|
303
|
+
data: {
|
|
304
|
+
...fastModeData,
|
|
305
|
+
modelId: 'claude-sonnet-4-6',
|
|
306
|
+
approvalGates: { allowPrd: false, allowPlan: false, allowMerge: true },
|
|
307
|
+
enableEvidence: true,
|
|
308
|
+
commitEvidence: false,
|
|
309
|
+
push: true,
|
|
310
|
+
openPr: true,
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
/** Feature with evidence enabled but commit to PR disabled. */
|
|
315
|
+
export const EvidenceCollectOnly = {
|
|
316
|
+
args: {
|
|
317
|
+
data: {
|
|
318
|
+
...noPrData,
|
|
319
|
+
enableEvidence: true,
|
|
320
|
+
commitEvidence: false,
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
};
|
package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts
CHANGED
|
@@ -59,6 +59,20 @@ export interface FeatureNodeData {
|
|
|
59
59
|
commitHash?: string;
|
|
60
60
|
mergeable?: boolean;
|
|
61
61
|
};
|
|
62
|
+
/** Approval gates configuration for phase transitions */
|
|
63
|
+
approvalGates?: {
|
|
64
|
+
allowPrd: boolean;
|
|
65
|
+
allowPlan: boolean;
|
|
66
|
+
allowMerge: boolean;
|
|
67
|
+
};
|
|
68
|
+
/** Whether to push branch to remote after implementation */
|
|
69
|
+
push?: boolean;
|
|
70
|
+
/** Whether to open a PR after implementation */
|
|
71
|
+
openPr?: boolean;
|
|
72
|
+
/** Whether evidence collection is enabled for this feature */
|
|
73
|
+
enableEvidence?: boolean;
|
|
74
|
+
/** Whether evidence is committed to the PR body */
|
|
75
|
+
commitEvidence?: boolean;
|
|
62
76
|
/** Whether the feature has plan data available */
|
|
63
77
|
hasPlan?: boolean;
|
|
64
78
|
/** Deployment status for features with an active deployment */
|
package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[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CAAC;IACnF,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAEnE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CAuEnF,CAAC"}
|
|
1
|
+
{"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAOxE,CAAC;AAEF,gFAAg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C;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CAuEnF,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses structured log lines from the feature agent worker process.
|
|
3
|
+
*
|
|
4
|
+
* Log format: [timestamp] [phase] [agent|model] [tag] message
|
|
5
|
+
* Worker format: [timestamp] [agent|model] [WORKER] message
|
|
6
|
+
* Fallback: raw string lines
|
|
7
|
+
*/
|
|
8
|
+
export type LogEventTag = 'tool' | 'text' | 'result' | 'tokens' | 'raw' | 'worker' | 'info';
|
|
9
|
+
export interface ParsedLogLine {
|
|
10
|
+
/** ISO timestamp */
|
|
11
|
+
timestamp: string | null;
|
|
12
|
+
/** Phase name (e.g. "requirements", "implement") */
|
|
13
|
+
phase: string | null;
|
|
14
|
+
/** Agent type (e.g. "claude-code") */
|
|
15
|
+
agent: string | null;
|
|
16
|
+
/** Model name (e.g. "claude-haiku-4-5") */
|
|
17
|
+
model: string | null;
|
|
18
|
+
/** Event tag */
|
|
19
|
+
tag: LogEventTag;
|
|
20
|
+
/** The message content after tags */
|
|
21
|
+
message: string;
|
|
22
|
+
/** Original raw line */
|
|
23
|
+
raw: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function parseLogLine(raw: string): ParsedLogLine;
|
|
26
|
+
/** Tool call info extracted from [tool] messages */
|
|
27
|
+
export interface ToolCallInfo {
|
|
28
|
+
toolName: string;
|
|
29
|
+
args: string;
|
|
30
|
+
}
|
|
31
|
+
/** Parse a [tool] message into tool name and args */
|
|
32
|
+
export declare function parseToolCall(message: string): ToolCallInfo;
|
|
33
|
+
/** Result info extracted from [result] messages */
|
|
34
|
+
export interface ResultInfo {
|
|
35
|
+
chars: number;
|
|
36
|
+
sessionId: string | null;
|
|
37
|
+
}
|
|
38
|
+
/** Parse a [result] message */
|
|
39
|
+
export declare function parseResultMessage(message: string): ResultInfo;
|
|
40
|
+
/** Token info extracted from [tokens] messages */
|
|
41
|
+
export interface TokenInfo {
|
|
42
|
+
inputTokens: number;
|
|
43
|
+
outputTokens: number;
|
|
44
|
+
}
|
|
45
|
+
/** Parse a [tokens] message */
|
|
46
|
+
export declare function parseTokensMessage(message: string): TokenInfo;
|
|
47
|
+
/** Parse all lines from raw content string */
|
|
48
|
+
export declare function parseLogContent(content: string): ParsedLogLine[];
|
|
49
|
+
//# sourceMappingURL=parse-log-line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-log-line.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/parse-log-line.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE5F,MAAM,WAAW,aAAa;IAC5B,oBAAoB;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oDAAoD;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,sCAAsC;IACtC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB;IAChB,GAAG,EAAE,WAAW,CAAC;IACjB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAC;CACb;AAgBD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAwEvD;AAED,oDAAoD;AACpD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qDAAqD;AACrD,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAS3D;AAED,mDAAmD;AACnD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,+BAA+B;AAC/B,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAO9D;AAED,kDAAkD;AAClD,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,+BAA+B;AAC/B,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAO7D;AAED,8CAA8C;AAC9C,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE,CAMhE"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses structured log lines from the feature agent worker process.
|
|
3
|
+
*
|
|
4
|
+
* Log format: [timestamp] [phase] [agent|model] [tag] message
|
|
5
|
+
* Worker format: [timestamp] [agent|model] [WORKER] message
|
|
6
|
+
* Fallback: raw string lines
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Regex to match structured log lines.
|
|
10
|
+
* Captures: timestamp, optional phase, optional agent|model, rest of message
|
|
11
|
+
*
|
|
12
|
+
* Examples:
|
|
13
|
+
* [2026-03-08T10:00:01.123Z] [requirements] [claude-code|claude-haiku-4-5] [tool] Read {"path":"f.ts"}
|
|
14
|
+
* [2026-03-08T10:00:01.123Z] [claude-code|claude-haiku-4-5] [WORKER] Starting worker
|
|
15
|
+
* [2026-03-08T10:00:01.123Z] [requirements] [claude-code|claude-haiku-4-5] Starting...
|
|
16
|
+
*/
|
|
17
|
+
const LOG_LINE_REGEX = /^\[(\d{4}-\d{2}-\d{2}T[\d:.]+Z?)\]\s+(?:\[([^\]]+)\]\s+)?(?:\[([^\]|]+)(?:\|([^\]]+))?\]\s+)?(.*)$/;
|
|
18
|
+
const TAG_REGEX = /^\[(tool|text|result|tokens|raw|WORKER)\]\s*(.*)/;
|
|
19
|
+
export function parseLogLine(raw) {
|
|
20
|
+
const match = raw.match(LOG_LINE_REGEX);
|
|
21
|
+
if (!match) {
|
|
22
|
+
return {
|
|
23
|
+
timestamp: null,
|
|
24
|
+
phase: null,
|
|
25
|
+
agent: null,
|
|
26
|
+
model: null,
|
|
27
|
+
tag: 'raw',
|
|
28
|
+
message: raw,
|
|
29
|
+
raw,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const [, timestamp, group1, group2, group3, rest] = match;
|
|
33
|
+
// Determine phase, agent, model from the captured groups.
|
|
34
|
+
// The log format can be:
|
|
35
|
+
// [ts] [phase] [agent|model] message → group1=phase, group2=agent, group3=model
|
|
36
|
+
// [ts] [agent|model] [WORKER] message → group1="agent|model", group2=WORKER
|
|
37
|
+
// [ts] [phase] [agent] message → group1=phase, group2=agent
|
|
38
|
+
// [ts] [phase] message → group1=phase only
|
|
39
|
+
let phase = null;
|
|
40
|
+
let agent = null;
|
|
41
|
+
let model = null;
|
|
42
|
+
let message = rest ?? '';
|
|
43
|
+
if (group2 != null && group1 != null) {
|
|
44
|
+
// Two bracket groups captured
|
|
45
|
+
if (group1.includes('|')) {
|
|
46
|
+
// group1 is [agent|model], group2 is next tag (e.g. WORKER)
|
|
47
|
+
const [agentPart, modelPart] = group1.split('|');
|
|
48
|
+
agent = agentPart;
|
|
49
|
+
model = modelPart ?? null;
|
|
50
|
+
// group2 becomes part of the message to be parsed as a tag
|
|
51
|
+
message = `[${group2}] ${rest ?? ''}`;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
// group1 is [phase], group2|group3 is [agent|model]
|
|
55
|
+
phase = group1;
|
|
56
|
+
agent = group2;
|
|
57
|
+
model = group3 ?? null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else if (group1 != null) {
|
|
61
|
+
// Only one bracket group
|
|
62
|
+
if (group1.includes('|')) {
|
|
63
|
+
const [agentPart, modelPart] = group1.split('|');
|
|
64
|
+
agent = agentPart;
|
|
65
|
+
model = modelPart ?? null;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
phase = group1;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// Parse tag from message
|
|
72
|
+
const tagMatch = message.match(TAG_REGEX);
|
|
73
|
+
let tag = 'info';
|
|
74
|
+
if (tagMatch) {
|
|
75
|
+
tag = tagMatch[1].toLowerCase();
|
|
76
|
+
message = tagMatch[2];
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
timestamp: timestamp ?? null,
|
|
80
|
+
phase,
|
|
81
|
+
agent,
|
|
82
|
+
model,
|
|
83
|
+
tag,
|
|
84
|
+
message: message.trim(),
|
|
85
|
+
raw,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/** Parse a [tool] message into tool name and args */
|
|
89
|
+
export function parseToolCall(message) {
|
|
90
|
+
const spaceIdx = message.indexOf(' ');
|
|
91
|
+
if (spaceIdx === -1) {
|
|
92
|
+
return { toolName: message, args: '' };
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
toolName: message.slice(0, spaceIdx),
|
|
96
|
+
args: message.slice(spaceIdx + 1),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/** Parse a [result] message */
|
|
100
|
+
export function parseResultMessage(message) {
|
|
101
|
+
const charsMatch = message.match(/^(\d+)\s+chars/);
|
|
102
|
+
const sessionMatch = message.match(/session=(\S+)/);
|
|
103
|
+
return {
|
|
104
|
+
chars: charsMatch ? parseInt(charsMatch[1], 10) : 0,
|
|
105
|
+
sessionId: sessionMatch ? sessionMatch[1] : null,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/** Parse a [tokens] message */
|
|
109
|
+
export function parseTokensMessage(message) {
|
|
110
|
+
const match = message.match(/^(\d+)\s+in\s*\/\s*(\d+)\s+out/);
|
|
111
|
+
if (!match)
|
|
112
|
+
return { inputTokens: 0, outputTokens: 0 };
|
|
113
|
+
return {
|
|
114
|
+
inputTokens: parseInt(match[1], 10),
|
|
115
|
+
outputTokens: parseInt(match[2], 10),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/** Parse all lines from raw content string */
|
|
119
|
+
export function parseLogContent(content) {
|
|
120
|
+
if (!content)
|
|
121
|
+
return [];
|
|
122
|
+
return content
|
|
123
|
+
.split('\n')
|
|
124
|
+
.filter((line) => line.trim().length > 0)
|
|
125
|
+
.map(parseLogLine);
|
|
126
|
+
}
|