cordisx 0.1.0-beta.13 → 0.1.0-beta.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.
- package/dist/skills/cordisx/SKILL.md +74 -0
- package/dist/skills/cordisx/agents/openai.yaml +4 -0
- package/dist/skills/cordisx/version.json +4 -0
- package/dist/skills/cordisx-docs/SKILL.md +41 -0
- package/dist/skills/cordisx-docs/agents/openai.yaml +4 -0
- package/dist/skills/cordisx-docs/upstream.json +10 -0
- package/dist/skills/cordisx-docs/version.json +4 -0
- package/dist/skills/cordisx-plugin-development/SKILL.md +15 -9
- package/dist/skills/cordisx-plugin-development/agents/openai.yaml +1 -1
- package/dist/skills/cordisx-plugin-development/references/live-plugin-development.md +16 -13
- package/dist/skills/cordisx-plugin-development/references/plugin-authoring.md +3 -3
- package/dist/skills/cordisx-plugin-development/references/verification.md +6 -5
- package/dist/skills/cordisx-plugin-development/version.json +1 -1
- package/dist/skills/cordisx-qa/SKILL.md +83 -0
- package/dist/skills/cordisx-qa/agents/openai.yaml +4 -0
- package/dist/skills/cordisx-qa/version.json +4 -0
- package/dist/src/cli/run-command-dispatch.d.ts.map +1 -1
- package/dist/src/cli/run-command-dispatch.js +1 -0
- package/dist/src/cli/run-command-dispatch.js.map +1 -1
- package/dist/src/cli/run-command.d.ts.map +1 -1
- package/dist/src/cli/run-command.js +24 -12
- package/dist/src/cli/run-command.js.map +1 -1
- package/dist/src/cli/run-support.d.ts +4 -1
- package/dist/src/cli/run-support.d.ts.map +1 -1
- package/dist/src/cli/run-support.js +18 -3
- package/dist/src/cli/run-support.js.map +1 -1
- package/dist/src/current-user-native-account.d.ts +1 -1
- package/dist/src/current-user-native-account.d.ts.map +1 -1
- package/dist/src/current-user-native-account.js +3 -5
- package/dist/src/current-user-native-account.js.map +1 -1
- package/dist/src/launcher/builtin-skill.d.ts +18 -0
- package/dist/src/launcher/builtin-skill.d.ts.map +1 -1
- package/dist/src/launcher/builtin-skill.js +76 -36
- package/dist/src/launcher/builtin-skill.js.map +1 -1
- package/dist/src/launcher/cdp-installation.d.ts.map +1 -1
- package/dist/src/launcher/cdp-installation.js +1 -1
- package/dist/src/launcher/cdp-installation.js.map +1 -1
- package/dist/src/launcher/native-account-structure.d.ts +5 -0
- package/dist/src/launcher/native-account-structure.d.ts.map +1 -0
- package/dist/src/launcher/native-account-structure.js +35 -0
- package/dist/src/launcher/native-account-structure.js.map +1 -0
- package/dist/src/launcher/native-app-resources.d.ts +4 -0
- package/dist/src/launcher/native-app-resources.d.ts.map +1 -0
- package/dist/src/launcher/native-app-resources.js +18 -0
- package/dist/src/launcher/native-app-resources.js.map +1 -0
- package/dist/src/launcher/native-source-structure.d.ts +19 -0
- package/dist/src/launcher/native-source-structure.d.ts.map +1 -0
- package/dist/src/launcher/native-source-structure.js +51 -0
- package/dist/src/launcher/native-source-structure.js.map +1 -0
- package/dist/src/launcher/native-submission-composition.d.ts +4 -1
- package/dist/src/launcher/native-submission-composition.d.ts.map +1 -1
- package/dist/src/launcher/native-submission-composition.js +22 -34
- package/dist/src/launcher/native-submission-composition.js.map +1 -1
- package/dist/src/launcher/native-submission-legacy-resources.d.ts +5 -0
- package/dist/src/launcher/native-submission-legacy-resources.d.ts.map +1 -0
- package/dist/src/launcher/native-submission-legacy-resources.js +18 -0
- package/dist/src/launcher/native-submission-legacy-resources.js.map +1 -0
- package/dist/src/launcher/native-submission-structure.d.ts +8 -0
- package/dist/src/launcher/native-submission-structure.d.ts.map +1 -0
- package/dist/src/launcher/native-submission-structure.js +293 -0
- package/dist/src/launcher/native-submission-structure.js.map +1 -0
- package/dist/src/launcher/plugin-http-native-account-diagnostics.d.ts +1 -1
- package/dist/src/launcher/plugin-http-native-account-diagnostics.d.ts.map +1 -1
- package/dist/src/launcher/plugin-http-native-account-diagnostics.js +1 -0
- package/dist/src/launcher/plugin-http-native-account-diagnostics.js.map +1 -1
- package/dist/src/launcher/plugin-http-native-account.d.ts +3 -1
- package/dist/src/launcher/plugin-http-native-account.d.ts.map +1 -1
- package/dist/src/launcher/plugin-http-native-account.js +9 -9
- package/dist/src/launcher/plugin-http-native-account.js.map +1 -1
- package/dist/src/native-account-capability.d.ts +16 -0
- package/dist/src/native-account-capability.d.ts.map +1 -0
- package/dist/src/native-account-capability.js +47 -0
- package/dist/src/native-account-capability.js.map +1 -0
- package/dist/src/renderer/current-user/native.d.ts.map +1 -1
- package/dist/src/renderer/current-user/native.js +1 -1
- package/dist/src/renderer/current-user/native.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cordisx
|
|
3
|
+
description: Route and complete CordisX user requests from one goal-oriented entry point. Use for installation, startup, configuration, Marketplace sources, installing or managing plugins, current CordisX documentation, experience-based Q&A, and creating, updating, debugging, or verifying a CordisX plugin. Select the relevant bundled guidance without asking the user to choose a lower-level Skill.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# CordisX
|
|
7
|
+
|
|
8
|
+
Start from the user's goal. Route to the smallest relevant bundled Skill, then
|
|
9
|
+
complete the work in the current task. Do not expose Skill selection as a
|
|
10
|
+
prerequisite or create another task merely to invoke a specialist.
|
|
11
|
+
|
|
12
|
+
The bundled revision and owning source for this entry are recorded in
|
|
13
|
+
[version.json](version.json).
|
|
14
|
+
|
|
15
|
+
## Choose guidance
|
|
16
|
+
|
|
17
|
+
- For installation, startup, configuration, Marketplace sources, installed
|
|
18
|
+
plugin management, current or version-specific behavior, commands,
|
|
19
|
+
compatibility, architecture, or public contracts, read
|
|
20
|
+
[cordisx-docs](../cordisx-docs/SKILL.md).
|
|
21
|
+
- For practical experience, known pitfalls, contextual tradeoffs, and
|
|
22
|
+
evidence-backed workarounds, read
|
|
23
|
+
[cordisx-qa](../cordisx-qa/SKILL.md).
|
|
24
|
+
- For plugin feasibility, creation, implementation, debugging, packaging, or
|
|
25
|
+
verification, read
|
|
26
|
+
[cordisx-plugin-development](../cordisx-plugin-development/SKILL.md).
|
|
27
|
+
- For a mixed request, use each relevant guide in dependency order. Resolve
|
|
28
|
+
product facts before applying experience or changing plugin code.
|
|
29
|
+
|
|
30
|
+
If a referenced bundled Skill is unavailable, say which guidance is missing
|
|
31
|
+
and use the owning public documentation when it is accessible. Do not pretend
|
|
32
|
+
that every third-party Skill picker hides or automatically selects these
|
|
33
|
+
entries; this routing behavior applies when the `cordisx` entry is invoked.
|
|
34
|
+
Keep the sibling Skills normally discoverable and do not disable implicit Skill
|
|
35
|
+
selection.
|
|
36
|
+
|
|
37
|
+
## Preserve source roles
|
|
38
|
+
|
|
39
|
+
- Treat versioned documentation and public contracts as authority for product
|
|
40
|
+
behavior. Do not turn a workaround or one user's observation into a product
|
|
41
|
+
guarantee.
|
|
42
|
+
- Treat Q&A as contextual experience. State its applicability and evidence,
|
|
43
|
+
and link the governing documentation when a rule has become normative.
|
|
44
|
+
- Keep repository contribution conventions separate from plugin admission.
|
|
45
|
+
A third-party plugin may use a legal unscoped package name or the publisher's
|
|
46
|
+
own scope; CordisX repository branches, scopes, approvals, and release steps
|
|
47
|
+
apply only when that repository actually owns the work.
|
|
48
|
+
- Treat the user's requested goal as authorization for its normal necessary
|
|
49
|
+
steps within the active tool, repository, and Host boundaries; do not ask for
|
|
50
|
+
confirmation again at every reversible step. Do not infer unrelated grants
|
|
51
|
+
or extend the request to an App launch, upload, publication, or release.
|
|
52
|
+
|
|
53
|
+
## Answer and act
|
|
54
|
+
|
|
55
|
+
For an informational request, remain read-only unless the user asks for a
|
|
56
|
+
change. For an installation, startup, configuration, source, or plugin-management
|
|
57
|
+
request, follow the version-compatible Docs instructions and perform the normal
|
|
58
|
+
steps covered by the request. Reuse available context and authorization instead
|
|
59
|
+
of asking the user to repeat setup details or approve each routine step.
|
|
60
|
+
|
|
61
|
+
For implementation, make the smallest supported change and select evidence
|
|
62
|
+
that matches the claim. Do not launch a native App merely because CordisX is
|
|
63
|
+
involved; native evidence is needed only for behavior that depends on the real
|
|
64
|
+
native Host path and when launching it is authorized.
|
|
65
|
+
|
|
66
|
+
Report state precisely. Keep these terms distinct:
|
|
67
|
+
|
|
68
|
+
- **implemented**: the source change exists;
|
|
69
|
+
- **tested**: named checks passed for the stated scope;
|
|
70
|
+
- **merged**: the owning repository accepted the change;
|
|
71
|
+
- **published**: a release artifact is available from its distribution source;
|
|
72
|
+
- **installed**: the relevant environment contains that artifact.
|
|
73
|
+
|
|
74
|
+
Do not imply a later state from an earlier one.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "CordisX"
|
|
3
|
+
short_description: "Route and complete CordisX requests from one entry"
|
|
4
|
+
default_prompt: "Use $cordisx to understand my CordisX goal, select the relevant bundled guidance, and complete the request without asking me to choose a lower-level Skill."
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cordisx-docs
|
|
3
|
+
description: Find standard CordisX documentation for usage, configuration, supported capabilities, and versioned plugin contracts. Use when a CordisX answer or action needs an authoritative reference; practical experience belongs to cordisx-qa.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# CordisX Documentation
|
|
7
|
+
|
|
8
|
+
Read the [task index](https://raw.githubusercontent.com/cordisx/docs/main/skills/index.md)
|
|
9
|
+
and follow only the route relevant to the user's request. Fetch the linked owner
|
|
10
|
+
document rather than answering product commands from memory or downloading the
|
|
11
|
+
whole documentation set.
|
|
12
|
+
|
|
13
|
+
- For adoption, follow the Host entry and preserve existing setup. Do not run
|
|
14
|
+
installation merely because the user asks a question.
|
|
15
|
+
- For an existing plugin, use the Marketplace and the user's selected source.
|
|
16
|
+
Read that plugin's own guide for service configuration and login.
|
|
17
|
+
- For practical questions, workarounds, or lessons from earlier use, consult
|
|
18
|
+
`cordisx-qa` when available. Use the owner documentation to check any product
|
|
19
|
+
claims; a reported experience does not redefine the contract.
|
|
20
|
+
- For plugin implementation, use `cordisx-plugin-development` when available;
|
|
21
|
+
this Skill supplies references, not a duplicate development workflow.
|
|
22
|
+
- If the user provides a private entry, read it only in the authorized context.
|
|
23
|
+
Keep private URLs, source metadata, and credentials out of public files.
|
|
24
|
+
|
|
25
|
+
Read product guides, not repository maintenance rules, for end-user tasks.
|
|
26
|
+
Distinguish required compatibility and runtime constraints from optional advice
|
|
27
|
+
and first-party conventions. Do not require third-party developers to adopt
|
|
28
|
+
CordisX's organization scope, repository layout, approval process, or release
|
|
29
|
+
workflow. Consult contribution rules only when the user is contributing to that
|
|
30
|
+
specific repository. If a companion Skill is unavailable, follow the relevant
|
|
31
|
+
owner guide directly; do not make installing another Skill a prerequisite.
|
|
32
|
+
|
|
33
|
+
Resolve relative links against the containing document's URL. A prerequisite
|
|
34
|
+
already completed need not be performed again. An inaccessible link is a missing
|
|
35
|
+
reference, not permission to guess endpoints or commands. Documentation on `main`
|
|
36
|
+
may be newer than the installed CLI; check help and the installed release tag
|
|
37
|
+
before applying version-sensitive instructions.
|
|
38
|
+
|
|
39
|
+
Distinguish installation, running Host, plugin activation, permission state, and
|
|
40
|
+
provider-account login. Documentation discovery does not authorize additional
|
|
41
|
+
effects. Cite the source used and report what was actually verified.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repository": "https://github.com/cordisx/docs",
|
|
3
|
+
"commit": "4841581393a702e13fecd9d9993d0c082b608fc0",
|
|
4
|
+
"path": "skills/cordisx-docs",
|
|
5
|
+
"files": {
|
|
6
|
+
"SKILL.md": "sha256:fc6ce59c4fb97ef4fa13f66ab1f3cd423bf827dc57080cfc37db19ab4bc2ab10",
|
|
7
|
+
"agents/openai.yaml": "sha256:bf1757305e80c3b91bdee0795d1410c321b88bba31517f28a115a1f46f3bfce6",
|
|
8
|
+
"version.json": "sha256:6580bc014f8e4e5083a2f616d744bd20035fe3819f5fbadeb05c9ec3010aba52"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -7,6 +7,11 @@ description: Assess the feasibility of a requested CordisX customization, then c
|
|
|
7
7
|
|
|
8
8
|
Build plugins against the public CordisX contract. Keep the Host responsible for shared UI and runtime policy; keep business behavior and visual design in the owning plugin. Bundled revision and owning source are recorded in [version.json](version.json); the launching CLI deploys this complete tree by content digest.
|
|
9
9
|
|
|
10
|
+
For current product facts and version compatibility, read
|
|
11
|
+
[cordisx-docs](../cordisx-docs/SKILL.md). For evidence-backed user experience,
|
|
12
|
+
known pitfalls, or recording a Q&A entry, read
|
|
13
|
+
[cordisx-qa](../cordisx-qa/SKILL.md). Do not copy either source into this Skill.
|
|
14
|
+
|
|
10
15
|
## Read the relevant references
|
|
11
16
|
|
|
12
17
|
- Assess any requested product behavior before scaffolding or editing: [feasibility-assessment.md](references/feasibility-assessment.md)
|
|
@@ -18,12 +23,13 @@ Build plugins against the public CordisX contract. Keep the Host responsible for
|
|
|
18
23
|
- Run or deliver the result: [verification.md](references/verification.md)
|
|
19
24
|
- Continue work inside an already-running development session: [live-plugin-development.md](references/live-plugin-development.md)
|
|
20
25
|
|
|
21
|
-
## Native plugin debugging
|
|
26
|
+
## Native plugin debugging boundary
|
|
22
27
|
|
|
23
|
-
When
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
and
|
|
28
|
+
When a claim requires the CordisX-launched native Host, use the active
|
|
29
|
+
environment's authorized CordisX development launch, Host injection, logs,
|
|
30
|
+
permission diagnostics, and debugging mechanisms. Tool availability is not
|
|
31
|
+
authorization: respect explicit user, Host, and tool restrictions, and never
|
|
32
|
+
use another access path to bypass a denial. Read
|
|
27
33
|
[the debugging workflow and permission boundary](references/live-plugin-development.md#choose-debugging-tools-before-accessing-the-host)
|
|
28
34
|
before accessing the running Host.
|
|
29
35
|
|
|
@@ -43,12 +49,12 @@ before accessing the running Host.
|
|
|
43
49
|
2. Proceed directly for a supported plugin request. If it needs a missing CordisX or Cordis capability, do not fake it with private Host state; explain the gap and smallest public contribution path. A plugin request alone does not authorize Host-core changes or an external PR.
|
|
44
50
|
3. Select the creation mode from the user's project: one standalone plugin, a dedicated multi-plugin workspace, or `.cordisx/plugins/<id>` embedded in an existing business project. Preserve an existing package-manager workspace instead of rebuilding the project around CordisX.
|
|
45
51
|
4. If `CORDISX_DEV_ENTRY` is set, use that exact legacy single-plugin entry and running launch. For config-driven development, use the explicit or discovered project config and all enabled entries. Do not start a second Vite or Electron process for each plugin.
|
|
46
|
-
5. When creating a plugin, infer a concise product slug and use the maintained `create-cordisx-plugin` generator in the selected mode. Keep the scaffolding command as an implementation detail unless the user asks for it.
|
|
52
|
+
5. When creating a plugin, infer a concise product slug and use the maintained `create-cordisx-plugin` generator in the selected mode. A third-party package may use a legal unscoped name or a scope controlled by its publisher; do not impose CordisX repository naming or release conventions. Keep the scaffolding command as an implementation detail unless the user asks for it.
|
|
47
53
|
6. Define the manifest, localized product copy, contributions, config schema, permissions, React boundaries, and lifecycle behavior. Put activation effects under Cordis ownership and keep ESM top-level evaluation free of product side effects.
|
|
48
54
|
7. Keep visual choices inside Host-supported components, tokens, semantic roles, and controlled visual seats. Locate a maintained example, but do not copy generated fixtures wholesale.
|
|
49
55
|
8. Choose focused checks for the changed behavior. Show a useful preview early; add regression tests where they catch a real contract, React, or lifecycle failure, without requiring new tests for every reversible visual edit.
|
|
50
|
-
9. Run the
|
|
51
|
-
10. Exercise the real isolated native `app://` path for native claims; use Playground evidence only for the behavior it actually hosts.
|
|
56
|
+
9. Run `cordisx dev` only when live development evidence is relevant and the launch is authorized. Verify automatic file updates and, when relevant, the Manager's development reload for one active local plugin.
|
|
57
|
+
10. Exercise the real isolated native `app://` path only for native claims; use Playground evidence only for the behavior it actually hosts. Do not launch an App solely for prose, metadata, or static checks.
|
|
52
58
|
11. For production delivery, use the generated `cordisx/vite` helper config and retain its complete indexed Vite ESM graph. Do not duplicate the production Rollup policy or flatten dynamic imports, CSS, or static assets into a hand-built single file.
|
|
53
59
|
12. Report implementation, verification, limitations, and planned work separately.
|
|
54
60
|
|
|
@@ -62,4 +68,4 @@ before accessing the running Host.
|
|
|
62
68
|
|
|
63
69
|
## Delivery
|
|
64
70
|
|
|
65
|
-
Provide exact evidence: focused tests,
|
|
71
|
+
Provide exact evidence appropriate to the user's repository and claim: focused tests, diff checks, generated-project checks, and the relevant runtime when needed. CordisX maintainer gates are not admission requirements for third-party plugins. A production graph check validates formal `artifact.json`, its entry, lazy chunks, CSS, and assets separately from development transport. For Vite/native work, distinguish React Fast Refresh, plugin lifecycle replacement, CordisX renderer restart, and full Electron restart. Honor the active preview agreement: keep a protected review session available, or update an independent debug instance directly when the user has authorized restart/HMR. Preserve persistent data and non-target instances.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "CordisX Plugin Development"
|
|
3
3
|
short_description: "Assess and build CordisX plugins in real projects"
|
|
4
|
-
default_prompt: "Use $cordisx-plugin-development to assess this request, create or update the plugin when public capabilities support it, and
|
|
4
|
+
default_prompt: "Use $cordisx-plugin-development to assess this request, create or update the plugin when public capabilities support it, and verify it with evidence appropriate to the requested behavior and active authorization."
|
|
@@ -5,11 +5,13 @@ including when the current session is already attached to a development project.
|
|
|
5
5
|
|
|
6
6
|
## Choose debugging tools before accessing the Host
|
|
7
7
|
|
|
8
|
-
This boundary applies
|
|
9
|
-
startup failures, UI inspection, screenshots, interactions, HMR and
|
|
10
|
-
failures.
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
This boundary applies when work accesses a CordisX-launched Codex test instance,
|
|
9
|
+
including startup failures, UI inspection, screenshots, interactions, HMR and
|
|
10
|
+
permission failures. First read the active user, Host, and tool restrictions.
|
|
11
|
+
Use CordisX-owned diagnostics and debugging mechanisms for CordisX runtime
|
|
12
|
+
claims. Computer Use/CUA, desktop automation, or a generic browser must not be
|
|
13
|
+
used as a workaround for an explicit restriction, and generic browser evidence
|
|
14
|
+
does not prove behavior in the native `app://` Host.
|
|
13
15
|
|
|
14
16
|
1. Identify the authorized test instance from the CordisX launch/config and
|
|
15
17
|
loaded plugin entry. Check the effective Host/CLI build, profile/data mode
|
|
@@ -41,14 +43,14 @@ the installed Codex app, or access unrelated profiles, windows or data. The
|
|
|
41
43
|
is part of the authorized development launch; it cannot override an applicable
|
|
42
44
|
user, Host or tool denial.
|
|
43
45
|
|
|
44
|
-
If
|
|
45
|
-
the actual restriction before continuing. A
|
|
46
|
-
|
|
46
|
+
If a selected tool is prohibited or unsupported for the target, acknowledge the
|
|
47
|
+
tool-selection error and read the actual restriction before continuing. A
|
|
48
|
+
tool-specific limitation does not by itself establish that the user lacks
|
|
47
49
|
authority to debug their own test instance. Continue through CordisX only when
|
|
48
50
|
the action is independently authorized and no applicable denial prohibits it;
|
|
49
51
|
when a restriction's scope is unclear, stop that action and report the exact
|
|
50
|
-
restriction while continuing permitted source/log checks. Do not turn
|
|
51
|
-
tool
|
|
52
|
+
restriction while continuing permitted source/log checks. Do not turn one
|
|
53
|
+
unavailable tool into a blanket refusal of CordisX debugging.
|
|
52
54
|
|
|
53
55
|
## Locate the active project
|
|
54
56
|
|
|
@@ -113,9 +115,10 @@ immutable Vite graph per plugin and keeps source-level dynamic imports, CSS,
|
|
|
113
115
|
and static assets independently loadable. Production replacement uses CordisX
|
|
114
116
|
package generations, not the development HMR socket.
|
|
115
117
|
|
|
116
|
-
For native behavior, verify the actual isolated `app://` App
|
|
117
|
-
|
|
118
|
-
when it exposes the same public
|
|
118
|
+
For a claim about native behavior, verify the actual isolated `app://` App
|
|
119
|
+
launched by CordisX when that launch is authorized. A Playground or browser
|
|
120
|
+
harness is useful supporting evidence only when it exposes the same public
|
|
121
|
+
capability. Non-native claims do not require an App launch.
|
|
119
122
|
|
|
120
123
|
For a native Host interaction, use only a cataloged extension point. If the
|
|
121
124
|
contract is unavailable in the installed CordisX version, say so plainly
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
- Read [project-layouts-and-development.md](project-layouts-and-development.md) before creating files. Choose the layout from the user's project; do not force a business repository into a dedicated plugin monorepo.
|
|
6
6
|
- Use the maintained `create-cordisx-plugin` generator. Infer a concise product slug, keep standalone single-plugin as the default, and select workspace or embedded mode when those shapes fit. Keep the scaffolding command as an implementation detail unless the user asks for it.
|
|
7
7
|
- Do not copy development fixtures as production packages without auditing every field.
|
|
8
|
-
- Keep plugin id, display name, descriptions, permissions, contributions, package files, runtime localization, and
|
|
8
|
+
- Keep plugin id, display name, descriptions, permissions, contributions, package files, runtime localization, and the user-facing README material required by the owning project explicit.
|
|
9
9
|
- Include build, focused tests, package inspection, and install/dry-run checks appropriate to the owner repository.
|
|
10
10
|
- Preserve the complete generated `dist/runtime/` Vite graph. The package allowlist must include its formal `artifact.json`, entry, chunks, CSS, and assets; do not copy only `module.js`, and keep declarations or test output outside the graph root.
|
|
11
11
|
- Point a portable package manifest at the prebuilt `dist/runtime/module.js`; keep local development config entries pointed at source for Vite/HMR.
|
|
12
12
|
- Use `cordisXPluginViteConfig()` from the public `cordisx/vite` entry instead of copying its Rollup, singleton virtualization, or artifact-index rules into a plugin project.
|
|
13
|
-
- Declare license and distribution metadata intentionally.
|
|
14
|
-
-
|
|
13
|
+
- Declare license and distribution metadata intentionally when the project will be shared or published. A legal unscoped package name or a scope controlled by the publisher is valid; CordisX's own package scope, branch names, approvals, and release workflow are not plugin admission requirements.
|
|
14
|
+
- When publication is outside the request, keep the generated project private and avoid inventing publication metadata. When the user requests sharing or publication, use their intended registry, naming, scope, and license, and ask only for material details that are still missing.
|
|
15
15
|
|
|
16
16
|
## Structured contributions
|
|
17
17
|
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
## Development transport
|
|
15
15
|
|
|
16
|
+
- Use this section when the request or claim needs live development transport. For prose, metadata, static schema, or packaging-only work, choose the narrower focused checks and do not start an App solely to satisfy this checklist.
|
|
16
17
|
- Run `cordisx dev --dry-run` from the same directory and config-discovery path that users will use. For multiple plugins, prove that every enabled config entry resolves.
|
|
17
|
-
-
|
|
18
|
+
- When an authorized live run is needed, use one launcher-owned Vite server and one Electron App for the project. Do not start a development server per plugin.
|
|
18
19
|
- Verify both update triggers when applicable: save a local source file and invoke **Reload plugin** in Manager for one active local-development plugin.
|
|
19
20
|
- Classify the observed result correctly. A refresh-compatible React component edit may retain component state; plugin entry, manifest, or activation changes replace that plugin through the Cordis generation transaction; Host modules outside a refresh boundary restart the CordisX renderer in the current document; config and Node-side launcher changes require restarting the command.
|
|
20
21
|
- A source write proves only that an update was triggered. Inspect the runtime result and verify disposer cleanup, a single active registration/root, and last-good behavior after a failed candidate.
|
|
@@ -26,10 +27,10 @@ loader. Do not add a second WebSocket or CDP source-transfer path for production
|
|
|
26
27
|
|
|
27
28
|
## Real native App and Playground
|
|
28
29
|
|
|
29
|
-
- Use `cordisx dev` for claims about the installed native App. The expected path is an isolated Electron launch whose `app://` renderer imports the launcher-owned loopback Vite entry;
|
|
30
|
+
- Use `cordisx dev` for claims about the installed native App when that launch is in scope and authorized. The expected path is an isolated Electron launch whose `app://` renderer imports the launcher-owned loopback Vite entry; generic browser evidence does not establish that native path.
|
|
30
31
|
- CDP is the initial bootstrap and native policy-control seam. Before reload it grants loopback access to the exact target origin and enables CSP bypass. Subsequent modules and update notifications use Vite HTTP and Vite's own WebSocket. Source maps are separate resources fetched on demand; readiness follows the current installation's Vite bootstrap acknowledgement rather than a generic page-load event. Stopping restores the permission to `prompt`, disables the bypass, disconnects HMR, and removes Vite-injected styles even when plugin disposal fails.
|
|
31
32
|
- Confirm the native renderer reaches ready and exercise the intended UI or contribution. On stop, verify the Vite/CDP ports, in-memory session state, and launcher-owned process/profile resources are released. The stable dependency cache under `CORDISX_HOME/cache/native-vite` should remain; reject symlinked or foreign-owned cache leaves, and verify that a second launch from the same CLI and workspace roots reuses the cache without an optimizer-triggered reload.
|
|
32
|
-
- Apply the [debugging tool boundary](live-plugin-development.md#choose-debugging-tools-before-accessing-the-host) before native inspection or interaction. Use
|
|
33
|
+
- Apply the [debugging tool boundary](live-plugin-development.md#choose-debugging-tools-before-accessing-the-host) before native inspection or interaction. Use only mechanisms authorized for that target and action; do not use a different tool to bypass an explicit user, Host, or tool denial. A permitted harness does not establish user interaction or acceptance.
|
|
33
34
|
- Test the actual native state transition relevant to the claim, including replacement of native layout when applicable. Changing fixture labels inside an `app://` page remains simulated evidence; it does not prove the real operation or full native flow.
|
|
34
35
|
- Confirm the inspected window is foreground and running the intended module when verifying pointer or rendering behavior. Check behavior after the update, not just receipt of an HMR notification.
|
|
35
36
|
- Use the maintained local Playground when it directly covers the feature under test.
|
|
@@ -41,8 +42,8 @@ loader. Do not add a second WebSocket or CDP source-transfer path for production
|
|
|
41
42
|
|
|
42
43
|
## Delivery evidence
|
|
43
44
|
|
|
44
|
-
- Run the
|
|
45
|
-
- Run typecheck, build, package/install checks, audit, and diff check when required by
|
|
45
|
+
- Run the checks required by the repository that owns the plugin and the evidence needed for the claim. CordisX Host maintainer gates apply only to CordisX-owned changes.
|
|
46
|
+
- Run typecheck, build, package/install checks, audit, and diff check when required by that repository or delivery target.
|
|
46
47
|
- Record real request evidence: no lazy chunk/CSS/image before the feature is opened; those resources appear after the trigger; a second open does not issue a second evaluation; and a replaced generation cannot become active later.
|
|
47
48
|
- Exercise the relevant real runtime in the needed theme and layout states; these should confirm rules already encoded in components and tests, not serve as the first design review.
|
|
48
49
|
- Honor the current preview agreement. Preserve a protected review instance; use already-authorized restart/HMR for an independent debug instance while retaining persistent data and non-target windows.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cordisx-qa
|
|
3
|
+
description: Answer and, when explicitly requested, record CordisX user-experience questions with context and evidence. Use for common usage questions, known pitfalls, practical tradeoffs, observed workarounds, and questions about what is implemented, tested, released, or installed. This is Question & Answer guidance, not software quality assurance or a substitute for versioned CordisX documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# CordisX User Experience Q&A
|
|
7
|
+
|
|
8
|
+
Answer the user's actual question with the shortest evidence-backed explanation
|
|
9
|
+
that resolves it. Q&A captures contextual product experience; it does not own
|
|
10
|
+
the standard product contract. Questions about what CordisX officially supports
|
|
11
|
+
or how a command works belong to Docs even when phrased as a question. The
|
|
12
|
+
bundled revision and owning source are recorded in
|
|
13
|
+
[version.json](version.json).
|
|
14
|
+
|
|
15
|
+
## Find the answer
|
|
16
|
+
|
|
17
|
+
1. Identify the relevant CordisX version, Host, operating mode, project shape,
|
|
18
|
+
and action when they materially affect the answer. Reuse facts already in
|
|
19
|
+
context instead of asking for them again.
|
|
20
|
+
2. For product commands, compatibility, configuration, architecture, security,
|
|
21
|
+
or public contracts, read [cordisx-docs](../cordisx-docs/SKILL.md) first.
|
|
22
|
+
3. Search the owning Host user guides before inventing a new answer. Start with
|
|
23
|
+
the [user experience Q&A](https://github.com/cordisx/cordisx/blob/main/.agents/docs/user-experience-qa.md)
|
|
24
|
+
and use the linked
|
|
25
|
+
[startup Q&A](https://github.com/cordisx/cordisx/blob/main/.agents/docs/startup-qa.md)
|
|
26
|
+
for launch and setup questions.
|
|
27
|
+
4. Prefer evidence from the applicable version's docs, source, diagnostics,
|
|
28
|
+
focused checks, or an explicitly described observation. Keep a suggestion
|
|
29
|
+
labeled as a suggestion.
|
|
30
|
+
|
|
31
|
+
## Answer format
|
|
32
|
+
|
|
33
|
+
Use a natural answer for simple questions. When context or evidence matters,
|
|
34
|
+
make these elements clear without forcing a rigid template:
|
|
35
|
+
|
|
36
|
+
- **Answer:** the practical resolution or decision;
|
|
37
|
+
- **Applies when:** version, platform, mode, or project conditions;
|
|
38
|
+
- **Basis:** the documentation, diagnostic, test, or observation supporting it;
|
|
39
|
+
- **Status:** implemented, tested, merged, published, or installed, when the
|
|
40
|
+
distinction matters.
|
|
41
|
+
|
|
42
|
+
Do not generalize one incident into a universal rule. If reliable evidence is
|
|
43
|
+
missing or conflicting, say what is known, what remains uncertain, and the
|
|
44
|
+
smallest read-only check that would distinguish the possibilities.
|
|
45
|
+
|
|
46
|
+
## Record experience only on request
|
|
47
|
+
|
|
48
|
+
Record a new Q&A entry when the user asks to preserve or update the experience.
|
|
49
|
+
Use their requested destination or an existing personal or project Q&A record.
|
|
50
|
+
For a contribution to shared product documentation, use the existing owner
|
|
51
|
+
document when one covers the topic; the Host user-experience Q&A is for
|
|
52
|
+
cross-topic experience that has no better owner.
|
|
53
|
+
|
|
54
|
+
If the shared source is unavailable or not writable, save a local Markdown
|
|
55
|
+
Q&A draft in the current authorized workspace or notes location and report its
|
|
56
|
+
path. Personal notes do not require access to CordisX's repositories. Do not
|
|
57
|
+
write user experience into an installed, launcher-managed Skill directory or
|
|
58
|
+
claim that a local draft has been published to the shared documentation.
|
|
59
|
+
|
|
60
|
+
Write the entry as a real question and answer. Include its applicability and
|
|
61
|
+
evidence, link the normative documentation, and retain meaningful limitations
|
|
62
|
+
or failed approaches. When repeated evidence becomes a supported product rule,
|
|
63
|
+
update or link the owning documentation rather than maintaining a competing
|
|
64
|
+
rule in Q&A.
|
|
65
|
+
|
|
66
|
+
Do not publish raw conversations, private logs, credentials, account details,
|
|
67
|
+
local paths, task identifiers, or internal-only data. Redact or summarize the
|
|
68
|
+
minimum reusable fact. Do not automatically record every interaction, and do
|
|
69
|
+
not claim an edit was recorded, merged, published, or installed without direct
|
|
70
|
+
evidence for that state.
|
|
71
|
+
|
|
72
|
+
## Boundaries
|
|
73
|
+
|
|
74
|
+
- Informational queries are read-only. They do not authorize configuration
|
|
75
|
+
changes, grants, App launches, uploads, publishing, or releases.
|
|
76
|
+
- Q&A does not grant access or turn an unavailable capability into an available
|
|
77
|
+
one. Use existing authorization and report the missing boundary honestly.
|
|
78
|
+
- Repository branch names, package scopes, approvals, and release processes
|
|
79
|
+
apply only to their owning repository. Third-party plugins may use legal
|
|
80
|
+
unscoped names or the publisher's own scope.
|
|
81
|
+
- For plugin implementation or debugging, use
|
|
82
|
+
[cordisx-plugin-development](../cordisx-plugin-development/SKILL.md) after
|
|
83
|
+
resolving the user's question.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "CordisX User Experience Q&A"
|
|
3
|
+
short_description: "Answer CordisX usage questions with context and evidence"
|
|
4
|
+
default_prompt: "Use $cordisx-qa to answer this CordisX user-experience question with its applicability, evidence, and exact implementation or release status."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-command-dispatch.d.ts","sourceRoot":"","sources":["../../../src/cli/run-command-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,YAAY,CAAA;AAGvE,OAAO,EAAE,KAAK,wBAAwB,EAA2B,MAAM,eAAe,CAAA;AACtF,OAAO,EAAE,KAAK,iBAAiB,EAAiE,MAAM,kBAAkB,CAAA;AAExH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,oBAAoB,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAA;IACjF,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,UAAU,CAAA;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,wBAAwB,CAAA;IAC5C,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;IACvD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,oBAAoB,EAChC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAyEzC;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"run-command-dispatch.d.ts","sourceRoot":"","sources":["../../../src/cli/run-command-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,YAAY,CAAA;AAGvE,OAAO,EAAE,KAAK,wBAAwB,EAA2B,MAAM,eAAe,CAAA;AACtF,OAAO,EAAE,KAAK,iBAAiB,EAAiE,MAAM,kBAAkB,CAAA;AAExH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,oBAAoB,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAA;IACjF,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,UAAU,CAAA;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,wBAAwB,CAAA;IAC5C,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;IACvD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,oBAAoB,EAChC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAyEzC;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CA0CzC"}
|
|
@@ -90,6 +90,7 @@ export async function prepareCliCommand(argv, runtime) {
|
|
|
90
90
|
runtime.internalRunInjectedHost,
|
|
91
91
|
runtime.internalAgentHistoryHost,
|
|
92
92
|
runtime.internalBuiltinSkillSourceDir,
|
|
93
|
+
runtime.internalBuiltinSkillsSourceRootDir,
|
|
93
94
|
runtime.internalSharedHomeDir,
|
|
94
95
|
runtime.internalBuildRendererBundle,
|
|
95
96
|
runtime.internalObserveOwnerDocuments,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-command-dispatch.js","sourceRoot":"","sources":["../../../src/cli/run-command-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAA8B,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAC9G,OAAO,EAA6B,eAAe,EAAE,MAAM,YAAY,CAAA;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnF,OAAO,EAAiC,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACtF,OAAO,EAA0B,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAYxH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,UAAgC,EAChC,OAA0B;IAE1B,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAA;IAC5C,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAA;IACxC,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAA;IAC9C,MAAM,iBAAiB,GAA0B;QAC/C,GAAG,EAAE,WAAW;QAChB,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;KACvE,CAAA;IACD,MAAM,UAAU,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAA;IAC3D,IAAI,UAAU,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;QACjC,MAAM,CAAC,IAAI,CAAC,CA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IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAA;IACpC,MAAM,eAAe,GAAG,gBAAgB,CAAC,MAAM,KAAK,OAAO;WACtD,CAAC,gBAAgB,CAAC,OAAO,CAAC,MAAM,IAAI,gBAAgB,CAAC,OAAO,CAAC,MAAM,IAAI,kBAAkB,CAAC,CAAA;IAC/F,IAAI,mBAAmB,CAAC,gBAAgB,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;QAC9D,MAAM,oBAAoB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAA;QACrD,OAAM;IACR,CAAC;IACD,MAAM,oBAAoB,GAAG,CAAC,gBAAgB,CAAC,MAAM,KAAK,KAAK,IAAI,eAAe;QAChF,CAAC,CAAC,EAAE,GAAG,gBAAgB,EAAE,MAAM,EAAE,QAAiB,EAAE;QACpD,CAAC,CAAC,gBAAgB,CAGjB,CAAA;IACH,OAAO,iBAAiB,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAA;AACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-command.d.ts","sourceRoot":"","sources":["../../../src/cli/run-command.ts"],"names":[],"mappings":"AA+EA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAG5E,OAAO,EACL,KAAK,6BAA6B,EAGnC,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"run-command.d.ts","sourceRoot":"","sources":["../../../src/cli/run-command.ts"],"names":[],"mappings":"AA+EA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAG5E,OAAO,EACL,KAAK,6BAA6B,EAGnC,MAAM,+BAA+B,CAAA;AAmCtC,OAAO,EAKL,KAAK,iBAAiB,EAavB,MAAM,kBAAkB,CAAA;AAczB,MAAM,WAAW,qCAAqC;IACpD,QAAQ,CAAC,OAAO,EAAE,6BAA6B,CAAA;IAC/C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB;AAED,wBAAsB,yCAAyC,CAAC,KAAK,EAAE;IACrE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,WAAW,EAAE,0BAA0B,CAAA;IAChD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACnC,GAAG,OAAO,CAAC,qCAAqC,CAAC,CA2CjD;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAivB3G"}
|
|
@@ -39,13 +39,13 @@ import { PlatformProviderPluginLifecycleRuntime } from '../launcher/platform-pro
|
|
|
39
39
|
import { stagePluginPackageSourceV1 } from '../launcher/packages/index.js';
|
|
40
40
|
import { CORDISX_PLUGIN_MANIFEST_SCHEMA_V13, normalizePluginManifestV13 } from '../runtime-exact-request-permissions.js';
|
|
41
41
|
import { CORDISX_PLUGIN_MANIFEST_SCHEMA_V14, normalizePluginManifestV14 } from '../launcher/latest-runtime-manifest.js';
|
|
42
|
-
import { deployBundledCordisXSkill, } from '../launcher/builtin-skill.js';
|
|
42
|
+
import { deployBundledCordisXSkill, deployBundledCordisXSkills } from '../launcher/builtin-skill.js';
|
|
43
43
|
import { createOwnerDocumentBridgeHandler, entityInstallationId, OwnerDocumentLeaseRegistry, } from '../launcher/owner-document-rpc.js';
|
|
44
44
|
import { managedBackendRuntimeServiceAccess } from '../launcher/packages/managed-backend-service-access.js';
|
|
45
45
|
import { ManagedServiceRuntime } from '../launcher/managed-service-runtime.js';
|
|
46
46
|
import { ManagedServiceNodeHost } from '../launcher/managed-service-node-host.js';
|
|
47
47
|
import { ManagedServicePluginLifecycleRuntime } from '../launcher/managed-service-plugin-lifecycle.js';
|
|
48
|
-
import { agentHistoryHost, assertProductionGraphLaunchOwnership, cliProxyServiceConfigApis, deployBuiltinSkillWithoutOverwritingUserChanges, pluginIdentities, printPlan, providerConfigs, recoveredActivation, rootFromConfigPath, runInjectedHost, } from './run-support.js';
|
|
48
|
+
import { agentHistoryHost, assertProductionGraphLaunchOwnership, cliProxyServiceConfigApis, deployBuiltinSkillsWithoutOverwritingUserChanges, deployBuiltinSkillWithoutOverwritingUserChanges, pluginIdentities, printPlan, providerConfigs, recoveredActivation, rootFromConfigPath, runInjectedHost, } from './run-support.js';
|
|
49
49
|
import { attachActiveBrowserGraphs, buildRendererComposition, createProductionGraphBootstrap, createRendererLifecycleProjection, } from './renderer-composition.js';
|
|
50
50
|
import { prepareCliCommand } from './run-command-dispatch.js';
|
|
51
51
|
import { shouldEnableNativeSubmission } from './native-submission-launch-policy.js';
|
|
@@ -662,25 +662,37 @@ export async function runCordisXCli(argv, runtime = {}) {
|
|
|
662
662
|
try {
|
|
663
663
|
await adapter.prepareLaunch(plan);
|
|
664
664
|
if (shouldEnableNativeSubmission({
|
|
665
|
-
platform: process.platform,
|
|
665
|
+
platform: runtime.internalNativeSubmissionPlatform ?? process.platform,
|
|
666
666
|
adapterId: adapter.id,
|
|
667
667
|
preference: (runtime.env ?? process.env).CORDISX_EXPERIMENTAL_NATIVE_SUBMISSION,
|
|
668
668
|
})) {
|
|
669
669
|
try {
|
|
670
|
-
nativeSubmission =
|
|
670
|
+
nativeSubmission =
|
|
671
|
+
await (runtime.internalCreateNativeSubmissionComposition ?? createNativeSubmissionComposition)(managedServiceActivation, plan.executable);
|
|
671
672
|
}
|
|
672
673
|
catch (error) {
|
|
673
674
|
stdout(`[cordisx] native managed Desktop providers unavailable: ${String(error)}`);
|
|
674
675
|
}
|
|
675
676
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
677
|
+
if (runtime.internalBuiltinSkillSourceDir !== undefined
|
|
678
|
+
&& runtime.internalBuiltinSkillsSourceRootDir === undefined) {
|
|
679
|
+
await deployBuiltinSkillWithoutOverwritingUserChanges(deployBundledCordisXSkill(plan, {
|
|
680
|
+
sourceDir: runtime.internalBuiltinSkillSourceDir,
|
|
681
|
+
...(runtime.internalSharedHomeDir === undefined
|
|
682
|
+
? {}
|
|
683
|
+
: { sharedHomeOverride: runtime.internalSharedHomeDir }),
|
|
684
|
+
}), stdout);
|
|
685
|
+
}
|
|
686
|
+
else {
|
|
687
|
+
await deployBuiltinSkillsWithoutOverwritingUserChanges(deployBundledCordisXSkills(plan, {
|
|
688
|
+
...(runtime.internalBuiltinSkillsSourceRootDir === undefined
|
|
689
|
+
? {}
|
|
690
|
+
: { sourceRootDir: runtime.internalBuiltinSkillsSourceRootDir }),
|
|
691
|
+
...(runtime.internalSharedHomeDir === undefined
|
|
692
|
+
? {}
|
|
693
|
+
: { sharedHomeOverride: runtime.internalSharedHomeDir }),
|
|
694
|
+
}), stdout);
|
|
695
|
+
}
|
|
684
696
|
productionPluginManagement = await openProductionPluginManagementComposition({
|
|
685
697
|
configPath,
|
|
686
698
|
homeDir: rootFromConfigPath(configPath),
|