@codyswann/lisa 2.229.1 → 2.230.0
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/cli/remote-environment-catalog.d.ts +17 -0
- package/dist/cli/remote-environment-catalog.d.ts.map +1 -0
- package/dist/cli/remote-environment-catalog.js +175 -0
- package/dist/cli/remote-environment-catalog.js.map +1 -0
- package/dist/cli/remote-environment-contract.d.ts +94 -0
- package/dist/cli/remote-environment-contract.d.ts.map +1 -0
- package/dist/cli/remote-environment-contract.js +58 -0
- package/dist/cli/remote-environment-contract.js.map +1 -0
- package/dist/cli/remote-environment-detection.d.ts +23 -0
- package/dist/cli/remote-environment-detection.d.ts.map +1 -0
- package/dist/cli/remote-environment-detection.js +120 -0
- package/dist/cli/remote-environment-detection.js.map +1 -0
- package/dist/cli/remote-environment.d.ts +12 -0
- package/dist/cli/remote-environment.d.ts.map +1 -0
- package/dist/cli/remote-environment.js +73 -0
- package/dist/cli/remote-environment.js.map +1 -0
- package/dist/cli/ui-cmd.d.ts +2 -19
- package/dist/cli/ui-cmd.d.ts.map +1 -1
- package/dist/cli/ui-cmd.js +6 -34
- package/dist/cli/ui-cmd.js.map +1 -1
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
- package/plugins/lisa/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-generate-claude-remote-build-script/SKILL.md +23 -8
- package/ui/README.md +28 -1
- package/ui/index.html +39 -80
package/dist/cli/ui-cmd.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as http from "node:http";
|
|
2
2
|
import { type JsonObject } from "../sync/json-path.js";
|
|
3
|
+
import { type RemoteEnvironmentStatus } from "./remote-environment.js";
|
|
3
4
|
import { type StatusProbe } from "./ui-status.js";
|
|
4
5
|
export { createGithubAuthProbe, runProbe, type GitRemoteReader, type GithubAuthCheck, type ProbeResult, type StatusProbe, } from "./ui-status.js";
|
|
6
|
+
export { inspectRemoteEnvironment } from "./remote-environment.js";
|
|
5
7
|
/** Default port for the settings console. */
|
|
6
8
|
export declare const DEFAULT_UI_PORT = 4780;
|
|
7
9
|
/** CLI options for `lisa ui`. */
|
|
@@ -16,25 +18,6 @@ export interface UiRuntimeDependencies {
|
|
|
16
18
|
/** Status probes exposed by GET /api/status. */
|
|
17
19
|
readonly probes?: readonly StatusProbe[];
|
|
18
20
|
}
|
|
19
|
-
/** Secret/variable and generated-artifact status exposed to the console. */
|
|
20
|
-
export interface RemoteEnvironmentStatus {
|
|
21
|
-
/** Whether each supported variable is visible to the `lisa ui` process. */
|
|
22
|
-
readonly variables: Readonly<Record<string, boolean>>;
|
|
23
|
-
/** Whether each remote-environment startup artifact exists in the project. */
|
|
24
|
-
readonly artifacts: Readonly<Record<string, boolean>>;
|
|
25
|
-
}
|
|
26
|
-
/** Variables the remote AWS bootstrap understands. Values are never exposed. */
|
|
27
|
-
export declare const REMOTE_ENVIRONMENT_VARIABLES: readonly ["LISA_AWS_BOOTSTRAP_JSON", "LISA_REMOTE_AGENT", "LISA_AWS_DEFAULT_PROFILE"];
|
|
28
|
-
/** Project-relative artifacts used by remote coding environments. */
|
|
29
|
-
export declare const REMOTE_ENVIRONMENT_ARTIFACTS: readonly ["scripts/remote-agent-aws-setup.sh", ".cursor/environment.json", ".github/workflows/copilot-setup-steps.yml"];
|
|
30
|
-
/**
|
|
31
|
-
* Inspect remote-environment readiness without ever reading a variable value
|
|
32
|
-
* into the browser payload.
|
|
33
|
-
* @param destDir - Project root
|
|
34
|
-
* @param environment - Environment visible to the Lisa process
|
|
35
|
-
* @returns Boolean-only variable and artifact status
|
|
36
|
-
*/
|
|
37
|
-
export declare function inspectRemoteEnvironment(destDir: string, environment?: NodeJS.ProcessEnv): RemoteEnvironmentStatus;
|
|
38
21
|
/**
|
|
39
22
|
* Locate the packaged `ui/index.html` by walking up from this module until a
|
|
40
23
|
* directory containing `ui/index.html` is found (works from both `src/` and
|
package/dist/cli/ui-cmd.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-cmd.d.ts","sourceRoot":"","sources":["../../src/cli/ui-cmd.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC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,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,EAClB,iBAAiB,GAAE,uBAIlB,GACA,MAAM,CAQR;AA0JD;;;;;;GAMG;AACH,wBAAsB,KAAK,CACzB,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,OAAO,GAAE,YAAiB,EAC1B,YAAY,GAAE,qBAA0B,GACvC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAgCtB"}
|
package/dist/cli/ui-cmd.js
CHANGED
|
@@ -16,25 +16,15 @@ import { runConfigSync } from "../sync/config-sync.js";
|
|
|
16
16
|
import { isJsonObject } from "../sync/json-path.js";
|
|
17
17
|
import { deepMerge, readJsonOrNull } from "../utils/index.js";
|
|
18
18
|
import { printSyncReport } from "./sync-cmd.js";
|
|
19
|
+
import { inspectRemoteEnvironment, } from "./remote-environment.js";
|
|
19
20
|
import { createGithubAuthProbe, readStatusSnapshot, validateStatusProbes, } from "./ui-status.js";
|
|
20
21
|
export { createGithubAuthProbe, runProbe, } from "./ui-status.js";
|
|
22
|
+
export { inspectRemoteEnvironment } from "./remote-environment.js";
|
|
21
23
|
/** Default port for the settings console. */
|
|
22
24
|
export const DEFAULT_UI_PORT = 4780;
|
|
23
25
|
const JSON_CONTENT_TYPE = "application/json; charset=utf-8";
|
|
24
26
|
const NO_STORE = "no-store";
|
|
25
27
|
const TEXT_CONTENT_TYPE = "text/plain; charset=utf-8";
|
|
26
|
-
/** Variables the remote AWS bootstrap understands. Values are never exposed. */
|
|
27
|
-
export const REMOTE_ENVIRONMENT_VARIABLES = [
|
|
28
|
-
"LISA_AWS_BOOTSTRAP_JSON",
|
|
29
|
-
"LISA_REMOTE_AGENT",
|
|
30
|
-
"LISA_AWS_DEFAULT_PROFILE",
|
|
31
|
-
];
|
|
32
|
-
/** Project-relative artifacts used by remote coding environments. */
|
|
33
|
-
export const REMOTE_ENVIRONMENT_ARTIFACTS = [
|
|
34
|
-
"scripts/remote-agent-aws-setup.sh",
|
|
35
|
-
".cursor/environment.json",
|
|
36
|
-
".github/workflows/copilot-setup-steps.yml",
|
|
37
|
-
];
|
|
38
28
|
/**
|
|
39
29
|
* Read the CLI process environment through one explicit, reviewable exception.
|
|
40
30
|
* Only boolean presence checks derived from this map reach the browser.
|
|
@@ -44,25 +34,6 @@ function getProcessEnvironment() {
|
|
|
44
34
|
// eslint-disable-next-line no-restricted-syntax -- CLI status view must inspect externally supplied remote-environment variables once
|
|
45
35
|
return process.env;
|
|
46
36
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Inspect remote-environment readiness without ever reading a variable value
|
|
49
|
-
* into the browser payload.
|
|
50
|
-
* @param destDir - Project root
|
|
51
|
-
* @param environment - Environment visible to the Lisa process
|
|
52
|
-
* @returns Boolean-only variable and artifact status
|
|
53
|
-
*/
|
|
54
|
-
export function inspectRemoteEnvironment(destDir, environment = getProcessEnvironment()) {
|
|
55
|
-
return {
|
|
56
|
-
variables: Object.fromEntries(REMOTE_ENVIRONMENT_VARIABLES.map(name => [
|
|
57
|
-
name,
|
|
58
|
-
typeof environment[name] === "string" && environment[name].length > 0,
|
|
59
|
-
])),
|
|
60
|
-
artifacts: Object.fromEntries(REMOTE_ENVIRONMENT_ARTIFACTS.map(relativePath => [
|
|
61
|
-
relativePath,
|
|
62
|
-
existsSync(path.join(destDir, relativePath)),
|
|
63
|
-
])),
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
37
|
/**
|
|
67
38
|
* Locate the packaged `ui/index.html` by walking up from this module until a
|
|
68
39
|
* directory containing `ui/index.html` is found (works from both `src/` and
|
|
@@ -102,8 +73,9 @@ async function readMergedConfig(destDir) {
|
|
|
102
73
|
* @returns HTML with the injected config
|
|
103
74
|
*/
|
|
104
75
|
export function injectLiveConfig(html, config, remoteEnvironment = {
|
|
105
|
-
|
|
106
|
-
|
|
76
|
+
projectTypes: [],
|
|
77
|
+
variables: [],
|
|
78
|
+
startupScripts: [],
|
|
107
79
|
}) {
|
|
108
80
|
const payload = JSON.stringify(config).replace(/<\//g, "<\\/");
|
|
109
81
|
const remotePayload = JSON.stringify(remoteEnvironment).replace(/<\//g, "<\\/");
|
|
@@ -264,7 +236,7 @@ export async function runUi(targetPath, options = {}, dependencies = {}) {
|
|
|
264
236
|
const htmlPath = findUiHtml(moduleDir);
|
|
265
237
|
const html = await readFile(htmlPath, "utf8");
|
|
266
238
|
const config = await readMergedConfig(destDir);
|
|
267
|
-
const remoteEnvironment = inspectRemoteEnvironment(destDir);
|
|
239
|
+
const remoteEnvironment = await inspectRemoteEnvironment(destDir, config, getProcessEnvironment());
|
|
268
240
|
const page = injectLiveConfig(html, config, remoteEnvironment);
|
|
269
241
|
const probes = dependencies.probes ?? [createGithubAuthProbe(destDir)];
|
|
270
242
|
const server = http.createServer(createUiRequestHandler(page, probes));
|
package/dist/cli/ui-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-cmd.js","sourceRoot":"","sources":["../../src/cli/ui-cmd.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAmB,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GAGrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,qBAAqB,EACrB,QAAQ,GAKT,MAAM,gBAAgB,CAAC;
|
|
1
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|
|
106
106
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
107
107
|
"main": "dist/index.js",
|
|
108
108
|
"exports": {
|
|
@@ -7,8 +7,9 @@ allowed-tools: ["Skill", "Bash", "Read", "Write", "Glob", "Grep"]
|
|
|
7
7
|
# Generate Claude Remote Build Script: $ARGUMENTS
|
|
8
8
|
|
|
9
9
|
Produce the artifacts a user pastes into a **Claude Code remote routine environment** so this repo
|
|
10
|
-
runs in the cloud: a setup/build script that installs everything the environment needs,
|
|
11
|
-
environment-variable template
|
|
10
|
+
runs in the cloud: a setup/build script that installs everything the environment needs, an
|
|
11
|
+
environment-variable template, a network-allowlist list, and the names-only
|
|
12
|
+
`.lisa/remote-environment.json` contract consumed by `lisa ui`.
|
|
12
13
|
|
|
13
14
|
## Purpose
|
|
14
15
|
|
|
@@ -97,6 +98,17 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
97
98
|
profile implementation. Add `bash scripts/remote-agent-aws-setup.sh` to the
|
|
98
99
|
generated cloud setup after required package installation.
|
|
99
100
|
|
|
101
|
+
3c. **Write the project-aware console contract.** Write
|
|
102
|
+
`.lisa/remote-environment.json` from the same fresh inventory. Its `variables`
|
|
103
|
+
array must contain only entries that are `required: true` for this project and
|
|
104
|
+
its active integrations; omit optional, conditional, and dormant integrations.
|
|
105
|
+
Each entry contains `name`, `reason`, `source`, `secret`, and `required`, but
|
|
106
|
+
never a value. Set `startupScripts.claude` to the generated `--out` path. Do
|
|
107
|
+
not add AWS merely because Lisa ships AWS support: add
|
|
108
|
+
`LISA_AWS_BOOTSTRAP_JSON` only when the inventory reports active AWS usage.
|
|
109
|
+
Preserve any valid startup-script entries for other agents that already exist
|
|
110
|
+
in the manifest.
|
|
111
|
+
|
|
100
112
|
4. **Emit the allowlist + gaps notice.** List any custom domains the setup or runtime reaches
|
|
101
113
|
(from `networkAccess.allowlistDomains`, falling back to legacy `allowlistDomains`) that the user
|
|
102
114
|
must add when the environment needs Custom network access. Do not include default Trusted domains
|
|
@@ -106,10 +118,13 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
106
118
|
**cannot** fix.
|
|
107
119
|
|
|
108
120
|
5. **Write and report.** Write the script to `--out` (default `scripts/claude-remote-setup.sh`),
|
|
109
|
-
`chmod +x` it, and
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
`chmod +x` it, and write `.lisa/remote-environment.json`. Print both paths, a
|
|
122
|
+
one-line summary of what the script installs and which env vars to set, and
|
|
123
|
+
the exact next step (paste its contents — or a
|
|
124
|
+
`bash scripts/claude-remote-setup.sh` invocation — into the routine
|
|
125
|
+
environment's setup script, and add the env vars in the environment config).
|
|
126
|
+
When `--print` is passed, print the script to stdout and do not write either
|
|
127
|
+
file.
|
|
113
128
|
|
|
114
129
|
## Generated script shape
|
|
115
130
|
|
|
@@ -192,8 +207,8 @@ to stop are: the analysis could not run, or the `--out` path is not writable.
|
|
|
192
207
|
|
|
193
208
|
## Rules
|
|
194
209
|
|
|
195
|
-
- Always derive the script
|
|
196
|
-
assumed inventory.
|
|
210
|
+
- Always derive the script and `.lisa/remote-environment.json` from a fresh
|
|
211
|
+
`/lisa:analyze-claude-remote` run — never from a stale or assumed inventory.
|
|
197
212
|
- Never write real secret values into the script or template — names and placeholders only.
|
|
198
213
|
- For active tracker/source credentials, carry the analysis's `Acquire:` URL and `Access:` scope into
|
|
199
214
|
the template as comments, and emit only the env-var form of the name — never a keychain command.
|
|
@@ -7,8 +7,9 @@ allowed-tools: ["Skill", "Bash", "Read", "Write", "Glob", "Grep"]
|
|
|
7
7
|
# Generate Claude Remote Build Script: $ARGUMENTS
|
|
8
8
|
|
|
9
9
|
Produce the artifacts a user pastes into a **Claude Code remote routine environment** so this repo
|
|
10
|
-
runs in the cloud: a setup/build script that installs everything the environment needs,
|
|
11
|
-
environment-variable template
|
|
10
|
+
runs in the cloud: a setup/build script that installs everything the environment needs, an
|
|
11
|
+
environment-variable template, a network-allowlist list, and the names-only
|
|
12
|
+
`.lisa/remote-environment.json` contract consumed by `lisa ui`.
|
|
12
13
|
|
|
13
14
|
## Purpose
|
|
14
15
|
|
|
@@ -97,6 +98,17 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
97
98
|
profile implementation. Add `bash scripts/remote-agent-aws-setup.sh` to the
|
|
98
99
|
generated cloud setup after required package installation.
|
|
99
100
|
|
|
101
|
+
3c. **Write the project-aware console contract.** Write
|
|
102
|
+
`.lisa/remote-environment.json` from the same fresh inventory. Its `variables`
|
|
103
|
+
array must contain only entries that are `required: true` for this project and
|
|
104
|
+
its active integrations; omit optional, conditional, and dormant integrations.
|
|
105
|
+
Each entry contains `name`, `reason`, `source`, `secret`, and `required`, but
|
|
106
|
+
never a value. Set `startupScripts.claude` to the generated `--out` path. Do
|
|
107
|
+
not add AWS merely because Lisa ships AWS support: add
|
|
108
|
+
`LISA_AWS_BOOTSTRAP_JSON` only when the inventory reports active AWS usage.
|
|
109
|
+
Preserve any valid startup-script entries for other agents that already exist
|
|
110
|
+
in the manifest.
|
|
111
|
+
|
|
100
112
|
4. **Emit the allowlist + gaps notice.** List any custom domains the setup or runtime reaches
|
|
101
113
|
(from `networkAccess.allowlistDomains`, falling back to legacy `allowlistDomains`) that the user
|
|
102
114
|
must add when the environment needs Custom network access. Do not include default Trusted domains
|
|
@@ -106,10 +118,13 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
106
118
|
**cannot** fix.
|
|
107
119
|
|
|
108
120
|
5. **Write and report.** Write the script to `--out` (default `scripts/claude-remote-setup.sh`),
|
|
109
|
-
`chmod +x` it, and
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
`chmod +x` it, and write `.lisa/remote-environment.json`. Print both paths, a
|
|
122
|
+
one-line summary of what the script installs and which env vars to set, and
|
|
123
|
+
the exact next step (paste its contents — or a
|
|
124
|
+
`bash scripts/claude-remote-setup.sh` invocation — into the routine
|
|
125
|
+
environment's setup script, and add the env vars in the environment config).
|
|
126
|
+
When `--print` is passed, print the script to stdout and do not write either
|
|
127
|
+
file.
|
|
113
128
|
|
|
114
129
|
## Generated script shape
|
|
115
130
|
|
|
@@ -192,8 +207,8 @@ to stop are: the analysis could not run, or the `--out` path is not writable.
|
|
|
192
207
|
|
|
193
208
|
## Rules
|
|
194
209
|
|
|
195
|
-
- Always derive the script
|
|
196
|
-
assumed inventory.
|
|
210
|
+
- Always derive the script and `.lisa/remote-environment.json` from a fresh
|
|
211
|
+
`/lisa:analyze-claude-remote` run — never from a stale or assumed inventory.
|
|
197
212
|
- Never write real secret values into the script or template — names and placeholders only.
|
|
198
213
|
- For active tracker/source credentials, carry the analysis's `Acquire:` URL and `Access:` scope into
|
|
199
214
|
the template as comments, and emit only the env-var form of the name — never a keychain command.
|
|
@@ -7,8 +7,9 @@ allowed-tools: ["Skill", "Bash", "Read", "Write", "Glob", "Grep"]
|
|
|
7
7
|
# Generate Claude Remote Build Script: $ARGUMENTS
|
|
8
8
|
|
|
9
9
|
Produce the artifacts a user pastes into a **Claude Code remote routine environment** so this repo
|
|
10
|
-
runs in the cloud: a setup/build script that installs everything the environment needs,
|
|
11
|
-
environment-variable template
|
|
10
|
+
runs in the cloud: a setup/build script that installs everything the environment needs, an
|
|
11
|
+
environment-variable template, a network-allowlist list, and the names-only
|
|
12
|
+
`.lisa/remote-environment.json` contract consumed by `lisa ui`.
|
|
12
13
|
|
|
13
14
|
## Purpose
|
|
14
15
|
|
|
@@ -97,6 +98,17 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
97
98
|
profile implementation. Add `bash scripts/remote-agent-aws-setup.sh` to the
|
|
98
99
|
generated cloud setup after required package installation.
|
|
99
100
|
|
|
101
|
+
3c. **Write the project-aware console contract.** Write
|
|
102
|
+
`.lisa/remote-environment.json` from the same fresh inventory. Its `variables`
|
|
103
|
+
array must contain only entries that are `required: true` for this project and
|
|
104
|
+
its active integrations; omit optional, conditional, and dormant integrations.
|
|
105
|
+
Each entry contains `name`, `reason`, `source`, `secret`, and `required`, but
|
|
106
|
+
never a value. Set `startupScripts.claude` to the generated `--out` path. Do
|
|
107
|
+
not add AWS merely because Lisa ships AWS support: add
|
|
108
|
+
`LISA_AWS_BOOTSTRAP_JSON` only when the inventory reports active AWS usage.
|
|
109
|
+
Preserve any valid startup-script entries for other agents that already exist
|
|
110
|
+
in the manifest.
|
|
111
|
+
|
|
100
112
|
4. **Emit the allowlist + gaps notice.** List any custom domains the setup or runtime reaches
|
|
101
113
|
(from `networkAccess.allowlistDomains`, falling back to legacy `allowlistDomains`) that the user
|
|
102
114
|
must add when the environment needs Custom network access. Do not include default Trusted domains
|
|
@@ -106,10 +118,13 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
106
118
|
**cannot** fix.
|
|
107
119
|
|
|
108
120
|
5. **Write and report.** Write the script to `--out` (default `scripts/claude-remote-setup.sh`),
|
|
109
|
-
`chmod +x` it, and
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
`chmod +x` it, and write `.lisa/remote-environment.json`. Print both paths, a
|
|
122
|
+
one-line summary of what the script installs and which env vars to set, and
|
|
123
|
+
the exact next step (paste its contents — or a
|
|
124
|
+
`bash scripts/claude-remote-setup.sh` invocation — into the routine
|
|
125
|
+
environment's setup script, and add the env vars in the environment config).
|
|
126
|
+
When `--print` is passed, print the script to stdout and do not write either
|
|
127
|
+
file.
|
|
113
128
|
|
|
114
129
|
## Generated script shape
|
|
115
130
|
|
|
@@ -192,8 +207,8 @@ to stop are: the analysis could not run, or the `--out` path is not writable.
|
|
|
192
207
|
|
|
193
208
|
## Rules
|
|
194
209
|
|
|
195
|
-
- Always derive the script
|
|
196
|
-
assumed inventory.
|
|
210
|
+
- Always derive the script and `.lisa/remote-environment.json` from a fresh
|
|
211
|
+
`/lisa:analyze-claude-remote` run — never from a stale or assumed inventory.
|
|
197
212
|
- Never write real secret values into the script or template — names and placeholders only.
|
|
198
213
|
- For active tracker/source credentials, carry the analysis's `Acquire:` URL and `Access:` scope into
|
|
199
214
|
the template as comments, and emit only the env-var form of the name — never a keychain command.
|
|
@@ -7,8 +7,9 @@ allowed-tools: ["Skill", "Bash", "Read", "Write", "Glob", "Grep"]
|
|
|
7
7
|
# Generate Claude Remote Build Script: $ARGUMENTS
|
|
8
8
|
|
|
9
9
|
Produce the artifacts a user pastes into a **Claude Code remote routine environment** so this repo
|
|
10
|
-
runs in the cloud: a setup/build script that installs everything the environment needs,
|
|
11
|
-
environment-variable template
|
|
10
|
+
runs in the cloud: a setup/build script that installs everything the environment needs, an
|
|
11
|
+
environment-variable template, a network-allowlist list, and the names-only
|
|
12
|
+
`.lisa/remote-environment.json` contract consumed by `lisa ui`.
|
|
12
13
|
|
|
13
14
|
## Purpose
|
|
14
15
|
|
|
@@ -97,6 +98,17 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
97
98
|
profile implementation. Add `bash scripts/remote-agent-aws-setup.sh` to the
|
|
98
99
|
generated cloud setup after required package installation.
|
|
99
100
|
|
|
101
|
+
3c. **Write the project-aware console contract.** Write
|
|
102
|
+
`.lisa/remote-environment.json` from the same fresh inventory. Its `variables`
|
|
103
|
+
array must contain only entries that are `required: true` for this project and
|
|
104
|
+
its active integrations; omit optional, conditional, and dormant integrations.
|
|
105
|
+
Each entry contains `name`, `reason`, `source`, `secret`, and `required`, but
|
|
106
|
+
never a value. Set `startupScripts.claude` to the generated `--out` path. Do
|
|
107
|
+
not add AWS merely because Lisa ships AWS support: add
|
|
108
|
+
`LISA_AWS_BOOTSTRAP_JSON` only when the inventory reports active AWS usage.
|
|
109
|
+
Preserve any valid startup-script entries for other agents that already exist
|
|
110
|
+
in the manifest.
|
|
111
|
+
|
|
100
112
|
4. **Emit the allowlist + gaps notice.** List any custom domains the setup or runtime reaches
|
|
101
113
|
(from `networkAccess.allowlistDomains`, falling back to legacy `allowlistDomains`) that the user
|
|
102
114
|
must add when the environment needs Custom network access. Do not include default Trusted domains
|
|
@@ -106,10 +118,13 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
106
118
|
**cannot** fix.
|
|
107
119
|
|
|
108
120
|
5. **Write and report.** Write the script to `--out` (default `scripts/claude-remote-setup.sh`),
|
|
109
|
-
`chmod +x` it, and
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
`chmod +x` it, and write `.lisa/remote-environment.json`. Print both paths, a
|
|
122
|
+
one-line summary of what the script installs and which env vars to set, and
|
|
123
|
+
the exact next step (paste its contents — or a
|
|
124
|
+
`bash scripts/claude-remote-setup.sh` invocation — into the routine
|
|
125
|
+
environment's setup script, and add the env vars in the environment config).
|
|
126
|
+
When `--print` is passed, print the script to stdout and do not write either
|
|
127
|
+
file.
|
|
113
128
|
|
|
114
129
|
## Generated script shape
|
|
115
130
|
|
|
@@ -192,8 +207,8 @@ to stop are: the analysis could not run, or the `--out` path is not writable.
|
|
|
192
207
|
|
|
193
208
|
## Rules
|
|
194
209
|
|
|
195
|
-
- Always derive the script
|
|
196
|
-
assumed inventory.
|
|
210
|
+
- Always derive the script and `.lisa/remote-environment.json` from a fresh
|
|
211
|
+
`/lisa:analyze-claude-remote` run — never from a stale or assumed inventory.
|
|
197
212
|
- Never write real secret values into the script or template — names and placeholders only.
|
|
198
213
|
- For active tracker/source credentials, carry the analysis's `Acquire:` URL and `Access:` scope into
|
|
199
214
|
the template as comments, and emit only the env-var form of the name — never a keychain command.
|
|
@@ -7,8 +7,9 @@ allowed-tools: ["Skill", "Bash", "Read", "Write", "Glob", "Grep"]
|
|
|
7
7
|
# Generate Claude Remote Build Script: $ARGUMENTS
|
|
8
8
|
|
|
9
9
|
Produce the artifacts a user pastes into a **Claude Code remote routine environment** so this repo
|
|
10
|
-
runs in the cloud: a setup/build script that installs everything the environment needs,
|
|
11
|
-
environment-variable template
|
|
10
|
+
runs in the cloud: a setup/build script that installs everything the environment needs, an
|
|
11
|
+
environment-variable template, a network-allowlist list, and the names-only
|
|
12
|
+
`.lisa/remote-environment.json` contract consumed by `lisa ui`.
|
|
12
13
|
|
|
13
14
|
## Purpose
|
|
14
15
|
|
|
@@ -97,6 +98,17 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
97
98
|
profile implementation. Add `bash scripts/remote-agent-aws-setup.sh` to the
|
|
98
99
|
generated cloud setup after required package installation.
|
|
99
100
|
|
|
101
|
+
3c. **Write the project-aware console contract.** Write
|
|
102
|
+
`.lisa/remote-environment.json` from the same fresh inventory. Its `variables`
|
|
103
|
+
array must contain only entries that are `required: true` for this project and
|
|
104
|
+
its active integrations; omit optional, conditional, and dormant integrations.
|
|
105
|
+
Each entry contains `name`, `reason`, `source`, `secret`, and `required`, but
|
|
106
|
+
never a value. Set `startupScripts.claude` to the generated `--out` path. Do
|
|
107
|
+
not add AWS merely because Lisa ships AWS support: add
|
|
108
|
+
`LISA_AWS_BOOTSTRAP_JSON` only when the inventory reports active AWS usage.
|
|
109
|
+
Preserve any valid startup-script entries for other agents that already exist
|
|
110
|
+
in the manifest.
|
|
111
|
+
|
|
100
112
|
4. **Emit the allowlist + gaps notice.** List any custom domains the setup or runtime reaches
|
|
101
113
|
(from `networkAccess.allowlistDomains`, falling back to legacy `allowlistDomains`) that the user
|
|
102
114
|
must add when the environment needs Custom network access. Do not include default Trusted domains
|
|
@@ -106,10 +118,13 @@ tracker/source, plus the host project's own package manager and tooling — not
|
|
|
106
118
|
**cannot** fix.
|
|
107
119
|
|
|
108
120
|
5. **Write and report.** Write the script to `--out` (default `scripts/claude-remote-setup.sh`),
|
|
109
|
-
`chmod +x` it, and
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
`chmod +x` it, and write `.lisa/remote-environment.json`. Print both paths, a
|
|
122
|
+
one-line summary of what the script installs and which env vars to set, and
|
|
123
|
+
the exact next step (paste its contents — or a
|
|
124
|
+
`bash scripts/claude-remote-setup.sh` invocation — into the routine
|
|
125
|
+
environment's setup script, and add the env vars in the environment config).
|
|
126
|
+
When `--print` is passed, print the script to stdout and do not write either
|
|
127
|
+
file.
|
|
113
128
|
|
|
114
129
|
## Generated script shape
|
|
115
130
|
|
|
@@ -192,8 +207,8 @@ to stop are: the analysis could not run, or the `--out` path is not writable.
|
|
|
192
207
|
|
|
193
208
|
## Rules
|
|
194
209
|
|
|
195
|
-
- Always derive the script
|
|
196
|
-
assumed inventory.
|
|
210
|
+
- Always derive the script and `.lisa/remote-environment.json` from a fresh
|
|
211
|
+
`/lisa:analyze-claude-remote` run — never from a stale or assumed inventory.
|
|
197
212
|
- Never write real secret values into the script or template — names and placeholders only.
|
|
198
213
|
- For active tracker/source credentials, carry the analysis's `Acquire:` URL and `Access:` scope into
|
|
199
214
|
the template as comments, and emit only the env-var form of the name — never a keychain command.
|