Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[editor] Move Demo Editor travel.aiconfig.json to editor dir #623

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

rholinshead
Copy link
Contributor

@rholinshead rholinshead commented Dec 26, 2023

[editor] Move Demo Editor travel.aiconfig.json to editor dir

This test config is being removed from under the /cli dir in #622 where the entire /cli dir is being removed. So, move the file here to use for testing

Testing:

aiconfig edit --aiconfig-path=python/src/aiconfig/editor/travel.aiconfig.json --server-mode='debug_servers' correctly loads the editor


Stack created with Sapling. Best reviewed with ReviewStack.

@@ -10,9 +10,7 @@ export default function Editor() {
const [aiconfig, setAiConfig] = useState<ClientAIConfig | undefined>();

const loadConfig = useCallback(async () => {
const res = await ufetch.post(ROUTE_TABLE.LOAD, {
path: "cli/aiconfig-editor/travel.aiconfig.json",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path is no longer needed with recent update to /load

@rholinshead rholinshead merged commit c488b70 into main Dec 26, 2023
1 check passed
rholinshead added a commit that referenced this pull request Dec 26, 2023
…622)

# [editor] Remove /cli Editor in Favour of Python-server-backed Editor

The python-server-backed local editor is in good enough shape for all
dev work, so remove the /cli dir to avoid any confusion around which
files to use (also, removes duplicates from searches)

`aiconfig edit
--aiconfig-path=python/src/aiconfig/editor/travel.aiconfig.json
--server-mode='debug_servers'` and ensure the editor works

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/622).
* __->__ #622
* #623
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