Skip to content

Commit 32eac56

Browse files
authored
Merge pull request #17 from context-dot-dev/release-please--branches--main--changes--next
release: 1.1.0
2 parents aa7ce6c + 28e2e48 commit 32eac56

22 files changed

Lines changed: 617 additions & 186 deletions

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
lint:
2222
timeout-minutes: 10
2323
name: lint
24-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
24+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2525
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2626

2727
steps:
@@ -48,7 +48,7 @@ jobs:
4848
permissions:
4949
contents: read
5050
id-token: write
51-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
51+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
5252
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
5353
steps:
5454
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -95,7 +95,7 @@ jobs:
9595
test:
9696
timeout-minutes: 10
9797
name: test
98-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
98+
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
9999
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
100100
steps:
101101
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.0"
2+
".": "1.1.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-fb56935a194e69348fecd985f7cf8b249795b46af2fb32f6c5c8ef648cf10c15.yml
3-
openapi_spec_hash: 7260a560474283b7ad6ac5d426058ac9
4-
config_hash: daabb160675d86b354711da1e77e5129
1+
configured_endpoints: 32
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-242450ea46eb8c3e843fd6c4bf87e73192b5f62f6da697cd091d13c6aa7a991b.yml
3+
openapi_spec_hash: c1c561976de1abcacede71fd5ab9b3d9
4+
config_hash: 70e7e80b5e87f94981bee396c6cd41e8

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 1.1.0 (2026-07-22)
4+
5+
Full Changelog: [v1.0.0...v1.1.0](https://github.com/context-dot-dev/context-dev-cli/compare/v1.0.0...v1.1.0)
6+
7+
### Features
8+
9+
* **api:** api update ([cd4503b](https://github.com/context-dot-dev/context-dev-cli/commit/cd4503b7722a10614512c2d1ea9c3dffc670f434))
10+
* **api:** api update ([af90e28](https://github.com/context-dot-dev/context-dev-cli/commit/af90e280f6fe278065c1d873be594fae7f9d61a4))
11+
* **api:** api update ([5f2e61b](https://github.com/context-dot-dev/context-dev-cli/commit/5f2e61b15cc331ec398111cac0d43b409826da40))
12+
* **api:** api update ([e21218b](https://github.com/context-dot-dev/context-dev-cli/commit/e21218b5cb90979c8a2ef32539859d671a33967a))
13+
* **api:** api update ([21c81e4](https://github.com/context-dot-dev/context-dev-cli/commit/21c81e4faf5385a5c02c21585524d8d04794f598))
14+
* **api:** api update ([0468ad1](https://github.com/context-dot-dev/context-dev-cli/commit/0468ad177e1bfb23732f4bda41ad34fb37f972b4))
15+
* **api:** api update ([349f90c](https://github.com/context-dot-dev/context-dev-cli/commit/349f90c23ba4ac35c8c5dee81060a495475435c3))
16+
* **api:** manual updates ([e02d02e](https://github.com/context-dot-dev/context-dev-cli/commit/e02d02e69c215116d5d3e1aec5cab2be279da032))
17+
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([d55d529](https://github.com/context-dot-dev/context-dev-cli/commit/d55d5297e92d05dc7bc507f2ac9f3c02f1f9d178))
18+
319
## 1.0.0 (2026-07-12)
420

521
Full Changelog: [v0.11.0...v1.0.0](https://github.com/context-dot-dev/context-dev-cli/compare/v0.11.0...v1.0.0)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/charmbracelet/bubbletea v1.3.6
88
github.com/charmbracelet/lipgloss v1.1.0
99
github.com/charmbracelet/x/term v0.2.1
10-
github.com/context-dot-dev/context-go-sdk/v2 v2.3.0
10+
github.com/context-dot-dev/context-go-sdk/v2 v2.4.0
1111
github.com/goccy/go-yaml v1.18.0
1212
github.com/itchyny/json2yaml v0.1.4
1313
github.com/muesli/reflow v0.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ github.com/charmbracelet/x/exp/golden v0.0.0-20241011142426-46044092ad91 h1:payR
1818
github.com/charmbracelet/x/exp/golden v0.0.0-20241011142426-46044092ad91/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U=
1919
github.com/charmbracelet/x/term v0.2.1 h1:AQeHeLZ1OqSXhrAWpYUtZyX1T3zVxfpZuEQMIQaGIAQ=
2020
github.com/charmbracelet/x/term v0.2.1/go.mod h1:oQ4enTYFV7QN4m0i9mzHrViD7TQKvNEEkHUMCmsxdUg=
21-
github.com/context-dot-dev/context-go-sdk/v2 v2.3.0 h1:5EJ87AXgixxMYsmwd5mlz/4NeW3qDmdPsKCDOAg58Ik=
22-
github.com/context-dot-dev/context-go-sdk/v2 v2.3.0/go.mod h1:CvRANWLP0FHj5XyUwzEVX79ujdwr/2Jy375UVzKNQm8=
21+
github.com/context-dot-dev/context-go-sdk/v2 v2.4.0 h1:mehuyGuUzgflR7rQpSlPaH7lNj2A8hdtf1+WG4U4h1I=
22+
github.com/context-dot-dev/context-go-sdk/v2 v2.4.0/go.mod h1:CvRANWLP0FHj5XyUwzEVX79ujdwr/2Jy375UVzKNQm8=
2323
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
2424
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
2525
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=

pkg/cmd/ai.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ var aiExtractProduct = cli.Command{
3131
Default: 604800000,
3232
BodyPath: "maxAgeMs",
3333
},
34+
&requestflag.Flag[[]string]{
35+
Name: "tag",
36+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
37+
BodyPath: "tags",
38+
},
3439
&requestflag.Flag[int64]{
3540
Name: "timeout-ms",
3641
Usage: "Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).",
@@ -62,6 +67,11 @@ var aiExtractProducts = cli.Command{
6267
Usage: "Maximum number of products to extract.",
6368
BodyPath: "maxProducts",
6469
},
70+
&requestflag.Flag[[]string]{
71+
Name: "tag",
72+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
73+
BodyPath: "tags",
74+
},
6575
&requestflag.Flag[int64]{
6676
Name: "timeout-ms",
6777
Usage: "Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).",

pkg/cmd/ai_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ func TestAIExtractProduct(t *testing.T) {
1717
"ai", "extract-product",
1818
"--url", "https://example.com",
1919
"--max-age-ms", "0",
20+
"--tag", "production",
21+
"--tag", "team-alpha",
2022
"--timeout-ms", "1000",
2123
)
2224
})
@@ -26,6 +28,9 @@ func TestAIExtractProduct(t *testing.T) {
2628
pipeData := []byte("" +
2729
"url: https://example.com\n" +
2830
"maxAgeMs: 0\n" +
31+
"tags:\n" +
32+
" - production\n" +
33+
" - team-alpha\n" +
2934
"timeoutMS: 1000\n")
3035
mocktest.TestRunMockTestWithPipeAndFlags(
3136
t, pipeData,
@@ -45,6 +50,8 @@ func TestAIExtractProducts(t *testing.T) {
4550
"--domain", "domain",
4651
"--max-age-ms", "0",
4752
"--max-products", "1",
53+
"--tag", "production",
54+
"--tag", "team-alpha",
4855
"--timeout-ms", "1000",
4956
)
5057
})
@@ -55,6 +62,9 @@ func TestAIExtractProducts(t *testing.T) {
5562
"domain: domain\n" +
5663
"maxAgeMs: 0\n" +
5764
"maxProducts: 1\n" +
65+
"tags:\n" +
66+
" - production\n" +
67+
" - team-alpha\n" +
5868
"timeoutMS: 1000\n")
5969
mocktest.TestRunMockTestWithPipeAndFlags(
6070
t, pipeData,

pkg/cmd/brand.go

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var brandRetrieve = cli.Command{
3030
Required: true,
3131
BodyPath: "type",
3232
},
33-
&requestflag.Flag[string]{
33+
&requestflag.Flag[*string]{
3434
Name: "force-language",
3535
Usage: `Allowed values: "afrikaans", "albanian", "amharic", "arabic", "armenian", "assamese", "aymara", "azeri", "basque", "belarusian", "bengali", "bosnian", "bulgarian", "burmese", "cantonese", "catalan", "cebuano", "chinese", "corsican", "croatian", "czech", "danish", "dutch", "english", "esperanto", "estonian", "farsi", "fijian", "finnish", "french", "galician", "georgian", "german", "greek", "guarani", "gujarati", "haitian-creole", "hausa", "hawaiian", "hebrew", "hindi", "hmong", "hungarian", "icelandic", "igbo", "indonesian", "irish", "italian", "japanese", "javanese", "kannada", "kazakh", "khmer", "kinyarwanda", "korean", "kurdish", "kyrgyz", "lao", "latin", "latvian", "lingala", "lithuanian", "luxembourgish", "macedonian", "malagasy", "malay", "malayalam", "maltese", "maori", "marathi", "mongolian", "nepali", "norwegian", "odia", "oromo", "pashto", "pidgin", "polish", "portuguese", "punjabi", "quechua", "romanian", "russian", "samoan", "scottish-gaelic", "serbian", "sesotho", "shona", "sindhi", "sinhala", "slovak", "slovene", "somali", "spanish", "sundanese", "swahili", "swedish", "tagalog", "tajik", "tamil", "tatar", "telugu", "thai", "tibetan", "tigrinya", "tongan", "tswana", "turkish", "turkmen", "ukrainian", "urdu", "uyghur", "uzbek", "vietnamese", "welsh", "wolof", "xhosa", "yiddish", "yoruba", "zulu".`,
3636
BodyPath: "force_language",
@@ -45,6 +45,11 @@ var brandRetrieve = cli.Command{
4545
Usage: "Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data.",
4646
BodyPath: "maxSpeed",
4747
},
48+
&requestflag.Flag[[]string]{
49+
Name: "tag",
50+
Usage: "Optional tags for tracking usage. Up to 20 tags, each 1 to 50 characters.",
51+
BodyPath: "tags",
52+
},
4853
&requestflag.Flag[int64]{
4954
Name: "timeout-ms",
5055
Usage: "Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).",
@@ -95,12 +100,12 @@ var brandRetrieve = cli.Command{
95100
Usage: "When set to true, the API performs additional verification to ensure the identified brand matches the transaction with high confidence.",
96101
BodyPath: "high_confidence_only",
97102
},
98-
&requestflag.Flag[int64]{
103+
&requestflag.Flag[any]{
99104
Name: "mcc",
100105
Usage: "Optional Merchant Category Code (MCC) to help identify the business category or industry.",
101106
BodyPath: "mcc",
102107
},
103-
&requestflag.Flag[float64]{
108+
&requestflag.Flag[any]{
104109
Name: "phone",
105110
Usage: "Optional phone number from the transaction to help verify brand match.",
106111
BodyPath: "phone",
@@ -121,12 +126,22 @@ var brandRetrieveSimplified = cli.Command{
121126
Required: true,
122127
QueryPath: "domain",
123128
},
124-
&requestflag.Flag[int64]{
129+
&requestflag.Flag[*int64]{
125130
Name: "max-age-ms",
126131
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
127-
Default: 7776000000,
132+
Default: requestflag.Ptr[int64](7776000000),
128133
QueryPath: "maxAgeMs",
129134
},
135+
&requestflag.Flag[[]string]{
136+
Name: "tag",
137+
Usage: "Optional comma-separated caller-defined tags for tracking this request. Tags are recorded on the request's usage log and can be used to filter usage on the dashboard usage page. Up to 20 tags, each 1-50 characters.",
138+
QueryPath: "tags",
139+
},
140+
&requestflag.Flag[string]{
141+
Name: "theme",
142+
Usage: "Optional theme preference used when selecting brand assets.",
143+
QueryPath: "theme",
144+
},
130145
&requestflag.Flag[int64]{
131146
Name: "timeout-ms",
132147
Usage: "Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).",

pkg/cmd/brand_test.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,28 @@ func TestBrandRetrieve(t *testing.T) {
1515
t,
1616
"--api-key", "string",
1717
"brand", "retrieve",
18-
"--domain", "domain",
18+
"--domain", "xxx",
1919
"--type", "by_domain",
2020
"--force-language", "afrikaans",
2121
"--max-age-ms", "0",
2222
"--max-speed=true",
23+
"--tag", "production",
24+
"--tag", "team-alpha",
2325
"--timeout-ms", "1000",
2426
)
2527
})
2628

2729
t.Run("piping data", func(t *testing.T) {
2830
// Test piping YAML data over stdin
2931
pipeData := []byte("" +
30-
"domain: domain\n" +
32+
"domain: xxx\n" +
3133
"type: by_domain\n" +
3234
"force_language: afrikaans\n" +
3335
"maxAgeMs: 0\n" +
3436
"maxSpeed: true\n" +
37+
"tags:\n" +
38+
" - production\n" +
39+
" - team-alpha\n" +
3540
"timeoutMS: 1000\n")
3641
mocktest.TestRunMockTestWithPipeAndFlags(
3742
t, pipeData,
@@ -48,8 +53,11 @@ func TestBrandRetrieveSimplified(t *testing.T) {
4853
t,
4954
"--api-key", "string",
5055
"brand", "retrieve-simplified",
51-
"--domain", "domain",
52-
"--max-age-ms", "86400000",
56+
"--domain", "xxx",
57+
"--max-age-ms", "0",
58+
"--tag", "production",
59+
"--tag", "team-alpha",
60+
"--theme", "light",
5361
"--timeout-ms", "1000",
5462
)
5563
})

0 commit comments

Comments
 (0)