@liqngliz/browser-coding-agent 0.0.0-ci.8 → 0.1.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/README.md CHANGED
@@ -60,8 +60,9 @@ node scripts/smoke.mjs --npm artifacts/npm/liqngliz-browser-coding-agent-0.0.0-l
60
60
  | `ci.yml` | PR, push to `main` | `build.yml` with version `0.0.0-ci.<run>` |
61
61
  | `build.yml` | called | tests (ubuntu/windows/macos), packs `.nupkg` + `.tgz` once, smoke-tests both on windows, macOS arm64, macOS x64, plus npm bootstrap in a container without .NET |
62
62
  | `release.yml` | tag `v<semver>` | `build.yml`, then publishes the tested artifacts to nuget.org and npm (`latest`, or `next` for prerelease tags) |
63
+ | `post-release-smoke.yml` | after `release`, or manual | waits for nuget.org to serve the version, installs the tool from nuget.org, smoke-tests it with installed Edge on windows, macOS arm64, macOS x64 |
63
64
 
64
- Release: `git tag v0.1.0 && git push origin v0.1.0`. Publish jobs use the `release` environment and OIDC trusted publishing; no API keys are stored.
65
+ Release: `git tag v0.1.0 && git push origin v0.1.0`. Run without installing: `dnx BrowserCodingAgent` (or `dnx BrowserCodingAgent@0.1.0`). Publish jobs use the `release` environment and OIDC trusted publishing; no API keys are stored.
65
66
 
66
67
  ## Running locally
67
68
 
@@ -127,5 +128,6 @@ Persistent profiles default to `~/.browser-coding-agent/profiles/<channel>` outs
127
128
  - **Streaming:** `stream: true` -> SSE `chat.completion.chunk` deltas, `data: [DONE]`, `: keep-alive` every 15s; `stream_options.include_usage` -> zero-valued usage chunk (M365 exposes no token counts). Errors after Send arrive as an in-stream `{"error": ...}` event.
128
129
  - **Parameters:** `n: 1` only; `response_format` -> HTTP 400; legacy `functions`, `temperature`, and other generation settings are ignored (logged).
129
130
  - **Tool calling (emulated):** `tools` are described in the prompt as plain text; fenced call blocks in Copilot's reply come back as `tool_calls` with `finish_reason: "tool_calls"` (streamed as one `tool_calls` delta). `tool_choice`: `none` disables tools, `required` or a named function adds a must-call line. `tool` result messages are sent as `Result of <tool name>:`. Copilot web chat has no native function calling, so calls depend on Copilot following the format.
131
+ - **Long prompts:** some M365 accounts cap the composer at 8000 characters. When the composer keeps only a prefix, or Send stays disabled on a prompt over 8000 characters, nothing is sent and the prompt is resent in parts in the same chat ("Part k of n … reply only with: received k/n"; the last part asks for the answer). Set `--Chat:MaxPromptChars=7000` on such accounts to split up front; default `0` splits only after a refusal. Each extra part uses one Copilot message.
130
132
  - **Concurrency:** Single-request gate. Overlapping requests receive HTTP 409 Conflict.
131
133
  - **Turn recovery:** Uncertain submissions or timeouts require manual recovery before accepting new prompts.
@@ -6,7 +6,7 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v10.0": {
9
- "BrowserCodingAgent.Api/0.0.0-ci.8": {
9
+ "BrowserCodingAgent.Api/0.1.2": {
10
10
  "dependencies": {
11
11
  "Microsoft.AspNetCore.OpenApi": "10.0.13",
12
12
  "Microsoft.Playwright": "1.63.0",
@@ -65,7 +65,7 @@
65
65
  }
66
66
  },
67
67
  "libraries": {
68
- "BrowserCodingAgent.Api/0.0.0-ci.8": {
68
+ "BrowserCodingAgent.Api/0.1.2": {
69
69
  "type": "project",
70
70
  "serviceable": false,
71
71
  "sha512": ""
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liqngliz/browser-coding-agent",
3
- "version": "0.0.0-ci.8",
3
+ "version": "0.1.2",
4
4
  "description": "OpenAI-compatible chat completions server backed by Microsoft 365 Copilot web chat via Playwright.",
5
5
  "bin": {
6
6
  "browser-coding-agent": "browser-coding-agent.cjs"