Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions integrations/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
"bob": {
"id": "bob",
"name": "IBM Bob",
"version": "1.0.0",
"description": "IBM Bob IDE integration",
"version": "2.0.0",
"description": "IBM Bob 2.0 IDE integration",
"author": "spec-kit-core",
"repository": "https://github.com/github/spec-kit",
"tags": ["ide", "ibm"]
Expand Down
31 changes: 25 additions & 6 deletions src/specify_cli/integrations/bob/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,39 @@
"""IBM Bob integration."""
"""IBM Bob integration.
from ..base import MarkdownIntegration
Bob 2.0 uses the ``.bob/skills/speckit-<name>/SKILL.md`` layout.
The legacy ``.bob/commands/`` layout (Bob 1.x) is no longer supported.
"""

from __future__ import annotations

from ..base import IntegrationOption, SkillsIntegration


class BobIntegration(SkillsIntegration):
"""Integration for IBM Bob IDE."""

class BobIntegration(MarkdownIntegration):
key = "bob"
config = {
"name": "IBM Bob",
"folder": ".bob/",
"commands_subdir": "commands",
"commands_subdir": "skills",
"install_url": None,
"requires_cli": False,
}
registrar_config = {
"dir": ".bob/commands",
"dir": ".bob/skills",
"format": "markdown",
"args": "$ARGUMENTS",
"extension": ".md",
"extension": "/SKILL.md",
}

@classmethod
def options(cls) -> list[IntegrationOption]:
return [
IntegrationOption(
"--skills",
is_flag=True,
default=True,
help="Install as agent skills (default for Bob 2.0)",
),
]
8 changes: 4 additions & 4 deletions tests/integrations/test_integration_bob.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Tests for BobIntegration."""

from .test_integration_base_markdown import MarkdownIntegrationTests
from .test_integration_base_skills import SkillsIntegrationTests


class TestBobIntegration(MarkdownIntegrationTests):
class TestBobIntegration(SkillsIntegrationTests):
KEY = "bob"
FOLDER = ".bob/"
COMMANDS_SUBDIR = "commands"
REGISTRAR_DIR = ".bob/commands"
COMMANDS_SUBDIR = "skills"
REGISTRAR_DIR = ".bob/skills"