@songtonyli/dsh-cli 0.1.32 → 0.1.33
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 +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@bufbuild/protobuf/README.md +41 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/clone.js +66 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/boot.js +18 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/enum.js +31 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/extension.js +28 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/file.js +18 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/index.js +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/message.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/service.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.js +43 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/types.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/boot.js +105 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.js +244 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/enum.js +58 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/extension.js +28 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.js +35 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/index.js +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/message.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/restore-json-names.js +29 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/scalar.js +67 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/service.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.js +74 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/types.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +296 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/descriptors.js +53 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/equals.js +209 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/extensions.js +168 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/fields.js +45 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +415 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +1037 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/index.js +55 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/is-message.js +33 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/json-value.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/merge.js +70 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/package.json +4 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/proto-int64.js +131 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/error.js +36 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/guard.js +78 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/index.js +41 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +157 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/names.js +115 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/nested-types.js +110 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/path.js +376 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +292 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-types.js +16 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +469 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/scalar.js +129 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.js +149 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +954 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +437 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +625 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/from-text.js +684 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/index.js +21 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/is-group-like.js +47 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/reader.js +481 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/to-text.js +358 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/writer.js +220 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/types.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/unknown-enum.js +26 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +188 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +726 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +37 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/size-delimited.js +191 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +106 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-format.js +199 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +334 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.js +75 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.js +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/any_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/api_pb.js +39 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +68 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/cpp_features_pb.js +60 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/descriptor_pb.js +892 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/duration_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/empty_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/field_mask_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/go_features_pb.js +126 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/java_features_pb.js +106 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/source_context_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/struct_pb.js +59 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/timestamp_pb.js +27 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/type_pb.js +242 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/wrappers_pb.js +67 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.js +48 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +44 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.js +57 -0
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +66 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/clone.js +63 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/boot.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +26 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +25 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +23 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +21 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +40 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +101 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +239 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +53 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +25 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +32 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +23 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +21 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +26 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +63 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +71 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/create.js +293 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +50 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/equals.js +206 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +159 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/fields.js +41 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +409 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +1029 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/index.js +29 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +30 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/merge.js +67 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/package.json +4 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +128 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +31 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +71 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +21 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +152 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +109 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +105 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +369 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +284 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +464 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +124 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +140 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +948 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +433 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +620 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/from-text.js +680 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/index.js +15 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/is-group-like.js +44 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/reader.js +477 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/to-text.js +355 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/writer.js +214 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/types.js +14 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/unknown-enum.js +23 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +184 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +721 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +18 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +186 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +101 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +195 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +325 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +69 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +35 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +36 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +65 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +57 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +888 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +123 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +103 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +56 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +239 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +64 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +32 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +41 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +50 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +61 -0
- package/node_modules/@bufbuild/protobuf/package.json +136 -0
- package/node_modules/@deepseek-ai/dsh-base/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +142 -0
- package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +142 -0
- package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +3013 -0
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +61 -0
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +44 -18
- package/package.json +5 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Copyright 2021-2026 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
|
15
|
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file google/protobuf/wrappers.proto.
|
|
18
|
+
*/
|
|
19
|
+
export const file_google_protobuf_wrappers = /*@__PURE__*/ fileDesc("Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZhbHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASABKAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoDSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUSDQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEKDAQoTY29tLmdvb2dsZS5wcm90b2J1ZkINV3JhcHBlcnNQcm90b1ABWjFnb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi93cmFwcGVyc3Bi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message google.protobuf.DoubleValue.
|
|
22
|
+
* Use `create(DoubleValueSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const DoubleValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 0);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message google.protobuf.FloatValue.
|
|
27
|
+
* Use `create(FloatValueSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const FloatValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 1);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message google.protobuf.Int64Value.
|
|
32
|
+
* Use `create(Int64ValueSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const Int64ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 2);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message google.protobuf.UInt64Value.
|
|
37
|
+
* Use `create(UInt64ValueSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const UInt64ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 3);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message google.protobuf.Int32Value.
|
|
42
|
+
* Use `create(Int32ValueSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export const Int32ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 4);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message google.protobuf.UInt32Value.
|
|
47
|
+
* Use `create(UInt32ValueSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const UInt32ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 5);
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message google.protobuf.BoolValue.
|
|
52
|
+
* Use `create(BoolValueSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const BoolValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 6);
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message google.protobuf.StringValue.
|
|
57
|
+
* Use `create(StringValueSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export const StringValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 7);
|
|
60
|
+
/**
|
|
61
|
+
* Describes the message google.protobuf.BytesValue.
|
|
62
|
+
* Use `create(BytesValueSchema)` to create a new message.
|
|
63
|
+
*/
|
|
64
|
+
export const BytesValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 8);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Copyright 2021-2026 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
export * from "./timestamp.js";
|
|
15
|
+
export * from "./duration.js";
|
|
16
|
+
export * from "./any.js";
|
|
17
|
+
export * from "./wrappers.js";
|
|
18
|
+
export * from "./gen/google/protobuf/any_pb.js";
|
|
19
|
+
export * from "./gen/google/protobuf/api_pb.js";
|
|
20
|
+
export * from "./gen/google/protobuf/cpp_features_pb.js";
|
|
21
|
+
export * from "./gen/google/protobuf/descriptor_pb.js";
|
|
22
|
+
export * from "./gen/google/protobuf/duration_pb.js";
|
|
23
|
+
export * from "./gen/google/protobuf/empty_pb.js";
|
|
24
|
+
export * from "./gen/google/protobuf/field_mask_pb.js";
|
|
25
|
+
export * from "./gen/google/protobuf/go_features_pb.js";
|
|
26
|
+
export * from "./gen/google/protobuf/java_features_pb.js";
|
|
27
|
+
export * from "./gen/google/protobuf/source_context_pb.js";
|
|
28
|
+
export * from "./gen/google/protobuf/struct_pb.js";
|
|
29
|
+
export * from "./gen/google/protobuf/timestamp_pb.js";
|
|
30
|
+
export * from "./gen/google/protobuf/type_pb.js";
|
|
31
|
+
export * from "./gen/google/protobuf/wrappers_pb.js";
|
|
32
|
+
export * from "./gen/google/protobuf/compiler/plugin_pb.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Copyright 2021-2026 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
/**
|
|
15
|
+
* Minimum google.protobuf.Timestamp in milliseconds (inclusive).
|
|
16
|
+
* Only enforced in ProtoJSON.
|
|
17
|
+
*
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
export const timestampMsMin = /*@__PURE__*/ Date.parse("0001-01-01T00:00:00Z");
|
|
21
|
+
/**
|
|
22
|
+
* Maximum google.protobuf.Timestamp in milliseconds (inclusive).
|
|
23
|
+
* Only enforced in ProtoJSON.
|
|
24
|
+
*
|
|
25
|
+
* @private
|
|
26
|
+
*/
|
|
27
|
+
export const timestampMsMax = /*@__PURE__*/ Date.parse("9999-12-31T23:59:59Z");
|
|
28
|
+
/**
|
|
29
|
+
* Minimum google.protobuf.Duration in seconds.
|
|
30
|
+
* Only enforced in ProtoJSON.
|
|
31
|
+
*
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
export const durationSecondsMin = -315576000000;
|
|
35
|
+
/**
|
|
36
|
+
* Maximum google.protobuf.Duration in seconds.
|
|
37
|
+
* Only enforced in ProtoJSON.
|
|
38
|
+
*
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
export const durationSecondsMax = 315576000000;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright 2021-2026 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { TimestampSchema } from "./gen/google/protobuf/timestamp_pb.js";
|
|
15
|
+
import { create } from "../create.js";
|
|
16
|
+
import { protoInt64 } from "../proto-int64.js";
|
|
17
|
+
/**
|
|
18
|
+
* Create a google.protobuf.Timestamp for the current time.
|
|
19
|
+
*/
|
|
20
|
+
export function timestampNow() {
|
|
21
|
+
return timestampFromDate(new Date());
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create a google.protobuf.Timestamp message from an ECMAScript Date.
|
|
25
|
+
*/
|
|
26
|
+
export function timestampFromDate(date) {
|
|
27
|
+
return timestampFromMs(date.getTime());
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Convert a google.protobuf.Timestamp message to an ECMAScript Date.
|
|
31
|
+
*/
|
|
32
|
+
export function timestampDate(timestamp) {
|
|
33
|
+
return new Date(timestampMs(timestamp));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds.
|
|
37
|
+
*/
|
|
38
|
+
export function timestampFromMs(timestampMs) {
|
|
39
|
+
const seconds = Math.floor(timestampMs / 1000);
|
|
40
|
+
return create(TimestampSchema, {
|
|
41
|
+
seconds: protoInt64.parse(seconds),
|
|
42
|
+
nanos: (timestampMs - seconds * 1000) * 1000000,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds.
|
|
47
|
+
*/
|
|
48
|
+
export function timestampMs(timestamp) {
|
|
49
|
+
return (Number(timestamp.seconds) * 1000 + Math.round(timestamp.nanos / 1000000));
|
|
50
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Copyright 2021-2026 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
export function isWrapper(arg) {
|
|
15
|
+
return isWrapperTypeName(arg.$typeName);
|
|
16
|
+
}
|
|
17
|
+
export function isWrapperDesc(messageDesc) {
|
|
18
|
+
const f = messageDesc.fields[0];
|
|
19
|
+
return (isWrapperTypeName(messageDesc.typeName) &&
|
|
20
|
+
f !== undefined &&
|
|
21
|
+
f.fieldKind == "scalar" &&
|
|
22
|
+
f.name == "value" &&
|
|
23
|
+
f.number == 1);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the descriptor is a well-known type with a custom JSON
|
|
27
|
+
* representation per the protobuf JSON spec. Examples: Timestamp as an
|
|
28
|
+
* RFC 3339 string, Duration as "5s", wrappers as the unwrapped scalar.
|
|
29
|
+
*
|
|
30
|
+
* When packed inside `google.protobuf.Any`, these messages are serialized
|
|
31
|
+
* as `{"@type": ..., "value": <custom form>}`; all other messages embed
|
|
32
|
+
* their fields directly.
|
|
33
|
+
*/
|
|
34
|
+
export function hasCustomJsonRepresentation(desc) {
|
|
35
|
+
switch (desc.typeName) {
|
|
36
|
+
case "google.protobuf.Any":
|
|
37
|
+
case "google.protobuf.Timestamp":
|
|
38
|
+
case "google.protobuf.Duration":
|
|
39
|
+
case "google.protobuf.FieldMask":
|
|
40
|
+
case "google.protobuf.Struct":
|
|
41
|
+
case "google.protobuf.Value":
|
|
42
|
+
case "google.protobuf.ListValue":
|
|
43
|
+
return true;
|
|
44
|
+
default:
|
|
45
|
+
return isWrapperDesc(desc);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const wrapperTypeNames = /*@__PURE__*/ new Set([
|
|
49
|
+
"google.protobuf.DoubleValue",
|
|
50
|
+
"google.protobuf.FloatValue",
|
|
51
|
+
"google.protobuf.Int64Value",
|
|
52
|
+
"google.protobuf.UInt64Value",
|
|
53
|
+
"google.protobuf.Int32Value",
|
|
54
|
+
"google.protobuf.UInt32Value",
|
|
55
|
+
"google.protobuf.BoolValue",
|
|
56
|
+
"google.protobuf.StringValue",
|
|
57
|
+
"google.protobuf.BytesValue",
|
|
58
|
+
]);
|
|
59
|
+
function isWrapperTypeName(name) {
|
|
60
|
+
return wrapperTypeNames.has(name);
|
|
61
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bufbuild/protobuf",
|
|
3
|
+
"version": "2.15.0",
|
|
4
|
+
"license": "(Apache-2.0 AND BSD-3-Clause)",
|
|
5
|
+
"description": "Protocol Buffers for ECMAScript. Fully compliant with the Protobuf conformance tests.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"protobuf",
|
|
8
|
+
"schema",
|
|
9
|
+
"typescript",
|
|
10
|
+
"ecmascript"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://protobufes.com/",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/bufbuild/protobuf-es.git",
|
|
16
|
+
"directory": "packages/protobuf"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"tshy": {
|
|
21
|
+
"selfLink": false,
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./src/index.ts",
|
|
24
|
+
"./codegenv1": "./src/codegenv1/index.ts",
|
|
25
|
+
"./codegenv2": "./src/codegenv2/index.ts",
|
|
26
|
+
"./reflect": "./src/reflect/index.ts",
|
|
27
|
+
"./wkt": "./src/wkt/index.ts",
|
|
28
|
+
"./wire": "./src/wire/index.ts",
|
|
29
|
+
"./txtpb": "./src/txtpb/index.ts"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"tshy": "^4.1.3",
|
|
34
|
+
"upstream-protobuf": "*"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist/**"
|
|
38
|
+
],
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/esm/index.d.ts",
|
|
43
|
+
"default": "./dist/esm/index.js"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
47
|
+
"default": "./dist/commonjs/index.js"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"./codegenv1": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/esm/codegenv1/index.d.ts",
|
|
53
|
+
"default": "./dist/esm/codegenv1/index.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/commonjs/codegenv1/index.d.ts",
|
|
57
|
+
"default": "./dist/commonjs/codegenv1/index.js"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"./codegenv2": {
|
|
61
|
+
"import": {
|
|
62
|
+
"types": "./dist/esm/codegenv2/index.d.ts",
|
|
63
|
+
"default": "./dist/esm/codegenv2/index.js"
|
|
64
|
+
},
|
|
65
|
+
"require": {
|
|
66
|
+
"types": "./dist/commonjs/codegenv2/index.d.ts",
|
|
67
|
+
"default": "./dist/commonjs/codegenv2/index.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"./reflect": {
|
|
71
|
+
"import": {
|
|
72
|
+
"types": "./dist/esm/reflect/index.d.ts",
|
|
73
|
+
"default": "./dist/esm/reflect/index.js"
|
|
74
|
+
},
|
|
75
|
+
"require": {
|
|
76
|
+
"types": "./dist/commonjs/reflect/index.d.ts",
|
|
77
|
+
"default": "./dist/commonjs/reflect/index.js"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"./wkt": {
|
|
81
|
+
"import": {
|
|
82
|
+
"types": "./dist/esm/wkt/index.d.ts",
|
|
83
|
+
"default": "./dist/esm/wkt/index.js"
|
|
84
|
+
},
|
|
85
|
+
"require": {
|
|
86
|
+
"types": "./dist/commonjs/wkt/index.d.ts",
|
|
87
|
+
"default": "./dist/commonjs/wkt/index.js"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"./wire": {
|
|
91
|
+
"import": {
|
|
92
|
+
"types": "./dist/esm/wire/index.d.ts",
|
|
93
|
+
"default": "./dist/esm/wire/index.js"
|
|
94
|
+
},
|
|
95
|
+
"require": {
|
|
96
|
+
"types": "./dist/commonjs/wire/index.d.ts",
|
|
97
|
+
"default": "./dist/commonjs/wire/index.js"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"./txtpb": {
|
|
101
|
+
"import": {
|
|
102
|
+
"types": "./dist/esm/txtpb/index.d.ts",
|
|
103
|
+
"default": "./dist/esm/txtpb/index.js"
|
|
104
|
+
},
|
|
105
|
+
"require": {
|
|
106
|
+
"types": "./dist/commonjs/txtpb/index.d.ts",
|
|
107
|
+
"default": "./dist/commonjs/txtpb/index.js"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"main": "./dist/commonjs/index.js",
|
|
112
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
113
|
+
"module": "./dist/esm/index.js",
|
|
114
|
+
"typesVersions": {
|
|
115
|
+
"*": {
|
|
116
|
+
"codegenv1": [
|
|
117
|
+
"./dist/commonjs/codegenv1/index.d.ts"
|
|
118
|
+
],
|
|
119
|
+
"codegenv2": [
|
|
120
|
+
"./dist/commonjs/codegenv2/index.d.ts"
|
|
121
|
+
],
|
|
122
|
+
"reflect": [
|
|
123
|
+
"./dist/commonjs/reflect/index.d.ts"
|
|
124
|
+
],
|
|
125
|
+
"wkt": [
|
|
126
|
+
"./dist/commonjs/wkt/index.d.ts"
|
|
127
|
+
],
|
|
128
|
+
"wire": [
|
|
129
|
+
"./dist/commonjs/wire/index.d.ts"
|
|
130
|
+
],
|
|
131
|
+
"txtpb": [
|
|
132
|
+
"./dist/commonjs/txtpb/index.d.ts"
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"@deepseek-ai/dsh-llm": "0.1.7-alpha.1",
|
|
62
62
|
"@deepseek-ai/dsh-llm-deepseek": "0.1.7-alpha.1",
|
|
63
63
|
"@deepseek-ai/dsh-llm-pi-ai": "0.1.7-alpha.1",
|
|
64
|
+
"@deepseek-ai/dsh-llm-cursor": "0.1.6-alpha.2",
|
|
64
65
|
"@deepseek-ai/dsh-llm-retry": "0.1.7-alpha.1",
|
|
65
66
|
"@deepseek-ai/dsh-mcp-resources": "0.1.7-alpha.1",
|
|
66
67
|
"@deepseek-ai/dsh-permission-presets": "0.1.7-alpha.1",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"micromark-util-sanitize-uri": "^2.0.1",
|
|
49
49
|
"simple-icons": "16.31.0",
|
|
50
50
|
"@deepseek-ai/dsh-client-store": "^0.1.7-alpha.1",
|
|
51
|
-
"@deepseek-ai/
|
|
52
|
-
"@deepseek-ai/
|
|
51
|
+
"@deepseek-ai/dsh-util-workspace-path": "^0.1.7-alpha.1",
|
|
52
|
+
"@deepseek-ai/cordis": "^4.0.3"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"lib/index.js",
|
|
@@ -158,7 +158,7 @@ window.__ModuleLoader__.load({
|
|
|
158
158
|
const SCROLLBAR_LINGER_MS = 2e3;
|
|
159
159
|
/** Format complete-build metadata for the local brand badge. */
|
|
160
160
|
function localBuildVersion() {
|
|
161
|
-
return `0.1.7-alpha.1-
|
|
161
|
+
return `0.1.7-alpha.1-26828f2` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
|
|
162
162
|
}
|
|
163
163
|
/** Each panel row subscribes only to its own selection state. */
|
|
164
164
|
function PanelRow({ id, label, wide, usePanelInfo, selectPanel, renderSlot }) {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "~18.3.1",
|
|
27
|
-
"@deepseek-ai/
|
|
28
|
-
"@deepseek-ai/
|
|
27
|
+
"@deepseek-ai/dsh-client-store": "^0.1.7-alpha.1",
|
|
28
|
+
"@deepseek-ai/cordis": "^4.0.3"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"lib/index.js",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
|
|
2
|
+
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
|
+
# after editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm run verify-translation-pairing --write packages/llm/llm-cursor/README.md
|
|
5
|
+
README.md: c0715daa65f56dbc5ef7b039e41ac2e225f7e52f
|
|
6
|
+
README.zh.md: e21c4d085c8b61ffeaa0df84a5ee30dba865948a
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Stream Cursor subscription models through the always-on cursor route with PKCE sign-in and unofficial Connect/protobuf HTTP/2."
|
|
3
|
+
kind: "package-reference"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @deepseek-ai/dsh-llm-cursor
|
|
7
|
+
|
|
8
|
+
English | [中文](README.zh.md)
|
|
9
|
+
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
`@deepseek-ai/dsh-llm-cursor` registers the always-on `cursor` route, signs in with a Cursor subscription through PKCE, and streams each harness step as one unofficial Connect/protobuf HTTP/2 `AgentService/Run`. Settings → Models shows a Cursor card with Sign in; TUI `/login llm-cursor/cursor` lists the same flow. This package can run beside the [DeepSeek](../llm-deepseek/README.md) and [pi-ai](../llm-pi-ai/README.md) adapters.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Use this package](#use-this-package)
|
|
17
|
+
- [Understand the implementation](#understand-the-implementation)
|
|
18
|
+
- [Further Exploration](#further-exploration)
|
|
19
|
+
- [Model Experience](#model-experience)
|
|
20
|
+
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
|
21
|
+
- [Dev Note](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## Use this package
|
|
27
|
+
|
|
28
|
+
Mount this plugin when a composition should offer Cursor subscription models. The base bundle already does. The plugin registers `cursor` as soon as it loads; there is no Add-provider step.
|
|
29
|
+
|
|
30
|
+
### When to choose it
|
|
31
|
+
|
|
32
|
+
Choose this adapter to use a Cursor subscription from TUI, Web, or headless with `CURSOR_ACCESS_TOKEN` or a stored grant. Choose `dsh-llm-pi-ai` for Codex and other pi-ai catalog subscriptions, and `dsh-llm-deepseek` for the official DeepSeek route. The three adapters can be mounted together because their route names do not collide.
|
|
33
|
+
|
|
34
|
+
### Minimal configuration
|
|
35
|
+
|
|
36
|
+
```yaml
|
|
37
|
+
- name: '@deepseek-ai/dsh-llm-cursor'
|
|
38
|
+
config:
|
|
39
|
+
apiKeyEnv: CURSOR_ACCESS_TOKEN
|
|
40
|
+
reuseInstalledCursorLogin: true
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
A request selects the route with `provider: cursor`. Model ids pass through; bundled fallback names include `composer-2`, `composer-2-fast`, `composer-1.5`, `claude-4.5-sonnet`, `claude-4.6-opus-high`, and `gpt-5.1`. After sign-in, `GetUsableModels` replaces that list and caches it under `$DSH_HOME/cache/llm-cursor/usable-models.json`. Unlisted ids still resolve as text-only routes.
|
|
44
|
+
|
|
45
|
+
| Field | Default | Meaning |
|
|
46
|
+
|---|---|---|
|
|
47
|
+
| `apiKeyEnv` | `CURSOR_ACCESS_TOKEN` | Credential reference resolved per request before a stored grant or harvest |
|
|
48
|
+
| `reuseInstalledCursorLogin` | `true` | Whether a request may reuse a Cursor IDE or CLI login already on this machine |
|
|
49
|
+
| `streamIdleTimeoutMs` | `300,000` | Maximum provider idle time per outstanding stream read |
|
|
50
|
+
| `retryPolicy` | normal, 5 retries | Provider-owned retry policy executed by `dsh-llm-retry` |
|
|
51
|
+
|
|
52
|
+
The generated [configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-llm-cursor) is the exhaustive source for every accepted field and its JSDoc.
|
|
53
|
+
|
|
54
|
+
### Sign in
|
|
55
|
+
|
|
56
|
+
Web: Settings → Models → Cursor → **Sign in**. The dialog opens `https://cursor.com/loginDeepControl`; complete the page and the grant is stored at `llm-cursor/cursor`.
|
|
57
|
+
|
|
58
|
+
TUI: `/login llm-cursor/cursor`. Headless does not start a browser; export `CURSOR_ACCESS_TOKEN` or reuse a grant written by a previous sign-in.
|
|
59
|
+
|
|
60
|
+
Sign-out is `deleteRecord` on that key. It does not revoke the session at Cursor and does not log out the IDE or CLI.
|
|
61
|
+
|
|
62
|
+
<a id="understand-the-implementation"></a>
|
|
63
|
+
## Understand the implementation
|
|
64
|
+
|
|
65
|
+
Request-time token order is: launch-environment `CURSOR_ACCESS_TOKEN`, then the stored OAuth grant (refresh inside `modifyRecord` when near expiry), then optional Keychain / `state.vscdb` harvest when `reuseInstalledCursorLogin` is true. A stored DSH login wins over harvest.
|
|
66
|
+
|
|
67
|
+
Each DSH model step is a new HTTP/2 Connect `Run` rebuilt from harness history, system prompt, and MCP tool definitions (`providerIdentifier: dsh`, `clientName: dsh`). Cursor's server builds the model prompt from `root_prompt_messages_json`, never renders `conversation_state.turns` into it, and discards a `{"role":"system"}` entry there in favour of its own prompt. The adapter therefore publishes the system prompt as a `<rules>` user prompt message and replays every prior turn as `user`, `assistant`, and `tool` prompt messages, naming historic MCP calls `mcp_dsh_<tool>` as Cursor does; the turn structures ride along for the server's bookkeeping. The request-context answer adds one global Cursor rule telling the model that Cursor's built-in tools return a rejection here and that the `mcp_dsh_` tools are the ones to call.
|
|
68
|
+
|
|
69
|
+
Text, thinking, usage, and MCP tool calls become `StreamChunk`. An MCP tool call finishes the stream so the agent loop can run the tool locally. The next Run replays that in-flight turn with its results and sends a fixed continuation notice as the user message a Run requires; a `resumeAction` is not used because the server restarts the turn from its user message instead of continuing it. A Cursor-native workspace exec (`read`, `shell`, `grep`, and kin) is answered with its typed rejection naming the harness tool to call instead, so the Run continues and the model reads the refusal as a tool outcome; an exec this build does not know fails the step.
|
|
70
|
+
|
|
71
|
+
Attribution headers required by `LlmAdapter` go on every HTTP/2 request, with Cursor client headers `x-ghost-mode`, `x-cursor-client-version`, and `x-cursor-client-type`.
|
|
72
|
+
|
|
73
|
+
<a id="further-exploration"></a>
|
|
74
|
+
## Further Exploration
|
|
75
|
+
|
|
76
|
+
- [Configure models](../../../docs/user/guide/providers.md) — Web and TUI sign-in, including Cursor beside Codex.
|
|
77
|
+
- [LLM streaming subsystem](../../../docs/subsystems/llm-streaming.md) — `StreamChunk` and the adapter contract.
|
|
78
|
+
- [Cursor subscription sign-in and native adapter](../../../.agents/notes/implemented/feature/2026-09-18-cursor-subscription-signin-and-adapter.md) — why this is a third adapter family rather than a pi-ai catalog entry.
|
|
79
|
+
|
|
80
|
+
<a id="model-experience"></a>
|
|
81
|
+
## Model Experience
|
|
82
|
+
|
|
83
|
+
### Cursor Run request
|
|
84
|
+
|
|
85
|
+
#### What the model sees
|
|
86
|
+
|
|
87
|
+
One rebuilt Cursor `AgentRunRequest` whose `root_prompt_messages_json` carries the model-visible history: the system prompt as a `<rules>` user message, then each prior human turn as a `<user_query>` user message, harness-injected catalogs, snapshots, and notices as separate user messages that are not wrapped in `<user_query>`, assistant messages holding text and `tool-call` parts named `mcp_dsh_<tool>`, and `tool` messages holding the results; thinking is not replayed. The current user action is the human prompt only — a Run has one `userMessageAction`, so skill catalogs and runtime snapshots ride the root prompt instead of joining that action. After locally executed tool calls, the in-flight turn is replayed with its results and the user action is the fixed notice `The results of your tool calls are in the tool messages above. Continue the task.`. The request context carries one global rule stating that Cursor's built-in tools return a rejection and naming the `mcp_dsh_` tools as the ones to call. Images reach the model as the harness's text-only placeholder because the route declares text-only input; no image bytes are sent. Cursor still offers its own built-in tools beside the harness MCP tools.
|
|
88
|
+
|
|
89
|
+
#### Token effect
|
|
90
|
+
|
|
91
|
+
Provider tokenization governs exact input. History is fully rebuilt on every DSH step, so the wire request is the current assembled messages rather than a resumed Cursor conversation. Replayed history travels twice on the wire, as prompt messages and as turn structures, but only the prompt messages reach the model. Cursor reports no prompt usage, so `inputTokens` is an estimate of one token per four characters of rules, replayed prompt messages, action text, and MCP tool definitions; `outputTokens` comes from Cursor's `tokenDelta` events.
|
|
92
|
+
|
|
93
|
+
#### KV Cache effect
|
|
94
|
+
|
|
95
|
+
Each step is an independent Run. A changed system prompt, history, tool schema, or model id produces a new request and does not reuse a Cursor-side conversation prefix.
|
|
96
|
+
|
|
97
|
+
### Cursor Run response
|
|
98
|
+
|
|
99
|
+
#### What the model sees
|
|
100
|
+
|
|
101
|
+
Text deltas, thinking deltas, token usage, and MCP tool calls become harness chunks. An MCP tool call finishes the stream with `tool-calls`. A native exec is answered with a rejection and the stream continues; an unknown exec fails the turn.
|
|
102
|
+
|
|
103
|
+
#### Token effect
|
|
104
|
+
|
|
105
|
+
Generated content affects later inputs only after the loop records it. Output token counts come from Cursor `tokenDelta` events when present.
|
|
106
|
+
|
|
107
|
+
#### KV Cache effect
|
|
108
|
+
|
|
109
|
+
Loop-retained response blocks append to the next rebuilt Run. Unrecorded transport frames do not affect later cache identity.
|
|
110
|
+
|
|
111
|
+
## Known Limitations and Deferred Work
|
|
112
|
+
|
|
113
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
114
|
+
|
|
115
|
+
These limits define where the adapter stops. They are current package constraints, not a Cursor product comparison.
|
|
116
|
+
|
|
117
|
+
- **The integration is unofficial** — auth URLs, headers, client version, and `agent.v1` can change without notice and break this adapter.
|
|
118
|
+
- **Native Cursor workspace execs are not executed** — `read`, `shell`, and kin receive a typed rejection naming the harness tool, so a model that picks one spends a round trip on the refusal before calling the `mcp_dsh_` tool.
|
|
119
|
+
- **There is no parked HTTP/2 conversation** — each DSH step is a new Run; mid-tool resume on the same Cursor stream is out of scope.
|
|
120
|
+
- **Tool results reach the model as replayed prompt messages plus a fixed continuation notice** — Cursor delivers results in-stream natively; the notice is adapter-owned text the human never typed.
|
|
121
|
+
- **`GenerateOptions.stop` is unsupported** — the unofficial Run does not map stop sequences.
|
|
122
|
+
- **Image bytes are not sent** — the route declares text-only input, so every image reaches the model as the harness's text-only placeholder rather than as a Cursor selected image.
|
|
123
|
+
- **`maxTokens`, `temperature`, and `reasoningEffort` are not mapped** — the Run has no fields for them; effort is chosen through the Cursor model id suffix such as `-high`.
|
|
124
|
+
- **Reasoning is not replayed** — Cursor renders no `reasoning` prompt part, so a thinking model re-derives its plan after each locally executed tool call.
|
|
125
|
+
- **Prompt token usage is an estimate** — Cursor reports none, so the TUI context meter shows the adapter's character-based estimate.
|
|
126
|
+
- **Sign-out does not revoke at Cursor** — it only deletes the local grant; harvest can still satisfy the next request until `reuseInstalledCursorLogin` is false.
|
|
127
|
+
- **Harvest can bill a different Cursor account** — a stored DSH grant wins; turn harvest off when this machine's IDE login is not the account to use.
|
|
128
|
+
- **A sign-in lives only in the process that started it** — reloading the page mid-login abandons the attempt.
|
|
129
|
+
|
|
130
|
+
<a id="dev-note"></a>
|
|
131
|
+
### Dev Note
|
|
132
|
+
|
|
133
|
+
<details>
|
|
134
|
+
<summary>Working context for maintainers — click to expand</summary>
|
|
135
|
+
|
|
136
|
+
This Dev Note is non-authoritative working context: undecided directions and notes for maintainers. Shipped behavior and accepted rationale live in the sections above, the package code, and the linked Agent Notes.
|
|
137
|
+
|
|
138
|
+
- `src/native/agent_pb.ts` is the MIT-licensed generated schema from https://github.com/Rahularya01/pi-cursor. Coverage, oxlint, and verify-export-jsdoc exclude that file. There is no runtime dependency on `@rahularya01/pi-cursor`.
|
|
139
|
+
|
|
140
|
+
</details>
|
|
141
|
+
|
|
142
|
+
**Runtime invariant:** No companion is published. This package exposes no independent event sequence or mutable data relation beyond contracts enforced at its owning seam.
|