From bbce6e4f795c04e8fc5403acf95f0aee8b019df2 Mon Sep 17 00:00:00 2001 From: Kyongsik Yun Date: Tue, 3 Sep 2024 08:58:58 -0700 Subject: [PATCH] SLIM-1.1 Governance link fix --- slim-registry.json | 4 ++-- src/jpl/slim/VERSION.txt | 2 +- src/jpl/slim/cli.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/slim-registry.json b/slim-registry.json index 53788ea..6d4cb59 100644 --- a/slim-registry.json +++ b/slim-registry.json @@ -14,12 +14,12 @@ { "name": "Governance Template", "type": "text/md", - "uri": "https://raw.githubusercontent.com/NASA-AMMOS/slim/main/docs/guides/governance/governance-model/GOVERNANCE-TEMPLATE.md" + "uri": "https://raw.githubusercontent.com/NASA-AMMOS/slim/main/static/assets/governance/governance-model/GOVERNANCE-TEMPLATE-LARGE-TEAMS.md" }, { "name": "Governance Template (Small Teams)", "type": "text/md", - "uri": "https://raw.githubusercontent.com/NASA-AMMOS/slim/main/docs/guides/governance/governance-model/governance-template-small-team.md" + "uri": "https://raw.githubusercontent.com/NASA-AMMOS/slim/main/static/assets/governance/governance-model/GOVERNANCE-TEMPLATE-SMALL-TEAMS.md" } ] }, diff --git a/src/jpl/slim/VERSION.txt b/src/jpl/slim/VERSION.txt index 8acdd82..81340c7 100644 --- a/src/jpl/slim/VERSION.txt +++ b/src/jpl/slim/VERSION.txt @@ -1 +1 @@ -0.0.1 +0.0.4 diff --git a/src/jpl/slim/cli.py b/src/jpl/slim/cli.py index 2e2fce6..7efc40a 100644 --- a/src/jpl/slim/cli.py +++ b/src/jpl/slim/cli.py @@ -16,7 +16,7 @@ # Constants -SLIM_REGISTRY_URI = "https://raw.githubusercontent.com/NASA-AMMOS/slim/issue-154/static/data/slim-registry.json" +SLIM_REGISTRY_URI = "https://raw.githubusercontent.com/NASA-AMMOS/slim/yunks128-patch-1/static/data/slim-registry.json" SUPPORTED_MODELS = { "openai": ["gpt-3.5-turbo", "gpt-4o"], "ollama": ["llama3.1", "mistral", "codellama"], @@ -47,7 +47,7 @@ def fetch_best_practices_from_file(file_path): def list_practices(args): logging.debug("Listing all best practices...") practices = fetch_best_practices(SLIM_REGISTRY_URI) - # practices = fetch_best_practices_from_file("slim-registry.json") + #practices = fetch_best_practices_from_file("slim-registry.json") if not practices: print("No practices found or failed to fetch practices.") @@ -540,7 +540,7 @@ def apply_best_practice(best_practice_id, use_ai_flag, model, repo_url = None, e # Process best practice by ID if best_practice_id == 'SLIM-1.1': - applied_file_path = download_and_place_file(git_repo, uri, 'GOVERNANCE.md') + applied_file_path = download_and_place_file(git_repo, uri, 'GOVERNANCE-TEMPLATE-SMALL-TEAMS.md') if use_ai_flag and model: #logging.warning(f"AI apply features unsupported for best practice {best_practice_id} currently")