Repository navigation
Conversation
… an agent @constructive-io/cli 9.0.0 rebuilds the constructive (and cnc) CLI on @agentic-kit/command, @agentic-kit/session, @agentic-kit/db-tools and @agentic-kit/mcp: - Sign-in and backends: login, logout, whoami and status, and context list, add, use and remove, on the session store that the agent CLI and the desktop app share. - Agents: agent list, add, renew, grant, revoke and remove. A command acts as the person unless it says --as <name>. - The database of the directory: db list, use, status, create, recreate and codegen. db create and db use write the binding to .env. - The schema and its rules: schema show; table add and delete; field add, update, retype and delete; relation add; blueprint apply; access types, explain, set and add; entity-type list, create and delete; template list, create, apply, update and delete. table add needs at least one --rule. - The API: api query, api mutate, api search and api describe, on a plane of the backend. - mcp serves the database tools on stdio: the read tools only, unless --write is given or the agent named by --as may change the schema and --read-only is not given. setup agent sets a project up for an agent host: an agent of the person, its name in the project binding, and the host's MCP entry with --read-only. Once the agent may change the schema (agent grant), only Claude Code's entry drops --read-only, because Claude Code asks the person before each write; the Codex and Cursor entries keep it, and the plan says how to take it out by hand. - An agent's key lasts 30 days. The CLI uses it to get a short-lived token and reuses that token until it ends. Whoever holds the key can act as the agent until the key ends, is renewed, or agent remove deletes the agent. - server, explorer and codegen keep their own flags. - Without a terminal, each next step of login and of the agent commands that needs a password carries --password-stdin. help prints the CLI's help, a command's help, or one of seven topics (environment, exit-codes, output, approval, agents, rules, files). The build renders the reference to man/constructive.1 (and cnc.1) with remark-man, and the package's man field installs them, so man constructive works after npm i -g. Every change has a plan, which --dry-run shows and --yes approves. Every command has --schema, and --llms prints the command index. A test builds the public surfaces (the manifest, the index, every --help and --schema, the MCP instructions and tools, and all the text of the files npm packs for the CLI, the agent CLI and their packages) and fails on internal details. BREAKING CHANGE: the 8.x commands are replaced. context create <name> --endpoint <url> is context add <api-endpoint> --name <name>, or login --api-endpoint <url>; context current is context list or status; context delete is context remove; auth set-token is login (email and password), or CONSTRUCTIVE_USER_ID, CONSTRUCTIVE_ACCESS_TOKEN and CONSTRUCTIVE_API_ENDPOINT for CI; auth status is whoami or status; auth logout is logout; execute --query or --file is api query or api mutate. Contexts and tokens stored under ~/.cnc are not read or migrated: add each backend again with context add or login --api-endpoint. login makes an API key that lasts 30 days; sign in again before it ends. After agent grant, setup agent gives write tools only to Claude Code; the Codex and Cursor entries keep --read-only. An agent's key lasts 30 days, and the backend accepts it as the agent on any request until it ends, is renewed or the agent is removed, so keep it in the 0600 store.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the implementation of constructive-io/constructive-planning#2588. Stack 3 of 3, on the agent kit PR.
After dev-utils publishes:
inquirerer^4.10.0and@inquirerer/utils^3.4.0inpackages/cli, and a new lockfile.@constructive-io/cli 9.0.0 rebuilds the constructive (and cnc) CLI on
@agentic-kit/command, @agentic-kit/session, @agentic-kit/db-tools and
@agentic-kit/mcp:
list, add, use and remove, on the session store that the agent CLI and
the desktop app share.
as the person unless it says --as .
and codegen. db create and db use write the binding to .env.
update, retype and delete; relation add; blueprint apply; access types,
explain, set and add; entity-type list, create and delete; template
list, create, apply, update and delete. table add needs at least one
--rule.
of the backend.
--write is given or the agent named by --as may change the schema and
--read-only is not given. setup agent sets a project up for an agent
host: an agent of the person, its name in the project binding, and the
host's MCP entry with --read-only. Once the agent may change the schema
(agent grant), only Claude Code's entry drops --read-only, because
Claude Code asks the person before each write; the Codex and Cursor
entries keep it, and the plan says how to take it out by hand.
token and reuses that token until it ends. Whoever holds the key can
act as the agent until the key ends, is renewed, or agent remove
deletes the agent.
that needs a password carries --password-stdin.
help prints the CLI's help, a command's help, or one of seven topics
(environment, exit-codes, output, approval, agents, rules, files). The
build renders the reference to man/constructive.1 (and cnc.1) with
remark-man, and the package's man field installs them, so man
constructive works after npm i -g.
Every change has a plan, which --dry-run shows and --yes approves. Every
command has --schema, and --llms prints the command index. A test builds
the public surfaces (the manifest, the index, every --help and --schema,
the MCP instructions and tools, and all the text of the files npm packs
for the CLI, the agent CLI and their packages) and fails on internal
details.
BREAKING CHANGE: the 8.x commands are replaced. context create
--endpoint is context add --name , or login
--api-endpoint ; context current is context list or status; context
delete is context remove; auth set-token is login (email and password),
or CONSTRUCTIVE_USER_ID, CONSTRUCTIVE_ACCESS_TOKEN and
CONSTRUCTIVE_API_ENDPOINT for CI; auth status is whoami or status; auth
logout is logout; execute --query or --file is api query or api mutate.
Contexts and tokens stored under ~/.cnc are not read or migrated: add
each backend again with context add or login --api-endpoint. login makes
an API key that lasts 30 days; sign in again before it ends. After agent
grant, setup agent gives write tools only to Claude Code; the Codex and
Cursor entries keep --read-only. An agent's key lasts 30 days, and the
backend accepts it as the agent on any request until it ends, is renewed
or the agent is removed, so keep it in the 0600 store.