Skip to content

feat: scribe agent#9193

Draft
mikeallisonJS wants to merge 16 commits into
mainfrom
26-00-MA-feat-core-cli
Draft

feat: scribe agent#9193
mikeallisonJS wants to merge 16 commits into
mainfrom
26-00-MA-feat-core-cli

Conversation

@mikeallisonJS
Copy link
Copy Markdown
Collaborator

@mikeallisonJS mikeallisonJS commented May 9, 2026

Proof of concept for journeys agent. Not for production use

- Added team and journey selection commands to the REPL, allowing users to pick active teams and journeys.
- Enhanced state management to track active teams and journeys, including loading states.
- Updated system prompt to reflect the currently active team and journey.
- Improved status bar to display active team and journey information.
- Introduced helper functions for describing active teams and journeys.
- Introduced an ActivityIndicator component to visually represent ongoing activities.
- Updated the App state management to track the current tool name and activity start time.
- Refactored status handling to improve user feedback during tool usage and thinking states.
- Modified the StatusBar to display a spinner during active states for better user experience.
- Simplified the LoginProgress component by integrating a Spinner for loading indication.
- Added support for user impersonation, allowing superadmins to operate as other users.
- Introduced commands `/impersonate` and `/stop-impersonate` to manage impersonation sessions.
- Enhanced state management to track the current impersonated user and their session details.
- Updated system prompts and status bar to reflect impersonation status and provide user feedback.
- Improved command filtering to show availability based on user roles.
- Introduced a ModelPicker component to allow users to select and switch models.
- Enhanced App state management to track the selected model and its picker visibility.
- Implemented a new `/model` command to facilitate model switching via the REPL.
- Updated StatusBar to display the currently selected model for better user feedback.
- Improved command context to include model management functions.
…est handling

- Updated TypeScript configuration to include gql.tada plugin for improved GraphQL schema handling.
- Refactored GraphQL request functions to utilize TadaDocumentNode for better type safety and operation name extraction.
- Simplified GraphQL query and mutation definitions by using the gql.tada syntax.
- Enhanced data fetching functions to streamline variable handling and response processing.
- Improved type definitions for better clarity and maintainability across the API modules.
@mikeallisonJS mikeallisonJS self-assigned this May 9, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 9, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 57464506-74a9-4d56-8a78-e0745a406d32

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 26-00-MA-feat-core-cli

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Fails
🚫 Please request a reviewer for this PR.
Warnings
⚠️ ❗ Big PR (9966 changes)

(change count - 9966): Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

Generated by 🚫 dangerJS against 6eb6905

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented May 9, 2026

View your CI Pipeline Execution ↗ for commit 6eb6905

Command Status Duration Result
nx run-many --target=vercel-alias --projects=jo... ✅ Succeeded 2s View ↗
nx run-many --target=vercel-alias --projects=re... ✅ Succeeded 4s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 22s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 10s View ↗
nx run-many --target=vercel-alias --projects=watch ✅ Succeeded 2s View ↗
nx run-many --target=deploy --projects=resources ✅ Succeeded 1m 30s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 7s View ↗
nx run-many --target=deploy --projects=journeys... ✅ Succeeded 1m 35s View ↗
Additional runs (19) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2026-05-19 20:52:21 UTC

@github-actions github-actions Bot temporarily deployed to Preview - short-links May 9, 2026 08:48 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - resources May 9, 2026 08:48 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - player May 9, 2026 08:48 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - watch May 9, 2026 08:48 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - watch-modern May 9, 2026 08:48 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - videos-admin May 9, 2026 08:48 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - docs May 9, 2026 08:48 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys May 9, 2026 08:48 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys-admin May 9, 2026 08:48 Inactive
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch-modern ✅ Ready watch-modern preview Wed May 20 08:50:57 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
short-links ✅ Ready short-links preview Wed May 20 08:51:03 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
player ✅ Ready player preview Wed May 20 08:51:26 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready journeys preview Wed May 20 08:51:22 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
docs ✅ Ready docs preview Wed May 20 08:51:20 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready videos-admin preview Wed May 20 08:51:50 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready watch preview Wed May 20 08:52:06 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
resources ✅ Ready resources preview Wed May 20 08:52:21 NZST 2026

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready journeys-admin preview Wed May 20 08:52:21 NZST 2026

