alchemylab-opencode 2.0.1 → 2.0.3
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/NODE_COMPAT.md +8 -1
- package/dist/20260127222353_familiar_lady_ursula-YYOFSQD5.js +18 -0
- package/dist/20260211171708_add_project_commands-3GKQTPBZ.js +18 -0
- package/dist/20260213144116_wakeful_the_professor-ROO7OAVL.js +18 -0
- package/dist/20260225215848_workspace-V2OZTNFF.js +18 -0
- package/dist/20260227213759_add_session_workspace_id-GVDWAXKM.js +18 -0
- package/dist/20260228203230_blue_harpoon-Z5QP2II5.js +18 -0
- package/dist/20260303231226_add_workspace_fields-QOVAFN7W.js +18 -0
- package/dist/20260309230000_move_org_to_state-RQURSDZD.js +18 -0
- package/dist/20260312043431_session_message_cursor-VBISKDXL.js +18 -0
- package/dist/20260323234822_events-PILJHLNA.js +18 -0
- package/dist/20260410174513_workspace-name-63YCZ5NS.js +18 -0
- package/dist/20260413175956_chief_energizer-NMAZYGDO.js +18 -0
- package/dist/20260423070820_add_icon_url_override-RAJCVNEP.js +18 -0
- package/dist/20260427172553_slow_nightmare-ULYYZLR4.js +18 -0
- package/dist/20260428004200_add_session_path-U4WO2TGE.js +18 -0
- package/dist/20260501142318_next_venus-6BCYATSC.js +18 -0
- package/dist/20260504145000_add_sync_owner-RGVHV6LN.js +18 -0
- package/dist/20260507164347_add_workspace_time-GE6UHNPM.js +18 -0
- package/dist/{20260510033149_session_usage-UGBVOXZB.js → 20260510033149_session_usage-7XHCFVKY.js} +5 -1
- package/dist/20260511000411_data_migration_state-2EGZKFLB.js +18 -0
- package/dist/20260511173437_session-metadata-K322YY33.js +18 -0
- package/dist/20260601010001_normalize_storage_paths-VZDTY366.js +18 -0
- package/dist/{20260225215848_workspace-ZMSOZSPA.js → 20260601202201_amazing_prowler-YT6PLK3L.js} +5 -1
- package/dist/{20260228203230_blue_harpoon-IW3Z4TQZ.js → 20260602002951_lowly_union_jack-6VLQTBVB.js} +5 -1
- package/dist/20260602182828_add_project_directories-TVSRD25A.js +18 -0
- package/dist/20260603001617_session_message_projection_indexes-PHKTF6HK.js +18 -0
- package/dist/{20260622170816_reset_v2_session_state-5JPHJTZG.js → 20260603040000_session_message_projection_order-7RTV2POG.js} +5 -1
- package/dist/20260603141458_session_input_inbox-RSBWABG7.js +18 -0
- package/dist/20260603160727_jittery_ezekiel_stane-DXBLLRVV.js +18 -0
- package/dist/20260604172448_event_sourced_session_input-H6Z3JEBD.js +18 -0
- package/dist/20260605003541_add_session_context_snapshot-6FDPM2TK.js +18 -0
- package/dist/20260605042240_add_context_epoch_agent-C2OF2UKR.js +18 -0
- package/dist/20260611035744_credential-YNZ47FSH.js +18 -0
- package/dist/20260611192811_lush_chimera-E357VI6P.js +18 -0
- package/dist/20260612174303_project_dir_strategy-VUGGK42O.js +18 -0
- package/dist/20260622142730_simplify_session_context_epoch-UYGXZ5BX.js +18 -0
- package/dist/20260622170816_reset_v2_session_state-EILLPCJQ.js +18 -0
- package/dist/20260622202450_simplify_session_input-Y65GDGBO.js +18 -0
- package/dist/NodeSdk-AGMQWBHH.js +18 -0
- package/dist/anthropic-45OFTLAW.js +18 -0
- package/dist/anthropic-ND6UHXWL.js +18 -0
- package/dist/app-runtime-ZWWQ4JTM.js +18 -0
- package/dist/chunk-2MRHL4B2.js +18 -0
- package/dist/chunk-2XWBNI3L.js +1490 -0
- package/dist/chunk-4MBUHJHY.js +22 -0
- package/dist/chunk-6MAPFAXY.js +190 -0
- package/dist/chunk-7XX6TY62.js +259 -0
- package/dist/chunk-ANF3QA3Z.js +48 -0
- package/dist/chunk-AUB2TEYJ.js +55 -0
- package/dist/chunk-AZUMH3TO.js +18 -0
- package/dist/chunk-BQ4IEPN3.js +19 -0
- package/dist/chunk-CYRZU5QM.js +33 -0
- package/dist/chunk-DGJQZN2Q.js +18 -0
- package/dist/chunk-DO2UZ6NY.js +18 -0
- package/dist/chunk-DZ6G4VSD.js +19 -0
- package/dist/chunk-EK6FQQHY.js +20 -0
- package/dist/chunk-ELPXQ32J.js +90 -0
- package/dist/chunk-F5PY52BY.js +18 -0
- package/dist/chunk-FGLPSSRK.js +19 -0
- package/dist/chunk-FV7U6PVP.js +18 -0
- package/dist/chunk-FYYAOZPU.js +18 -0
- package/dist/chunk-GDWO6EXN.js +22 -0
- package/dist/chunk-GW3ZRKAI.js +20 -0
- package/dist/chunk-IQSFXWDQ.js +18 -0
- package/dist/chunk-IYUSBBGY.js +35 -0
- package/dist/chunk-JPOFLMNH.js +18 -0
- package/dist/{chunk-VURLSDCB.js → chunk-K5LKDIVU.js} +4 -0
- package/dist/chunk-KS4WLVK5.js +19 -0
- package/dist/chunk-L3CE2Y3L.js +55 -0
- package/dist/chunk-LIXP4TPL.js +18 -0
- package/dist/chunk-LSC4RT5V.js +36 -0
- package/dist/chunk-M5A6NFHQ.js +28 -0
- package/dist/chunk-M6E6KNLV.js +30 -0
- package/dist/chunk-MLFZXUGQ.js +18 -0
- package/dist/chunk-NDI67DRG.js +31 -0
- package/dist/chunk-OCWGUTZJ.js +36 -0
- package/dist/chunk-OGDRUXMJ.js +18 -0
- package/dist/chunk-OGJKLJC7.js +29 -0
- package/dist/chunk-P5RLCJUV.js +18 -0
- package/dist/chunk-Q3WIUQXB.js +18 -0
- package/dist/{20260227213759_add_session_workspace_id-ROENWPKA.js → chunk-QCRIXKIC.js} +5 -1
- package/dist/chunk-QD24DLUD.js +18 -0
- package/dist/chunk-R2GWBJEP.js +18 -0
- package/dist/chunk-RIA6SDOY.js +780 -0
- package/dist/chunk-RPAXSOGH.js +18 -0
- package/dist/chunk-TK5R7QUN.js +18 -0
- package/dist/chunk-TNQWZFIZ.js +28 -0
- package/dist/chunk-UCLPBO4I.js +18 -0
- package/dist/chunk-V6FDDNGV.js +117 -0
- package/dist/chunk-V6HERYFV.js +18 -0
- package/dist/chunk-V7XKKJ7X.js +24 -0
- package/dist/chunk-VHDYUBBS.js +23 -0
- package/dist/chunk-VWLJXTZ5.js +18 -0
- package/dist/chunk-VXAPFOIL.js +22 -0
- package/dist/chunk-WKZYINC7.js +29 -0
- package/dist/chunk-WL33KE3H.js +920 -0
- package/dist/chunk-WPMP2ZFE.js +40 -0
- package/dist/chunk-WRTNIOI3.js +18 -0
- package/dist/chunk-WZ4237YY.js +19 -0
- package/dist/chunk-X5F46HR5.js +18 -0
- package/dist/chunk-XPS7TQZG.js +22 -0
- package/dist/chunk-XSKT4AXR.js +878 -0
- package/dist/chunk-YJPP6IQ3.js +23 -0
- package/dist/chunk-ZYQWFC55.js +22 -0
- package/dist/code-mode-H3HRSD24.js +502 -0
- package/dist/copilot-provider-QVMLQZZC.js +18 -0
- package/dist/dist-5NQOHNPL.js +18 -0
- package/dist/dist-7CT3XCNN.js +32 -0
- package/dist/dist-CL46WFZG.js +18 -0
- package/dist/dist-HXJTF22W.js +32 -0
- package/dist/dist-JFXI53ZF.js +22 -0
- package/dist/dist-KBYKWVT5.js +22 -0
- package/dist/dist-KGNO5AP7.js +35 -0
- package/dist/dist-KTNLTEHB.js +18 -0
- package/dist/dist-KZ5R5QM5.js +24 -0
- package/dist/{20260605042240_add_context_epoch_agent-W6IQYZXE.js → dist-LOXU6IEM.js} +5 -1
- package/dist/dist-NLXUYBW7.js +32 -0
- package/dist/dist-O4DF72J2.js +22 -0
- package/dist/dist-PH4MEGVR.js +22 -0
- package/dist/{20260511000411_data_migration_state-FB4LBFSE.js → dist-QJPOJCLB.js} +5 -1
- package/dist/dist-QYH62TCJ.js +22 -0
- package/dist/{20260303231226_add_workspace_fields-OUVZMNAG.js → dist-RIC4WKHC.js} +5 -1
- package/dist/dist-T776XKTM.js +22 -0
- package/dist/dist-TCE5MKZQ.js +23 -0
- package/dist/dist-TH2Q44RX.js +50 -0
- package/dist/dist-VV5FV5RT.js +101 -0
- package/dist/dist-WZJ3LNRG.js +28 -0
- package/dist/dist-XAFENVUS.js +22 -0
- package/dist/dist-XPFB35TX.js +32 -0
- package/dist/dist-es-43ZM44MP.js +18 -0
- package/dist/dist-es-CH2YKBKX.js +18 -0
- package/dist/{20260428004200_add_session_path-LGW75WYA.js → dist-es-DHCTZZ2E.js} +5 -1
- package/dist/dist-es-EVVG3KDV.js +26 -0
- package/dist/dist-es-HRCONNGK.js +18 -0
- package/dist/dist-es-L2GU465G.js +18 -0
- package/dist/dist-es-RGEIM2BP.js +18 -0
- package/dist/dist-es-RZ25XEH6.js +18 -0
- package/dist/dist-es-SITTNOGV.js +18 -0
- package/dist/esm-NN5W7YCL.js +18 -0
- package/dist/esm-XWJSHYHG.js +18 -0
- package/dist/getMachineId-bsd-L5I5TZ5I.js +18 -0
- package/dist/getMachineId-darwin-YB7KG37W.js +19 -0
- package/dist/getMachineId-linux-EL47KXX7.js +18 -0
- package/dist/getMachineId-unsupported-QOWPEBPN.js +18 -0
- package/dist/getMachineId-win-HCRYRDFJ.js +18 -0
- package/dist/lib-7VH6D2QJ.js +199 -0
- package/dist/loadCognitoIdentity-EWT55EI7.js +18 -0
- package/dist/loadSso-AGOUE6RL.js +18 -0
- package/dist/{20260213144116_wakeful_the_professor-ZVDD54AK.js → loadSts-RH5L3PIX.js} +5 -1
- package/dist/mantle-IJXDXT4M.js +25 -0
- package/dist/mime-types-GSWEOYZ5.js +18 -0
- package/dist/multipart-parser-KZWMKXA4.js +19 -0
- package/dist/{20260211171708_add_project_commands-GDOHPDPF.js → open-7KXTRM37.js} +5 -1
- package/dist/openai-ZOJI6I5R.js +18 -0
- package/dist/p-map-CYL6ILJW.js +18 -0
- package/dist/photon-W56QZY4L.js +18 -0
- package/dist/{20260423070820_add_icon_url_override-X5SHFGTI.js → pkce-VT4ITJTB.js} +5 -1
- package/dist/{pty.node-Y3N2XKYG.js → pty.node-IWULXXG6.js} +5 -1
- package/dist/run.js +5 -1
- package/dist/serve.js +143 -1
- package/dist/server-XRUYBM7W.js +21 -0
- package/dist/session-4BXV4JJH.js +18 -0
- package/dist/signin-DKBWDEYP.js +18 -0
- package/dist/src-JODD73WX.js +18 -0
- package/dist/src-QJHT5SCV.js +18 -0
- package/dist/src-SMM4U63G.js +18 -0
- package/dist/src-WDYKISPD.js +20 -0
- package/dist/sso-oidc-S3P64MCY.js +18 -0
- package/dist/sts-RG44NMOQ.js +18 -0
- package/dist/token-2V62AM3G.js +18 -0
- package/dist/token-util-VXONHEUD.js +18 -0
- package/dist/unified-W3ZKZ4HG.js +18 -0
- package/dist/worktree-B2LROS2B.js +18 -0
- package/package.json +40 -40
- package/postinstall.cjs +4 -2
- package/dist/20260127222353_familiar_lady_ursula-KV747FJX.js +0 -14
- package/dist/20260309230000_move_org_to_state-NOXAPU5V.js +0 -14
- package/dist/20260312043431_session_message_cursor-DJ4T3T4R.js +0 -14
- package/dist/20260323234822_events-72GIKJ2A.js +0 -14
- package/dist/20260410174513_workspace-name-JXSWFBJN.js +0 -14
- package/dist/20260413175956_chief_energizer-4HEWZ6U3.js +0 -14
- package/dist/20260427172553_slow_nightmare-PS5T2AH2.js +0 -14
- package/dist/20260501142318_next_venus-J3TLVXZ6.js +0 -14
- package/dist/20260504145000_add_sync_owner-3R52GB4C.js +0 -14
- package/dist/20260507164347_add_workspace_time-JHDRCZAR.js +0 -14
- package/dist/20260511173437_session-metadata-T2XHGWHS.js +0 -14
- package/dist/20260601010001_normalize_storage_paths-5MAY5GT3.js +0 -14
- package/dist/20260601202201_amazing_prowler-PET224YG.js +0 -14
- package/dist/20260602002951_lowly_union_jack-PG6XDMGL.js +0 -14
- package/dist/20260602182828_add_project_directories-ZCH2ACGG.js +0 -14
- package/dist/20260603001617_session_message_projection_indexes-XVLJTUF2.js +0 -14
- package/dist/20260603040000_session_message_projection_order-XG6RACZQ.js +0 -14
- package/dist/20260603141458_session_input_inbox-K2VQ7V6E.js +0 -14
- package/dist/20260603160727_jittery_ezekiel_stane-WKJLRDO7.js +0 -14
- package/dist/20260604172448_event_sourced_session_input-NTXOECR7.js +0 -14
- package/dist/20260605003541_add_session_context_snapshot-DXMQEXMT.js +0 -14
- package/dist/20260611035744_credential-XTMSYTJD.js +0 -14
- package/dist/20260611192811_lush_chimera-XPLIQMJD.js +0 -14
- package/dist/20260612174303_project_dir_strategy-FR2NGQKK.js +0 -14
- package/dist/20260622142730_simplify_session_context_epoch-NTQZR3RE.js +0 -14
- package/dist/20260622202450_simplify_session_input-2EXF2HMV.js +0 -14
- package/dist/app-runtime-HQBOCDV5.js +0 -14
- package/dist/chunk-4FEBIOI5.js +0 -865
- package/dist/chunk-4K2RXRZL.js +0 -14
- package/dist/chunk-4RFMKEKM.js +0 -1455
- package/dist/chunk-BM2C7NHL.js +0 -41
- package/dist/chunk-MKEMZFJI.js +0 -393
- package/dist/chunk-OMDJ6ZZ2.js +0 -684
- package/dist/chunk-OWMG4NNF.js +0 -186
- package/dist/chunk-QRABYJKL.js +0 -14
- package/dist/chunk-RHIWAYN5.js +0 -14
- package/dist/chunk-Z5TLIUAI.js +0 -28
- package/dist/code-mode-7BQJUARW.js +0 -40
- package/dist/copilot-provider-TX4YFKJZ.js +0 -14
- package/dist/photon-VQS5F5BI.js +0 -14
- package/dist/server-BFUQR7MX.js +0 -17
- package/dist/session-6RNXZNG6.js +0 -14
- package/dist/worktree-QHQHX3SG.js +0 -14
- package/patches/@ai-sdk%2Famazon-bedrock@4.0.166.patch +0 -164
- package/patches/@ai-sdk%2Fanthropic@3.0.111.patch +0 -528
- package/patches/@ai-sdk%2Fgoogle@3.0.73.patch +0 -69
- package/patches/@ai-sdk%2Fgroq@3.0.31.patch +0 -79
- package/patches/@ai-sdk%2Fmistral@3.0.51.patch +0 -714
- package/patches/@ai-sdk%2Fopenai-compatible@2.0.41.patch +0 -39
- package/patches/@ai-sdk%2Fopenai@3.0.88.patch +0 -280
- package/patches/@ai-sdk%2Fxai@3.0.139.patch +0 -296
- package/patches/@modelcontextprotocol%2Fsdk@1.29.0.patch +0 -647
- package/patches/@npmcli%2Fagent@4.0.2.patch +0 -13
- package/patches/effect@4.0.0-beta.83.patch +0 -57
- package/patches/gcp-metadata@8.1.2.patch +0 -14
- package/patches/pacote@21.5.0.patch +0 -18
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
diff --git a/dist/unstable/httpapi/HttpApiSchema.js b/dist/unstable/httpapi/HttpApiSchema.js
|
|
2
|
-
index ecb6603d1ee4e89e92174b3a1100e8c9c720b3f3..08b832b6b3e9e4d10df156eca36b16f571f67f6e 100644
|
|
3
|
-
--- a/dist/unstable/httpapi/HttpApiSchema.js
|
|
4
|
-
+++ b/dist/unstable/httpapi/HttpApiSchema.js
|
|
5
|
-
@@ -151,7 +151,7 @@ export const StreamSse = options => {
|
|
6
|
-
const events = options.events ?? (options.data === undefined ? undefined : Schema.Struct({
|
|
7
|
-
id: Schema.UndefinedOr(Schema.String),
|
|
8
|
-
event: Schema.String,
|
|
9
|
-
- data: Schema.fromJsonString(options.data)
|
|
10
|
-
+ data: sseDataJsonSchema(options.data)
|
|
11
|
-
}));
|
|
12
|
-
if (events === undefined) {
|
|
13
|
-
throw new Error("StreamSse requires either an events schema or a data schema");
|
|
14
|
-
@@ -166,6 +166,14 @@ export const StreamSse = options => {
|
|
15
|
-
error: options.error ?? Schema.Never
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
+const sseDataJsonSchema = data => {
|
|
19
|
-
+ const identifier = SchemaAST.resolveIdentifier(data.ast);
|
|
20
|
-
+ return identifier === undefined ? Schema.fromJsonString(data) : Schema.fromJsonString(data).annotate({
|
|
21
|
-
+ // The SSE transport field is a JSON string. Give that wrapper its own
|
|
22
|
-
+ // OpenAPI identifier so it does not claim the decoded data schema's name.
|
|
23
|
-
+ identifier: `${identifier}Stream`
|
|
24
|
-
+ });
|
|
25
|
-
+};
|
|
26
|
-
/**
|
|
27
|
-
* Creates a streaming `Uint8Array` success response schema.
|
|
28
|
-
*
|
|
29
|
-
diff --git a/src/unstable/httpapi/HttpApiSchema.ts b/src/unstable/httpapi/HttpApiSchema.ts
|
|
30
|
-
index f2920365cf0328146523ce2e2dba04d6a8809a4a..5482d635cdf01a72063ff683d244fab891910211 100644
|
|
31
|
-
--- a/src/unstable/httpapi/HttpApiSchema.ts
|
|
32
|
-
+++ b/src/unstable/httpapi/HttpApiSchema.ts
|
|
33
|
-
@@ -433,7 +433,7 @@ export const StreamSse: {
|
|
34
|
-
const events = options.events ?? (options.data === undefined ? undefined : Schema.Struct({
|
|
35
|
-
id: Schema.UndefinedOr(Schema.String),
|
|
36
|
-
event: Schema.String,
|
|
37
|
-
- data: Schema.fromJsonString(options.data)
|
|
38
|
-
+ data: sseDataJsonSchema(options.data)
|
|
39
|
-
}))
|
|
40
|
-
if (events === undefined) {
|
|
41
|
-
throw new Error("StreamSse requires either an events schema or a data schema")
|
|
42
|
-
@@ -449,6 +449,15 @@ export const StreamSse: {
|
|
43
|
-
})
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
+const sseDataJsonSchema = (data: Schema.Constraint) => {
|
|
47
|
-
+ const identifier = SchemaAST.resolveIdentifier(data.ast)
|
|
48
|
-
+ return identifier === undefined ? Schema.fromJsonString(data) : Schema.fromJsonString(data).annotate({
|
|
49
|
-
+ // The SSE transport field is a JSON string. Give that wrapper its own
|
|
50
|
-
+ // OpenAPI identifier so it does not claim the decoded data schema's name.
|
|
51
|
-
+ identifier: `${identifier}Stream`
|
|
52
|
-
+ })
|
|
53
|
-
+}
|
|
54
|
-
+
|
|
55
|
-
/**
|
|
56
|
-
* Creates a streaming `Uint8Array` success response schema.
|
|
57
|
-
*
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
diff --git a/build/src/index.js b/build/src/index.js
|
|
2
|
-
--- a/build/src/index.js
|
|
3
|
-
+++ b/build/src/index.js
|
|
4
|
-
@@ -323,6 +323,10 @@ async function isAvailable() {
|
|
5
|
-
if (process.env.DEBUG_AUTH) {
|
|
6
|
-
console.info(err);
|
|
7
|
-
}
|
|
8
|
-
+ // Promise.any() rejects with AggregateError when neither metadata host
|
|
9
|
-
+ // is available. This is expected outside GCP, not a warning condition.
|
|
10
|
-
+ if (err instanceof AggregateError)
|
|
11
|
-
+ return false;
|
|
12
|
-
if (err.type === 'request-timeout') {
|
|
13
|
-
// If running in a GCP environment, metadata endpoint should return
|
|
14
|
-
// within ms.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
diff --git a/lib/git.js b/lib/git.js
|
|
2
|
-
index 000ee9fc..a2a6cbb7 100644
|
|
3
|
-
--- a/lib/git.js
|
|
4
|
-
+++ b/lib/git.js
|
|
5
|
-
@@ -254,8 +254,11 @@ class GitFetcher extends Fetcher {
|
|
6
|
-
resolved: this.resolved,
|
|
7
|
-
integrity: null, // it'll always be different, if we have one
|
|
8
|
-
}).extract(tmp).then(() => handler(`${tmp}${this.spec.gitSubdir || ''}`), er => {
|
|
9
|
-
- // fall back to ssh download if tarball fails
|
|
10
|
-
- if (er.constructor.name.match(/^Http/)) {
|
|
11
|
-
+ // fall back to clone if the tarball download fails due to an
|
|
12
|
-
+ // HTTP error or if the response is not a valid tarball (e.g.
|
|
13
|
-
+ // a hosted provider returning an HTML sign-in page with 200)
|
|
14
|
-
+ if ((typeof er.statusCode === 'number' && er.statusCode >= 400) ||
|
|
15
|
-
+ /^TAR_/.test(er.code)) {
|
|
16
|
-
return this.#clone(handler, false)
|
|
17
|
-
} else {
|
|
18
|
-
throw er
|