Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .agents/checks/privacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This repository is public, and the npm package ships `dist/` (including the `./t
- A secret, API key, token or password, even an expired one.
- Real user data in fixtures, tests or docs: real names, emails, account IDs or URLs copied from an account.
- Personal identifiers in docs and examples: real emails, usernames, home-directory paths, local repository names. Use placeholders (`alice@example.com`, `~/code`).
- Internal details: private hostnames, internal URLs, Doist-internal tools or documents.
- Internal details: private hostnames, internal URLs, Todoist-internal tools or documents.
- A new path in `package.json#files`, or a file under `templates/`, that should not be published.
- Untracked files the change doesn't need (`.env`, logs, `.tmp/`).

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/review-changes/references/reviewer-brief.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Fill in the brackets. Give every reviewer the same brief, plus its role. Leave out your opinion of the change and how you reached it: a reviewer handed a conclusion tends to confirm it.

```
Repository: Doist/cli-core, shared building blocks for the Doist CLIs (TypeScript, Vitest).
Repository: todoist/cli-core, shared building blocks for the Doist CLIs (TypeScript, Vitest).
The change: `git diff <base>` in <checkout path>, plus the untracked files
`git ls-files --others --exclude-standard` lists there.

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
- name: Add issue to project
uses: actions/add-to-project@27022a19346d0433f2b9859dd2b69d38f4277808
with:
project-url: https://github.com/orgs/Doist/projects/83
project-url: https://github.com/orgs/todoist/projects/83
github-token: ${{ secrets.HERO_BOARD_PAT }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @doist/cli-core

Shared core utilities for Doist CLI projects ([todoist-cli](https://github.com/Doist/todoist-cli), [twist-cli](https://github.com/Doist/twist-cli), [outline-cli](https://github.com/Doist/outline-cli), [comms-cli](https://github.com/Doist/comms-cli)).
Shared core utilities for Doist CLI projects ([todoist-cli](https://github.com/todoist/todoist-cli), [twist-cli](https://github.com/todoist/twist-cli), [outline-cli](https://github.com/todoist/outline-cli), [comms-cli](https://github.com/todoist/comms-cli)).

TypeScript, ESM-only, Node ≥ 24, npm ≥ 11.

Expand Down Expand Up @@ -161,7 +161,7 @@ import packageJson from '../package.json' with { type: 'json' }

registerChangelogCommand(program, {
path: join(dirname(fileURLToPath(import.meta.url)), '..', '..', 'CHANGELOG.md'),
repoUrl: 'https://github.com/Doist/todoist-cli',
repoUrl: 'https://github.com/todoist/todoist-cli',
version: packageJson.version,
})
```
Expand Down Expand Up @@ -245,7 +245,7 @@ function buildExtensionManager(program: Command) {
configDir: dirname(getConfigPath(APP_NAME)),
hostPath: realpathSync(process.argv[1] ?? ''),
reservedNames: () => reserved,
officialSource: { host: 'github.com', owner: 'Doist' },
officialSource: { host: 'github.com', owner: 'todoist' },
officialLabel: 'Todoist',
// Kept away from npm lifecycle scripts when an extension's
// dependencies are installed, on top of GH_TOKEN and GITHUB_TOKEN.
Expand Down
2 changes: 1 addition & 1 deletion docs/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ When you say a change is ready, the agent runs `review-changes`:

Findings are fixed, dismissed with evidence (a line or a test run, never an argument), or left open for you. Reviewers that need to run code get their own worktree from `npm run review:worktree -- <dir>`; the shared one stays read-only.

The checks cover tests, architecture, security, privacy, the public API and evidence. The public API check holds what the CLIs rely on: export names, signatures, error codes, peer dependencies, the Node engine, and what extensions receive. Two kinds Doist uses elsewhere don't apply here: there are no translations and no database migrations.
The checks cover tests, architecture, security, privacy, the public API and evidence. The public API check holds what the CLIs rely on: export names, signatures, error codes, peer dependencies, the Node engine, and what extensions receive. Two kinds Todoist uses elsewhere don't apply here: there are no translations and no database migrations.

A review costs several agent runs, so it runs when you ask, not on every change. A Doistbot run with a failed provider (`providerFailures`) is partial; the agent should say so.

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/Doist/cli-core.git"
"url": "git+https://github.com/todoist/cli-core.git"
},
"homepage": "https://github.com/Doist/cli-core#readme",
"homepage": "https://github.com/todoist/cli-core#readme",
"bugs": {
"url": "https://github.com/Doist/cli-core/issues"
"url": "https://github.com/todoist/cli-core/issues"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>doist/renovate-config:frontend-base"],
"extends": ["github>todoist/renovate-config:frontend-base"],
"packageRules": [
{
"matchPackageNames": ["oxlint", "oxfmt"],
Expand Down
4 changes: 2 additions & 2 deletions src/auth/providers/dcr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('createDcrProvider', () => {
tokenUrl: TOKEN_URL,
clientMetadata: {
clientName: 'Twist CLI',
clientUri: 'https://github.com/doist/twist-cli',
clientUri: 'https://github.com/todoist/twist-cli',
logoUri: 'https://example.com/logo.png',
applicationType: 'native',
},
Expand All @@ -71,7 +71,7 @@ describe('createDcrProvider', () => {
const regBody = JSON.parse(calls[0].init.body as string) as Record<string, unknown>
expect(regBody).toMatchObject({
client_name: 'Twist CLI',
client_uri: 'https://github.com/doist/twist-cli',
client_uri: 'https://github.com/todoist/twist-cli',
logo_uri: 'https://example.com/logo.png',
application_type: 'native',
redirect_uris: [REDIRECT_URI],
Expand Down
18 changes: 9 additions & 9 deletions src/commands/changelog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,37 @@ const FIXTURE = `# Changelog

All notable changes to this project will be documented in this file.

## [1.2.0](https://github.com/Doist/x/compare/v1.1.0...v1.2.0) (2025-01-02)
## [1.2.0](https://github.com/todoist/x/compare/v1.1.0...v1.2.0) (2025-01-02)

### Features

* add cool feature ([abc1234](https://github.com/Doist/x/commit/abc1234))
* add cool feature ([abc1234](https://github.com/todoist/x/commit/abc1234))
* **task:** another thing

### Bug Fixes

* fix wobble [#42](https://github.com/Doist/x/issues/42)
* fix wobble [#42](https://github.com/todoist/x/issues/42)

## [1.1.0](https://github.com/Doist/x/compare/v1.0.0...v1.1.0) (2025-01-01)
## [1.1.0](https://github.com/todoist/x/compare/v1.0.0...v1.1.0) (2025-01-01)

### Features

* **deps:** bump foo from 1 to 2

## [1.0.0](https://github.com/Doist/x/releases/tag/v1.0.0) (2024-12-31)
## [1.0.0](https://github.com/todoist/x/releases/tag/v1.0.0) (2024-12-31)

### Features

* initial release
`

const FIXTURE_FLEX = `# [2.0.0](https://github.com/Doist/x/compare/v1.0.0...v2.0.0) (2025-02-01)
const FIXTURE_FLEX = `# [2.0.0](https://github.com/todoist/x/compare/v1.0.0...v2.0.0) (2025-02-01)

### Features

* breaking change

## [1.0.0](https://github.com/Doist/x/releases/tag/v1.0.0) (2024-12-31)
## [1.0.0](https://github.com/todoist/x/releases/tag/v1.0.0) (2024-12-31)

### Features

Expand All @@ -58,7 +58,7 @@ const FIXTURE_FLEX = `# [2.0.0](https://github.com/Doist/x/compare/v1.0.0...v2.0

const REQUIRED = {
path: '/fake/CHANGELOG.md',
repoUrl: 'https://github.com/Doist/x',
repoUrl: 'https://github.com/todoist/x',
version: '1.2.0',
}

Expand Down Expand Up @@ -207,7 +207,7 @@ describe('registerChangelogCommand', () => {
expect(all).toContain('1.2.0')
expect(all).toContain('Features')
expect(all).toContain(
'View full changelog: https://github.com/Doist/x/blob/v1.2.0/CHANGELOG.md',
'View full changelog: https://github.com/todoist/x/blob/v1.2.0/CHANGELOG.md',
)
logSpy.mockRestore()
})
Expand Down
2 changes: 1 addition & 1 deletion src/commands/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function parseChangelog(
*
* registerChangelogCommand(program, {
* path: join(dirname(fileURLToPath(import.meta.url)), '..', '..', 'CHANGELOG.md'),
* repoUrl: 'https://github.com/Doist/todoist-cli',
* repoUrl: 'https://github.com/todoist/todoist-cli',
* version: packageJson.version,
* })
* ```
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function authoredManifestFileName(binName: string): string {
}

/**
* Accepts `goals`, `td-goals` or `Doist/td-goals` and returns the command
* Accepts `goals`, `td-goals` or `todoist/td-goals` and returns the command
* name. Used by `remove`, `upgrade` and `exec`, which all take a loose ref.
*/
export function normalizeSelector(binName: string, selector: string): string {
Expand Down
Loading