- Added a new `create_journey` mutation to facilitate the creation of journey shells in the active team.
- Updated the `buildJourneyTools` function to include the new journey creation tool, ensuring it requires an active team.
- Refactored environment configuration to resolve Firebase API keys using the Doppler CLI, improving security and flexibility.
- Removed deprecated `firebaseApiKey` from environment configurations, streamlining the environment setup.
- Enhanced system prompts to guide users through the journey creation process more effectively.
…irectory

- Modified the configDir function to utilize the env.SCRIBE_CONFIG_DIR variable, enhancing flexibility in configuration management.
- This change allows for better integration with environment-specific settings.
@github-actions github-actions Bot temporarily deployed to Preview - videos-admin May 12, 2026 21:22 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - player May 12, 2026 21:22 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys-admin May 12, 2026 21:22 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - docs May 12, 2026 21:22 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys May 12, 2026 21:22 Inactive
- Added a new `/block` command to allow users to focus on specific content blocks within the active card, enhancing the granularity of interactions.
- Implemented state management for active blocks, including the ability to open a block picker and set the active block.
- Updated system prompts and status bar to reflect the currently active block, providing clearer context during user interactions.
- Enhanced command context to include functions for managing block selection and visibility.
- Added functionality to navigate command history using up and down arrow keys, allowing users to recall previous inputs.
- Introduced state management for command history to prevent duplicate entries and maintain a clean history.
- Enhanced user experience by preserving the current draft when navigating through history.
- Updated the input handling logic to accommodate new history navigation features.
- Updated the README to clarify the agent-driven CLI capabilities and added support for multiple agent backends, including OpenRouter and Hermes.
- Introduced a new `/provider` command to switch agent backends directly from the REPL, improving user flexibility.
- Enhanced the logout command to allow forgetting both environment and provider credentials, streamlining credential management.
- Updated the App and REPL components to support provider selection and configuration, ensuring a smoother user experience.
- Improved status bar to display the currently active provider, providing better context during interactions.
- Updated the README to reflect the addition of LM Studio as a supported agent backend for model switching.
- Implemented a new `listModels` method in the Claude Code and OpenAI-compatible providers to fetch available models.
- Enhanced the ModelPicker component to display models dynamically based on the selected provider, allowing for better user interaction.
- Improved state management in the App component to handle model loading states and refresh functionality.
- Updated types to include `ProviderModel` for better clarity in model handling across the application.
- Updated the README to include Ollama as a supported local server for OpenAI-compatible interactions.
- Modified the OpenAICompatConfig to recognize Ollama as a valid provider.
- Enhanced the provider registry to include Ollama with its default configuration details.
- Updated provider type definitions to accommodate the new Ollama backend, ensuring consistent handling across the application.
@github-actions github-actions Bot temporarily deployed to Preview - watch May 12, 2026 23:57 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys-admin May 12, 2026 23:57 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - player May 12, 2026 23:57 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - short-links May 12, 2026 23:57 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - docs May 12, 2026 23:57 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - watch-modern May 12, 2026 23:57 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys May 12, 2026 23:57 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - resources May 12, 2026 23:57 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - videos-admin May 12, 2026 23:57 Inactive
…functionality

- Updated the README to document the new `copy_journey` tool for copying journeys between environments, including details on its operation and limitations.
- Implemented `list_teams_in_env` to fetch teams from a specified environment, aiding in destination team selection for journey copies.
- Enhanced the `Input` component to support cursor management and improved user interaction during command input.
- Refactored GraphQL request handling to support unauthenticated requests, facilitating anonymous journey fetching.
- Updated system prompts to guide users through the new cross-environment journey copy process, ensuring clarity on what is copied and what is not.
- Updated the `copy_journey` tool to accept full URLs, including custom-domain URLs, for journey copying.
- Enhanced the GraphQL query to include an options parameter, allowing for improved handling of journeys served from custom domains.
- Added a new utility function to parse source references, extracting slugs and hostnames from URLs.
- Updated the README to reflect these changes, clarifying the behavior of `sourceIdOrSlug` and the implications of custom domain routing.
@github-actions github-actions Bot temporarily deployed to Preview - resources May 19, 2026 20:49 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - short-links May 19, 2026 20:49 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys May 19, 2026 20:49 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - watch May 19, 2026 20:49 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - videos-admin May 19, 2026 20:49 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - watch-modern May 19, 2026 20:49 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - journeys-admin May 19, 2026 20:49 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - player May 19, 2026 20:49 Inactive
@github-actions github-actions Bot temporarily deployed to Preview - docs May 19, 2026 20:49 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants