@dev-mainsequence/codex-plugin 0.3.0 → 0.7.9
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.
- package/.codex-plugin/plugin.json +6 -5
- package/.mcp.json +17 -0
- package/README.md +49 -11
- package/assets/mainsequence-mark.svg +453 -0
- package/build-info.json +3 -3
- package/dist/hosts/codexPresentation.js +1 -0
- package/dist/hosts/discovery.js +252 -0
- package/dist/hosts/messaging.js +63 -0
- package/dist/hosts/panel/panel.html +265 -0
- package/dist/hosts/workspace.js +107 -0
- package/dist/panel-server.js +223 -0
- package/dist/vendor/devtools/index.js +45 -1
- package/dist/vendor/devtools/package.json +1 -1
- package/dist/vendor/devtools/shared/accountScope.js +19 -0
- package/dist/vendor/devtools/shared/actions.js +44 -7
- package/dist/vendor/devtools/shared/agentAssets.js +38 -0
- package/dist/vendor/devtools/shared/agentDelivery.js +477 -0
- package/dist/vendor/devtools/shared/agentIcon.js +43 -0
- package/dist/vendor/devtools/shared/agents.js +18 -7
- package/dist/vendor/devtools/shared/arguments.js +16 -9
- package/dist/vendor/devtools/shared/deployments.js +214 -0
- package/dist/vendor/devtools/shared/environments.js +38 -0
- package/dist/vendor/devtools/shared/mcp.js +237 -46
- package/dist/vendor/devtools/shared/mcpTransport.js +79 -23
- package/dist/vendor/devtools/shared/organizationProjectWorkspace.js +8 -3
- package/dist/vendor/devtools/shared/organizationProjects.js +2 -13
- package/dist/vendor/devtools/shared/projectTools.js +437 -0
- package/dist/vendor/devtools/shared/repositories.js +2 -2
- package/dist/vendor/devtools/shared/session.js +133 -14
- package/dist/vendor/devtools/shared/sharedTransport.js +506 -0
- package/dist/vendor/devtools/shared/stateDirectory.js +44 -0
- package/dist/vendor/devtools/shared/workingDirectory.js +13 -0
- package/dist/vendor/devtools/shared/workspaceSettings.js +96 -0
- package/docs/agents-tools-panel.md +522 -0
- package/docs/codex-verification.md +37 -0
- package/docs/conversational-mcp.md +16 -3
- package/package.json +9 -5
- package/skills/mainsequence-mcp/SKILL.md +19 -4
- package/skills/ms/assets/mainsequence-mark.svg +453 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mainsequence",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.7.9",
|
|
4
|
+
"description": "Message MainSequence agents in Codex chat, recover saved replies, discover project MCPs and run developer commands using your shared session.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "MainSequence"
|
|
7
7
|
},
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
"hooks": "./hooks/hooks.json",
|
|
10
10
|
"skills": "./skills/",
|
|
11
11
|
"interface": {
|
|
12
|
-
"displayName": "MainSequence
|
|
13
|
-
"shortDescription": "
|
|
12
|
+
"displayName": "MainSequence",
|
|
13
|
+
"shortDescription": "Agents, messages and tools with your shared MainSequence session.",
|
|
14
14
|
"developerName": "MainSequence",
|
|
15
15
|
"category": "Productivity",
|
|
16
16
|
"websiteUrl": "https://www.main-sequence.io/",
|
|
17
17
|
"composerIcon": "./assets/mainsequence-icon.svg",
|
|
18
18
|
"logo": "./assets/mainsequence-icon.svg",
|
|
19
19
|
"logoDark": "./assets/mainsequence-icon.svg"
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"mcpServers": "./.mcp.json"
|
|
21
22
|
}
|
package/.mcp.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"mainsequence": {
|
|
4
|
+
"command": "node",
|
|
5
|
+
"args": [
|
|
6
|
+
"./dist/panel-server.js"
|
|
7
|
+
],
|
|
8
|
+
"cwd": ".",
|
|
9
|
+
"env_vars": [
|
|
10
|
+
"MAINSEQUENCE_ENDPOINT",
|
|
11
|
+
"MAINSEQUENCE_ACCESS_TOKEN",
|
|
12
|
+
"MAINSEQUENCE_REFRESH_TOKEN"
|
|
13
|
+
],
|
|
14
|
+
"tool_timeout_sec": 300
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/README.md
CHANGED
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
# MainSequence for Codex
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
This repository is the **MainSequence Codex plugin**. Its production code lives in
|
|
4
|
+
`src/`, its Codex manifest in `manifests/codex/`, and its installable bundle in `codex/`.
|
|
5
|
+
|
|
6
|
+
The **0.7.1 development build** follows Claude's MainSequence panel layout using
|
|
7
|
+
Codex theme tokens: Home, Code, Projects, Agents, Tools, Activity and Settings.
|
|
8
|
+
It includes repository setup and maintenance, project setup and links, deployment
|
|
9
|
+
history/stages/logs, shared account/settings controls, direct messages and agent tasks.
|
|
10
|
+
Replies and task results use native MCP tools and remain in Codex conversation context.
|
|
11
|
+
|
|
12
|
+
Ask Codex to **open MainSequence**. Shared devtools **0.3.5** owns authentication,
|
|
13
|
+
account binding, domain APIs, local project operations, authenticated assets and durable
|
|
14
|
+
delivery. Claude's repository and dependency remain unchanged. See the
|
|
15
|
+
[capability matrix and verification](docs/agents-tools-panel.md), including the stock
|
|
16
|
+
Codex host differences. No probe or custom Codex build is shipped.
|
|
17
|
+
|
|
18
|
+
Choose **Talk**, select **Message** or **Task** when the agent supports both, write a
|
|
19
|
+
message, then **Send in Codex**. The reply returns through a native
|
|
20
|
+
MCP tool and stays in chat context. After Stop, use **Messages and recovery → Recover in
|
|
21
|
+
Codex** on the original request. Recovery reuses saved work; an unknown remote outcome
|
|
22
|
+
blocks resend. Browsing or selecting an example never sends a message automatically.
|
|
23
|
+
|
|
24
|
+
The plugin also registers the `ms` slash-menu entry for explicit developer commands and
|
|
25
|
+
the `mainsequence-mcp` skill for conversational project MCP access. The independent
|
|
26
|
+
Claude application is unchanged.
|
|
27
|
+
|
|
28
|
+
Version 0.3.1 added saved MCP names (see [the release notes](docs/codex-verification.md)). Version 0.3.0 was the first
|
|
29
|
+
release from this repository. Until devtools 0.2.8 the plugin was built and published from
|
|
12
30
|
[mainsequence-devtools](https://github.com/mainsequence-sdk/mainsequence-devtools) under the
|
|
13
31
|
name `mainsequence-devtools` ([ADR 0003 there](https://github.com/mainsequence-sdk/mainsequence-devtools/blob/main/docs/adr/0003-codex-plugin-extraction.md)).
|
|
14
32
|
The shared implementation is still that package; this repository owns the hook adapter, the
|
|
@@ -84,6 +102,19 @@ metatable-mcp", "Use it to list my tables." See
|
|
|
84
102
|
[conversational project MCP connections](docs/conversational-mcp.md) and
|
|
85
103
|
[ADR 0002](docs/adr/0002-conversational-project-mcp-client.md).
|
|
86
104
|
|
|
105
|
+
Every saved project MCP's tools are also registered directly, as the Claude Desktop
|
|
106
|
+
plugin registers them: `ms_<tool>_<hash>` (for example `ms_crm_contacts_list_…`), each
|
|
107
|
+
with the project's own schema and bound to one saved connection and environment. Codex
|
|
108
|
+
calls them like any other tool, with no `contextId` or environment selection. The list
|
|
109
|
+
comes from devtools' shared project-tool catalog (`project-tool-catalog.json` beside the
|
|
110
|
+
shared CLI state, the same names, schemas and results as the Claude Desktop plugin; devtools
|
|
111
|
+
ADR 0004) and is refreshed in the background; a connection saved in the current chat appears
|
|
112
|
+
in the next chat, and is usable at once through `mainsequence_tools` /
|
|
113
|
+
`mainsequence_call_tool`. A cold project MCP can take over a minute to answer: devtools gives
|
|
114
|
+
project requests 120 s and honours a tool's advertised timeout up to 300 s, and the plugin's
|
|
115
|
+
server allows Codex tool calls 300 seconds (`tool_timeout_sec` in `.mcp.json`) instead of
|
|
116
|
+
the host default of 60.
|
|
117
|
+
|
|
87
118
|
## Architecture and development
|
|
88
119
|
|
|
89
120
|
Shared functionality comes from the exact `@dev-mainsequence/devtools` package API. The
|
|
@@ -109,18 +140,25 @@ results. `tests/dependency-boundary.test.cjs` forbids private devtools imports.
|
|
|
109
140
|
recorded in `package-lock.json`. While that version is not published yet, run
|
|
110
141
|
|
|
111
142
|
```sh
|
|
112
|
-
node scripts/install-devtools.cjs /path/to/dev-mainsequence-devtools-0.3.
|
|
143
|
+
node scripts/install-devtools.cjs /path/to/dev-mainsequence-devtools-0.3.2.tgz
|
|
113
144
|
```
|
|
114
145
|
|
|
115
146
|
with the archive from `npm pack` of the devtools release branch, or without an argument to
|
|
116
147
|
build it from the devtools repository at `DEVTOOLS_SOURCE_REF` (default `v<pinned version>`).
|
|
117
148
|
Either way the archive must match the lockfile integrity, and the registry pin is not
|
|
118
149
|
changed (`scripts/use-local-devtools.cjs`). CI does the same until the version is
|
|
119
|
-
published. After publication, confirm that `npm view @dev-mainsequence/devtools@0.3.
|
|
150
|
+
published. After publication, confirm that `npm view @dev-mainsequence/devtools@0.3.2
|
|
120
151
|
dist.integrity` equals the lockfile entry before tagging a release; if the registry archive
|
|
121
152
|
differs, update the lockfile and rebuild so `build-info.json` records the published
|
|
122
153
|
integrity.
|
|
123
154
|
|
|
155
|
+
For a discovery upgrade, use the exact devtools archive while it is unpublished;
|
|
156
|
+
with build dependencies already installed,
|
|
157
|
+
`node scripts/use-local-devtools.cjs /path/to/dev-mainsequence-devtools-0.3.2.tgz` verifies
|
|
158
|
+
its integrity and stages it without changing the registry pin. Publish devtools first,
|
|
159
|
+
verify its registry integrity, then release the Codex plugin. No desktop activation
|
|
160
|
+
or authenticated live-service acceptance is implied by a successful local build.
|
|
161
|
+
|
|
124
162
|
### Verification and release
|
|
125
163
|
|
|
126
164
|
```sh
|