@chipschat/opencode 1.0.1 → 1.0.2
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/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/main.js +6 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
`dist/main.js` in @chipschat/opencode 1.0.
|
|
3
|
+
`dist/main.js` in @chipschat/opencode 1.0.2 carries these packages, bundled in. Each one's
|
|
4
4
|
licence follows.
|
|
5
5
|
|
|
6
6
|
## @chipschat/harness 0.0.0 (Apache-2.0)
|
package/dist/main.js
CHANGED
|
@@ -20232,7 +20232,8 @@ var projectToken = external_exports.object({
|
|
|
20232
20232
|
path: external_exports.string().describe("The project's path on this server, which the device puts its own address in front of.")
|
|
20233
20233
|
});
|
|
20234
20234
|
var projectFolderOpenAnswer = external_exports.object({
|
|
20235
|
-
macs: external_exports.int().nonnegative().describe("How many of the person's Macs were asked.")
|
|
20235
|
+
macs: external_exports.int().nonnegative().describe("How many of the person's Macs were asked."),
|
|
20236
|
+
opened_app: external_exports.literal(true).optional().describe("No Chips for Mac of theirs was open, so the server opened the one on its own machine and waited for it (ADR 0227).")
|
|
20236
20237
|
});
|
|
20237
20238
|
var projectRun = external_exports.object({
|
|
20238
20239
|
state: external_exports.enum(["never", "starting", "running", "ended", "failed", "stopped", "opened"]).describe("Never run on that Mac; starting (setup, or waiting for it to answer); running; ended by itself; failed; stopped by the person; or opened, for pages that need no starting."),
|
|
@@ -20241,8 +20242,9 @@ var projectRun = external_exports.object({
|
|
|
20241
20242
|
ended: isoTimestamp.optional(),
|
|
20242
20243
|
code: external_exports.int().optional().describe("How it ended, as its shell said."),
|
|
20243
20244
|
opened: external_exports.string().max(600).optional().describe("What it opened, once it answered."),
|
|
20244
|
-
lines: external_exports.array(external_exports.string().max(400)).max(20).optional().describe("Its last lines, when it ended."),
|
|
20245
|
-
why: external_exports.string().max(400).optional().describe("Why the Mac didn't run it when it was last asked, in its words: no run file, or a different one.")
|
|
20245
|
+
lines: external_exports.array(external_exports.string().max(400)).max(20).optional().describe("Its last lines, when it ended, or while it runs and something went wrong."),
|
|
20246
|
+
why: external_exports.string().max(400).optional().describe("Why the Mac didn't run it when it was last asked, in its words: no run file, or a different one."),
|
|
20247
|
+
trouble: external_exports.string().max(400).optional().describe("What went wrong with the run itself, in plain words (ADR 0230): a port in use, a program the Mac doesn't have, nothing answering, the browser refusing its address.")
|
|
20246
20248
|
});
|
|
20247
20249
|
var heldRun = projectRun.extend({
|
|
20248
20250
|
mac: external_exports.string().min(1).max(120).describe("The name of the Mac it runs on."),
|
|
@@ -20354,7 +20356,7 @@ function asks(facts, options) {
|
|
|
20354
20356
|
"When your file and another's use different names for the same thing, the one that reached the project first keeps its names, and the other changes its names to match."
|
|
20355
20357
|
);
|
|
20356
20358
|
}
|
|
20357
|
-
lines2.push("When what you make is to be read (pages, PDFs, pictures), keep a start page at .chips/index.html that links to the documents worth seeing (its links start ../), with the documents themselves at the top or in folders of their own, and bring it up to date whenever you add, rename or replace one. Chips opens it in the app, and its links open there too. One document needs no start page.", `When what you make has to run on the person's Mac (a server, a script, an app), keep .chips/run.json so Run in Chips can start it from the project's folder: {"run": "the one shell command that starts it", "opens": "http://localhost:<port>, to open once it answers", "setup": "a command run first when it changes, like npm install"}. Start an app by its own program rather than with open, so Stop can close it. Leave out what it doesn't need, and check it works in your copy before you say it does.`);
|
|
20359
|
+
lines2.push("When what you make is to be read (pages, PDFs, pictures), keep a start page at .chips/index.html that links to the documents worth seeing (its links start ../), with the documents themselves at the top or in folders of their own, and bring it up to date whenever you add, rename or replace one. Chips opens it in the app, and its links open there too. One document needs no start page.", `When what you make has to run on the person's Mac (a server, a script, an app), keep .chips/run.json so Run in Chips can start it from the project's folder: {"run": "the one shell command that starts it", "opens": "http://localhost:<port>, to open once it answers", "setup": "a command run first when it changes, like npm install"}. Have it print the address it listens on, like http://localhost:4173, which is what Run opens; "opens" is for a program that prints none. Everything it runs belongs in the project: Run refuses a command that goes anywhere outside the project's folder (a cd elsewhere, a path in a home folder). Start an app by its own program rather than with open, so Stop can close it, and leave starting it to Run rather than starting it yourself. Leave out what it doesn't need, and check it works in your copy before you say it does.`);
|
|
20358
20360
|
if (facts.markdown)
|
|
20359
20361
|
lines2.push("In Markdown, put each sentence on a line of its own.");
|
|
20360
20362
|
if (facts.pages === true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chipschat/opencode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "OpenCode as a Chips harness, on its V2 server (opencode serve): each OpenCode agent a Chips agent, each room an OpenCode session.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|