macro-agent 0.0.13 → 0.0.15

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.
Files changed (143) hide show
  1. package/.claude/settings.local.json +59 -0
  2. package/dist/agent/agent-manager.d.ts.map +1 -1
  3. package/dist/agent/agent-manager.js +10 -4
  4. package/dist/agent/agent-manager.js.map +1 -1
  5. package/dist/cli/acp.d.ts +6 -0
  6. package/dist/cli/acp.d.ts.map +1 -1
  7. package/dist/cli/acp.js +16 -2
  8. package/dist/cli/acp.js.map +1 -1
  9. package/dist/map/adapter/index.d.ts +1 -1
  10. package/dist/map/adapter/index.d.ts.map +1 -1
  11. package/dist/map/adapter/index.js +1 -1
  12. package/dist/map/adapter/index.js.map +1 -1
  13. package/dist/map/utils/address-translation.d.ts +99 -0
  14. package/dist/map/utils/address-translation.d.ts.map +1 -0
  15. package/dist/map/utils/address-translation.js +285 -0
  16. package/dist/map/utils/address-translation.js.map +1 -0
  17. package/dist/map/utils/index.d.ts +7 -0
  18. package/dist/map/utils/index.d.ts.map +1 -0
  19. package/dist/map/utils/index.js +7 -0
  20. package/dist/map/utils/index.js.map +1 -0
  21. package/dist/server/combined-server.d.ts.map +1 -1
  22. package/dist/server/combined-server.js +8 -1
  23. package/dist/server/combined-server.js.map +1 -1
  24. package/dist/store/event-store.js +9 -2
  25. package/dist/store/event-store.js.map +1 -1
  26. package/dist/store/types/agents.d.ts +2 -0
  27. package/dist/store/types/agents.d.ts.map +1 -1
  28. package/package.json +4 -4
  29. package/references/acp-factory-ref/CHANGELOG.md +33 -0
  30. package/references/acp-factory-ref/LICENSE +21 -0
  31. package/references/acp-factory-ref/README.md +341 -0
  32. package/references/acp-factory-ref/package-lock.json +3102 -0
  33. package/references/acp-factory-ref/package.json +96 -0
  34. package/references/acp-factory-ref/python/CHANGELOG.md +33 -0
  35. package/references/acp-factory-ref/python/LICENSE +21 -0
  36. package/references/acp-factory-ref/python/Makefile +57 -0
  37. package/references/acp-factory-ref/python/README.md +253 -0
  38. package/references/acp-factory-ref/python/pyproject.toml +73 -0
  39. package/references/acp-factory-ref/python/tests/__init__.py +0 -0
  40. package/references/acp-factory-ref/python/tests/e2e/__init__.py +1 -0
  41. package/references/acp-factory-ref/python/tests/e2e/test_codex_e2e.py +349 -0
  42. package/references/acp-factory-ref/python/tests/e2e/test_gemini_e2e.py +165 -0
  43. package/references/acp-factory-ref/python/tests/e2e/test_opencode_e2e.py +296 -0
  44. package/references/acp-factory-ref/python/tests/test_client_handler.py +543 -0
  45. package/references/acp-factory-ref/python/tests/test_pushable.py +199 -0
  46. package/references/claude-code-acp/.github/workflows/ci.yml +45 -0
  47. package/references/claude-code-acp/.github/workflows/publish.yml +34 -0
  48. package/references/claude-code-acp/.prettierrc.json +4 -0
  49. package/references/claude-code-acp/CHANGELOG.md +249 -0
  50. package/references/claude-code-acp/LICENSE +222 -0
  51. package/references/claude-code-acp/README.md +53 -0
  52. package/references/claude-code-acp/docs/RELEASES.md +24 -0
  53. package/references/claude-code-acp/eslint.config.js +48 -0
  54. package/references/claude-code-acp/package-lock.json +4570 -0
  55. package/references/claude-code-acp/package.json +88 -0
  56. package/references/claude-code-acp/scripts/release.sh +119 -0
  57. package/references/claude-code-acp/src/acp-agent.ts +2079 -0
  58. package/references/claude-code-acp/src/index.ts +26 -0
  59. package/references/claude-code-acp/src/lib.ts +38 -0
  60. package/references/claude-code-acp/src/mcp-server.ts +911 -0
  61. package/references/claude-code-acp/src/settings.ts +522 -0
  62. package/references/claude-code-acp/src/tests/.claude/commands/quick-math.md +5 -0
  63. package/references/claude-code-acp/src/tests/.claude/commands/say-hello.md +6 -0
  64. package/references/claude-code-acp/src/tests/acp-agent-fork.test.ts +479 -0
  65. package/references/claude-code-acp/src/tests/acp-agent.test.ts +1502 -0
  66. package/references/claude-code-acp/src/tests/extract-lines.test.ts +103 -0
  67. package/references/claude-code-acp/src/tests/fork-session.test.ts +335 -0
  68. package/references/claude-code-acp/src/tests/replace-and-calculate-location.test.ts +334 -0
  69. package/references/claude-code-acp/src/tests/settings.test.ts +617 -0
  70. package/references/claude-code-acp/src/tests/skills-options.test.ts +187 -0
  71. package/references/claude-code-acp/src/tests/tools.test.ts +318 -0
  72. package/references/claude-code-acp/src/tests/typescript-declarations.test.ts +558 -0
  73. package/references/claude-code-acp/src/tools.ts +819 -0
  74. package/references/claude-code-acp/src/utils.ts +171 -0
  75. package/references/claude-code-acp/tsconfig.json +18 -0
  76. package/references/claude-code-acp/vitest.config.ts +19 -0
  77. package/references/multi-agent-protocol/.sudocode/issues.jsonl +111 -0
  78. package/references/multi-agent-protocol/.sudocode/specs.jsonl +13 -0
  79. package/references/multi-agent-protocol/LICENSE +21 -0
  80. package/references/multi-agent-protocol/README.md +113 -0
  81. package/references/multi-agent-protocol/docs/00-design-specification.md +496 -0
  82. package/references/multi-agent-protocol/docs/01-open-questions.md +1050 -0
  83. package/references/multi-agent-protocol/docs/02-wire-protocol.md +296 -0
  84. package/references/multi-agent-protocol/docs/03-streaming-semantics.md +252 -0
  85. package/references/multi-agent-protocol/docs/04-error-handling.md +231 -0
  86. package/references/multi-agent-protocol/docs/05-connection-model.md +244 -0
  87. package/references/multi-agent-protocol/docs/06-visibility-permissions.md +243 -0
  88. package/references/multi-agent-protocol/docs/07-federation.md +259 -0
  89. package/references/multi-agent-protocol/docs/08-macro-agent-migration.md +253 -0
  90. package/references/multi-agent-protocol/docs/09-authentication.md +680 -0
  91. package/references/multi-agent-protocol/docs/10-mail-protocol.md +553 -0
  92. package/references/multi-agent-protocol/docs/agent-iam-integration.md +877 -0
  93. package/references/multi-agent-protocol/docs/agentic-mesh-integration-draft.md +459 -0
  94. package/references/multi-agent-protocol/docs/git-transport-draft.md +251 -0
  95. package/references/multi-agent-protocol/docs-site/Gemfile +22 -0
  96. package/references/multi-agent-protocol/docs-site/README.md +82 -0
  97. package/references/multi-agent-protocol/docs-site/_config.yml +91 -0
  98. package/references/multi-agent-protocol/docs-site/_includes/head_custom.html +20 -0
  99. package/references/multi-agent-protocol/docs-site/_sass/color_schemes/map.scss +42 -0
  100. package/references/multi-agent-protocol/docs-site/_sass/custom/custom.scss +34 -0
  101. package/references/multi-agent-protocol/docs-site/examples/full-integration.md +510 -0
  102. package/references/multi-agent-protocol/docs-site/examples/index.md +138 -0
  103. package/references/multi-agent-protocol/docs-site/examples/simple-chat.md +282 -0
  104. package/references/multi-agent-protocol/docs-site/examples/task-queue.md +399 -0
  105. package/references/multi-agent-protocol/docs-site/getting-started/index.md +98 -0
  106. package/references/multi-agent-protocol/docs-site/getting-started/installation.md +219 -0
  107. package/references/multi-agent-protocol/docs-site/getting-started/overview.md +172 -0
  108. package/references/multi-agent-protocol/docs-site/getting-started/quickstart.md +237 -0
  109. package/references/multi-agent-protocol/docs-site/index.md +136 -0
  110. package/references/multi-agent-protocol/docs-site/protocol/authentication.md +391 -0
  111. package/references/multi-agent-protocol/docs-site/protocol/connection-model.md +376 -0
  112. package/references/multi-agent-protocol/docs-site/protocol/design.md +284 -0
  113. package/references/multi-agent-protocol/docs-site/protocol/error-handling.md +312 -0
  114. package/references/multi-agent-protocol/docs-site/protocol/federation.md +449 -0
  115. package/references/multi-agent-protocol/docs-site/protocol/index.md +129 -0
  116. package/references/multi-agent-protocol/docs-site/protocol/permissions.md +398 -0
  117. package/references/multi-agent-protocol/docs-site/protocol/streaming.md +353 -0
  118. package/references/multi-agent-protocol/docs-site/protocol/wire-protocol.md +369 -0
  119. package/references/multi-agent-protocol/docs-site/sdk/api/agent.md +357 -0
  120. package/references/multi-agent-protocol/docs-site/sdk/api/client.md +380 -0
  121. package/references/multi-agent-protocol/docs-site/sdk/api/index.md +62 -0
  122. package/references/multi-agent-protocol/docs-site/sdk/api/server.md +453 -0
  123. package/references/multi-agent-protocol/docs-site/sdk/api/types.md +468 -0
  124. package/references/multi-agent-protocol/docs-site/sdk/guides/agent.md +375 -0
  125. package/references/multi-agent-protocol/docs-site/sdk/guides/authentication.md +405 -0
  126. package/references/multi-agent-protocol/docs-site/sdk/guides/client.md +352 -0
  127. package/references/multi-agent-protocol/docs-site/sdk/guides/index.md +89 -0
  128. package/references/multi-agent-protocol/docs-site/sdk/guides/server.md +360 -0
  129. package/references/multi-agent-protocol/docs-site/sdk/guides/testing.md +446 -0
  130. package/references/multi-agent-protocol/docs-site/sdk/guides/transports.md +363 -0
  131. package/references/multi-agent-protocol/docs-site/sdk/index.md +206 -0
  132. package/references/multi-agent-protocol/package-lock.json +3886 -0
  133. package/references/multi-agent-protocol/package.json +56 -0
  134. package/references/multi-agent-protocol/schema/meta.json +467 -0
  135. package/references/multi-agent-protocol/schema/schema.json +2558 -0
  136. package/src/agent/__tests__/agent-manager.test.ts +67 -1
  137. package/src/agent/agent-manager.ts +10 -4
  138. package/src/cli/__tests__/stable-instance-id.test.ts +57 -0
  139. package/src/cli/acp.ts +17 -2
  140. package/src/map/adapter/index.ts +3 -0
  141. package/src/server/combined-server.ts +10 -0
  142. package/src/store/event-store.ts +10 -3
  143. package/src/store/types/agents.ts +2 -0
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@sudocode-ai/claude-code-acp",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "version": "0.13.8",
7
+ "description": "An ACP-compatible coding agent powered by the Claude Code SDK (TypeScript)",
8
+ "main": "dist/lib.js",
9
+ "types": "dist/lib.d.ts",
10
+ "bin": {
11
+ "claude-code-acp": "./dist/index.js"
12
+ },
13
+ "type": "module",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/lib.d.ts",
17
+ "import": "./dist/lib.js"
18
+ },
19
+ "./*": "./*"
20
+ },
21
+ "files": [
22
+ "dist/",
23
+ "!dist/tests/",
24
+ "README.md",
25
+ "LICENSE",
26
+ "package.json"
27
+ ],
28
+ "scripts": {
29
+ "build": "tsc",
30
+ "start": "node dist/index.js",
31
+ "dev": "npm run build && npm run start",
32
+ "lint": "eslint src --ext .ts",
33
+ "lint:fix": "eslint src --ext .ts --fix",
34
+ "format": "prettier --write .",
35
+ "format:check": "prettier --check .",
36
+ "check": "npm run lint && npm run format:check",
37
+ "sync-upstream": "git fetch upstream && git merge upstream/main",
38
+ "test": "vitest",
39
+ "test:integration": "RUN_INTEGRATION_TESTS=true vitest run",
40
+ "test:run": "vitest run",
41
+ "test:coverage": "vitest run --coverage",
42
+ "prepublishOnly": "npm run build",
43
+ "preversion": "npm run test:run && npm run build",
44
+ "release": "./scripts/release.sh",
45
+ "publish:patch": "npm run test:run && npm run build && npm version patch && npm publish",
46
+ "publish:minor": "npm run test:run && npm run build && npm version minor && npm publish",
47
+ "publish:major": "npm run test:run && npm run build && npm version major && npm publish"
48
+ },
49
+ "keywords": [
50
+ "claude",
51
+ "acp",
52
+ "agent",
53
+ "anthropic",
54
+ "typescript",
55
+ "sdk",
56
+ "code"
57
+ ],
58
+ "homepage": "https://github.com/sudocode-ai/claude-code-acp#readme",
59
+ "bugs": {
60
+ "url": "https://github.com/sudocode-ai/claude-code-acp/issues"
61
+ },
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "git+https://github.com/sudocode-ai/claude-code-acp.git"
65
+ },
66
+ "author": "Sudocode AI",
67
+ "license": "Apache-2.0",
68
+ "dependencies": {
69
+ "@agentclientprotocol/sdk": "0.13.1",
70
+ "@anthropic-ai/claude-agent-sdk": "0.2.22",
71
+ "@modelcontextprotocol/sdk": "1.25.3",
72
+ "diff": "8.0.3",
73
+ "minimatch": "10.1.1"
74
+ },
75
+ "devDependencies": {
76
+ "@anthropic-ai/sdk": "0.71.2",
77
+ "@types/node": "25.0.10",
78
+ "@typescript-eslint/eslint-plugin": "8.54.0",
79
+ "@typescript-eslint/parser": "8.54.0",
80
+ "eslint": "9.39.2",
81
+ "eslint-config-prettier": "10.1.8",
82
+ "globals": "17.2.0",
83
+ "prettier": "3.8.1",
84
+ "ts-node": "10.9.2",
85
+ "typescript": "5.9.3",
86
+ "vitest": "4.0.18"
87
+ }
88
+ }
@@ -0,0 +1,119 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # Colors for output
5
+ RED='\033[0;31m'
6
+ GREEN='\033[0;32m'
7
+ YELLOW='\033[1;33m'
8
+ NC='\033[0m' # No Color
9
+
10
+ echo -e "${GREEN}=== @sudocode-ai/claude-code-acp Release Script ===${NC}\n"
11
+
12
+ # Check if we're on main branch
13
+ BRANCH=$(git branch --show-current)
14
+ if [ "$BRANCH" != "main" ]; then
15
+ echo -e "${YELLOW}Warning: You're on branch '$BRANCH', not 'main'${NC}"
16
+ read -p "Continue anyway? (y/N) " -n 1 -r
17
+ echo
18
+ if [[ ! $REPLY =~ ^[Yy]$ ]]; then
19
+ exit 1
20
+ fi
21
+ fi
22
+
23
+ # Check for uncommitted changes (ignoring untracked files)
24
+ if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
25
+ echo -e "${RED}Error: You have uncommitted changes. Please commit or stash them first.${NC}"
26
+ git status --short --untracked-files=no
27
+ exit 1
28
+ fi
29
+
30
+ # Pull latest changes
31
+ echo -e "${YELLOW}Pulling latest changes...${NC}"
32
+ git pull origin "$BRANCH"
33
+
34
+ # Run tests
35
+ echo -e "${YELLOW}Running tests...${NC}"
36
+ npm run test:run
37
+
38
+ # Build
39
+ echo -e "${YELLOW}Building...${NC}"
40
+ npm run build
41
+
42
+ # Show current version
43
+ CURRENT_VERSION=$(node -p "require('./package.json').version")
44
+ echo -e "\nCurrent version: ${GREEN}$CURRENT_VERSION${NC}"
45
+
46
+ # Ask for version bump type
47
+ echo -e "\nSelect version bump type:"
48
+ echo " 1) patch (bug fixes)"
49
+ echo " 2) minor (new features, backwards compatible)"
50
+ echo " 3) major (breaking changes)"
51
+ echo " 4) custom (enter version manually)"
52
+ echo " 5) cancel"
53
+
54
+ read -p "Choice [1-5]: " -n 1 -r
55
+ echo
56
+
57
+ case $REPLY in
58
+ 1)
59
+ VERSION_TYPE="patch"
60
+ ;;
61
+ 2)
62
+ VERSION_TYPE="minor"
63
+ ;;
64
+ 3)
65
+ VERSION_TYPE="major"
66
+ ;;
67
+ 4)
68
+ read -p "Enter version (e.g., 1.2.3): " CUSTOM_VERSION
69
+ VERSION_TYPE="custom"
70
+ ;;
71
+ 5|*)
72
+ echo "Release cancelled."
73
+ exit 0
74
+ ;;
75
+ esac
76
+
77
+ # Calculate new version
78
+ if [ "$VERSION_TYPE" = "custom" ]; then
79
+ NEW_VERSION="$CUSTOM_VERSION"
80
+ else
81
+ NEW_VERSION=$(npm version "$VERSION_TYPE" --no-git-tag-version | sed 's/v//')
82
+ # Reset the change since npm version will be called again
83
+ git checkout package.json package-lock.json 2>/dev/null || git checkout package.json
84
+ fi
85
+
86
+ echo -e "\nNew version will be: ${GREEN}$NEW_VERSION${NC}"
87
+
88
+ # Confirm release
89
+ echo -e "\n${YELLOW}This will:${NC}"
90
+ echo " 1. Bump version to $NEW_VERSION"
91
+ echo " 2. Create a git commit and tag"
92
+ echo " 3. Push to origin"
93
+ echo " 4. Publish to npm"
94
+
95
+ read -p "Continue with release? (y/N) " -n 1 -r
96
+ echo
97
+ if [[ ! $REPLY =~ ^[Yy]$ ]]; then
98
+ echo "Release cancelled."
99
+ exit 0
100
+ fi
101
+
102
+ # Bump version (this runs build via npm scripts)
103
+ echo -e "\n${YELLOW}Bumping version...${NC}"
104
+ if [ "$VERSION_TYPE" = "custom" ]; then
105
+ npm version "$CUSTOM_VERSION" -m "chore: release v%s"
106
+ else
107
+ npm version "$VERSION_TYPE" -m "chore: release v%s"
108
+ fi
109
+
110
+ # Push to origin
111
+ echo -e "\n${YELLOW}Pushing to origin...${NC}"
112
+ git push origin "$BRANCH" --tags
113
+
114
+ # Publish to npm
115
+ echo -e "\n${YELLOW}Publishing to npm...${NC}"
116
+ npm publish --access public
117
+
118
+ echo -e "\n${GREEN}=== Release v$NEW_VERSION complete! ===${NC}"
119
+ echo -e "View on npm: https://www.npmjs.com/package/@sudocode-ai/claude-code-acp"