|
@@ -255,15 +255,15 @@ const EXACT_EDITS: readonly ExactEdit[] = [
|
|
|
// A plain fence listing the bundle's mounted tree: a bare token, no quotes.
|
|
// A plain fence listing the bundle's mounted tree: a bare token, no quotes.
|
|
|
id: 'agent-spine-demo-mounted-tree',
|
|
id: 'agent-spine-demo-mounted-tree',
|
|
|
file: 'packages/examples/agent-spine-demo/README.md',
|
|
file: 'packages/examples/agent-spine-demo/README.md',
|
|
|
- find: '@cordisjs/plugin-timer timer service (writes nothing to stdout)',
|
|
|
|
|
- replace: '@deepseek-ai/cordis-plugin-timer timer service (writes nothing to stdout)',
|
|
|
|
|
|
|
+ find: '@cordisjs/plugin-timer timer service',
|
|
|
|
|
+ replace: '@deepseek-ai/cordis-plugin-timer timer service',
|
|
|
expect: 1,
|
|
expect: 1,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 'agent-spine-demo-mounted-tree-zh',
|
|
id: 'agent-spine-demo-mounted-tree-zh',
|
|
|
file: 'packages/examples/agent-spine-demo/README.zh.md',
|
|
file: 'packages/examples/agent-spine-demo/README.zh.md',
|
|
|
- find: '@cordisjs/plugin-timer timer service (writes nothing to stdout)',
|
|
|
|
|
- replace: '@deepseek-ai/cordis-plugin-timer timer service (writes nothing to stdout)',
|
|
|
|
|
|
|
+ find: '@cordisjs/plugin-timer timer service',
|
|
|
|
|
+ replace: '@deepseek-ai/cordis-plugin-timer timer service',
|
|
|
expect: 1,
|
|
expect: 1,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -302,34 +302,34 @@ const VENDORED_LIBRARY = /^@deepseek-ai\\/(cosmokit|schemastery)(\\/|$)/
|
|
|
expect: 1,
|
|
expect: 1,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- // The step-1 file tree must rescope the package name while preserving the
|
|
|
|
|
- // current publishable-vendor guidance around it.
|
|
|
|
|
|
|
+ // The step-1 file tree told the reader to keep the upstream name, one
|
|
|
|
|
+ // paragraph above the invariant that says to rescope it.
|
|
|
id: 'vendoring-cookbook-tree-comment',
|
|
id: 'vendoring-cookbook-tree-comment',
|
|
|
file: 'docs/cookbook/adding-a-vendored-package.md',
|
|
file: 'docs/cookbook/adding-a-vendored-package.md',
|
|
|
- find: ' package.json # from upstream; keep name/exports/type (publishable release member, no private flag)',
|
|
|
|
|
- replace: ' package.json # from upstream; rescope the name, keep exports/type (publishable release member, no private flag)',
|
|
|
|
|
|
|
+ find: ' package.json # from upstream; set "private": true, keep name/exports/type',
|
|
|
|
|
+ replace: ' package.json # from upstream; set "private": true, rescope the name, keep exports/type',
|
|
|
expect: 1,
|
|
expect: 1,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 'vendoring-cookbook-tree-comment-zh',
|
|
id: 'vendoring-cookbook-tree-comment-zh',
|
|
|
file: 'docs/cookbook/adding-a-vendored-package.zh.md',
|
|
file: 'docs/cookbook/adding-a-vendored-package.zh.md',
|
|
|
- find: ' package.json # from upstream; keep name/exports/type (publishable release member, no private flag)',
|
|
|
|
|
- replace: ' package.json # from upstream; rescope the name, keep exports/type (publishable release member, no private flag)',
|
|
|
|
|
|
|
+ find: ' package.json # from upstream; set "private": true, keep name/exports/type',
|
|
|
|
|
+ replace: ' package.json # from upstream; set "private": true, rescope the name, keep exports/type',
|
|
|
expect: 1,
|
|
expect: 1,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// The checklist told the next vendoring to keep upstream's name.
|
|
// The checklist told the next vendoring to keep upstream's name.
|
|
|
id: 'vendoring-cookbook-name-invariant',
|
|
id: 'vendoring-cookbook-name-invariant',
|
|
|
file: 'docs/cookbook/adding-a-vendored-package.md',
|
|
file: 'docs/cookbook/adding-a-vendored-package.md',
|
|
|
- find: "keep upstream's `name`/`exports`/`type`",
|
|
|
|
|
- replace: "rescope the `name` ([mapping](../rescope.md)) while keeping upstream's `exports`/`type`",
|
|
|
|
|
|
|
+ find: "keep upstream's `name`/`version`/`exports`/`type`",
|
|
|
|
|
+ replace: "rescope the `name` ([mapping](../rescope.md)) while keeping upstream's `version`/`exports`/`type`",
|
|
|
expect: 1,
|
|
expect: 1,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 'vendoring-cookbook-name-invariant-zh',
|
|
id: 'vendoring-cookbook-name-invariant-zh',
|
|
|
file: 'docs/cookbook/adding-a-vendored-package.zh.md',
|
|
file: 'docs/cookbook/adding-a-vendored-package.zh.md',
|
|
|
- find: '保留上游的 `name`/`exports`/`type`',
|
|
|
|
|
- replace: '改写 `name` 的 scope([映射](../rescope.zh.md)),保留上游的 `exports`/`type`',
|
|
|
|
|
|
|
+ find: '保留上游的 `name`/`version`/`exports`/`type`',
|
|
|
|
|
+ replace: '改写 `name` 的 scope([映射](../rescope.zh.md)),保留上游的 `version`/`exports`/`type`',
|
|
|
expect: 1,
|
|
expect: 1,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|